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

Method holdsPrimitive

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

@return true if exp can hold primitive values.

(Exp exp)

Source from the content-addressed store, hash-verified

37 * @return {@code true} if {@code exp} can hold primitive values.
38 */
39 public static boolean holdsPrimitive(Exp exp) {
40 return exp.getType() instanceof PrimitiveType;
41 }
42
43 /**
44 * @return {@code true} if {@code exp} can hold int values.

Callers 1

validateMethod · 0.95

Calls 1

getTypeMethod · 0.65

Tested by

no test coverage detected