-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #15958 from MathiasVP/ir-guards-from-switch-statem…
…ents-2 C++: Implement guards logic for switch statements
- Loading branch information
Showing
8 changed files
with
411 additions
and
66 deletions.
There are no files selected for viewing
5 changes: 5 additions & 0 deletions
5
cpp/ql/lib/change-notes/2024-03-19-predicates-for-switches-as-guards.md
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,5 @@ | ||
--- | ||
category: feature | ||
--- | ||
* Added a predicate `GuardCondition.comparesEq/4` to query whether an expression is compared to a constant. | ||
* Added a predicate `GuardCondition.ensuresEq/4` to query whether a basic block is guarded by an expression being equal to a constant. |
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.