Skip to content

Commit

Permalink
add fromString method
Browse files Browse the repository at this point in the history
  • Loading branch information
NikolajBjorner committed Aug 18, 2022
1 parent 4be26eb commit 53e1688
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/api/js/src/high-level/high-level.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1012,6 +1012,10 @@ export function createApi(Z3: Z3Core): Z3HighLevel {
toString() {
return check(Z3.solver_to_string(contextPtr, this.ptr));
}

fromString(s : string) {
Z3.solver_from_string(contextPtr, this.ptr, s);
}
}

class ModelImpl implements Model<Name> {
Expand Down

0 comments on commit 53e1688

Please sign in to comment.