X-Git-Url: http://demsky.eecs.uci.edu/git/?a=blobdiff_plain;ds=sidebyside;f=common.cc;fp=common.cc;h=42271221f32cb7012e868200769836d2ff383997;hb=086658309f67c28dc254b06bda5bafa8c3e191d6;hp=b445ce359596cbbaed1e539dfed25ee353d5a566;hpb=5f3838b041321eb417737eed51c8639266c0d77c;p=satcheck.git diff --git a/common.cc b/common.cc index b445ce3..4227122 100644 --- a/common.cc +++ b/common.cc @@ -43,11 +43,11 @@ void print_trace(void) model_print("\nDumping stack trace (%d frames):\n", size); - for (i = 0; i < size; i++) + for (i = 0;i < size;i++) model_print("\t%s\n", strings[i]); free(strings); -#endif /* CONFIG_STACKTRACE */ +#endif/* CONFIG_STACKTRACE */ } void assert_hook(void) @@ -65,7 +65,7 @@ void model_assert(bool expr, const char *file, int line) #ifndef CONFIG_DEBUG -static int fd_user_out; /**< @brief File descriptor from which to read user program output */ +static int fd_user_out; /**< @brief File descriptor from which to read user program output */ /** * @brief Setup output redirecting @@ -147,7 +147,7 @@ void clear_program_output() { fflush(stdout); char buf[200]; - while (read_to_buf(fd_user_out, buf, sizeof(buf))); + while (read_to_buf(fd_user_out, buf, sizeof(buf))) ; } /** @brief Print out any pending program output */ @@ -178,4 +178,4 @@ void print_program_output() model_print("---- END PROGRAM OUTPUT ----\n"); } -#endif /* ! CONFIG_DEBUG */ +#endif/* ! CONFIG_DEBUG */