Skip to content

Commit 96e871c

Browse files
add stub for testing updates to scoped_timer
Signed-off-by: Nikolaj Bjorner <nbjorner@microsoft.com>
1 parent 0405a59 commit 96e871c

File tree

4 files changed

+13
-1
lines changed

4 files changed

+13
-1
lines changed

src/ast/seq_decl_plugin.cpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -416,7 +416,7 @@ func_decl* seq_decl_plugin::mk_func_decl(decl_kind k, unsigned num_parameters, p
416416
case OP_RE_DERIVATIVE:
417417
case _OP_RE_ANTIMIROV_UNION:
418418
m_has_re = true;
419-
// fall-through
419+
Z3_fallthrough;
420420
case OP_SEQ_UNIT:
421421
case OP_STRING_ITOS:
422422
case OP_STRING_STOI:
@@ -516,6 +516,7 @@ func_decl* seq_decl_plugin::mk_func_decl(decl_kind k, unsigned num_parameters, p
516516
case OP_SEQ_REPLACE_RE_ALL:
517517
case OP_SEQ_REPLACE_RE:
518518
m_has_re = true;
519+
Z3_fallthrough;
519520
case OP_SEQ_REPLACE_ALL:
520521
return mk_str_fun(k, arity, domain, range, k);
521522

src/test/CMakeLists.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -101,6 +101,7 @@ add_executable(test-z3
101101
sat_local_search.cpp
102102
sat_lookahead.cpp
103103
sat_user_scope.cpp
104+
scoped_timer.cpp
104105
simple_parser.cpp
105106
simplex.cpp
106107
simplifier.cpp

src/test/main.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -259,6 +259,7 @@ int main(int argc, char ** argv) {
259259
TST(bdd);
260260
TST(pdd);
261261
TST(pdd_solver);
262+
TST(scoped_timer);
262263
TST(solver_pool);
263264
//TST_ARGV(hs);
264265
TST(finder);

src/test/scoped_timer.cpp

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
// test driver for scoped timer.
2+
// fixes are required to be fuzzed
3+
// with single and multi-threaded mode and short timeouts.
4+
5+
#include "util/scoped_timer.h"
6+
7+
void tst_scoped_timer() {
8+
9+
}

0 commit comments

Comments
 (0)