You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Implement natural loop rotation/canonicalization in GOTO programs #7211
Let us consider a natural loop and the sequence of its instructions in the order in which they appear in the goto program.
The problem is that the sequence of loop instructions not necessarily densely packed in the goto program instruction sequence, meaning, the span of instructions between the first and the last loop instruction can contain instructions that are not part of the loop (typically, code that is only run once when breaking out of the loop)
This makes it difficult to apply loop transformations (in particular assigns clause instrumentation and loop contracts transformations), because these foreign instructions need to be preserved in the transformed loop.
LLVM loop canonicalisation could be a source of inspiration. loop canonicalisation ensures that loop instruction sequences are densely packed in the program's instruction sequence and that the loop has a single entry point and single exit point. The body of the loop can be swapped as a block, and code that needs to be hoisted out of the loop can safely be moved either to the single loop entry or the single loop exit location.
Activity
feliperodri commentedon Oct 5, 2022
It would greatly simplify our work on contracts.
TGWDB commentedon Oct 6, 2022
@diffblue/diffblue-opensource This tag might work where we cannot "assign" this to the Team.
tautschnig commentedon Nov 14, 2022
Just a note that #7321 might partially take care of this.
thomasspriggs commentedon Jan 31, 2023
I am scheduled to look at this issue once I finish my currently assigned task.
thomasspriggs commentedon Feb 16, 2023
This relates to #7518
My team has re-prioritised some of the work. I now have other documentation to write first.