Skip to content

Easy complexity cleanup: centralize SMOOTH chain predicate #113

@cuzzo

Description

@cuzzo

Report-backed easy refactor.

Source: Decomplex report-pipeline-smooth-chain-fact.

Problem:
The compiler repeats AST::BinaryOp && op == :SMOOTH checks across pipeline rewriting, pipeline host, MIR lowering, and annotation.

Acceptance:

  • Add a small AST predicate for SMOOTH binary-op nodes.
  • Replace low-risk duplicated checks.
  • Cover predicate behavior and at least one pipeline path.
  • No new T.untyped slots.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions