Skip to content

Conversation

owen-mc
Copy link
Contributor

@owen-mc owen-mc commented Jun 15, 2023

Cf. this comment and the surrounding discussion.

This PR adds new data-flow nodes which are used for post-update nodes. This means that the post-update node will now be in the expected place. This should make path summaries easier to understand.

MkImplicitVarargsSlice(CallExpr c) { c.hasImplicitVarargs() } or
MkFlowSummaryNode(FlowSummaryImpl::Private::SummaryNode sn)
MkFlowSummaryNode(FlowSummaryImpl::Private::SummaryNode sn) or
MkPostUpdateNode(IR::Instruction insn) { insn = updatedInstruction() }
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

getAnUpdatedInstruction

result = IR::evalExprInstruction(any(SendStmt s).getChannel())
}

private IR::Instruction getAccessPathPredecessor2(IR::Instruction insn) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks like getAWrittenNode is now unused, so we could remove that and getAccessPathPredecessor then remove the 2 here

result = getAWrittenInstruction()
}

private Expr updatedExpr() {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

getAn...

@owen-mc owen-mc force-pushed the go/improve-path-summary-by-changin-post-update-nodes branch from 9ea23c1 to 9e4f4fa Compare June 16, 2023 10:05
@owen-mc
Copy link
Contributor Author

owen-mc commented Oct 3, 2025

Not needed now we have proper post-update nodes in #14751.

@owen-mc owen-mc closed this Oct 3, 2025
Copy link

@HeeMa6 HeeMa6 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@owen-mc owen-mc deleted the go/improve-path-summary-by-changin-post-update-nodes branch October 5, 2025 21:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants