Skip to content

Commit

Permalink
Fixed implication symbols.
Browse files Browse the repository at this point in the history
  • Loading branch information
robby-phd committed Mar 19, 2024
1 parent 042d4d7 commit 923b012
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions shared/src/main/scala/org/sireum/logika/Logika.scala
Original file line number Diff line number Diff line change
Expand Up @@ -633,7 +633,7 @@ object Logika {
e.op match {
case AST.Exp.BinaryOp.And =>
case AST.Exp.BinaryOp.Or =>
case AST.Exp.BinaryOp.Imply =>
case "->:" =>
case _ => hasError = T
}
checkExp(e.left)
Expand Down Expand Up @@ -743,8 +743,8 @@ object Logika {
val r: B = e.op match {
case AST.Exp.BinaryOp.And => evalExp(e.left) & evalExp(e.right)
case AST.Exp.BinaryOp.Or => evalExp(e.left) | evalExp(e.right)
case AST.Exp.BinaryOp.Imply => !evalExp(e.left) | evalExp(e.right)
case _ => F
case "->:" => !evalExp(e.left) | evalExp(e.right)
case _ => halt(s"Infeasible: ${e.op}")
}
putResult(r, F)
return r
Expand Down

0 comments on commit 923b012

Please sign in to comment.