3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-04-22 16:45:31 +00:00

try to add basic expression simplification

Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
Nikolaj Bjorner 2022-07-22 12:21:25 -07:00
parent 4368ec9953
commit 7c0ec21af8

View file

@ -498,6 +498,14 @@ export function createApi(Z3: Z3Core): Z3HighLevel {
return result;
}
///////////////////////////////
// expression simplification //
///////////////////////////////
async function simplify(e : Expr<Name>) {
return _toExpr(check(Z3.simplify(contextPtr, e)));
}
/////////////
// Objects //
/////////////