-
Notifications
You must be signed in to change notification settings - Fork 1.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Ruby: Adopt shared SSA data-flow integration
- Loading branch information
Showing
7 changed files
with
285 additions
and
334 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
private import codeql.ruby.CFG | ||
|
||
/** Holds if the guard `guard` controls block `bb` upon evaluating to `branch`. */ | ||
pragma[nomagic] | ||
predicate guardControlsBlock(CfgNodes::AstCfgNode guard, BasicBlock bb, boolean branch) { | ||
exists(ConditionBlock conditionBlock, SuccessorTypes::ConditionalSuccessor s | | ||
guard = conditionBlock.getLastNode() and | ||
s.getValue() = branch and | ||
conditionBlock.controls(bb, s) | ||
) | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.