• 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
            • 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
              • Init-fun-env
              • Fun-info
              • Fun-info-option
              • Fun-env-extend
              • Fun-env-result
              • Fun-env-lookup
              • Fun-info-from-fundef
              • Fun-env
            • 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
  • Language

Function-environments

C function environments.

C code is executed in the context of function definitions in scope, which may be referenced by the code.

Here we formalize a notion of function environment as a finite map from function names (i.e. identifiers) to information about the functions. These function environments are used in the dynamic semantics.

Subtopics

Init-fun-env
Initialize the function environment for a translation unit.
Fun-info
Fixtype of information about a C function in an environment.
Fun-info-option
Fixtype of optional information about a C function in an environment.
Fun-env-extend
Extend a function environment with a function definition.
Fun-env-result
Fixtype of errors and function environments.
Fun-env-lookup
Look up a function in an environment by name.
Fun-info-from-fundef
Create information for a function definition.
Fun-env
Fixtype of function environments.