@@ -1405,10 +1405,10 @@ static exprt negation_of_constraint(const string_constraintt &axiom)
14051405
14061406 // If the premise is false, the implication is trivially true, so the
14071407 // negation is false.
1408- if (axiom.premise == false_exprt ())
1408+ if (axiom.index_guard == false_exprt ())
14091409 return false_exprt ();
14101410
1411- const and_exprt premise (axiom.premise , univ_within_bounds (axiom));
1411+ const and_exprt premise (axiom.index_guard , univ_within_bounds (axiom));
14121412 const and_exprt negaxiom (premise, not_exprt (axiom.body ));
14131413
14141414 return negaxiom;
@@ -1531,15 +1531,15 @@ static std::pair<bool, std::vector<exprt>> check_axioms(
15311531 const symbol_exprt &univ_var = axiom.univ_var ;
15321532 const exprt &bound_inf = axiom.lower_bound ;
15331533 const exprt &bound_sup = axiom.upper_bound ;
1534- const exprt &prem = axiom.premise ;
1534+ const exprt &prem = axiom.index_guard ;
15351535 INVARIANT (
15361536 prem == true_exprt (), " string constraint premises are not supported" );
15371537
15381538 string_constraintt axiom_in_model;
15391539 axiom_in_model.univ_var = univ_var;
15401540 axiom_in_model.lower_bound = get (bound_inf);
15411541 axiom_in_model.upper_bound = get (bound_sup);
1542- axiom_in_model.premise = get (prem);
1542+ axiom_in_model.index_guard = get (prem);
15431543 axiom_in_model.body = get (axiom.body );
15441544
15451545 exprt negaxiom=negation_of_constraint (axiom_in_model);
@@ -1634,7 +1634,7 @@ static std::pair<bool, std::vector<exprt>> check_axioms(
16341634 const exprt &val=v.second ;
16351635 const string_constraintt &axiom=axioms.universal [v.first ];
16361636
1637- implies_exprt instance (axiom.premise , axiom.body );
1637+ implies_exprt instance (axiom.index_guard , axiom.body );
16381638 replace_expr (axiom.univ_var , val, instance);
16391639 // We are not sure the index set contains only positive numbers
16401640 and_exprt bounds (
@@ -2135,7 +2135,7 @@ static exprt instantiate(
21352135 and_exprt (
21362136 binary_relation_exprt (axiom.univ_var , ID_ge, axiom.lower_bound ),
21372137 binary_relation_exprt (axiom.univ_var , ID_lt, axiom.upper_bound ),
2138- axiom.premise ),
2138+ axiom.index_guard ),
21392139 axiom.body );
21402140 replace_expr (axiom.univ_var , r, instance);
21412141 return instance;
0 commit comments