Skip to content

Commit 2d73543

Browse files
committed
Add debug assertion to prevent blocking a thread on the GenMC side twice
1 parent c687342 commit 2d73543

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

genmc-sys/cpp/src/MiriInterface/EventHandling.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@
3333
/**** Blocking instructions ****/
3434

3535
void MiriGenmcShim::handle_assume_block(ThreadId thread_id) {
36+
BUG_ON(getExec().getGraph().isThreadBlocked(thread_id));
3637
GenMCDriver::handleAssume(inc_pos(thread_id), AssumeType::User);
3738
}
3839

0 commit comments

Comments
 (0)