Maybe I get your idea now, that, with the assumption in mind, we can always rebuild the order relating array's name and id.
This really deepen my understanding. (Though I want to try with explicit extension at the beginning hhh, since this seems more formal and not ad-hoc.)
2. "My work's relation to Courant & Leroy's POPL'21"
Yes, I was finding my master thesis's topic (formal verification), and I find this work in POPL'21, with the fact in mind that CompCert is lacking powerful loop optimization passes (especially polyhedral pass), I think integrate a full polyhedral pass, though experimental at first, may be useful.
And I examine POPL'21 (it contains only the main part of your codegen algorithm) and the preliminary (and incomplete) polyhedral validation work s2sloop(
https://github.com/pilki/s2sLoop) by Pilkiewicz (POPL'21 also mentions this work), I think it seems possible to adapt these work together.
I currently think that I have following works to do,
i. implement a executable verified validator (using s2sloop's validation strategy), and adapt it to PLuTo main scheduler. I'm on this step now, considering the formalization of openscop itself.
What's more, s2sloop gives only a prototype of a validator, lacking a executable constraint solver, I may need to implement it.
- I think s2sloop's validation strategy is enough for most scheduling algorithm (without considering efficiency of itself first), because the condition it checks is "full dependence preservation"(all access dependences of Src is preserved by Tgt). And I think correctly implemented algorithm like PLuTo should guarantee it, as it uses the "legality" constraints.
ii. I need to connect the three steps (including POPL'21). The extractor seems not difficult (if only deal with "simple" input...).
iii. Since polyhedral compilation works on fragments, there needs some work to adapt it to full C program.
Would you mind giving me some comments on my plan's feasibility? :D
Have a nice day,
Xuyang.
------------------ Original ------------------
Date: Tue, Oct 11, 2022 05:42 AM