MCPcopy Create free account
hub / github.com/LFYSec/MScan / holdsInt

Method holdsInt

src/main/java/pascal/taie/ir/exp/Exps.java:49–51  ·  view source on GitHub ↗

@return true if exp can hold int values. Note that expressions of some primitive types other than int, whose computational type is int, can also hold int values. @see PrimitiveType#asInt()

(Exp exp)

Source from the content-addressed store, hash-verified

47 * @see PrimitiveType#asInt()
48 */
49 public static boolean holdsInt(Exp exp) {
50 return exp.getType() instanceof PrimitiveType t && t.asInt();
51 }
52
53 /**
54 * @return {@code true} if {@code exp} can hold long values.

Callers 10

validateMethod · 0.95
validateMethod · 0.95
validateMethod · 0.95
validateMethod · 0.95
holdsIntegerMethod · 0.95
evaluateMethod · 0.95
transferNodeMethod · 0.95
initializeMethod · 0.80
transferCallEdgeMethod · 0.80
transferReturnEdgeMethod · 0.80

Calls 2

asIntMethod · 0.80
getTypeMethod · 0.65

Tested by

no test coverage detected