@@ -34,10 +34,10 @@ public class Object {
34
34
// lock needed for synchronization in cbmc
35
35
// used by monitorenter, monitorexit, wait, and notify
36
36
// Not present in the original Object class
37
- public int monitorCount ;
37
+ public int cproverMonitorCount ;
38
38
39
39
public Object () {
40
- monitorCount = 0 ;
40
+ cproverMonitorCount = 0 ;
41
41
}
42
42
43
43
public final Class <?> getClass () {
@@ -128,8 +128,8 @@ public static void monitorenter(Object object)
128
128
CProver .atomicBegin ();
129
129
// this assume blocks this execution path in JBMC and simulates
130
130
// the thread having to wait because the monitor is not available
131
- CProver .assume (object .monitorCount == 0 );
132
- object .monitorCount ++;
131
+ CProver .assume (object .cproverMonitorCount == 0 );
132
+ object .cproverMonitorCount ++;
133
133
CProver .atomicEnd ();
134
134
}
135
135
@@ -138,8 +138,8 @@ public static void monitorenter(Object object)
138
138
* It will be called by JBMC when the monitor in this instance
139
139
* is being released as a result of either the execution of a
140
140
* monitorexit bytecode instruction or the return (normal or exceptional)
141
- * of a synchronized method. It decrements the monitorCounter that had
142
- * been incremented in monitorenter().
141
+ * of a synchronized method. It decrements the cproverMonitorCount that
142
+ * had been incremented in monitorenter().
143
143
*/
144
144
public static void monitorexit (Object object )
145
145
{
@@ -148,10 +148,10 @@ public static void monitorexit(Object object)
148
148
// if (object == null)
149
149
// throw new NullPointerException();
150
150
151
- // if (object.monitorCount == 0)
151
+ // if (object.cproverMonitorCount == 0)
152
152
// throw new IllegalMonitorStateException();
153
153
CProver .atomicBegin ();
154
- object .monitorCount --;
154
+ object .cproverMonitorCount --;
155
155
CProver .atomicEnd ();
156
156
}
157
157
0 commit comments