public class StandardLibrary
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static void |
addSideEffectParamIndices(java.lang.String fname,
int[] indices) |
static boolean |
contains(FunctionCall fcall)
Checks if the given function call is a standard library call.
|
static int[] |
getSideEffectParamIndices(FunctionCall fcall)
Returns the position of the function call arguments that may have a side
effect upon a call.
|
static boolean |
hasSideEffectOnParameter(FunctionCall fcall) |
static boolean |
isSideEffectFree(FunctionCall fcall)
Checks if the given function call may have side effects.
|
static boolean |
isSideEffectFreeExceptIO(FunctionCall fcall)
Checks if the only side effect in the given function call is IO.
|
public static boolean contains(FunctionCall fcall)
fcall
- the function call to be examined.public static boolean isSideEffectFree(FunctionCall fcall)
fcall
- the function call to be examined.public static boolean isSideEffectFreeExceptIO(FunctionCall fcall)
fcall
- the function call to be examined.public static void addSideEffectParamIndices(java.lang.String fname, int[] indices)
public static int[] getSideEffectParamIndices(FunctionCall fcall)
fcall
- the function call to be inspected.public static boolean hasSideEffectOnParameter(FunctionCall fcall)