Open vili-1 opened 2 years ago
The rule above is further refined in mc-imperial/spirv-control-flow#36
@vili-1 We added this rule to our model, but I am not sure this change made it back to the spec. I'm going to label this with "future work" so that we can revisit it. But let's not discuss it in the paper.
The graph below is deemed feasible by our Alloy model. However, the divergent branches (at b1) represent unstructured control-flow.
So, to reject this example (as an unstructured one), on top of the predicates about the out degree of the header blocks, we add the below constraints: