Closed Jiahui17 closed 2 months ago
This is most likely due to the removal of the ReturnOp
operation (daff034), which was basically forcing a TEHB on the result's path. If the circuit is non-cyclic there may be no buffers inserted on the path and our current (bad) testbench generation logic is unable to handle that. I'm reworking the latter as part of the circuit/memory interface redesign which I hope to merge today, it should fix the issue as a side-effect.
Benchmark:
simple_example.c
Script:
Issue:
The loop in this program is optimized away:
And the simulation does not terminate.