@@ -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 () {
@@ -130,8 +130,8 @@ public static void monitorenter(Object object)
130
130
CProver .atomicBegin ();
131
131
// this assume blocks this execution path in JBMC and simulates
132
132
// the thread having to wait because the monitor is not available
133
- CProver .assume (object .monitorCount == 0 );
134
- object .monitorCount ++;
133
+ CProver .assume (object .cproverMonitorCount == 0 );
134
+ object .cproverMonitorCount ++;
135
135
CProver .atomicEnd ();
136
136
}
137
137
@@ -140,8 +140,8 @@ public static void monitorenter(Object object)
140
140
* It will be called by JBMC when the monitor in this instance
141
141
* is being released as a result of either the execution of a
142
142
* monitorexit bytecode instruction or the return (normal or exceptional)
143
- * of a synchronized method. It decrements the monitorCounter that had
144
- * been incremented in monitorenter().
143
+ * of a synchronized method. It decrements the cproverMonitorCount that
144
+ * had been incremented in monitorenter().
145
145
*/
146
146
public static void monitorexit (Object object )
147
147
{
@@ -150,10 +150,10 @@ public static void monitorexit(Object object)
150
150
// if (object == null)
151
151
// throw new NullPointerException();
152
152
153
- // if (object.monitorCount == 0)
153
+ // if (object.cproverMonitorCount == 0)
154
154
// throw new IllegalMonitorStateException();
155
155
CProver .atomicBegin ();
156
- object .monitorCount --;
156
+ object .cproverMonitorCount --;
157
157
CProver .atomicEnd ();
158
158
}
159
159
0 commit comments