From 8accc49386be42c1ef7ecd1a8df044d8f2ed60a9 Mon Sep 17 00:00:00 2001 From: Anh-Dung Phan Date: Fri, 27 Dec 2013 11:39:50 -0800 Subject: [PATCH] Add a README for MSF plugin --- examples/msf/README | 20 ++++++++ .../SolverFoundation.Plugin.Z3.csproj | 50 ++----------------- examples/msf/Validator/Validator.csproj | 30 ++--------- 3 files changed, 30 insertions(+), 70 deletions(-) create mode 100644 examples/msf/README diff --git a/examples/msf/README b/examples/msf/README new file mode 100644 index 000000000..ab69fb0fe --- /dev/null +++ b/examples/msf/README @@ -0,0 +1,20 @@ +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! + + + + + \ No newline at end of file diff --git a/examples/msf/SolverFoundation.Plugin.Z3/SolverFoundation.Plugin.Z3.csproj b/examples/msf/SolverFoundation.Plugin.Z3/SolverFoundation.Plugin.Z3.csproj index 6a4a22aec..9f6b71f34 100644 --- a/examples/msf/SolverFoundation.Plugin.Z3/SolverFoundation.Plugin.Z3.csproj +++ b/examples/msf/SolverFoundation.Plugin.Z3/SolverFoundation.Plugin.Z3.csproj @@ -14,11 +14,7 @@ 512 false - - - - 3.5 - + publish\ true Disk @@ -61,13 +57,7 @@ true pdbonly AnyCPU - bin\Release\Z3Solver.dll.CodeAnalysisLog.xml - true - GlobalSuppressions.cs prompt - AllRules.ruleset - ;C:\Program Files (x86)\Microsoft Visual Studio 10.0\Team Tools\Static Analysis Tools\\Rule Sets - ;C:\Program Files (x86)\Microsoft Visual Studio 10.0\Team Tools\Static Analysis Tools\FxCop\\Rules bin\commercial_64\ @@ -75,15 +65,7 @@ true pdbonly AnyCPU - bin\Release\Z3Solver.dll.CodeAnalysisLog.xml - true - GlobalSuppressions.cs prompt - AllRules.ruleset - ;C:\Program Files (x86)\Microsoft Visual Studio 10.0\Team Tools\Static Analysis Tools\\Rule Sets - ;C:\Program Files (x86)\Microsoft Visual Studio 10.0\Team Tools\Static Analysis Tools\FxCop\\Rules - false - false true @@ -119,8 +101,6 @@ pdbonly x86 prompt - AllRules.ruleset - false @@ -130,15 +110,12 @@ ..\Microsoft.Z3.dll - - 3.5 + - - 3.5 + - - 3.5 + @@ -156,24 +133,7 @@ - - - - False - .NET Framework 3.5 SP1 Client Profile - false - - - False - .NET Framework 3.5 SP1 - true - - - False - Windows Installer 3.1 - true - - +