Code Monkey home page Code Monkey logo

volpic's Introduction

VOLPIC

logo_black.png

VOLPIC, or "Verifier Of Lifted Pascal In Coq," is a platform for lifting FPC-compatible Pascal code into equivalent Gallina code, which can then be verified in the Coq Proof Assistant and extracted into OCaml or Haskell code.

Read the 2024 PLDI SRC extended abstract for an explanation of the project's purpose, structure, and accomplishments.

Usage

First build a custom version of FPC based on my branch*. This should look like:

git clone https://gitlab.com/CharlesAverill/source/ fpc-source
cd fpc-source
git checkout volpic_fpc
cd compiler
make cycle -j8

To compile and run the lifter:

cd vp_lifter
make
dune exec vp_lifter -- <path_to_program> -fpc-path "<path-to-custom-fpc-source>/compiler/ppcx64" -fpc-args "-Fu<path-to-custom-fpc-source>/rtl/units/x86_64-linux/"

* These changes are merged into FPC main, but due to the volatility of the parse tree dump format, I've chosen to maintain my own fork of version 3.2.2.

volpic's People

Contributors

charlesaverill avatar

Stargazers

ᴍᴜǫɪᴜ ʜᴀɴ (韩暮秋) avatar Kevin Graaf avatar  avatar

Watchers

Sergey Bronnikov avatar  avatar  avatar

volpic's Issues

XML Parsing

Current parse tree parser is ugly, prob hella buggy, awful to maintain, many conflicts

FPC seems to support XML output - but it isn't available via command line

  1. Patch FPC to support XML output via command line args
  2. Replace nasty parser with xml-light or similar so that I don't have to keep supporting a parser

Add scoping

Pass fresh_scope into functions, have part of function preamble be setting variable names to the values of the coq variables arg0, arg1, etc

Haskell Extraction

Volpic_preamble.v currently assumes OCaml as the extraction language (because I'm lazy). Will eventually need to parametrize this. Ideally, I have a general preamble and a parametrized preamble that I glue together.

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.