Skip to content

Commit 35096b8

Browse files
author
Matthias Güdemann
committed
Initialize architecture in instantiate_not_contains unit test
Not having initialized the pointer width led to an invariant violation in some circumstances.
1 parent ccdd483 commit 35096b8

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

unit/solvers/refinement/string_constraint_instantiation/instantiate_not_contains.cpp

+4
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
#include <langapi/mode.h>
1616
#include <java_bytecode/java_bytecode_language.h>
1717
#include <util/simplify_expr.h>
18+
#include <util/config.h>
1819

1920
/// \class Types used throughout the test. Currently it is impossible to
2021
/// statically initialize this value, there is a PR to allow this
@@ -161,6 +162,9 @@ SCENARIO("instantiate_not_contains",
161162
symbol_tablet symtbl;
162163
const namespacet ns(symtbl);
163164

165+
// initialize architecture with sensible default values
166+
config.set_arch("none");
167+
164168
// Creating strings
165169
const auto ab_array = make_string_exprt("ab");
166170
const auto b_array = make_string_exprt("b");

0 commit comments

Comments
 (0)