GithubHelp home page GithubHelp logo

galoisinc / reopt-vcg Goto Github PK

View Code? Open in Web Editor NEW
13.0 13.0 3.0 22.69 MB

A translation verifier for Reopt (https://github.com/GaloisInc/reopt)

Lean 0.23% Haskell 0.09% Shell 0.21% Makefile 0.10% LLVM 20.01% SMT 79.36% Dockerfile 0.01%
lean4

reopt-vcg's People

Contributors

andreistefanescu avatar dagit avatar joehendrix avatar ptival avatar robdockins avatar simonjwinwood avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar

reopt-vcg's Issues

Instruction decoder doesn't export size information

The LLVM decoder doesn't currently export the expected width of immediates and memory locations, only the number of bytes. In particular, we need to extend immediates to a larger size, but we don't know whether to sign extend or zero extend.

With memory locations we currently use whatever width the semantics pattern wants, but this means that e.g. a 32 bit move to a 64 bit memory address will be executed as (depending on order of the one_of argument to the pattern) an 8 bit store, truncating the immediate.

Cancel reopt-vcg on Ctrl-C

It currently looks like pressing Ctrl-C will frequently cause CVC4 to abort, but keep reopt-vcg running. It would be useful to be able to reliably abort reopt-vc with canceling via Ctrl-C.

bitvec.of_nat is suboptimal

The definition of bitvec.of_nat uses pow, which isn't a VM override. Better would be using e.g. shiftl, but this would involve updating the proofs.

unsoundness: check that the return address is not mutated

Currently we assert that the return address, stored at the top of the stack, is the value of the IP after a return, but we don't assert that the RA value is unchanged by blocks which do not return. Thus, a block which mutates the RA slot and then branches to a block which returns will pass verification.

Remove old files

Based on my (somewhat limited given the duration of this project) experiences, the following top level directories seem likely to no longer be of use going forward:

concrete-vcg/
lean/
old-lean4/
test-programs/

I think it would be useful to remove these and move the contents of lean4 into the root of the repository.

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.