Re:You can use C-Reduce for any language
by IshKebab on Saturday November 30, 2024 @04:50AM
(#42280656)
Ah very cool!
Re:You can use C-Reduce for any language
by codesnik on Thursday November 28, 2024 @12:45AM
(#42262776)
unreadable perl?! I clicked on the link expecting something super-terse and unstructured, but it's anything but. What the hell is wrong with people casually dropping such remarks.
Re:You can use C-Reduce for any language
by dazed_confused on Thursday November 28, 2024 @03:07PM
(#42268220)
Because if you aren’t writing in python or JS/TS then it is gibberish. Not like Perl is used all throughout Linux system…
It seems like a small number of the passes are not specific to C:
https://github.com/csmith-project/creduce/blob/master/creduc...
`"C" => 1,` means it is only for C.
I would guess `pass_lines` is the most important for non-C code; I'm guessing (it's written in unreadable Perl) that it removes lines.
So while it can work for languages other than C, most of its features are C-specific so it's not going to work nearly as well. Still I'd never heard of C-Reduce; pretty cool tool!
Someone make one based on Tree Sitter, quick!