• 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
            • Atc-implementation
              • Atc-abstract-syntax
              • Atc-pretty-printer
              • Atc-event-and-code-generation
                • Atc-symbolic-computation-states
                • Atc-symbolic-execution-rules
                • Atc-gen-ext-declon-lists
                • Atc-function-and-loop-generation
                • Atc-statement-generation
                • Atc-gen-fileset
                • Atc-gen-everything
                • Atc-gen-obj-declon
                • Atc-gen-fileset-event
                • Atc-tag-tables
                • Atc-expression-generation
                  • Atc-gen-expr-struct-read-array
                  • Atc-gen-expr-pure/bool
                  • Atc-gen-expr-integer-read
                  • Atc-gen-expr-cond
                  • Atc-gen-expr-binary
                  • Atc-gen-expr-or
                  • Atc-gen-expr-array-read
                  • Expr-gin
                    • Expr-gin-fix
                    • Expr-ginp
                    • Make-expr-gin
                    • Expr-gin-equiv
                    • Expr-gin->names-to-avoid
                    • Change-expr-gin
                    • Expr-gin->prec-tags
                    • Expr-gin->inscope
                    • Expr-gin->thm-index
                    • Expr-gin->fn-guard
                    • Expr-gin->context
                    • Expr-gin->compst-var
                    • Expr-gin->proofs
                    • Expr-gin->fn
                  • Exprs-gin
                  • Atc-gen-expr-and
                  • Atc-gen-expr-struct-read-scalar
                  • Exprs-gout
                  • Atc-gen-expr-unary
                  • Atc-gen-expr-conv
                  • Expr-gout
                  • Atc-gen-expr-bool-from-type
                  • Atc-gen-expr-const
                  • Atc-gen-expr-sint-from-bool
                  • Atc-gen-expr-var
                  • Atc-gen-expr-pure-list
                  • Irr-exprs-gout
                  • Irr-expr-gout
                • Atc-generation-contexts
                • Atc-gen-wf-thm
                • Term-checkers-atc
                • Atc-variable-tables
                • Term-checkers-common
                • Atc-gen-init-fun-env-thm
                • Atc-gen-appconds
                • Read-write-variables
                • Atc-gen-thm-assert-events
                • Test*
                • Atc-gen-prog-const
                • Atc-gen-expr-bool
                • Atc-theorem-generation
                • Atc-tag-generation
                • Atc-gen-expr-pure
                • Atc-function-tables
                • Atc-object-tables
              • Fty-pseudo-term-utilities
              • Atc-term-recognizers
              • Atc-input-processing
              • Atc-shallow-embedding
              • Atc-process-inputs-and-gen-everything
              • Atc-table
              • Atc-fn
              • Atc-pretty-printing-options
              • Atc-types
              • Atc-macro-definition
            • Atc-tutorial
          • Language
          • 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
  • Atc-expression-generation

Expr-gin

Inputs for C pure expression generation.

This is a product type introduced by fty::defprod.

Fields
context — atc-context
Described in atc-implementation. It is the context just before this expression, i.e. the context in which this expression is generated.
inscope — atc-symbol-varinfo-alist-list
Described in atc-implementation. It contains the variables in scope just before this expression, i.e. the ones in scope for this expression.
prec-tags — atc-string-taginfo-alist
Described in atc-implementation.
fn — symbolp
Described in atc-implementation. It is the target function for which the expression is generated.
fn-guard — symbolp
Described in atc-implementation.
compst-var — symbolp
Described in atc-implementation.
thm-index — posp
Described in atc-implementation.
names-to-avoid — symbol-list
Described in atc-implementation.
proofs — booleanp
A flag indicating whether modular proof generation should continue or not. This will be eliminated when modular proof generation will cover all of the ATC-generated code.

This does not include the term, which is passed as a separate input.

Subtopics

Expr-gin-fix
Fixing function for expr-gin structures.
Expr-ginp
Recognizer for expr-gin structures.
Make-expr-gin
Basic constructor macro for expr-gin structures.
Expr-gin-equiv
Basic equivalence relation for expr-gin structures.
Expr-gin->names-to-avoid
Get the names-to-avoid field from a expr-gin.
Change-expr-gin
Modifying constructor for expr-gin structures.
Expr-gin->prec-tags
Get the prec-tags field from a expr-gin.
Expr-gin->inscope
Get the inscope field from a expr-gin.
Expr-gin->thm-index
Get the thm-index field from a expr-gin.
Expr-gin->fn-guard
Get the fn-guard field from a expr-gin.
Expr-gin->context
Get the context field from a expr-gin.
Expr-gin->compst-var
Get the compst-var field from a expr-gin.
Expr-gin->proofs
Get the proofs field from a expr-gin.
Expr-gin->fn
Get the fn field from a expr-gin.