Commit 3b0070b2 authored by Christian Müller's avatar Christian Müller
Browse files


parent 86de4de4
......@@ -160,7 +160,7 @@ object FormulaFunctions extends LazyLogging {
val eqs = for (x <- vars; y <- otherthan) yield {
Forall(vars, And(And.make(eqs), fp))
Forall(vars, Implies(And.make(eqs), fp))
package de.tum.workflows.ltl.tests
import org.scalatest.FlatSpec
import org.scalatest.Matchers._
import org.scalatest.Inspectors._
import de.tum.workflows.foltl.FOLTL._
import de.tum.workflows.Implicits._
class FOLTLTest extends FlatSpec {
"Formula functions" should "generate inequalities" in {
val f = ForallOtherThan("x", List("y", "z"), Globally("x"))
val res = f.removeOTQuantifiers()
res should be(
Forall("x", Implies(And(Neg(Eq("x", "y")), Neg(Eq("x", "z"))), Globally("x")))
val f2 = ForallOtherThan(List("x","y"), "z", Globally("x"))
val res2 = f.removeOTQuantifiers()
res2 should be(
Forall(List("x","y"), Implies(And(Neg(Eq("x", "y")), Neg(Eq("y", "z"))), Globally("x")))
\ No newline at end of file
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment