phanalist

E0041: Unreachable Code

E0041 reports statements that cannot be reached. It is the unreachable-code member of Phanalist’s bounded formal verification family (E0031-E0043). The family shares a Z3-backed engine that encodes path conditions and values.

What it checks

Model limits

E0041 shares the model limits, loop bounds, and interprocedural behavior described in E0031. A branch that merely throws is not treated as making the whole following statement unreachable.

Configuration

rules:
  E0041:
    php_version: "8.4"
    check_unreachable: true

See E0031 for the shared model limits, unknown_policy behavior, and per-code configuration.