Skip to content

Commit e890aba

Browse files
authored
Merge pull request github#1712 from hvitved/csharp/remove-nomagic
Approved by calumgrant
2 parents 5724fb0 + c1604ca commit e890aba

File tree

2 files changed

+1
-3
lines changed

2 files changed

+1
-3
lines changed

csharp/ql/src/semmle/code/csharp/controlflow/Guards.qll

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1574,7 +1574,6 @@ module Internal {
15741574
*
15751575
* This predicate does not rely on the control flow graph.
15761576
*/
1577-
pragma[nomagic]
15781577
predicate preImpliesSteps(Guard g1, AbstractValue v1, Guard g2, AbstractValue v2) {
15791578
g1 = g2 and
15801579
v1 = v2 and
@@ -1592,7 +1591,6 @@ module Internal {
15921591
*
15931592
* This predicate relies on the control flow graph.
15941593
*/
1595-
pragma[nomagic]
15961594
predicate impliesSteps(Guard g1, AbstractValue v1, Guard g2, AbstractValue v2) {
15971595
g1 = g2 and
15981596
v1 = v2 and

csharp/ql/src/semmle/code/csharp/controlflow/internal/PreSsa.qll

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ class Definition extends TPreSsaDef {
125125

126126
Definition getAnUltimateDefinition() {
127127
result = this.getAPhiInput*() and
128-
not this = TPhiPreSsaDef(_, _)
128+
not result = TPhiPreSsaDef(_, _)
129129
}
130130
}
131131

0 commit comments

Comments
 (0)