use of com.dat3m.dartagnan.program.event.core.rmw.RMWStoreExclusive in project Dat3M by hernanponcedeleon.
the class UnrollExceptionsTest method ExecutionStatus.
@Test(expected = ProgramProcessingException.class)
public void ExecutionStatus() throws Exception {
ProgramBuilder pb = new ProgramBuilder(SourceLanguage.LITMUS);
pb.initThread(0);
Label start = pb.getOrCreateLabel("loopStart");
pb.addChild(0, start);
MemoryObject object = pb.getOrNewObject("X");
RMWStoreExclusive store = newRMWStoreExclusive(object, IValue.ONE, null);
pb.addChild(0, EventFactory.newExecutionStatus(pb.getOrCreateRegister(0, "r1", 32), store));
pb.addChild(0, EventFactory.newGoto(start));
LoopUnrolling processor = LoopUnrolling.newInstance();
processor.setUnrollingBound(2);
processor.run(pb.build());
}
Aggregations