Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Docker image to wrap z3 behind http #2963
For remix, it would be helpful to have a docker image that exposes z3 / smtlib via HTTP so that it can be used from within the browser.
The idea would be to run the image either locally or on a server and connect remix to it via ajax requests.
The image should have an open port with an http server behind it, which forwards the request payload to the standard input of a z3 instance run using something like
Example smtlib2 inputs look like:
The output of z3 on this would be:
During a single compilation run, multiple of these requests would be sent to the z3 "server".
changed the title from
Docker image to wrap z3 behind REST
Docker image to wrap z3 behind http
Sep 26, 2017
added a commit
Oct 9, 2017
@eelkevdbos wonderful, that's exactly the functionality that we need :-)
Would it be possible to make the image a "little" smaller than 700 MB? Also I'm not a big fan of using files external to the Dockerfile, at least for such tiny things - I guess that's a philosophical question...
I managed to compile z3 (4.5.0) for alpine linux. This creates a smaller image (200 MB), but the output differs:
I can't really judge if this is a deal-breaker (it seems the index of starts at 0 instead of 1). Can you perhaps shine some light on the differences?