• Top
    • Documentation
    • Books
    • Boolean-reasoning
    • Projects
      • Apt
      • Zfc
      • Acre
      • Milawa
      • Smtlink
      • Abnf
      • Vwsim
      • Isar
      • Wp-gen
      • Dimacs-reader
      • Pfcs
      • Legacy-defrstobj
      • Proof-checker-array
      • 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
      • Farray
      • Rp-rewriter
      • Instant-runoff-voting
      • Imp-language
      • Sidekick
      • Leftist-trees
      • Java
      • Taspi
      • Bitcoin
      • Riscv
      • Des
      • Ethereum
      • X86isa
      • Sha-2
      • Yul
      • Zcash
      • Proof-checker-itp13
      • Regex
      • ACL2-programming-language
      • Json
      • Jfkr
      • Equational
      • Cryptography
      • Poseidon
      • Where-do-i-place-my-book
      • Axe
      • Bigmems
      • Builtins
      • Execloader
      • Aleo
      • Solidity
      • Paco
      • Concurrent-programs
      • Bls12-377-curves
    • Debugging
    • Std
    • Proof-automation
    • Macro-libraries
    • ACL2
    • Interfacing-tools
    • Hardware-verification
    • Software-verification
    • 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.