Table 2. Halstead operators with their corresponding decomposed operators.
| Base metrics | Decomposed metrics | Description |
|---|---|---|
| Total operators (N1) | As | Total assignment operators |
| A | Total arithmetic operators | |
| R | Total relational operators | |
| Log | Total logical operators | |
| O | Total operators other than assignment, arithmetic, relational, and logical operators | |
| Unique operators (n1) | as | Unique assignment operators |
| a | Unique arithmetic operators | |
| r | Unique relational operators | |
| log | Unique logical operators | |
| o | Unique operators other than assignment, arithmetic, relational, and logical operators |