Skip to content

Commit

Permalink
May have fixed -d flag
Browse files Browse the repository at this point in the history
  • Loading branch information
rvanren committed Dec 9, 2024
1 parent ce06c8e commit 0f2c4a3
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion harmony_model_checker/charm/charm.c
Original file line number Diff line number Diff line change
Expand Up @@ -417,6 +417,14 @@ static void direct_run(struct state *state, unsigned int id){
w.allocator.free = wfree;
w.allocator.ctx = &w.alloc_state;

w.inf_alloc_state.alloc_buf = malloc(WALLOC_CHUNK);
w.inf_alloc_state.alloc_ptr = w.inf_alloc_state.alloc_buf;
w.inf_alloc_state.alloc_buf16 = malloc(WALLOC_CHUNK);
w.inf_alloc_state.alloc_ptr16 = w.inf_alloc_state.alloc_buf16;
w.inf_allocator.alloc = walloc;
w.inf_allocator.free = wfree;
w.inf_allocator.ctx = &w.inf_alloc_state;

memset(&step, 0, sizeof(step));
step.allocator = &w.allocator;
step.ctx = &w.ctx;
Expand Down Expand Up @@ -891,7 +899,7 @@ static struct step_output *onestep(
assert_batch = in_assertion = true;
}

double now = gettime();
double now = gettime();

int pc = step->ctx->pc;
struct op_info *oi = instrs[pc].oi;
Expand Down

0 comments on commit 0f2c4a3

Please sign in to comment.