|
Name |
|
Date |
Size |
#Lines |
LOC |
| .. | | 03-May-2022 | - |
| autoconf/ | H | 14-May-2019 | - | 16,551 | 12,308 |
| clang_delta/ | H | 03-May-2022 | - | 37,626 | 26,999 |
| clex/ | H | 03-May-2022 | - | 6,615 | 4,850 |
| cmake/ | H | 13-May-2019 | - | 173 | 155 |
| creduce/ | H | 03-May-2022 | - | 4,155 | 3,210 |
| delta/ | H | 03-May-2022 | - | 3,779 | 2,559 |
| m4/ | H | 14-May-2019 | - | 9,634 | 8,713 |
| scripts/ | H | 14-May-2019 | - | 1,247 | 958 |
| tests/ | H | 14-May-2019 | - | 7,652 | 6,084 |
| unifdef/ | H | 03-May-2022 | - | 2,437 | 1,921 |
| AUTHORS | H A D | 13-May-2019 | 212 | 9 | 6 |
| COPYING | H A D | 13-May-2019 | 1.7 KiB | 33 | 29 |
| INSTALL.md | H A D | 13-May-2019 | 6.2 KiB | 213 | 154 |
| Makefile.am | H A D | 13-May-2019 | 647 | 33 | 16 |
| Makefile.in | H A D | 13-May-2019 | 26.2 KiB | 867 | 763 |
| NEWS | H A D | 13-May-2019 | 45 | 4 | 2 |
| README.md | H A D | 13-May-2019 | 2 KiB | 47 | 36 |
| TODO | H A D | 13-May-2019 | 3.3 KiB | 117 | 74 |
| aclocal.m4 | H A D | 13-May-2019 | 43.4 KiB | 1,200 | 1,090 |
| cmake_config.h.in | H A D | 13-May-2019 | 1.8 KiB | 61 | 41 |
| config.h.in | H A D | 13-May-2019 | 1.8 KiB | 69 | 46 |
| configure | H A D | 13-May-2019 | 587.3 KiB | 19,211 | 16,164 |
| configure.ac | H A D | 13-May-2019 | 5.3 KiB | 180 | 151 |
| git-hash.sh | H A D | 13-May-2019 | 1.7 KiB | 69 | 26 |
| version.m4 | H A D | 13-May-2019 | 607 | 18 | 13 |
README.md
1# C-Reduce
2
3## About
4
5C-Reduce is a tool that takes a large C or C++ program that has a
6property of interest (such as triggering a compiler bug) and
7automatically produces a much smaller C/C++ program that has the same
8property. It is intended for use by people who discover and report
9bugs in compilers and other tools that process C/C++ code.
10
11*NOTE:* C-Reduce happens to do a pretty good job reducing the size of
12programs in languages other than C/C++, such as JavaScript and Rust.
13If you need to reduce programs in some other language, please give it
14a try.
15
16Documentation and other information can be found at the [C-Reduce web
17page](http://embed.cs.utah.edu/creduce/)
18
19## Installation
20
21See [INSTALL.md](INSTALL.md).
22
23## Notes
24
251. When set to use more than one core, C-Reduce can cause space in
26`/tmp` to be leaked. This happens because sometimes C-Reduce will kill
27a compiler invocation when a result that is computed in parallel makes
28it clear that that compiler invocation is no longer useful. If the
29compiler leaves files in `/tmp` when it is killed, C-Reduce has no way
30to discover and remove the files. You will need to do this manually
31from time to time if temporary file space is limited. The leakage is
32typically pretty slow. If you need to avoid this problem altogether,
33you can run C-Reduce on a single core (using `--n 1`) in which case
34C-Reduce will never kill a running compiler instance. Alternatively, a
35command line option such as `-pipe` (supported by GCC) may suppress
36the creation of temporary files altogether. Another possibility is to
37set the `TMPDIR` environment variable to something like
38`/tmp/creduce-stuff` before invoking C-Reduce -- assuming that the
39tools you are invoking respect this variable.
40
412. Each invocation of the interestingness test is performed in a fresh
42temporary directory containing a copy of the file that is being
43reduced. If your interestingness test requires access to other files,
44you should either copy them into the current working directory or else
45refer to them using an absolute path.
46
47