-
Notifications
You must be signed in to change notification settings - Fork 15
Open
Labels
help wantedExtra attention is neededExtra attention is needed
Description
ChiBench only support modules, in the sense that every directive generated is erased from the final program. We should add the support for directive flags, for example:
ifdefifndefendif
The simpler solution would be to generate two programs, let's call them A and B.
The final program generated would be:
//This define should be randomized, for some programs we should follow the if branch, for others the else branch
`define B1
`ifdef B1
A
`else
B
`endifThis solution would cover only straightforward define cases, in real programs these directives are used with much more granularity, for example, inside functions, modules between statements, and so on.
Metadata
Metadata
Assignees
Labels
help wantedExtra attention is neededExtra attention is needed