API.Abstract_stateSourceType denothing an abstract state of the analysis. It is a graph containing all aliases and points-to information.
set of lvals which can be used to refered to the given vertex Example graph: a → -t→ c The lvals corresponding to the rightmost vertex are c, b.t, a->t:
pretty printer; debug=true prints the graph, debug = false only prints aliased variables
finds the vertex corresponding to a lval.
Note: You probably want to use alias_lvals instead of this function. Combining find_vertex with get_lval_set, this function yields all the different ways the vertex containing the given lval can be referred to. Example: a → ,c If "a" points to "b", then the vertex containing "b" can be referred to not only by "b" but also by "c" or "*a". Does not raise an exception but returns an empty set if the lval is not in the graph.
all the variables that are aliases of the given lval:
lvlv.Example: a,b → c ← d ← The aliases of "a" are a,b,d:
a,bYields all lvals that are an alias of a given lval lv. This includes:
lvlv.Example: a,b → c ← d ← The aliases of "a" are a,b,d,*e:
a,bd to .the set of all variables to which the given variable may point.
the set of all lvals to which the given variable may point including reconstructed lvals such as *p, a.t, c->s. For some pointer p it will always include *p.
all the alias sets of a given state Example: a,b → c ← d ← ,f The aliases sets are {a,b,d, ,f
}
all the alias sets of a given state, including reconstructed lvals Example: a,b → c ← d ← ,f The aliases sets are {a,b,d,*e,*f, ,f
}
alias_lvals, then recursively finds other sets of lvals. We have the property (if lval lv is in abstract state x) : List.hd (find_transitive_closure lv x) = (find_vertex lv x, find_aliases lv x). Only follows pointer edges, not field edges.