korat.utils.cv
Class CVCmp
java.lang.Object
korat.utils.cv.CVCmp
public class CVCmp
- extends Object
- Author:
- Aleksandar Milicevic
Constructor Summary |
CVCmp()
|
Method Summary |
static int |
compare(int[] cv1,
int[] cv2,
IIntList fieldAccessList)
Lexicographic comparison of two given candidate vectors. |
static boolean |
equal(int[] cv,
int[] cv2)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
CVCmp
public CVCmp()
equal
public static boolean equal(int[] cv,
int[] cv2)
compare
public static int compare(int[] cv1,
int[] cv2,
IIntList fieldAccessList)
- Lexicographic comparison of two given candidate vectors.
- Parameters:
cv1
- first candidate vectorcv2
- second candidate vectorfieldAccessList
- field access list that corresponds to either one of the two
given candidate vectors
- Returns:
- 1 if cv1 > cv2, -1 if cv1 < cv2, 0 if cv1 == cv2