csmith-project / creduce

C-Reduce, a C and C++ program reducer
Other
1.25k stars 123 forks source link

Add a pass to remove constant ifs #182

Closed amykhuang closed 5 years ago

amykhuang commented 5 years ago

This adds a part to pass_unifdef that removes constant #if statements. The reordering is for the possibility that includes get nested under ifs.

regehr commented 5 years ago

I can review this but @amykhuang can you look into the CI failure?

regehr commented 5 years ago

argh why are we still on LLVM 6? I guess we all tend to get distracted by other stuff

eeide commented 5 years ago

Well, I just haven't had time to update the Travis-CI configuration yet.

regehr commented 5 years ago

so the CI failure isn't a reflection on this PR? I can just review it?

eeide commented 5 years ago

Yes.

regehr commented 5 years ago

LGTM, thanks!