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:
parent
4368ec9953
commit
7c0ec21af8
1 changed files with 8 additions and 0 deletions
|
@ -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 //
|
||||
/////////////
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue