Skip to content

Commit

Permalink
Only emitting side_conditions if all occurrences of the same variable…
Browse files Browse the repository at this point in the history
… are equal
  • Loading branch information
Robertorosmaninho committed Oct 10, 2024
1 parent db7ebd0 commit d7ef2fd
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -773,6 +773,10 @@ class Matrix private (
// if there is no side condition, continue
case None => nonlinearLeaf
case Some(cond) =>
// print nonLinearLeaf to stderr
System.err.println(nonlinearLeaf)
// if there is a side condition but not all occurrences of the same variable are equal, continue
//if (nonlinear.nonEmpty) return nonlinearLeaf
val condVars = cond.map(v => (grouped(v).head._2, grouped(v).head._1.hookAtt))
val newO = SC(row.clause.action.ordinal)
// evaluate the side condition and if it is true, continue, otherwise go to the next row
Expand Down

0 comments on commit d7ef2fd

Please sign in to comment.