Conversation
|
|
||
| /** Holds if arguments at position `apos` match parameters at position `ppos`. */ | ||
| pragma[inline] | ||
| predicate parameterMatch(ParameterPosition ppos, ArgumentPosition apos) { ppos = apos } |
| * idiom. | ||
| */ | ||
| pragma[inline] | ||
| predicate guardEnsures(Expr e, boolean b, BasicBlock bb) { e.(Guard).controls(bb, b) } |
| Node g, ControlFlow::ConditionGuardNode guard, Node nd, SsaWithFields ap, P param | ||
| ) { | ||
| guards(g, guard, nd, param) and nd = ap.getAUse() | ||
| private predicate guards(Node g, Guard guard, boolean branch, Node nd, SsaWithFields ap, P param) { |
owen-mc
force-pushed
the
go/shared-guards
branch
from
August 17, 2026 19:16
f8092fc to
57db4c8
Compare
There was a problem hiding this comment.
CodeQL found more than 20 potential problems in the proposed changes. Check the Files changed tab for more details.
owen-mc
force-pushed
the
go/shared-guards
branch
2 times, most recently
from
August 18, 2026 11:45
def5d61 to
888eae3
Compare
Agent-Logs-Url: https://github.com/github/codeql/sessions/d505ffcf-a693-4b67-9dc3-54fa92e27896 Co-authored-by: owen-mc <62447351+owen-mc@users.noreply.github.com>
Agent-Logs-Url: https://github.com/github/codeql/sessions/d505ffcf-a693-4b67-9dc3-54fa92e27896 Co-authored-by: owen-mc <62447351+owen-mc@users.noreply.github.com>
…brary Agent-Logs-Url: https://github.com/github/codeql/sessions/d505ffcf-a693-4b67-9dc3-54fa92e27896 Co-authored-by: owen-mc <62447351+owen-mc@users.noreply.github.com>
owen-mc
force-pushed
the
go/shared-guards
branch
from
September 20, 2026 22:01
888eae3 to
82e42b4
Compare
| private import semmle.go.dataflow.SSA as GoSsa | ||
| private import semmle.go.dataflow.SsaImpl as SsaImpl | ||
| private import codeql.controlflow.Guards as SharedGuards | ||
| private import codeql.controlflow.SuccessorType |
This file contains hidden or 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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.