forked from diffblue/cbmc
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request diffblue#1713 from karkhaz/kk-debug-timestamps
Emit timestamps on each line of output
- Loading branch information
Showing
24 changed files
with
242 additions
and
345 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,7 +11,8 @@ Author: Daniel Kroening, [email protected] | |
|
||
#include "all_properties_class.h" | ||
|
||
#include <util/time_stopping.h> | ||
#include <chrono> | ||
|
||
#include <util/xml.h> | ||
#include <util/json.h> | ||
|
||
|
@@ -56,8 +57,8 @@ safety_checkert::resultt bmc_all_propertiest::operator()() | |
|
||
solver.set_message_handler(get_message_handler()); | ||
|
||
// stop the time | ||
absolute_timet sat_start=current_time(); | ||
auto now = std::chrono::steady_clock::now(); | ||
auto sat_start = std::chrono::time_point_cast<std::chrono::seconds>(now); | ||
|
||
bmc.do_conversion(); | ||
|
||
|
@@ -131,12 +132,12 @@ safety_checkert::resultt bmc_all_propertiest::operator()() | |
g.second.status=goalt::statust::SUCCESS; | ||
} | ||
|
||
// output runtime | ||
|
||
{ | ||
absolute_timet sat_stop=current_time(); | ||
status() << "Runtime decision procedure: " | ||
<< (sat_stop-sat_start) << "s" << eom; | ||
now = std::chrono::steady_clock::now(); | ||
auto sat_stop = std::chrono::time_point_cast<std::chrono::seconds>(now); | ||
|
||
status() << "Runtime decision procedure: " << (sat_stop - sat_start).count() | ||
<< "s" << eom; | ||
} | ||
|
||
// report | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,14 +11,14 @@ Author: Daniel Kroening, [email protected] | |
|
||
#include "bmc.h" | ||
|
||
#include <chrono> | ||
#include <fstream> | ||
#include <iostream> | ||
#include <memory> | ||
|
||
#include <util/string2int.h> | ||
#include <util/source_location.h> | ||
#include <util/string_utils.h> | ||
#include <util/time_stopping.h> | ||
#include <util/message.h> | ||
#include <util/json.h> | ||
#include <util/cprover_prefix.h> | ||
|
@@ -154,20 +154,20 @@ bmct::run_decision_procedure(prop_convt &prop_conv) | |
|
||
prop_conv.set_message_handler(get_message_handler()); | ||
|
||
// stop the time | ||
absolute_timet sat_start=current_time(); | ||
auto now = std::chrono::steady_clock::now(); | ||
auto sat_start = std::chrono::time_point_cast<std::chrono::seconds>(now); | ||
|
||
do_conversion(); | ||
|
||
status() << "Running " << prop_conv.decision_procedure_text() << eom; | ||
|
||
decision_proceduret::resultt dec_result=prop_conv.dec_solve(); | ||
// output runtime | ||
|
||
{ | ||
absolute_timet sat_stop=current_time(); | ||
status() << "Runtime decision procedure: " | ||
<< (sat_stop-sat_start) << "s" << eom; | ||
now = std::chrono::steady_clock::now(); | ||
auto sat_stop = std::chrono::time_point_cast<std::chrono::seconds>(now); | ||
status() << "Runtime decision procedure: " << (sat_stop - sat_start).count() | ||
<< "s" << eom; | ||
} | ||
|
||
return dec_result; | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -11,7 +11,8 @@ Author: Daniel Kroening, [email protected] | |
|
||
#include "bmc.h" | ||
|
||
#include <util/time_stopping.h> | ||
#include <chrono> | ||
|
||
#include <util/xml.h> | ||
#include <util/xml_expr.h> | ||
#include <util/json.h> | ||
|
@@ -191,8 +192,8 @@ bool bmc_covert::operator()() | |
|
||
solver.set_message_handler(get_message_handler()); | ||
|
||
// stop the time | ||
absolute_timet sat_start=current_time(); | ||
auto now = std::chrono::steady_clock::now(); | ||
auto sat_start = std::chrono::time_point_cast<std::chrono::seconds>(now); | ||
|
||
// Collect _all_ goals in `goal_map'. | ||
// This maps property IDs to 'goalt' | ||
|
@@ -251,12 +252,11 @@ bool bmc_covert::operator()() | |
|
||
cover_goals(); | ||
|
||
// output runtime | ||
|
||
{ | ||
absolute_timet sat_stop=current_time(); | ||
status() << "Runtime decision procedure: " | ||
<< (sat_stop-sat_start) << "s" << eom; | ||
now = std::chrono::steady_clock::now(); | ||
auto sat_stop = std::chrono::time_point_cast<std::chrono::seconds>(now); | ||
status() << "Runtime decision procedure: " << (sat_stop - sat_start).count() | ||
<< "s" << eom; | ||
} | ||
|
||
// report | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,6 +14,7 @@ Author: Daniel Kroening, [email protected] | |
|
||
#include <util/ui_message.h> | ||
#include <util/parse_options.h> | ||
#include <util/timestamper.h> | ||
|
||
#include <langapi/language.h> | ||
|
||
|
@@ -62,6 +63,7 @@ class optionst; | |
"(version)" \ | ||
"(cover):(symex-coverage-report):" \ | ||
"(mm):" \ | ||
OPT_TIMESTAMP \ | ||
"(i386-linux)(i386-macos)(i386-win32)(win32)(winx64)(gcc)" \ | ||
"(ppc-macos)(unsigned-char)" \ | ||
"(arrays-uf-always)(arrays-uf-never)" \ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -103,6 +103,7 @@ Author: Daniel Kroening, [email protected] | |
|
||
#include <util/ui_message.h> | ||
#include <util/parse_options.h> | ||
#include <util/timestamper.h> | ||
|
||
#include <langapi/language.h> | ||
|
||
|
@@ -135,6 +136,7 @@ class optionst; | |
"(show-local-may-alias)" \ | ||
"(json):(xml):" \ | ||
"(text):(dot):" \ | ||
OPT_TIMESTAMP \ | ||
"(unreachable-instructions)(unreachable-functions)" \ | ||
"(reachable-functions)" \ | ||
"(intervals)(show-intervals)" \ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,6 +14,7 @@ Author: Daniel Kroening, [email protected] | |
|
||
#include <util/ui_message.h> | ||
#include <util/parse_options.h> | ||
#include <util/timestamper.h> | ||
|
||
#include <goto-programs/goto_functions.h> | ||
#include <goto-programs/show_goto_functions.h> | ||
|
@@ -66,6 +67,7 @@ Author: Daniel Kroening, [email protected] | |
"(show-claims)(show-properties)(property):" \ | ||
"(show-symbol-table)(show-points-to)(show-rw-set)" \ | ||
"(cav11)" \ | ||
OPT_TIMESTAMP \ | ||
"(show-natural-loops)(accelerate)(havoc-loops)" \ | ||
"(error-label):(string-abstraction)" \ | ||
"(verbosity):(version)(xml-ui)(json-ui)(show-loops)" \ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -14,6 +14,7 @@ Author: Daniel Kroening, [email protected] | |
|
||
#include <util/ui_message.h> | ||
#include <util/parse_options.h> | ||
#include <util/timestamper.h> | ||
|
||
#include <langapi/language.h> | ||
|
||
|
@@ -60,6 +61,7 @@ class optionst; | |
"(verbosity):" \ | ||
"(version)" \ | ||
"(cover):(symex-coverage-report):" \ | ||
OPT_TIMESTAMP \ | ||
"(i386-linux)(i386-macos)(i386-win32)(win32)(winx64)" \ | ||
"(ppc-macos)" \ | ||
"(arrays-uf-always)(arrays-uf-never)" \ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.