Blog
Last Update Dec. 2019
Z3 study notes
ref: https://rise4fun.com/z3/tutorial/guide
- Declare
- declare-const
- declare-fun: (declare-fun f(Int Bool) Int)
- Assert
- adds formulas into Z3 internal stack
- satisfiable if there is an interpretation that makes all asserted formulas true
- Scope
- Z3 maintains a global stack of declarations and assertions
- push create a new stack from current stack size
- define-sort
- defines a new sort symbol that is for a sort expression.
- examples: 1. define-sort Set (T) (Array T Bool)