# Install cloog with Homebrew, dnf, MacPorts

Generate code for scanning Z-polyhedra. Version 0.21.1 via Homebrew; verified 2026-06-22.

## Install

```sh
sudo av install brew:cloog
```

Additional install commands:

### macOS

- Homebrew (100%):

```sh
brew install cloog
```

  Evidence: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install cloog
```

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

### Linux

- dnf (92%):

```sh
sudo dnf install cloog
```

  Evidence: Fedora Rawhide package metadata: cloog from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst

## Package facts

- **Package key:** brew:cloog
- **Package manager:** Homebrew
- **Package manager page:** <https://formulae.brew.sh/formula/cloog>
- **Version:** 0.21.1
- **Source summary:** Generate code for scanning Z-polyhedra
- **Homepage:** <https://github.com/periscop/cloog>
- **Repository:** <https://github.com/periscop/cloog>
- **Upstream docs:** <https://github.com/periscop/cloog#readme>
- **License:** LGPL-2.1-or-later
- **Source archive:** <https://github.com/periscop/cloog/releases/download/cloog-0.21.1/cloog-0.21.1.tar.gz>
- **Last updated:** 2026-06-22T14:03:02-07:00
- **Generated:** 2026-07-08T18:08:21+00:00

## Executables

- cloog (cli)
- cloog (alias)

## Dependencies

- gmp
- isl

## Build dependencies

- pkgconf

## Install behavior

- Post-install hook: not defined
- Bottle: available on arm64_big_sur, arm64_linux, arm64_monterey, arm64_sequoia, arm64_sonoma, arm64_tahoe, arm64_ventura, big_sur, monterey, sonoma, ventura, x86_64_linux

## Freshness

- Page generated: 2026-07-08
- Package-manager version: 0.21.1
- Package-manager updated: 2026-06-22
- Local data: ok
- Upstream repository: https://github.com/periscop/cloog
- info: No cached GitHub release or tag data was available.
## Project history and usage

CLooG, the Chunky Loop Generator, is a C software tool and library for generating loops that scan Z-polyhedra. Its official manual says it was originally written to solve code generation problems for optimizing compilers based on the polytope model.

### Project history

The README records the first version of that file in January 2002, and the Texinfo manual records its first version in July 2002 with a 1.0 release on September 17, 2002. The manual names Cedric Bastoul as author and describes CLooG as part of the Chunky project for data locality improvement.

CLooG's core technical role is polyhedral code generation: given affine constraints and context, it emits pseudo-code or near-compilable code that visits integral points efficiently while avoiding unnecessary control overhead.

### Adoption history

The manual says CLooG was used beyond optimizing compilers, including control automata for high-level synthesis and polynomial approximation, and was designed to serve as a back end for automatic parallelizers such as LooPo.

The supplied input shows packaging in Homebrew, dnf, and MacPorts. The official README and build docs also describe classic Unix source distribution concerns: configure, make, make install, GMP, PolyLib, and isl backends.

### How it is used

Users run cloog, optionally with an input file, or call CLooG as a library. The README describes input as affine inequalities over polyhedra and context parameters, and output as scanning code such as nested loops.

Build-time usage is typical autotools C: from Git, fetch submodules and run autogen.sh, then configure, make, and make install. The README documents options for isl, PolyLib, GMP, integer size, and installation prefix.

### Why package nerds care

CLooG matters to compiler-package maintainers because it is a small specialized C library in the polyhedral optimization stack, with optional and historical dependencies such as isl, PolyLib, and GMP. Its packaging exposes the intersection of research compiler tooling and Unix library build systems.

The changelog shows evolution around isl and OpenScop support, including OpenScop input in 0.17.0 and OpenScop coordinate/loop extensions in later 0.18.x releases. That makes it a useful marker package for polyhedral-model toolchains.

### Timeline

- 2001: Manual title page includes a September 2001 origin note.
- 2002: README first version recorded in January; manual first version recorded in July; release 1.0 recorded on September 17.
- 2004: Manual asks users to cite Bastoul's PACT paper on code generation in the polyhedral model.
- 2005: Manual records release 2.0 on November 21.
- 2007: Manual records release 2.1 on October 15.
- 2011: Changelog records 0.17.0 with OpenScop input support and isl backend updates.
- 2012: Changelog records 0.18.0 with isl 0.11.1, OpenMP/vectorization annotations, and OpenSCoP coordinates extension.
- 2014: Changelog records 0.18.3 with isl 0.14 and OpenScop loop extension support.
- 2015: Manual edition 2.1.2 updated July 27, 2015.

### Related projects

- Related projects and dependencies include Chunky, PolyLib, isl, GMP, OpenScop, and LooPo. The manual also connects CLooG to automatic parallelizers and the wider polyhedral compilation model.

### Sources

- <https://github.com/periscop/cloog/blob/master/README>
- <https://github.com/periscop/cloog/blob/master/doc/cloog.texi>
- <https://github.com/periscop/cloog/blob/master/ChangeLog>


## Security Notes

narrow executable package without higher-risk signals.

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

## Source Database Details

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** cloog
- **Version Scheme:** 0
- **Revision:** 0
- **Bottle Stable Root URL:** <https://ghcr.io/v2/homebrew/core>
- **Deprecated:** no
- **Disabled:** no
- **Keg Only:** no
- **URL Keys:** stable

## Other Package-Manager Records

- dnf - cloog - 0.18.4-24.fc44: normalized package name match | Fedora Rawhide package metadata: cloog from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst | The Chunky Loop Generator | http://www.cloog.org
- dnf - cloog-devel - 0.18.4-24.fc44: normalized package name match | Fedora Rawhide package metadata: cloog-devel from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/e5ca8ce900cd68f5419e1c39ae517343100b306336cbaeb70a3c153121d95094-primary.xml.zst | Development tools for the Chunky Loop Generator | http://www.cloog.org
- MacPorts - cloog: normalized package name match | MacPorts ports tree: devel/cloog/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1


## Related links

- [Source-control packages](https://www.automicvault.com/pkg/source-control-tools/) - Belongs to a source-control command family.
- [Terminal utility packages](https://www.automicvault.com/pkg/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Text processing packages](https://www.automicvault.com/pkg/text-processing-tools/) - Matched text, document, or structured-data processing metadata.
- [Developer build packages](https://www.automicvault.com/pkg/developer-build-tools/) - Matched build, compiler, generator, or developer workflow metadata.
- [pkgconf](https://www.automicvault.com/pkg/brew/pkgconf/) - Build dependency declared by Homebrew.
- [mcpp](https://www.automicvault.com/pkg/brew/mcpp/) - Shares av.db curated category or tags: cli, compiler-tools, compilers, developer-tools.
- [aarch64-elf-gcc](https://www.automicvault.com/pkg/brew/aarch64-elf-gcc/) - Shares av.db curated category or tags: cli, compilers, developer-tools.
- [adaptivecpp](https://www.automicvault.com/pkg/brew/adaptivecpp/) - Shares av.db curated category or tags: cli, compilers, developer-tools.
- [arm-linux-gnueabihf-binutils](https://www.automicvault.com/pkg/brew/arm-linux-gnueabihf-binutils/) - Shares av.db curated category or tags: cli, compilers, developer-tools.
- [arm-none-eabi-binutils](https://www.automicvault.com/pkg/brew/arm-none-eabi-binutils/) - Shares av.db curated category or tags: cli, compilers, developer-tools.
- [arm-none-eabi-gcc](https://www.automicvault.com/pkg/brew/arm-none-eabi-gcc/) - Shares av.db curated category or tags: cli, compilers, developer-tools.
- [bnfc](https://www.automicvault.com/pkg/brew/bnfc/) - Shares av.db curated category or tags: cli, compilers, developer-tools.
- [bunster](https://www.automicvault.com/pkg/brew/bunster/) - Shares av.db curated category or tags: cli, compilers, developer-tools.
- [dhall-bash](https://www.automicvault.com/pkg/brew/dhall-bash/) - Local package facts share a topical domain. Shared terms: cli, code, code-generation, compiler, developer.
- [cargo-generate](https://www.automicvault.com/pkg/brew/cargo-generate/) - Local package facts share a topical domain. Shared terms: cli, code, code-generation, developer, developer-tools.

## Combined YAML source

View the package source record on GitHub. [combined/cloog.yml](https://github.com/automic-vault/db/blob/main/combined/cloog.yml)


## Sources

- Nucleus package database
- Geiger risk classifier
- package-page enrichment
- curated package history
- package version freshness
- av.db category and tag curation
- package relationship graph
- external package-manager database matches
- cross-ecosystem install command graph
