Giter Site home page Giter Site logo

cister-labs / hoare_project Goto Github PK

View Code? Open in Web Editor NEW
0.0 3.0 1.0 14 KB

This repository contains the code base on which the student should complete in order to implement the expecte weakest precondition generator and two verification condition generation algorithms.

License: MIT License

Python 100.00%

hoare_project's Introduction

hoare_project

This repository contains the code base on which the groups of student should work for this assessment.

Objectives

For completing this assignment, the groups shall implement the code of:

  • the [wprec] function that exists in the [WPrec.py] file;
  • the [VC] function that exists in the [VCs.py] file.

Requirements

For developing this assignment you should have installed:

  • Python 3.10
  • the colorama package (that you can install via the [pip] command)
  • optionally, if you want to see your code being used to call the Z3 theorem prover showing that in fact the Hoare reasoning is correct, you need to install the Z3 theorem prover and the Python API for Z3. See the assignment pdf for instructions.

Testing your code

For testing your code, your should rely on the Python scripts that start with "test_". There are three of such scripts:

  • test_Specs.py : this one has the purpose of serving as an example on how to run tests in the code. This test script simply shows the well-formedness of specifications.
  • test_WPrec.py : this test file has the purpose of testing the correct implementation of the [wprec] function that is present in the [WPrec.py] script.
  • test_WPrec.py : this test file has the purpose of testing the correct implementation of the [VC] function that is present in the [VCs.py] script.

To run any of these test scripts you just need to invoque the Python interpreter on them, that is, "python test_xxx.py" where the "xxx" should be replaced by corresponding name that corresponds to the test you want to run.

hoare_project's People

Contributors

dmrpe avatar joseproenca avatar

Watchers

 avatar  avatar CISTER - Research Center in Real-Time & Embedded Computing 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.