Skip to content

Commit 50dcb6c

Browse files
Adding type and fixing issue
1 parent 54b8593 commit 50dcb6c

File tree

1 file changed

+1
-4
lines changed
  • matching/src/main/scala/org/kframework/backend/llvm/matching

1 file changed

+1
-4
lines changed

matching/src/main/scala/org/kframework/backend/llvm/matching/Matrix.scala

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -766,13 +766,10 @@ class Matrix private (
766766
Leaf(row.clause.action.ordinal, newVars)
767767
}
768768
// check that all occurrences of the same variable are equal
769-
val sc = row.clause.action.scVars match {
769+
val sc: DecisionTree = row.clause.action.scVars match {
770770
// if there is no side condition, continue
771771
case None => atomicLeaf
772772
case Some(cond) =>
773-
// if there is a side condition but not all occurrences of the same variable are equal,
774-
// continue
775-
if (nonlinear.nonEmpty) return nonlinearLeaf
776773
val condVars = cond.map(v => (grouped(v).head._2, grouped(v).head._1.hookAtt))
777774
val newO = SC(row.clause.action.ordinal)
778775
// evaluate the side condition and if it is true, continue, otherwise go to the next row

0 commit comments

Comments
 (0)