C-Reduce

289 posts

C-Reduce

C-Reduce

@creduce

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

Salt Lake City, UT, USA Katılım Haziran 2012
69 Takip Edilen487 Takipçiler
C-Reduce retweetledi
Lee Wei
Lee Wei@leewei666·
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.
English
0
2
2
184
C-Reduce retweetledi
Valentin Churavy
Valentin Churavy@vchuravy·
@creduce My favorite version of this is github.com/maleadt/creduc… 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.
English
0
1
1
60
C-Reduce retweetledi
Colin Percival
Colin Percival@cperciva·
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.
English
1
2
9
3K
C-Reduce
C-Reduce@creduce·
@JethroGB @moyix @bjg Actually, C-Reduce has a lot of tactics that are specific to C/C++ code. If you're reducing something that is not C/C++ code, you can disable all those passes with the `--not-c` command-line option.
English
1
0
2
36
Jethro Beekman
Jethro Beekman@JethroGB·
@moyix @bjg Creduce doesn't really have anything c-specific. Any text format should work
English
2
0
1
178
Brendan Dolan-Gavitt
Brendan Dolan-Gavitt@moyix·
Does such a thing as CReduce for a Python script exist? (Or can CReduce be abused into working on Python code?)
English
2
1
8
3.3K
C-Reduce
C-Reduce@creduce·
We've all been there.
English
1
2
9
790
C-Reduce
C-Reduce@creduce·
I love working the night shift. 🌜 Thanks for the shout out!
@ericniebler.bsky.social@ericniebler

@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.

English
0
1
3
486
C-Reduce retweetledi
Paul F. Dietz
Paul F. Dietz@PaulFDietz·
@lemire You should use creduce to minimize that.
English
0
1
2
309
C-Reduce retweetledi
nobodyreally
nobodyreally@gamefeast·
@BruceDawson0xB @visualc 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
English
1
1
2
157
C-Reduce retweetledi
Varun / 王潤 / げんじ
Varun / 王潤 / げんじ@typesanitizer·
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
English
0
1
2
318
C-Reduce retweetledi
Varun / 王潤 / げんじ
Varun / 王潤 / げんじ@typesanitizer·
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.
GIF
English
1
1
8
369