C-Reduce (@creduce) profile picture

I am C-Reduce, the shrinker of C/C++ programs.

Salt Lake City, UT, USA
Joined June 2012
Photo by C-Reduce (@creduce)Photo by C-Reduce (@creduce)Photo by C-Reduce (@creduce)
Always happy to help!
Replying to @lauriewired
One contestant experimented with C-Reduce; a way to search for C++ programs that create unusual compiler behavior. Maximizing the fitness function for error as a reward, no templates, no pre-processor hacks. Just nested parenthesis causing exponential error output!
1
3
95
C-Reduce retweeted
Learn LLVM until I find a compiler job | Day 29 Both creduce and llvm-reduce are still running. Hopefully, the can finish by tomorrow morning.
2
2
187
Replying to @creduce
My favorite version of this is github.com/maleadt/creduce_j… which can take an entire tree of Julia packages and apply creduce to it . Now I just need to figure out how to use Julia's parser to do smarter rewrites.
1
1
65
Running creduce to try to minimize a test case for "clang produces different binaries when building natively on i386 vs cross-building from amd64". Only reduced from 2346 to 1727 lines so far, which makes me think this bug is hard to trigger.
1
2
9
2,967
I'll try anything!
Does such a thing as CReduce for a Python script exist? (Or can CReduce be abused into working on Python code?)
2
4
528
I tried creduce to reduce a segfaulting test case and it reduced it to this 👍 #creduce #screenshotsaturday
1
2
112
We've all been there.
You’re unable to view this Post because this account owner limits who can view their Posts. Learn more
1
2
9
795
I love working the night shift. 🌜 Thanks for the shout out!
Replying to @atomgalaxy
I reduce a lot of compiler bugs, so I have a system that involves a directory full of stub stdlib/system headers, creduce, and some ready-made scripts. I also have a 64-core machine. creduce takes it down to ~10k overnight, and I take it from there.
1
3
488
Replying to @lemire
You should use creduce to minimize that.
1
2
311
Thanks for the shout out!
creduce is good to know regardless, it's just especially good at this
2
161
You can make minimal repros using creduce fairly easily. Even with msvc, just do it under WSL and take advantage of the fact you can call native win32 programs. No advanced C++ skills necessary
1
1
2
159
creduce help text: --shaddap Suppress output about non-fatal internal errors [..] --sllooww Try harder to reduce, but perhaps take a long time to do so
1
2
320
Expectation: I have a bug, let me try to use C-Reduce to reduce it Reality: Run into a bug with C-Reduce itself Happy weekend I guess... Oh wait, it's just Thursday.
1
1
8
371
C-Reduce retweeted
Hey! Guess what came in the mail today! @sigplan @PLDI @creduce
7
4
91
4,703
Replying to @Cor3ntin @creduce
creduce is magic.
2
2
TFW the code creduce produces would probably not lead to a productive compiler bug report because it does weird things (like a null deref) that the original code doesn't do, but re-adding parts of the original code makes the bug you're trying to report not reproduce anymore...
3
1
4
Thanks - for now I wrote a script that inlines specific #included files but does not actually preprocess, then I used @creduce to do a reduction on that code, and things are working nicely.
1
2
I'm having a @creduce problem: my source file has been preprocessed using clang-14, and now gcc-11 is complaining about it with errors like: error: two or more data types in declaration specifiers 214 | typedef float _Float32; Anyone know how to solve this?
3
1
6