Search in sources :

Example 11 with VerificationResult

use of il.ac.bgu.cs.bp.bpjs.analysis.VerificationResult in project BPjs by bThink-BGU.

the class DiningPhilTest method testCounterexampleFound.

@Test
public void testCounterexampleFound() throws InterruptedException {
    VerificationResult res = verifyPhilosophers(5);
    if (res.isCounterExampleFound()) {
        printCounterExample(res);
    } else {
        System.out.println("No counterexample found.");
        fail("No counterexample found for dinning philosophers.");
    }
}
Also used : VerificationResult(il.ac.bgu.cs.bp.bpjs.analysis.VerificationResult) Test(org.junit.Test)

Aggregations

VerificationResult (il.ac.bgu.cs.bp.bpjs.analysis.VerificationResult)11 DfsBProgramVerifier (il.ac.bgu.cs.bp.bpjs.analysis.DfsBProgramVerifier)9 SingleResourceBProgram (il.ac.bgu.cs.bp.bpjs.model.SingleResourceBProgram)9 Test (org.junit.Test)7 BProgramStateVisitedStateStore (il.ac.bgu.cs.bp.bpjs.analysis.BProgramStateVisitedStateStore)2 Node (il.ac.bgu.cs.bp.bpjs.analysis.Node)2 BriefPrintDfsVerifierListener (il.ac.bgu.cs.bp.bpjs.analysis.listeners.BriefPrintDfsVerifierListener)2 BProgram (il.ac.bgu.cs.bp.bpjs.model.BProgram)2 PrioritizedBSyncEventSelectionStrategy (il.ac.bgu.cs.bp.bpjs.model.eventselection.PrioritizedBSyncEventSelectionStrategy)1 List (java.util.List)1 Assert.fail (org.junit.Assert.fail)1