Skip to content

Commit

Permalink
try to add basic expression simplification
Browse files Browse the repository at this point in the history
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
  • Loading branch information
NikolajBjorner committed Jul 22, 2022
1 parent 4368ec9 commit 7c0ec21
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/api/js/src/high-level/high-level.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 //
/////////////
Expand Down

0 comments on commit 7c0ec21

Please sign in to comment.