X-Git-Url: http://demsky.eecs.uci.edu/git/?a=blobdiff_plain;f=common.cc;h=26f6d5d8cd42bdd28484c231a995b5fbe84c633b;hb=c7a6544c3f19d8c4d71b82871c832a866f8dbb79;hp=338058d9f3a8b990278605fe0b6c6c1c38e0d082;hpb=964ae5c3c62fc383c53e90b20f32ba17b7b616ab;p=model-checker.git diff --git a/common.cc b/common.cc index 338058d..26f6d5d 100644 --- a/common.cc +++ b/common.cc @@ -22,9 +22,7 @@ int model_out = STDOUT_FILENO; void print_trace(void) { #ifdef CONFIG_STACKTRACE - FILE *file = fdopen(model_out, "w"); - print_stacktrace(file); - fclose(file); + print_stacktrace(model_out); #else void *array[MAX_TRACE_LEN]; char **strings; @@ -42,11 +40,6 @@ void print_trace(void) #endif /* CONFIG_STACKTRACE */ } -void model_print_summary(void) -{ - model->print_summary(); -} - void assert_hook(void) { model_print("Add breakpoint to line %u in file %s.\n", __LINE__, __FILE__); @@ -154,6 +147,8 @@ void print_program_output() { char buf[200]; + model_print("---- BEGIN PROGRAM OUTPUT ----\n"); + /* Gather all program output */ fflush(stdout); @@ -172,5 +167,7 @@ void print_program_output() ret -= res; } } + + model_print("---- END PROGRAM OUTPUT ----\n"); } #endif /* ! CONFIG_DEBUG */