Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d840796 commit c1af8b9Copy full SHA for c1af8b9
1 file changed
cpp/ql/lib/semmle/code/cpp/controlflow/SSAUtils.qll
@@ -153,9 +153,11 @@ library class SSAHelper extends int {
153
* Modern Compiler Implementation by Andrew Appel.
154
*/
155
private predicate frontier_phi_node(StackVariable v, BasicBlock b) {
156
- exists(BasicBlock x | dominanceFrontier(pragma[only_bind_into](x), b) and ssa_defn_rec(v, x)) and
+ exists(BasicBlock x |
157
+ dominanceFrontier(x, pragma[only_bind_into](b)) and ssa_defn_rec(pragma[only_bind_into](v), x)
158
+ ) and
159
/* We can also eliminate those nodes where the variable is not live on any incoming edge */
- live_at_start_of_bb(v, b)
160
+ live_at_start_of_bb(pragma[only_bind_into](v), b)
161
}
162
163
private predicate ssa_defn_rec(StackVariable v, BasicBlock b) {
0 commit comments