mirror of
https://github.com/Z3Prover/z3
synced 2025-05-07 07:45:46 +00:00
JS/TS: add Optimize class (#6712)
* implement Optimize class for the high level Typescript API * javascript and wasm: add _malloc to exported functions fix the bug https://github.com/Z3Prover/z3/issues/6709 * javascript: add tests for the Optimize class * javascript: no reason that minimize and optimize must be constants
This commit is contained in:
parent
6c24a70c44
commit
0c9a5f69fd
4 changed files with 184 additions and 1 deletions
|
@ -40,7 +40,7 @@ function spawnSync(command: string, opts: SpawnOptions = {}) {
|
|||
}
|
||||
|
||||
function exportedFuncs(): string[] {
|
||||
const extras = ['_set_throwy_error_handler', '_set_noop_error_handler', ...asyncFuncs.map(f => '_async_' + f)];
|
||||
const extras = ['_malloc', '_set_throwy_error_handler', '_set_noop_error_handler', ...asyncFuncs.map(f => '_async_' + f)];
|
||||
|
||||
// TODO(ritave): This variable is unused in original script, find out if it's important
|
||||
const fns: any[] = (functions as any[]).filter(f => !asyncFuncs.includes(f.name));
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue