Skip to content

Commit 11d992a

Browse files
authored
wip: tweak GC further (#5982)
1 parent e11496b commit 11d992a

1 file changed

Lines changed: 22 additions & 20 deletions

File tree

src/api/ml/z3native_stubs.c.pre

Lines changed: 22 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -294,7 +294,8 @@ static struct custom_operations Z3_ast_plus_custom_ops = {
294294
Z3_ast_compare_ext
295295
};
296296

297-
MK_CTX_OF(ast, 16) // let's say 16 bytes per ast
297+
// FUDGE
298+
MK_CTX_OF(ast, 8) // let's say 16 bytes per ast
298299

299300
#define MK_PLUS_OBJ_NO_REF(X, USED) \
300301
typedef struct { \
@@ -410,25 +411,26 @@ MK_CTX_OF(ast, 16) // let's say 16 bytes per ast
410411
\
411412
MK_CTX_OF(X, USED)
412413

413-
MK_PLUS_OBJ_NO_REF(symbol, 32)
414-
MK_PLUS_OBJ_NO_REF(constructor, 32)
415-
MK_PLUS_OBJ_NO_REF(constructor_list, 32)
416-
MK_PLUS_OBJ_NO_REF(rcf_num, 32)
417-
MK_PLUS_OBJ(params, 128)
418-
MK_PLUS_OBJ(param_descrs, 128)
419-
MK_PLUS_OBJ(model, 512)
420-
MK_PLUS_OBJ(func_interp, 128)
421-
MK_PLUS_OBJ(func_entry, 128)
422-
MK_PLUS_OBJ(goal, 128)
423-
MK_PLUS_OBJ(tactic, 128)
424-
MK_PLUS_OBJ(probe, 128)
425-
MK_PLUS_OBJ(apply_result, 128)
426-
MK_PLUS_OBJ(solver, 20 * 1000 * 1000) // pretend a solver is 20MB
427-
MK_PLUS_OBJ(stats, 128)
428-
MK_PLUS_OBJ(ast_map, 1024 * 2)
429-
MK_PLUS_OBJ(ast_vector, 128)
430-
MK_PLUS_OBJ(fixedpoint, 20 * 1000 * 1000)
431-
MK_PLUS_OBJ(optimize, 20 * 1000 * 1000)
414+
// FUDGE
415+
MK_PLUS_OBJ_NO_REF(symbol, 16)
416+
MK_PLUS_OBJ_NO_REF(constructor, 16)
417+
MK_PLUS_OBJ_NO_REF(constructor_list, 16)
418+
MK_PLUS_OBJ_NO_REF(rcf_num, 16)
419+
MK_PLUS_OBJ(params, 64)
420+
MK_PLUS_OBJ(param_descrs, 64)
421+
MK_PLUS_OBJ(model, 64)
422+
MK_PLUS_OBJ(func_interp, 32)
423+
MK_PLUS_OBJ(func_entry, 32)
424+
MK_PLUS_OBJ(goal, 64)
425+
MK_PLUS_OBJ(tactic, 64)
426+
MK_PLUS_OBJ(probe, 64)
427+
MK_PLUS_OBJ(apply_result, 32)
428+
MK_PLUS_OBJ(solver, 20 * 1000)
429+
MK_PLUS_OBJ(stats, 32)
430+
MK_PLUS_OBJ(ast_map, 32)
431+
MK_PLUS_OBJ(ast_vector, 32)
432+
MK_PLUS_OBJ(fixedpoint, 20 * 1000)
433+
MK_PLUS_OBJ(optimize, 20 * 1000)
432434

433435
#ifdef __cplusplus
434436
extern "C" {

0 commit comments

Comments
 (0)