Coder Social home page Coder Social logo

differentiablesygus's Introduction

A differentiable program synthesizer for SyGuS

Introduction

We propose an end-to-end differentiable program synthesizer for SyGuS. More details of the algorithm are given in Differentiable Synthesis of Program Architectures with its implementation available at dPads.

Requirements

  • Python 3.6+
  • PyTorch 1.4.0+
  • scikit-learn 0.22.1+
  • Numpy
  • tqdm

Setup

cd metal/spec_encoder/
make
export PYTHONPATH=your_path_to/DifferentiableSyGuS/

Run (-single_sample to specify a benchmark)

The tool currently only supports the CrCi set (cryptography circuits) benchmarks. As the synthesizer is differentiable end-to-end, we require smooth program semantics. There are two ways to approximate the circuit semantics (for and, or, xor, and not), defined in library_functions.py.

Each of the following two commands invokes one of the two semantics definitions. There are benchmarks that can only be solved by one of the semantics definitions. Therefore, to evaluate the full strength of the synthesizer, both commands should be applied to each benchmark (log.txt provides the result of applying EUSover as a baseline).

python3 archsyn/new_main.py --batch_size 50 --random_seed 0 -data_root ./benchmarks -file_list all -single_sample CrCy_10-sbox2-D5-sIn30.sl -top_left True -GM True --sem minmax
python3 archsyn/new_main.py --batch_size 50 --random_seed 0 -data_root ./benchmarks -file_list all -single_sample CrCy_10-sbox2-D5-sIn30.sl -top_left True -GM True --sem arith

differentiablesygus's People

Contributors

rowangithub avatar

Watchers

 avatar

Forkers

georgetsoukalas

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.