GithubHelp home page GithubHelp logo

c2s-ocaml's People

Contributors

michael-emmi avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar

Forkers

pierreganty

c2s-ocaml's Issues

Vectorization without maps?

Perhaps Boogie would be happier with an encoding without using maps, so that array theory can be avoided -- at least from the sequentialization. Instead of replacing global accesses G by G[k], we might instead introduce Boogie functions.

The Basic Idea

For each global G of type T, given K rounds, introduce the variables G.1, G.2, .., G.K of type T, and a function G(int,T,T,T,..,T) -- there should be K T's there. This function is defined such that G(i,g.0,g.1,..,g.K) = g.i. Each access to G is then replaced by G(k,G.1,G.2,..,G.K), where k is the current round index.

Will this help?

Unclear. But it certainly will avoid introducing array theory reasoning in Boogie's VCs. Other things to consider are:

  • the number of assignments/equalities between global variables and saved/guessed values will multiply by a factor of K, thus increasing the size of the generated program by O(K).
  • array theory might be present anyways, e.g., from SMACK translated code

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.