• Top
    • Documentation
    • Books
    • Boolean-reasoning
    • Projects
    • Debugging
    • Std
    • Proof-automation
    • Macro-libraries
    • ACL2
    • Interfacing-tools
    • Hardware-verification
    • Software-verification
      • Kestrel-books
        • Crypto-hdwallet
        • Apt
        • Error-checking
        • Fty-extensions
        • Isar
        • Kestrel-utilities
        • Set
        • Soft
        • C
          • Syntax-for-tools
          • Atc
          • Language
            • Abstract-syntax
              • Tyspecseq
              • Expr
              • Binop
              • Fileset
              • Obj-declor
              • Ident
              • Iconst
              • Obj-adeclor
              • Const
              • Fundef
              • Unop
                • Unop-case
                • Unop-fix
                • Unopp
                • Unop-equiv
                • Unop-plus
                • Unop-minus
                • Unop-lognot
                • Unop-kind
                • Unop-indir
                • Unop-bitnot
                • Unop-address
              • File
              • Tag-declon
              • Fun-declor
              • Obj-declon
              • Iconst-length
              • Abstract-syntax-operations
              • Label
              • Struct-declon
              • Initer
              • Ext-declon
              • Fun-adeclor
              • Expr-option
              • Iconst-base
              • Initer-option
              • Iconst-option
              • Tyspecseq-option
              • Stmt-option
              • Scspecseq
              • Param-declon
              • Obj-declon-option
              • File-option
              • Tyname
              • Transunit
              • Fun-declon
              • Transunit-result
              • Param-declon-list
              • Struct-declon-list
              • Expr-list
              • Tyspecseq-list
              • Ident-set
              • Ident-list
              • Ext-declon-list
              • Unop-list
              • Tyname-list
              • Fundef-list
              • Fun-declon-list
              • Binop-list
              • Stmt-fixtypes
              • Expr-fixtypes
            • Integer-ranges
            • Implementation-environments
            • Dynamic-semantics
            • Static-semantics
            • Grammar
            • Integer-formats
            • Types
            • Portable-ascii-identifiers
            • Values
            • Integer-operations
            • Computation-states
            • Object-designators
            • Operations
            • Errors
            • Tag-environments
            • Function-environments
            • Character-sets
            • Flexible-array-member-removal
            • Arithmetic-operations
            • Pointer-operations
            • Bytes
            • Keywords
            • Real-operations
            • Array-operations
            • Scalar-operations
            • Structure-operations
          • Representation
          • Transformation-tools
          • Insertion-sort
          • Pack
        • Bv
        • Imp-language
        • Event-macros
        • Java
        • Bitcoin
        • Ethereum
        • Yul
        • Zcash
        • ACL2-programming-language
        • Prime-fields
        • Json
        • Syntheto
        • File-io-light
        • Cryptography
        • Number-theory
        • Lists-light
        • Axe
        • Builtins
        • Solidity
        • Helpers
        • Htclient
        • Typed-lists-light
        • Arithmetic-light
      • X86isa
      • Axe
      • Execloader
    • Math
    • Testing-utilities
  • Abstract-syntax

Unop

Fixtype of unary operators [C17:6.5.3].

This is a tagged union type, introduced by fty::deftagsum.

Member Tags → Types
:address → unop-address
:indir → unop-indir
:plus → unop-plus
:minus → unop-minus
:bitnot → unop-bitnot
:lognot → unop-lognot

We capture all of them: address, indirection, unary plus, unary minus, bitwise negation/complement, and logical negation/complement.

Note that preincrement ++ and predecrement -- are not considered unary operators in the C grammar [C17:6.5.3/1], even though preincrement and predecrement expressions are considered unary expressions, along with others with the sizeof and _Alignof operators, and even though the title of [C17:6.5.3] is `Unary Operators'. We may include all those operators into this fixtype in the future, since it makes sense from the point of view of the abstract syntax.

Subtopics

Unop-case
Case macro for the different kinds of unop structures.
Unop-fix
Fixing function for unop structures.
Unopp
Recognizer for unop structures.
Unop-equiv
Basic equivalence relation for unop structures.
Unop-plus
Unop-minus
Unop-lognot
Unop-kind
Get the kind (tag) of a unop structure.
Unop-indir
Unop-bitnot
Unop-address