IntegerCompare¶
Integer comparison expr ASR node.
Declaration¶
Sintaxe¶
IntegerCompare(expr left, cmpop op, expr right, ttype type, expr? value)
Argumentos¶
| Argument Name | Argument Description | 
|---|---|
| 
 | left side of the comparison operand | 
| 
 | right side of the comparison operand | 
| 
 | comparison operator | 
| 
 | table entry type | 
| 
 | expression value | 
Valores de retorno¶
The return value is the expression that the IntegerCompare represents.
Descrição¶
IntegerCompare represents integer comparison operation.
Comparison operation can be:
- Less than 
- Greater than 
- Less than or equal to 
- Greater than or equal to 
- Equal to 
Tipos¶
Only accepts integers.
Exemplos¶
2 > 1
ASR:
(TranslationUnit
    (SymbolTable
        1
        {
        })
    [(IntegerCompare
        (IntegerConstant 2 (Integer 4 []))
        Gt
        (IntegerConstant 1 (Integer 4 []))
        (Logical 4 [])
        (LogicalConstant
            .true.
            (Logical 4 [])
        )
    )]
)