Difference between revisions of "Z3BP"

From BP Wiki
Jump to: navigation, search
(New page: = Verifying behavioral programs with the Z3 Theorem Prover / SMT Solver = == Installation == * Required Environment: Windows 7, Eclipse. * Install latest version of Z3 from Z3 Web Site (a...)
 
Line 3: Line 3:
 
== Installation ==
 
== Installation ==
 
* Required Environment: Windows 7, Eclipse.
 
* Required Environment: Windows 7, Eclipse.
* Install latest version of Z3 from Z3 Web Site (at the time of writing this page the version is 4.1). Note that the software is under a Microsoft Research folder.  
+
* Install latest version of Z3 from Z3 Web Site (at the time of writing this page the version is 4.1). Note that the software is under a Microsoft Research folder.
* Install Python version 2.7.3 from Python web site. Presently the latest version of Z3 does not support the latest version of Python version. The following instructions assume that you have installed Python into C:\Python27\ on your computer.  
+
* Install Python version 2.7.3 from Python web site. Presently the latest version of Z3 does not support the latest version of Python version. The following instructions assume that you have installed Python into C:\Python27\ on your computer.
* Install PyDev from Pydev web site as follows: find and copy the link for PyDev Eclipse plugin. Open Eclipse. Click "help" and "install new software". Add the plugin location and install. During installation check and approve the certificate trust.  
+
* Install PyDev from Pydev web site as follows: find and copy the link for PyDev Eclipse plugin. Open Eclipse. Click "help" and "install new software". Add the plugin location and install. During installation check and approve the certificate trust.
* Create a Z3 project. ToDO **** need to provide it. Eclipse -> "file" -> "import project" ->  "general" ->  "existing  project into workspace" (do not copy into workspace). The project will be marked red.  
+
* Create a Z3 project. ToDO **** need to provide it. Eclipse -> "file" -> "import project" ->  "general" ->  "existing  project into workspace" (do not copy into workspace). The project will be marked red.
 
* Define Interpreter: In Eclipse, open PyDev perspective, right click on the project, select "properties" and then "python interpreter". Define as  C:\Python27\python.exe.
 
* Define Interpreter: In Eclipse, open PyDev perspective, right click on the project, select "properties" and then "python interpreter". Define as  C:\Python27\python.exe.
* Define PYTHONPATH: �In Eclipse: Select "Window" -> "Preferences" -> "PyDev" -> "Interpreter PYTHON"  -> "PYTHONPATH" -> "New Folder". �Add to  the Python path the Python folder within Z3, e.g., �C:\Program Files (x86)\Microsoft Research\Z3-4.1\python.  
+
* Define PYTHONPATH: In Eclipse: Select "Window" -> "Preferences" -> "PyDev" -> "Interpreter PYTHON"  -> "PYTHONPATH" -> "New Folder". Add to  the Python path the Python folder within Z3, e.g., C:\Program Files (x86)\Microsoft Research\Z3-4.1\python.
* Define Windows Path: Add to windows system path variable the bin folder of z3 �C:\Program Files (x86)\Microsoft Research\Z3-4.1\bin.  
+
* Define Windows Path: Add to windows system path variable the bin folder of z3 C:\Program Files (x86)\Microsoft Research\Z3-4.1\bin.
 
* Change appearance: In Eclipse, select "Window" -> "Preferences" -> "PyDev"  -> "Editor" (click on it)  ->  "Aptana themes" -> "Eclipse".
 
* Change appearance: In Eclipse, select "Window" -> "Preferences" -> "PyDev"  -> "Editor" (click on it)  ->  "Aptana themes" -> "Eclipse".

Revision as of 05:01, 16 January 2014

Verifying behavioral programs with the Z3 Theorem Prover / SMT Solver

Installation

  • Required Environment: Windows 7, Eclipse.
  • Install latest version of Z3 from Z3 Web Site (at the time of writing this page the version is 4.1). Note that the software is under a Microsoft Research folder.
  • Install Python version 2.7.3 from Python web site. Presently the latest version of Z3 does not support the latest version of Python version. The following instructions assume that you have installed Python into C:\Python27\ on your computer.
  • Install PyDev from Pydev web site as follows: find and copy the link for PyDev Eclipse plugin. Open Eclipse. Click "help" and "install new software". Add the plugin location and install. During installation check and approve the certificate trust.
  • Create a Z3 project. ToDO **** need to provide it. Eclipse -> "file" -> "import project" -> "general" -> "existing project into workspace" (do not copy into workspace). The project will be marked red.
  • Define Interpreter: In Eclipse, open PyDev perspective, right click on the project, select "properties" and then "python interpreter". Define as C:\Python27\python.exe.
  • Define PYTHONPATH: In Eclipse: Select "Window" -> "Preferences" -> "PyDev" -> "Interpreter PYTHON" -> "PYTHONPATH" -> "New Folder". Add to the Python path the Python folder within Z3, e.g., C:\Program Files (x86)\Microsoft Research\Z3-4.1\python.
  • Define Windows Path: Add to windows system path variable the bin folder of z3 C:\Program Files (x86)\Microsoft Research\Z3-4.1\bin.
  • Change appearance: In Eclipse, select "Window" -> "Preferences" -> "PyDev" -> "Editor" (click on it) -> "Aptana themes" -> "Eclipse".