Giter VIP home page Giter VIP logo

sy2cpp's Introduction

Syntax Guided Synthesis library for C++

Feel free to write pull requests or write issues for feature requests.

This is a library for the SyGuS format. Mostly for parsing and getting an AST as well as a symbol table. I hope to be able to extend this library further to also include interfaces to solvers etc. Some of the features of this library include:

  • Supporting Indexed Identifiers
  • No boost library
  • C++20 (not fully as most compilers don't support everything yet f.e. modules)

USAGE:

Download repo, run cmake, make, and make install

With CMAKE in the project use FetchContent

...
include(FetchContent)
...
FetchContent_Declare(Sy2CPP
        GIT_REPOSITORY https://github.com/jparsert/Sy2CPP
        GIT_TAG main
)
FetchContent_MakeAvailable(Sy2CPP)

...

target_link_libraries(sometarget PRIVATE Sy2CPP-shared)

Guidlines

  • use modern c++
  • References where possible
  • raw pointers where memory is not managed and references are not possible
  • smart pointers where memory is managed
  • STL where possible
  • never use new/malloc/delete use make_shared/ etc.

Currently Supported Theories

  • LIA (tested on LIA/LIA_INV of private REPO)

Requrirements

  • c++ supporting standard 2020
  • antlr4 runtime
  • ...

Easy TODOs

  • "Adequate" variable stack datatype for SymbolTable
  • check if symbol already in the signature (in a lot of define/declare commands)
  • check that variables are distinct (in binders and arguments).
  • constexpr constructors for EitherIdentififer/Sort and Function/Sort/Symbol Descriptors

TODO

  • TESTING!!!
  • Parametric sorts
  • More Theories

sy2cpp's People

Contributors

jparsert avatar

Watchers

 avatar E Polgreen 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.