Giter Club home page Giter Club logo

wlp-verification-engine's Introduction

Wlp-verification-engine

Ferdinand van Walree 3874389 and Matthew Swart 5597250

This project uses the following compiler versions:

  • Haskell version: 7.10.2-a
  • uuagc-0.9.52.1

In order to verify an example from examples.hs you need to run "build.sh" and type: verify . E.g: "verify minind'"

The build.sh script builds the engine and loads the correct Haskell file.

How to run an example manually? Go to the "src" directory in bash and execute the following commands:

  • ghci
  • :l Verification.hs
  • verify The needs to be a Haskell function which uses as syntax the functions of GCL.hs. All of our own examples are added in the examples.hs. E.g. to verify "minind'" from examples.hs, you need to write: "verify minind"

Constraint of creating your own GCL functions:

  • Use the syntactical construction of GCL.hs to write the function
  • The function that you want to verify needs to begin with vars (and not program!).
  • Every program has to start with an assume.
  • We also expect every program to end with an assert, but this is not forced. See examples.hs to see examples.

---Overview structure--- Examples.hs In the Examples.hs we added several examples. To verify them you can either run buid.sh or load Verification.hs.

Verification.hs In Verification.hs we calculate the WLP. There is also a function "verify" in this file, with this function you can verify examples. E.g: "verify minind"

Prover.hs The code to prove a WLP is located in the Prover.hs.

PrettyPrint.hs In PrettyPrint.hs is all the code to pretty print GCL code.

Grammar.ag The datatypes in order to write GCL in Haskell is implemented in Grammer.ag

Collect.ag This file is used to collect all the vars,refs and program calls.

Transformer.hs In Transformer.hs we introduce fresh variables, transform simultaneous assignments and transform program calls to the correct form.

GCL.hs All possible GCL syntactical constructs can be viewed in GCL.hs

wlp-verification-engine's People

Contributors

ferdinand-vw avatar maffh92 avatar

Watchers

James Cloos avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.