3
0
Fork 0
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:
Nikolaj Bjorner 2022-07-22 12:42:19 -07:00
parent 212a0657a2
commit 1155ea69a1

View file

@ -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));
}
/////////////