@@ -94,9 +94,9 @@ void run_queens(int argc, char** argv)
94
94
95
95
// ========================================================================
96
96
// Initialise package manager
97
- time_point t_init_before = get_timestamp ();
97
+ const time_point t_init_before = get_timestamp ();
98
98
adapter_t adapter (N*N);
99
- time_point t_init_after = get_timestamp ();
99
+ const time_point t_init_after = get_timestamp ();
100
100
INFO (" \n %s initialisation:\n " , adapter_t ::NAME.c_str ());
101
101
INFO (" | time (ms): %zu\n " , duration_of (t_init_before, t_init_after));
102
102
@@ -105,9 +105,9 @@ void run_queens(int argc, char** argv)
105
105
// ========================================================================
106
106
// Compute the bdd that represents the entire board
107
107
INFO (" \n Decision diagram construction:\n " );
108
- time_point t1 = get_timestamp ();
108
+ const time_point t1 = get_timestamp ();
109
109
typename adapter_t ::dd_t res = queens_B (adapter);
110
- time_point t2 = get_timestamp ();
110
+ const time_point t2 = get_timestamp ();
111
111
112
112
const time_duration construction_time = duration_of (t1,t2);
113
113
@@ -122,9 +122,9 @@ void run_queens(int argc, char** argv)
122
122
// ========================================================================
123
123
// Count number of solutions
124
124
INFO (" \n Counting solutions:\n " );
125
- time_point t3 = get_timestamp ();
125
+ const time_point t3 = get_timestamp ();
126
126
solutions = adapter.satcount (res);
127
- time_point t4 = get_timestamp ();
127
+ const time_point t4 = get_timestamp ();
128
128
129
129
const time_duration counting_time = duration_of (t3,t4);
130
130
0 commit comments