diff options
author | Marvin Borner | 2023-06-07 15:54:59 +0200 |
---|---|---|
committer | Marvin Borner | 2023-06-07 15:54:59 +0200 |
commit | 1e728c2455fdc696e260f87d0d523a3de6d43a00 (patch) | |
tree | b270fb80fb1fc6f1ad6256a288fc1417c0704899 /src/schedule.c | |
parent | ec2be68120e48c75b0acd2bdfb5cc8d931c70cfd (diff) |
Parenting is still needed
I was certainly dumb.
This reverts commit ec2be68120e48c75b0acd2bdfb5cc8d931c70cfd.
Diffstat (limited to 'src/schedule.c')
-rw-r--r-- | src/schedule.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/src/schedule.c b/src/schedule.c index 2a7a7c4..407c6e0 100644 --- a/src/schedule.c +++ b/src/schedule.c @@ -63,10 +63,6 @@ void schedule_add(struct term *term) if (!term_is_beta_redex(term)) return; - fprintf(stderr, "added "); - term_print(term); - fprintf(stderr, "\n"); - set_pri(term, calculate_priority(term)); pqueue_insert(queue, term); } @@ -82,7 +78,7 @@ void schedule_remove(struct term *term) void schedule(void) { - while (pqueue_size(queue)) { + while (pqueue_size(queue) > 1) { fprintf(stderr, "queue size: %zu\n", pqueue_size(queue)); map_dump(map_all_terms()); |