Visitar URL original
Data flow: prune context-sensitivity relations by hvitved · Pull Request #15140 · github/codeql · GitHub
The Wayback Machine - https://web.archive.org/web/20231224081611/https://github.com/github/codeql/pull/15140
Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Data flow: prune context-sensitivity relations #15140

Draft
wants to merge 4 commits into
base: main
Choose a base branch
from

Conversation

hvitved
Copy link
Contributor

@hvitved hvitved commented Dec 18, 2023 •

Example tuple counts before
# n stage nodes fields conscand states tuples calledges tfnodes tftuples
1 10 1 Fwd 8,911,660 60,802 -1 1 10,350,291 -1 -1 -1
2 15 1 Rev 3,547,529 40,472 -1 1 4,700,615 514,504 -1 -1
3 20 2 Fwd 737,230 8,145 13,048 1 1,192,276 220,319 0 0
4 25 2 Rev 246,685 5,560 8,699 1 338,516 68,975 0 0
5 30 3 Fwd 109,411 2,569 94,468 1 7,429,295 43,024 0 0
6 35 3 Rev 40,255 1,219 23,662 1 497,624 18,531 0 0
7 40 4 Fwd 35,548 1,102 18,083 1 563,669 17,012 0 0
8 45 4 Rev 33,562 1,079 16,634 1 382,242 16,347 0 0
9 50 5 Fwd 30,434 929 2,767 1 223,589 15,492 0 0
10 55 5 Rev 352 24 28 1 537 140 0 0
11 60 6 Fwd 344 24 29 1 555 -1 -1 -1
12 65 6 Rev 162 20 25 1 209 -1 -1 -1
Example tuple counts after
# n stage nodes fields conscand states tuples calledges tfnodes tftuples
1 10 1 Fwd 8,911,660 60,802 -1 1 10,350,291 -1 -1 -1
2 15 1 Rev 3,547,529 40,472 -1 1 4,700,615 514,504 -1 -1
3 20 2 Fwd 737,227 8,145 13,048 1 1,169,240 220,317 0 0
4 25 2 Rev 246,682 5,560 8,699 1 338,494 68,973 0 0
5 30 3 Fwd 109,408 2,569 94,468 1 7,023,469 43,022 0 0
6 35 3 Rev 40,255 1,219 23,662 1 497,624 18,531 0 0
7 40 4 Fwd 35,548 1,102 18,083 1 563,669 17,012 0 0
8 45 4 Rev 33,562 1,079 16,634 1 382,242 16,347 0 0
9 50 5 Fwd 30,434 929 2,767 1 172,191 15,492 0 0
10 55 5 Rev 352 24 28 1 537 140 0 0
11 60 6 Fwd 344 24 29 1 554 -1 -1 -1
12 65 6 Rev 162 20 25 1 208 -1 -1 -1

@hvitved hvitved force-pushed the dataflow/pruned-ctx-sensitivity branch 2 times, most recently from f86b282 to 67e29e2 Compare December 19, 2023 09:26
@hvitved hvitved added the no-change-note-required This PR does not need a change note label Dec 19, 2023
@hvitved hvitved force-pushed the dataflow/pruned-ctx-sensitivity branch from 9e7127f to 37aae81 Compare December 19, 2023 20:11
PrevStage::relevantCallEdgeOut(call, c)
}

predicate reducedViableImplInCallContextCand(

Check warning

Code scanning / CodeQL

Candidate predicate not marked as `nomagic` Warning

Candidate predicate to
reducedViableImplInCallContext
is not marked as nomagic.
Candidate predicate to
reducedViableImplInCallContext
is not marked as nomagic.
UnprunedCallContextSensitivity::reducedViableImplInCallContext(call, c, ctx)
}

predicate reducedViableImplInReturnCand(DataFlowCallable c, DataFlowCall call) {

Check warning

Code scanning / CodeQL

Candidate predicate not marked as `nomagic` Warning

Candidate predicate to
reducedViableImplInReturn
is not marked as nomagic.
Candidate predicate to
reducedViableImplInReturn
is not marked as nomagic.
PrevStage::relevantCallEdgeOut(call, c)
}

predicate reducedViableImplInCallContextCand(

Check warning

Code scanning / CodeQL

Candidate predicate not marked as `nomagic` Warning

Candidate predicate to
reducedViableImplInCallContext
is not marked as nomagic.
Candidate predicate to
reducedViableImplInCallContext
is not marked as nomagic.
Stage3Param::Level1CallContextInput::reducedViableImplInCallContext(call, c, ctx)
}

predicate reducedViableImplInReturnCand(DataFlowCallable c, DataFlowCall call) {

Check warning

Code scanning / CodeQL

Candidate predicate not marked as `nomagic` Warning

Candidate predicate to
reducedViableImplInReturn
is not marked as nomagic.
Candidate predicate to
reducedViableImplInReturn
is not marked as nomagic.
Stage5::relevantCallEdgeOut(call, c)
}

predicate reducedViableImplInCallContextCand(

Check warning

Code scanning / CodeQL

Candidate predicate not marked as `nomagic` Warning

Candidate predicate to
reducedViableImplInCallContext
is not marked as nomagic.
Candidate predicate to
reducedViableImplInCallContext
is not marked as nomagic.
Stage3Param::Level1CallContextInput::reducedViableImplInCallContext(call, c, ctx)
}

predicate reducedViableImplInReturnCand(DataFlowCallable c, DataFlowCall call) {

Check warning

Code scanning / CodeQL

Candidate predicate not marked as `nomagic` Warning

Candidate predicate to
reducedViableImplInReturn
is not marked as nomagic.
Candidate predicate to
reducedViableImplInReturn
is not marked as nomagic.

predicate relevantCallEdgeOut(DataFlowCall call, DataFlowCallable c);

default predicate reducedViableImplInCallContextCand(

Check warning

Code scanning / CodeQL

Candidate predicate not marked as `nomagic` Warning

Candidate predicate to
reducedViableImplInCallContext
is not marked as nomagic.
Candidate predicate to
reducedViableImplInCallContext
is not marked as nomagic.
mayBenefitFromCallContextExt(call, c)
}

default predicate reducedViableImplInReturnCand(DataFlowCallable c, DataFlowCall call) {

Check warning

Code scanning / CodeQL

Candidate predicate not marked as `nomagic` Warning

Candidate predicate to
reducedViableImplInReturn
is not marked as nomagic.
Candidate predicate to
reducedViableImplInReturn
is not marked as nomagic.
@hvitved hvitved force-pushed the dataflow/pruned-ctx-sensitivity branch from e846946 to b737da6 Compare December 20, 2023 19:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant