GithubHelp home page GithubHelp logo

weisi / sharpsmt Goto Github PK

View Code? Open in Web Editor NEW

This project forked from bearben/sharpsmt

0.0 0.0 0.0 12.09 MB

A toolkit for #SMT(LA) problems

License: GNU General Public License v2.0

Shell 0.25% C++ 96.45% Makefile 0.46% SMT 2.83%

sharpsmt's Introduction

sharpSMT

What is it?

sharpSMT is a tool designed for measuring the solution space of an SMT(LA) formula, It is licensed under the GNU General Public License. Intuitively, sharpSMT subdivides the solution spaces of SMT(LA) formulas into a series of polytopes, then it calls tools on polytopes and finaly sums the volume or counts up. In detail, it calls various polytope subroutines as the following.

Polytope Subroutine Functions Command-line Option
PolyVest Volume Approximation -p
Vinci Volume Computation -v
LattE Exact Integer Solution Counting -l
Barvinok Exact Integer Solution Counting -b
ApproxLatCount Approximate Integer Solution Counting -a
Vol2Lat Approximate Integer Solution Counting -v

This release includes the source codes of PolyVest, Vinci, ApproxLatCount (ALC) and Vol2Lat (V2L). The tool LattE and Barvinok are not included.

Directories

Name Description
bin/ Polytope Subroutines
src/ Sorce codes of sharpSMT
test/ Formulas for Testing
ApproxLatCount.zip Source codes of ALC
benchmarks.zip The complete set of benchmarks
build.sh Shell for building sharpSMT
COPYING GNU GPL lincese
makefile makefile
vinci-1.0.5.zip Source codes for a modified version of Vinci
z3-master.zip Source codes of Z3

Build status

This release of sharpSMT has been successfully built on the following operating systems:

  • Ubuntu 22.04 on 64-bit with g++ 11.4.0

Building sharpSMT

  • Step 1: Make sure that g++ is installed on your machine (you can type "g++ -v" to check this).
  • Step 2: The functionality of sharpSMT is dependent on some other libraries: boost, glpk, and Armadillo.
  • Step 3: Execute:
sh build.sh
  • Step 4: Build and install LattE. Then move the executable files (count and scdd) into directory bin/. It is optional if you do not use LattE (-L) to compute the integer solution counts.

  • Step 5: Build and install barvinok. Then move the executable files (barvinok_count) into directory bin/. It is optional if you do not use barvinok to compute the integer solution counts.

Quick test, simply execute:

./sharpSMT -v test/f1_lra.smt2
./sharpSMT -a -w=2 test/coloring.smt

sharpSMT should pop up the help menu by "-h" command.

./sharpSMT -h

Quick guide for building on Ubuntu

Execute:

sudo apt install g++ libglpk-dev libboost-dev libarmadillo-dev
sh build.sh

Questions/Feedback/Comments

Please contact:

  1. Cunjing Ge ([email protected])

Enjoy!

sharpsmt's People

Contributors

bearben avatar weisi 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.