Skip to content

Commit

Permalink
inclusion graph: simplifying condition
Browse files Browse the repository at this point in the history
  • Loading branch information
vhavlena committed Feb 19, 2025
1 parent c025e58 commit 76f6c7a
Showing 1 changed file with 4 additions and 9 deletions.
13 changes: 4 additions & 9 deletions src/smt/theory_str_noodler/inclusion_graph.cc
Original file line number Diff line number Diff line change
Expand Up @@ -189,16 +189,11 @@ Graph smt::noodler::Graph::create_simplified_splitting_graph(const Formula& form

if (!have_same_var(source_left_side, target_right_side)) {
continue;
} else if (source_left_side == target_right_side) {
} else if (source_predicate.strong_equals(target_predicate.get_switched_sides_predicate())) {
// Have same var and sides are equal.

if (source_predicate.strong_equals(target_predicate.get_switched_sides_predicate())) { // In the same reversed predicate.
if (!source_predicate.mult_occurr_var_side(Predicate::EquationSideType::Left)) {
// Does not have multiple occurrences of one var. Hence, cannot have an edge.
continue;
}
} else {
// In different equation.
if (!source_predicate.mult_occurr_var_side (Predicate::EquationSideType::Left)) {
// Does not have multiple occurrences of one var. Hence, cannot have an edge.
continue;
}
} else {
// Have same var and sides are not equal, automatically add a new edge.
Expand Down

0 comments on commit 76f6c7a

Please sign in to comment.