Package edu.berkeley.cs.jqf.fuzz.ei
Class ExecutionIndex
java.lang.Object
edu.berkeley.cs.jqf.fuzz.ei.ExecutionIndex
- All Implemented Interfaces:
Comparable<ExecutionIndex>
An execution index represents a unique point in a program's execution.
This class uses a call-stack-with-counts representation of execution indexes, which was first introduced in the paper A randomized dynamic program analysis technique for detecting real deadlocks by Joshi et al. in PLDI 2009.
The execution index is a basically a wrapper around an integer array of even length, in which every pair of elements represents an IID of a call site and its associated count.
- Author:
- Rohan Padhye
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classstatic class -
Constructor Summary
ConstructorsConstructorDescriptionExecutionIndex(int[] ei) ExecutionIndex(ExecutionIndex.Prefix prefix, ExecutionIndex.Suffix suffix) -
Method Summary
Modifier and TypeMethodDescriptionintcompareTo(ExecutionIndex other) booleangetCommonSuffix(ExecutionIndex other) inthashCode()booleanhasPrefix(ExecutionIndex.Prefix prefix) inttoString()
-
Constructor Details
-
ExecutionIndex
public ExecutionIndex(int[] ei) -
ExecutionIndex
-
-
Method Details
-
hashCode
public int hashCode() -
equals
-
compareTo
- Specified by:
compareToin interfaceComparable<ExecutionIndex>
-
toString
-
oneSuffixSize
public int oneSuffixSize() -
getCommonSuffix
-
getPrefixOfSuffix
-
getSuffixOfPrefix
-
hasPrefix
-