3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-04-24 09:35:32 +00:00
This commit is contained in:
Nikolaj Bjorner 2022-12-19 21:02:23 -08:00
parent f961300036
commit fe8034731d
5 changed files with 39 additions and 15 deletions

View file

@ -41,6 +41,23 @@ from two equivalent formulas are guaranteed to be equal.
(apply simplify)
```
The simplifier is also exposed as a stand-alone command.
There are several options to control its behavior.
```z3
(declare-const x Int)
(declare-const y Int)
(declare-const z Int)
(declare-const u Int)
(declare-fun p (Int) Bool)
(assert (p (* (+ x y) (+ z u))))
(apply simplify)
(apply (with simplify :som true))
(simplify (* (+ x y) (+ z u)) :som false)
(simplify (* (+ x y) (+ z u)) :som true)
```
### Notes
* supports unsat cores, proof terms