Skip to content

Commit 0be7b79

Browse files
Remove reference to cproverMonitorCount
This would lead to cyclic reference between CProver API and models library. The method must be provided by JBMC itself to cut the cycle.
1 parent afdd642 commit 0be7b79

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/main/java/org/cprover/CProver.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -345,7 +345,9 @@ public static void arraycopyInPlace(
345345
* Retrieves the current locking count for 'object'.
346346
*/
347347
public static int getMonitorCount(Object object) {
348-
return object.cproverMonitorCount;
348+
// Dummy implementation.
349+
// The actual implementation is in JBMC itself.
350+
return 0;
349351
}
350352

351353
/**

0 commit comments

Comments
 (0)