> ## Documentation Index
> Fetch the complete documentation index at: https://docs.sifr.sh/llms.txt
> Use this file to discover all available pages before exploring further.

# SIFR-FLOW-0007: Assignment target form is unsupported by HIR lowering.

> Assignment target form is unsupported by HIR lowering.

`SIFR-FLOW-0007` belongs to the **Control flow** diagnostic family. It means: assignment target form is unsupported by HIR lowering.

## Why It Happens

The control-flow graph cannot satisfy Sifr's static rules. Repair unsupported statements, invalid loop control, non-boolean conditions, missing returns, or unreachable code.

<Info>
  Use `sifr --explain SIFR-FLOW-0007` locally to see the renderer's exact message template and any machine-applicable suggestions for the compiler version you are running.
</Info>

## Erroneous Code

```python theme={null}
def label(value: int) -> str:
    if value > 0:
        return "positive"
```

## How To Fix It

Repair the control-flow shape: put break/continue inside loops, return on every required path, and use supported loop and assignment forms.

## Fixed Code

```python theme={null}
def label(value: int) -> str:
    if value > 0:
        return "positive"
    return "zero or negative"
```

## Details

| Field                  | Value                                                                      |
| ---------------------- | -------------------------------------------------------------------------- |
| Code                   | `SIFR-FLOW-0007`                                                           |
| Family                 | `FLOW`                                                                     |
| Severity               | Error                                                                      |
| Stability              | stable                                                                     |
| Owner                  | `sifr_lowering::lower::statements`                                         |
| Representative fixture | `crates/sifr/tests/e2e/fail/invalid_assignment_target_attribute_base.sifr` |

See the [Error Codes index](/diagnostics/error-codes) for the complete catalog.
