Lecture 2: SMT

Preparation

Install Z3. Download the latest release 4.4.1 from https://github.com/Z3Prover/z3/releases.

Make sure the Python binding works. You may need to add the path to Z3’s bin directory to the environment variable PYTHONPATH.

$ python
Python 2.7.10 (default, Oct 14 2015, 16:09:02) 
[GCC 5.2.1 20151010] on linux2
Type "help", "copyright", "credits" or "license" for more information.
>>> from z3 import *
>>> x = Int('x')
>>> prove(x < x + 1)
proved
>>> 

We also suggest you install and try Rosette.

Today’s plan

Overview

History

Applications

Exercises

   MONEY
  + CASH
  ------
  ANNOYS