3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-05-03 22:05:45 +00:00

Fix memory and concurrency issues in OCaml API (#6992)

* Fix memory and concurrency issues in OCaml API

* Undo locking changes
This commit is contained in:
Christoph M. Wintersteiger 2023-11-17 02:28:12 +00:00 committed by GitHub
parent 5b9fdcf462
commit 36382ccb57
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 41 additions and 19 deletions

View file

@ -2082,6 +2082,16 @@ extern "C" {
unsigned sort_refs[]
);
/**
\brief Retrieve the number of fields of a constructor
\param c logical context.
\param constr constructor.
def_API('Z3_constructor_num_fields', UINT, (_in(CONTEXT), _in(CONSTRUCTOR)))
*/
unsigned Z3_API Z3_constructor_num_fields(Z3_context c, Z3_constructor constr);
/**
\brief Reclaim memory allocated to constructor.