Skip to content

C++: Annotate IR with partial flow info#4501

Merged
MathiasVP merged 1 commit into
github:mainfrom
dbartol:dbartol/PrintPartialFlow
Oct 18, 2020
Merged

C++: Annotate IR with partial flow info#4501
MathiasVP merged 1 commit into
github:mainfrom
dbartol:dbartol/PrintPartialFlow

Conversation

@dbartol
Copy link
Copy Markdown

@dbartol dbartol commented Oct 17, 2020

I've added one more property to the annotations provided by PrintIRLocalFlow.qll: The pflow property will now be emitted for any operand or instruction for which configuration.hasPartialFlow determines that there is partial flow to that node. This requires that partial flow be enabled via overriding Configuration::explorationLimit() in order to display. Otherwise, you'll still just get the local flow info as before.

I've added one more property to the annotations provided by `PrintIRLocalFlow.qll`: The `pflow` property will now be emitted for any operand or instruction for which `configuration.hasPartialFlow` determines that there is partial flow to that node. This requires that partial flow be enabled via overriding `Configuration::explorationLimit()` in order to display. Otherwise, you'll still just get the local flow info as before.
@dbartol dbartol requested a review from a team as a code owner October 17, 2020 17:17
@github-actions github-actions Bot added the C++ label Oct 17, 2020
@dbartol dbartol requested review from MathiasVP and rdmarsh2 October 17, 2020 17:18
Copy link
Copy Markdown
Contributor

@MathiasVP MathiasVP left a comment

Choose a reason for hiding this comment

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

LGTM! I've never really found much use of the distance information when using partial flow, so I'd be totally okay with not having it in the output.

But if you have found it useful I won't object to having it included :)

@MathiasVP MathiasVP merged commit 7942d73 into github:main Oct 18, 2020
@dbartol
Copy link
Copy Markdown
Author

dbartol commented Oct 18, 2020

The distance seems to always be zero. The only time I saw it be something else was when I was still accidentally including non-local flow.

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.

2 participants