File tree Expand file tree Collapse file tree 4 files changed +16
-20
lines changed
Expand file tree Collapse file tree 4 files changed +16
-20
lines changed Original file line number Diff line number Diff line change @@ -57,8 +57,7 @@ safety_checkert::resultt bmc_all_propertiest::operator()()
5757
5858 solver.set_message_handler (get_message_handler ());
5959
60- auto now = std::chrono::steady_clock::now ();
61- auto sat_start = std::chrono::time_point_cast<std::chrono::seconds>(now);
60+ auto solver_start=std::chrono::steady_clock::now ();
6261
6362 bmc.do_conversion ();
6463
@@ -133,10 +132,10 @@ safety_checkert::resultt bmc_all_propertiest::operator()()
133132 }
134133
135134 {
136- now = std::chrono::steady_clock::now ();
137- auto sat_stop = std::chrono::time_point_cast<std::chrono::seconds>(now);
135+ auto solver_stop = std::chrono::steady_clock::now ();
138136
139- status () << " Runtime decision procedure: " << (sat_stop - sat_start).count ()
137+ status () << " Runtime decision procedure: "
138+ << std::chrono::duration<double >(solver_stop-solver_start).count ()
140139 << " s" << eom;
141140 }
142141
Original file line number Diff line number Diff line change @@ -159,8 +159,7 @@ bmct::run_decision_procedure(prop_convt &prop_conv)
159159
160160 prop_conv.set_message_handler (get_message_handler ());
161161
162- auto now = std::chrono::steady_clock::now ();
163- auto sat_start = std::chrono::time_point_cast<std::chrono::seconds>(now);
162+ auto solver_start = std::chrono::steady_clock::now ();
164163
165164 do_conversion ();
166165
@@ -169,9 +168,9 @@ bmct::run_decision_procedure(prop_convt &prop_conv)
169168 decision_proceduret::resultt dec_result=prop_conv.dec_solve ();
170169
171170 {
172- now = std::chrono::steady_clock::now ();
173- auto sat_stop = std::chrono::time_point_cast<std::chrono::seconds>(now);
174- status () << " Runtime decision procedure: " << (sat_stop - sat_start ).count ()
171+ auto solver_stop = std::chrono::steady_clock::now ();
172+ status () << " Runtime decision procedure: "
173+ << std::chrono::duration< double >(solver_start-solver_stop ).count ()
175174 << " s" << eom;
176175 }
177176
Original file line number Diff line number Diff line change @@ -195,8 +195,7 @@ bool bmc_covert::operator()()
195195
196196 solver.set_message_handler (get_message_handler ());
197197
198- auto now = std::chrono::steady_clock::now ();
199- auto sat_start = std::chrono::time_point_cast<std::chrono::seconds>(now);
198+ auto solver_start=std::chrono::steady_clock::now ();
200199
201200 // Collect _all_ goals in `goal_map'.
202201 // This maps property IDs to 'goalt'
@@ -256,9 +255,9 @@ bool bmc_covert::operator()()
256255 cover_goals ();
257256
258257 {
259- now = std::chrono::steady_clock::now ();
260- auto sat_stop = std::chrono::time_point_cast<std::chrono::seconds>(now);
261- status () << " Runtime decision procedure: " << (sat_stop - sat_start ).count ()
258+ auto solver_stop= std::chrono::steady_clock::now ();
259+ status () << " Runtime decision procedure: "
260+ << std::chrono::duration< double >(solver_stop-solver_start ).count ()
262261 << " s" << eom;
263262 }
264263
Original file line number Diff line number Diff line change @@ -246,8 +246,7 @@ fault_localizationt::run_decision_procedure(prop_convt &prop_conv)
246246
247247 prop_conv.set_message_handler (bmc.get_message_handler ());
248248
249- auto now = std::chrono::steady_clock::now ();
250- auto sat_start = std::chrono::time_point_cast<std::chrono::seconds>(now);
249+ auto solver_start=std::chrono::steady_clock::now ();
251250
252251 bmc.do_conversion ();
253252
@@ -260,9 +259,9 @@ fault_localizationt::run_decision_procedure(prop_convt &prop_conv)
260259 // output runtime
261260
262261 {
263- now = std::chrono::steady_clock::now ();
264- auto sat_stop = std::chrono::time_point_cast<std::chrono::seconds>(now);
265- status () << " Runtime decision procedure: " << (sat_stop - sat_start ).count ()
262+ auto solver_stop= std::chrono::steady_clock::now ();
263+ status () << " Runtime decision procedure: "
264+ << std::chrono::duration< double >(solver_stop-solver_start ).count ()
266265 << " s" << eom;
267266 }
268267
You can’t perform that action at this time.
0 commit comments