GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — C++: Simplify recursion in 'PhiCycle::isCertain' and do not restrict … · fredatgithub/codeql@c6ce13a

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • cpp/ql/lib/semmle/code/cpp/ir/dataflow/internal
    • SsaImpl.qll
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎cpp/ql/lib/semmle/code/cpp/ir/dataflow/internal/SsaImpl.qll‎

Copy file name to clipboardExpand all lines: cpp/ql/lib/semmle/code/cpp/ir/dataflow/internal/SsaImpl.qll
+6-3Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1396,13 +1396,16 @@ private class PhiCycle extends PhiCycleEquivalence::EquivalenceClass {
13961396

13971397
predicate hasPhiNode(PhiNode phi) { this.getAPhiNode() = phi }
13981398

1399+
pragma[nomagic]
1400+
Definition getAnInput() {
1401+
result = this.getAPhiNode().getAnInput() and not this.hasPhiNode(result)
1402+
}
1403+
13991404
string toString() { result = strictconcat(this.getAPhiNode().toString(), ", ") }
14001405

14011406
predicate isCertain() {
14021407
// A phi cycle is certain if all of the inputs into the phi cycle is certain.
1403-
forex(PhiNode phi | phi = this.getAPhiNode() |
1404-
forall(PhiNode inp | phi.getAnInput() = inp and not this.hasPhiNode(inp) | inp.isCertain())
1405-
)
1408+
forex(Definition inp | inp = this.getAnInput() | inp.isCertain())
14061409
}
14071410
}
14081411

0 commit comments

Comments
0 (0)
You are visitor 01402520 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.