Giter VIP home page Giter VIP logo

popl21_artifacts's Introduction

Artifacts for "Combining the Top-down Propagation and Bottom-up Enumeration for Inductive Program Synthesis"

Build (tested on Linux)

$ git clone https://github.com/wslee/popl21_artifacts
$ cd popl21_artifacts
$ ./build.sh 
$ . setenv 

Reproducing the main results (Figure 7) in the paper

$ ./artifact [string | bitvec | circuit] [--timeout <sec> (default: 3600)] [--memory <GB> (default: 16)] --batch --n_process <num_cores>

You can specify a timeout, memory limit, and the number of CPU cores to be used for parallel execution. This step is time-consuming. Therefore, we strongly recommend you use enough cores to expedite the experiments.

After running the above commands, you can see the contents in Figure 7 by the following command:

$ ./artifact --print_stat 1

Reproducing the results for the chosen 30 benchmark problems (Table 2 in the paper)

$ ./artifact [string | bitvec | circuit] [--timeout <sec> (default: 3600)] [--memory <GB> (default: 16)] 

This command will produce Table 2. If you have run the command for the main results, the table will be immediately shown. Otherwise, it will run each solver for each benchmark in turn.

You can also obtain the results of Duet without running the other baseline solvers as follow:

$ ./artifact <domain> --only_duet [--timeout <sec> (default: 3600) [--memory <GB> (default: 16)]

where "domain" can be one of string, bitvec, circuit.

Comparison to Euphony (Table 3 in the paper)

You should run the commands for the main results first. And then, please execute

$ ./artifact --print_stat 2 

This command will produce Table 3.

Running Duet for other SyGuS problems

You can run Duet to solve other synthesis problems as follows:

$ duet/main.native <options> [a SyGuS input file]

The tool is also available in a separate GitHub repository. In README.md, you may find the options available.

For example, to solve the problem described in tests/string/phone-10.sl,

$ duet/main.native tests/string/phone-10.sl

You will get the following output:

(define-fun f ( (name String)) String (str.replace (str.replace (str.replace name " " ")") ")" (str.++ " " "(")) "-" (str.++ ")" " ")))
****************** statistics *******************
size : 14
time : 0.08 sec
max_component_size : 4
# components : 422
time for composition : 0.04 sec
time for component generation : 0.04 sec
**************************************************

The first line shows a desirable solution (f is the target synthesis function), and the other lines show some useful statistics.

popl21_artifacts's People

Contributors

wslee avatar

Stargazers

 avatar

Watchers

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