3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-04-08 18:31:49 +00:00
z3/examples/msf
2013-12-27 11:39:50 -08:00
..
SolverFoundation.Plugin.Z3 Add a README for MSF plugin 2013-12-27 11:39:50 -08:00
SolverFoundation.Plugin.Z3.Tests Add MSF plugins 2013-12-27 11:18:10 -08:00
Validator Add a README for MSF plugin 2013-12-27 11:39:50 -08:00
README Add a README for MSF plugin 2013-12-27 11:39:50 -08:00
Z3MSFPlugin.sln Add MSF plugins 2013-12-27 11:18:10 -08:00

In order to use Z3 MSF plugin, follow the following steps:
1. Compile latest Z3 .NET API (from any branch consisting of opt features) and copy 'libz3.dll' and 'Microsoft.Z3.dll' to the folder of 'Z3MSFPlugin.sln'.
2. Retrieve 'Microsoft.Solver.Foundation.dll' from http://archive.msdn.microsoft.com/solverfoundation/Release/ProjectReleases.aspx?ReleaseId=1799,
   preferably using DLL only version. Copy 'Microsoft.Solver.Foundation.dll' to the folder of 'Z3MSFPlugin.sln'
3. Build 'Z3MSFPlugin.sln'

The solution consists of a plugin project, a test project with a few simple test cases and a command line projects for external OML, MPS and SMPS models.
To retrieve SMT2 models which are native to Z3, set the logging file in corresponding directives or solver params e.g.

   var p = new Z3MILPParams();
   p.SMT2LogFile = "model.smt2";

For more details, check out the commands in 'Validator\Program.cs'.

Enjoy!