We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2c171bf commit 59198f7Copy full SHA for 59198f7
src/main/java/org/cprover/CProver.java
@@ -208,6 +208,19 @@ public static void endThread(int id)
208
}
209
210
211
+ /**
212
+ * This method is used by JBMC to return the ID of the executing thread.
213
+ */
214
+ public static int getCurrentThreadID()
215
+ {
216
+ if(enableConcurrency)
217
218
+ throw new RuntimeException(
219
+ "Cannot execute program with CProver.getCurrentThreadID()");
220
+ }
221
+ return 0;
222
223
+
224
/**
225
* This method is used by jbmc to indicate an atomic section which enforces
226
* the bmc equation to avoid interleavings of the code inside the section
0 commit comments