IntegerBitNot

Not conversion of integer bits, a expr node.

Declaración

Sintaxis

IntegerBitNot(expr arg, ttype type, expr? value)

Argumentos

Argument Name

Argument Description

arg

expression arguments

type

table entry type

value

expression value

Valores devueltos

The return value is the expression that the IntegerBitNot represents.

Descripción

IntegerBitNot represents integer binary not operation. It is used when flipping bits of integer from 1 to 0 or 0 to 1.

Tipos

Only accepts integers.

Ejemplos

not(1)

ASR:

(TranslationUnit
    (SymbolTable
        1
        {
            iso_fortran_env:
                (IntrinsicModule lfortran_intrinsic_iso_fortran_env),
            lfortran_intrinsic_bit:
                (IntrinsicModule lfortran_intrinsic_bit),
            not:
                (ExternalSymbol
                    1
                    not
                    3 not
                    lfortran_intrinsic_bit
                    []
                    not
                    Private
                )

        })
    [(IntegerBitNot
        (IntegerConstant 1 (Integer 4 []))
        (Integer 4 [])
        (IntegerConstant -2 (Integer 4 []))
    )]
)

Ver también

LogicalNot