mirror of
https://github.com/Z3Prover/z3
synced 2025-04-15 21:38:44 +00:00
try to add basic expression simplification
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
parent
4368ec9953
commit
7c0ec21af8
|
@ -498,6 +498,14 @@ export function createApi(Z3: Z3Core): Z3HighLevel {
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
///////////////////////////////
|
||||||
|
// expression simplification //
|
||||||
|
///////////////////////////////
|
||||||
|
|
||||||
|
async function simplify(e : Expr<Name>) {
|
||||||
|
return _toExpr(check(Z3.simplify(contextPtr, e)));
|
||||||
|
}
|
||||||
|
|
||||||
/////////////
|
/////////////
|
||||||
// Objects //
|
// Objects //
|
||||||
/////////////
|
/////////////
|
||||||
|
|
Loading…
Reference in a new issue