Skip to content

Commit c1736c4

Browse files
author
thk123
committed
Correctly set up the enviroment before running tests
In release builds, the top/bottom status of the enviroment was undefined. This ensures the enviroment is set to top (i.e. an entry point).
1 parent 2f56609 commit c1736c4

File tree

3 files changed

+3
-0
lines changed
  • unit/analyses/variable-sensitivity

3 files changed

+3
-0
lines changed

unit/analyses/variable-sensitivity/constant_abstract_value/merge.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ SCENARIO("merge_constant_abstract_value",
3232
const exprt val2=constant_exprt::integer_constant(2);
3333

3434
abstract_environmentt enviroment;
35+
enviroment.make_top();
3536
symbol_tablet symbol_table;
3637
namespacet ns(symbol_table);
3738

unit/analyses/variable-sensitivity/constant_array_abstract_object/merge.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,7 @@ SCENARIO("merge_constant_array_abstract_object",
9797
index_exprt(nil_exprt(), constant_exprt::integer_constant(2));
9898

9999
abstract_environmentt enviroment;
100+
enviroment.make_top();
100101
symbol_tablet symbol_table;
101102
namespacet ns(symbol_table);
102103

unit/analyses/variable-sensitivity/full_struct_abstract_object/merge.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,7 @@ SCENARIO("merge_full_struct_abstract_object",
128128
const member_exprt c(nil_exprt(), "c");
129129

130130
abstract_environmentt enviroment;
131+
enviroment.make_top();
131132
symbol_tablet symbol_table;
132133
namespacet ns(symbol_table);
133134

0 commit comments

Comments
 (0)