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

Joined June 2012
3 Photos and videos
12 Dec 2025
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
90
C-Reduce retweeted
4 Mar 2025
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
C-Reduce retweeted
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
62
C-Reduce retweeted
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
15 Jan 2024
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
C-Reduce retweeted
I tried creduce to reduce a segfaulting test case and it reduced it to this πŸ‘ #creduce #screenshotsaturday
1
2
112
3 Aug 2023
We've all been there.
1
2
9
793
3 Jul 2023
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
C-Reduce retweeted
Replying to @lemire
You should use creduce to minimize that.
1
2
311
3 Jul 2023
Thanks for the shout out!
Replying to @tom_verbeure
creduce is good to know regardless, it's just especially good at this
2
161
C-Reduce retweeted
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.

ALT Man struggling to count GIF

1
1
8
371
C-Reduce retweeted
25 Jan 2023
Hey! Guess what came in the mail today! @sigplan @PLDI @creduce
7
4
91
4,702
C-Reduce retweeted
creduce is magic.

ALT accuse the hunchback of notre dame GIF

2
2
C-Reduce retweeted
15 Nov 2022
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
C-Reduce retweeted
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
C-Reduce retweeted
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