• Top
    • Documentation
    • Books
    • Boolean-reasoning
    • Projects
    • Debugging
    • Community
    • 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
            • Integer-ranges
            • Implementation-environments
            • Dynamic-semantics
            • Static-semantics
            • Grammar
            • Integer-formats
            • Types
            • Portable-ascii-identifiers
            • Values
              • Pointer
              • Member-types-of-member-values
              • Member-value-list->value-list
              • Member-value-list->name-list
              • Expr-value
              • Type-list-of-value-list
              • Type-of-value
              • Stmt-value
                • Stmt-value-case
                • Stmt-value-fix
                • Stmt-value-equiv
                • Stmt-value-return
                • Stmt-valuep
                • Stmt-value-none
                • Stmt-value-kind
              • Value-option
              • Init-value
              • Value-result
              • Type-of-value-option
              • Value-list-result
              • Member-value-list-result
              • Init-value-result
              • Expr-value-result
              • Value-option-result
              • Signed/unsigned-byte-p-of-integer-values
              • Member-type-of-member-value
              • Bounds-of-integer-values
              • Value-promoted-arithmeticp
              • Init-type-of-init-value
              • Value-unsigned-integerp
              • Value-integerp
              • Value-signed-integerp
              • Value-arithmeticp
              • Value-scalarp
              • Value-realp
              • Values/membervalues
            • 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
          • Transformation-tools
          • Representation
          • Insertion-sort
          • Pack
        • Bv
        • Imp-language
        • Event-macros
        • Java
        • Riscv
        • 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
  • Values

Stmt-value

Fixtype of statement values.

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

Member Tags → Types
:none → stmt-value-none
:return → stmt-value-return

In our dynamic semantics, a statement may end its execution by moving to the next statement without yielding a value, by returning no value, or by returning a value; in full C, there are other ways in which a statement may end its execution, but here we only focus on our formalized subset. We capture this notion as a statement value, i.e. the value yielded by a statement.

Note the distinction between yielding no value without a return, e.g. after executing a null or expression statement (e.g. assignment), and returning without a value, i.e. with a return without expression. The distinction affects how execution proceeds just after the statement in question.

Subtopics

Stmt-value-case
Case macro for the different kinds of stmt-value structures.
Stmt-value-fix
Fixing function for stmt-value structures.
Stmt-value-equiv
Basic equivalence relation for stmt-value structures.
Stmt-value-return
Stmt-valuep
Recognizer for stmt-value structures.
Stmt-value-none
Stmt-value-kind
Get the kind (tag) of a stmt-value structure.