# Install creduce with Homebrew, apt, MacPorts, Nix

Reduce a C/C++ program while keeping a property of interest. Version 2.10.0 via Homebrew; verified 2026-08-02. Also installable with debian: sudo apt install creduce.

## Install

```sh
sudo av install brew:creduce
```

Additional install commands:

### macOS

- Homebrew (100%):

```sh
brew install creduce
```

  Evidence: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install creduce
```

  Evidence: MacPorts ports tree: devel/creduce/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1

### Linux

- Debian apt (92%):

```sh
sudo apt install creduce
```

  Evidence: Debian stable package indexes: creduce from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz

- Nix (92%):

```sh
nix profile install nixpkgs#creduce
```

  Evidence: nixpkgs package indexes: pkgs/by-name/cr/creduce/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1

## Package facts

- **Package key:** brew:creduce
- **Package manager:** Homebrew
- **Version:** 2.10.0
- **Source summary:** Reduce a C/C++ program while keeping a property of interest
- **Homepage:** <https://github.com/csmith-project/creduce>
- **Repository:** <https://github.com/csmith-project/creduce>
- **Last updated:** 2026-08-02T01:55:36+09:00
- **Generated:** 2026-08-03T19:37:03+00:00

## Executables

- creduce (alias)

## Install behavior

- Bottle: not available

## Freshness

- Page generated: 2026-08-03
- Package-manager version: 2.10.0
## Project history and usage

C-Reduce is a test-case reducer for C and C++ programs. Given a large program and an interestingness test, it repeatedly transforms the input until it preserves the property of interest while producing a much smaller reproducer.

### Project history

The official README describes C-Reduce as a tool for people who discover and report bugs in compilers and other C/C++-processing tools. The repository tags include PLDI and TOPLAS publication-related tags, reflecting its roots in compiler-research tooling as well as its practical use by compiler bug reporters.

### Adoption history

The installation guide explicitly points users to precompiled packages before building from source, naming Ubuntu, Debian, Gentoo, FreeBSD, and macOS through Homebrew. That packaging coverage is important because C-Reduce depends on a substantial toolchain, including LLVM/Clang and Perl modules.

### How it is used

Users pair C-Reduce with a project-specific interestingness test, often one that detects a compiler crash, wrong-code result, warning, or other minimized behavior. The README also notes that it can work well on languages beyond C/C++, including JavaScript and Rust, despite its primary C/C++ focus.

### Why package nerds care

For package and compiler maintainers, C-Reduce is significant because it turns large failure cases into small, shareable reproducers. Its presence in multiple operating-system package collections makes a research-grade reducer available as a normal developer tool.

### Timeline

- PLDI-era tags: Repository contains publication-related tags such as pldi12-crc
- 2.x series: Repository tags show a maintained 2.x release line
- Current install guide: Documents packages in Ubuntu, Debian, Gentoo, FreeBSD, and Homebrew

### Related projects

- C-Reduce is hosted under the csmith-project GitHub organization and is related by project lineage to Csmith-style compiler testing workflows.

### Sources

- <https://github.com/csmith-project/creduce#readme>
- <https://github.com/csmith-project/creduce/blob/master/INSTALL.md>
- <https://embed.cs.utah.edu/creduce/>


## Security Notes

narrow executable package without higher-risk signals.

- **Geiger risk:** green / low
- narrow executable package without higher-risk signals

## Other Package-Manager Records

- Debian apt - creduce - 2.11.0~20240909-2: normalized package name match | Debian stable package indexes: creduce from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Test-Case Reduction for C Compiler Bugs | https://github.com/csmith-project/creduce
- Nix - creduce: normalized package name match | nixpkgs package indexes: pkgs/by-name/cr/creduce/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- Ubuntu apt - creduce - 2.11.0~20240312-1build1: normalized package name match | Ubuntu 24.04 LTS package indexes: creduce from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | Test-Case Reduction for C Compiler Bugs | https://github.com/csmith-project/creduce
- MacPorts - creduce: normalized package name match | MacPorts ports tree: devel/creduce/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1


## Combined YAML source

View the package source record on GitHub. [combined/creduce.yml](https://github.com/mxcl/pkgdb/blob/main/combined/creduce.yml)


## Sources

- pkg.so package database
- Geiger risk classifier
- curated package history
- pkgdb category and tag curation
- external package-manager database matches
- cross-ecosystem install command graph
