c4-project / c4f

The C4 Concurrent C Fuzzer
MIT License
13 stars 1 forks source link

Add for-loops to Fir #189

Closed MattWindsor91 closed 4 years ago

MattWindsor91 commented 4 years ago

A lot of possible fuzzer actions depend on Fir having support for C for loops.

This is a fairly straightforward addition, really; just needs some engineering and a decision on what sort of things should be allowed in the header. This would become a lock-block (probably with a header with two prim statements and an expression, though the prims might need to be constrained, and the first one might need to be a possible initialiser?)

MattWindsor91 commented 4 years ago

Done, but the internal representation of for-loops is a little high-level and rules out several exciting for loop generation prospects.