Skip to content

Commit fd0a89f

Browse files
Add String CProver.classIdentifier(Object) method
This is meant to be replaced by java bytecode preprocessing of JBMC and to be used by models such as Object.getClass.
1 parent 287f0b7 commit fd0a89f

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

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

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -314,4 +314,12 @@ public static int getMonitorCount(Object object)
314314
{
315315
return object.cproverMonitorCount;
316316
}
317+
318+
/**
319+
* Class identifier of an Object. For instance "java.lang.String", "java.lang.Interger".
320+
*/
321+
public static String classIdentifier(Object object)
322+
{
323+
return object.getClass().getCanonicalName();
324+
}
317325
}

0 commit comments

Comments
 (0)