mirror of
https://github.com/Z3Prover/z3
synced 2025-04-07 09:55:19 +00:00
add await
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
This commit is contained in:
parent
212a0657a2
commit
1155ea69a1
|
@ -503,7 +503,8 @@ export function createApi(Z3: Z3Core): Z3HighLevel {
|
|||
///////////////////////////////
|
||||
|
||||
async function simplify(e : Expr<Name>) {
|
||||
return _toExpr(check(Z3.simplify(contextPtr, e.ast)));
|
||||
const result = await Z3.simplify(contextPtr, e.ast)
|
||||
return _toExpr(check(result));
|
||||
}
|
||||
|
||||
/////////////
|
||||
|
|
Loading…
Reference in a new issue