use of de.bmoth.modelchecker.ModelCheckingResult in project bmoth by hhu-stups.
the class BooleanLawsTest method testSimpleModelsWithoutOperations.
@Test
public void testSimpleModelsWithoutOperations() throws IOException {
MachineNode simpleMachineWithViolation = parseMachineFromFile(dir + "BoolLaws.mch");
ModelCheckingResult result = ExplicitStateModelChecker.check(simpleMachineWithViolation);
assertTrue(result.isCorrect());
}
use of de.bmoth.modelchecker.ModelCheckingResult in project bmoth by hhu-stups.
the class LiftsTest method testAcceleration.
@Test
public void testAcceleration() {
MachineNode simpleMachineWithViolation = parseMachineFromFile(dir + "AccMachine.mch");
ModelCheckingResult result = ExplicitStateModelChecker.check(simpleMachineWithViolation);
assertEquals(false, result.isCorrect());
}
use of de.bmoth.modelchecker.ModelCheckingResult in project bmoth by hhu-stups.
the class LiftsTest method testFastDoors.
@Test
public void testFastDoors() {
MachineNode simpleMachineWithViolation = parseMachineFromFile(dir + "FastDoors.mch");
ModelCheckingResult result = ExplicitStateModelChecker.check(simpleMachineWithViolation);
assertEquals(false, result.isCorrect());
}
use of de.bmoth.modelchecker.ModelCheckingResult in project bmoth by hhu-stups.
the class LiftsTest method testMissingEmergencyCall.
@Test
public void testMissingEmergencyCall() {
MachineNode simpleMachineWithViolation = parseMachineFromFile(dir + "EmergencyCallFail.mch");
ModelCheckingResult result = ExplicitStateModelChecker.check(simpleMachineWithViolation);
assertEquals(false, result.isCorrect());
}
use of de.bmoth.modelchecker.ModelCheckingResult in project bmoth by hhu-stups.
the class LiftsTest method testLiftDoesNotMoveTowardsFirstPressedButton.
@Ignore("iseq not implemented in FormularToZ3Translator")
@Test
public void testLiftDoesNotMoveTowardsFirstPressedButton() {
MachineNode simpleMachineWithViolation = parseMachineFromFile(dir + "LiftDoesNotMoveTowardsFirstPressedButton.mch");
ModelCheckingResult result = ExplicitStateModelChecker.check(simpleMachineWithViolation);
assertEquals(false, result.isCorrect());
}
Aggregations