File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed
src/analyses/variable-sensitivity
unit/analyses/variable-sensitivity/abstract_environment Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change 9
9
#include < analyses/variable-sensitivity/abstract_environment.h>
10
10
#include < analyses/variable-sensitivity/abstract_object_statistics.h>
11
11
#include < analyses/variable-sensitivity/variable_sensitivity_object_factory.h>
12
+
12
13
#include < util/expr_util.h>
13
14
#include < util/simplify_expr.h>
14
15
#include < util/simplify_expr_class.h>
16
+ #include < util/simplify_utils.h>
15
17
16
18
#include < algorithm>
17
19
#include < map>
@@ -427,7 +429,7 @@ exprt abstract_environmentt::to_predicate() const
427
429
if (is_top ())
428
430
return true_exprt ();
429
431
430
- auto predicates = std::vector<exprt>{} ;
432
+ exprt::operandst predicates ;
431
433
for (const auto &entry : map.get_view ())
432
434
{
433
435
auto sym = entry.first ;
@@ -439,6 +441,8 @@ exprt abstract_environmentt::to_predicate() const
439
441
440
442
if (predicates.size () == 1 )
441
443
return predicates.front ();
444
+
445
+ sort_operands (predicates);
442
446
return and_exprt (predicates);
443
447
}
444
448
Original file line number Diff line number Diff line change @@ -67,7 +67,7 @@ SCENARIO(
67
67
env.assign (x_name, val2, ns);
68
68
env.assign (y_name, val3, ns);
69
69
70
- THEN_PREDICATE (env, " y == 3 && x == 2 " );
70
+ THEN_PREDICATE (env, " x == 2 && y == 3 " );
71
71
}
72
72
}
73
73
}
You can’t perform that action at this time.
0 commit comments