creduce
« Back to VersTracker
Description:
Reduce a C/C++ program while keeping a property of interest
Type: Formula  |  Latest Version: 2.10.0@5  |  Tracked Since: Dec 17, 2025
Links: Homepage  |  formulae.brew.sh
Category: Developer tools
Tags: c++ c debugging reduction compiler
Install: brew install creduce
About:
C-Reduce is a powerful tool that automatically reduces the size of a C or C++ source file while preserving a specific property, such as a compiler bug. It uses a set of powerful, language-aware passes to systematically remove unnecessary code, making it invaluable for debugging complex issues.
Key Features:
  • Language-aware reduction passes
  • Preserves a property of interest (e.g., a crash)
  • Parallel execution for faster results
  • Effective on large and complex codebases
Use Cases:
  • Isolating the minimal test case for a compiler bug
  • Simplifying code to reproduce a static analysis tool error
  • Reducing a failing test case for a code refactoring tool
Alternatives:
  • delta – Generic line-based reduction tool; less effective for C/C++ syntax.
  • C-Reduce (older versions) – Newer versions include significant performance improvements and more reduction passes.
License: BSD-3-Clause
Dependencies: astyle, llvm@18
Bottles available for: arm64_tahoe, arm64_sequoia, arm64_sonoma, arm64_ventura, sonoma, ventura, arm64_linux, x86_64_linux
Version History
Detected Version Rev Change Commit
Sep 16, 2025 11:57pm 5 VERSION_BUMP 45d364d8
Dec 31, 2024 2:35pm 5 VERSION_BUMP d0af77f3