diff options
author | Marvin Borner | 2023-06-01 17:33:56 +0200 |
---|---|---|
committer | Marvin Borner | 2023-06-01 17:33:56 +0200 |
commit | c062eaeea09592cbdf7e5d732e992d0cdd8eedc5 (patch) | |
tree | 23cdfd41e6a492338c9f902b3a2206a642746530 /src/main.c | |
parent | ccd4914d395b5a588868cffaad580c29167e6747 (diff) |
More scheduling
Diffstat (limited to 'src/main.c')
-rw-r--r-- | src/main.c | 19 |
1 files changed, 8 insertions, 11 deletions
@@ -53,24 +53,21 @@ int main(int argc, char *argv[]) char *term = read_path(argv[1]); map_initialize(); + schedule_initialize(); char *orig_term = term; - struct term_handle handle = parse_blc(&term, 1); + parse_blc(&term, 1); free(orig_term); - term_print(handle.term); - fprintf(stderr, "\n"); - struct term *reduced = reduce(handle.term->u.abs.term); - fprintf(stderr, "after\n"); - term_print(reduced); - fprintf(stderr, "\n"); + schedule_sync_priorities(); - map_dump(map_all_terms()); + /* map_dump(map_all_terms()); */ + debug("reducing...\n"); - /* schedule_init(); */ - /* schedule(); */ - /* schedule_destroy(); */ + schedule(); + map_dump(map_all_terms()); map_destroy(map_all_terms()); + schedule_destroy(); return 0; } |