• 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
        • 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-gen-cfun-correct-thm
                  • Atc-typed-formals
                  • Atc-gen-outer-bindings-and-hyps
                  • Atc-gen-fundef
                  • Atc-gen-exec-stmt-while-for-loop
                  • Atc-gen-context-preamble
                  • Atc-gen-pop-frame-thm
                  • Atc-gen-loop-correct-thm
                  • Atc-gen-loop-body-correct-thm
                  • Atc-gen-init-scope-thms
                  • Atc-gen-fun-correct-thm
                  • Atc-gen-fn-result-thm
                  • Atc-gen-loop
                  • Atc-gen-loop-test-correct-thm
                  • Atc-check-guard-conjunct
                  • Atc-find-affected
                  • Atc-gen-cfun-final-compustate
                  • Atc-gen-init-inscope-auto
                  • Atc-gen-init-inscope-static
                  • Atc-gen-push-init-thm
                  • Atc-gen-loop-measure-fn
                  • Atc-gen-fun-endstate
                  • Atc-gen-loop-termination-thm
                  • Atc-gen-formal-thm
                  • Atc-gen-loop-final-compustate
                  • Atc-gen-loop-measure-thm
                  • Atc-gen-object-disjoint-hyps
                  • Atc-loop-body-term-subst
                  • Atc-gen-omap-update-formals
                  • Atc-gen-loop-tthm-formula
                  • Atc-gen-init-inscope
                  • Atc-gen-fn-def*
                  • Atc-gen-param-declon-list
                  • Atc-formal-affectablep
                  • Atc-gen-cfun-fun-env-thm
                  • Atc-gen-add-var-formals
                  • Atc-gen-cfun-fun-env-thm-name
                  • Atc-gen-fn-guard
                  • Atc-filter-exec-fun-args
                  • Atc-gen-context-preamble-aux-aux
                    • Atc-typed-formals-to-extobjs
                    • Atc-formal-affectable-listp
                  • Atc-statement-generation
                  • Atc-gen-fileset
                  • Atc-gen-everything
                  • Atc-gen-obj-declon
                  • Atc-gen-fileset-event
                  • Atc-tag-tables
                  • Atc-expression-generation
                  • 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
              • Pure-expression-execution
            • Transformation-tools
            • Language
            • Representation
            • Insertion-sort
            • Pack
          • Soft
          • Bv
          • Imp-language
          • Ethereum
          • Event-macros
          • Java
          • Riscv
          • Bitcoin
          • Zcash
          • Yul
          • ACL2-programming-language
          • Prime-fields
          • Json
          • Syntheto
          • File-io-light
          • Cryptography
          • Number-theory
          • Axe
          • Lists-light
          • Builtins
          • Solidity
          • Helpers
          • Htclient
          • Typed-lists-light
          • Arithmetic-light
        • X86isa
        • Axe
        • Execloader
      • Math
      • Testing-utilities
    • Atc-function-and-loop-generation

    Atc-gen-context-preamble-aux-aux

    Signature
    (atc-gen-context-preamble-aux-aux this-var-ptr typed-formals-rest) 
      → 
    terms
    Arguments
    this-var-ptr — Guard (symbolp this-var-ptr).
    typed-formals-rest — Guard (atc-symbol-varinfo-alistp typed-formals-rest).
    Returns
    terms — Type (true-listp terms).

    Definitions and Theorems

    Function: atc-gen-context-preamble-aux-aux

    (defun atc-gen-context-preamble-aux-aux
           (this-var-ptr typed-formals-rest)
     (declare
      (xargs
           :guard (and (symbolp this-var-ptr)
                       (atc-symbol-varinfo-alistp typed-formals-rest))))
     (let ((__function__ 'atc-gen-context-preamble-aux-aux))
      (declare (ignorable __function__))
      (b* (((when (endp typed-formals-rest)) nil)
           ((cons other-var other-info)
            (car typed-formals-rest)))
       (if
        (and (member-equal (type-kind (atc-var-info->type other-info))
                           '(:pointer :array))
             (not (atc-var-info->externalp other-info)))
        (cons
         (cons
             'object-disjointp
             (cons (cons 'value-pointer->designator
                         (cons this-var-ptr 'nil))
                   (cons (cons 'value-pointer->designator
                               (cons (add-suffix-to-fn other-var "-PTR")
                                     'nil))
                         'nil)))
         (atc-gen-context-preamble-aux-aux
              this-var-ptr (cdr typed-formals-rest)))
        (atc-gen-context-preamble-aux-aux this-var-ptr
                                          (cdr typed-formals-rest))))))

    Theorem: true-listp-of-atc-gen-context-preamble-aux-aux

    (defthm true-listp-of-atc-gen-context-preamble-aux-aux
      (b* ((terms (atc-gen-context-preamble-aux-aux
                       this-var-ptr typed-formals-rest)))
        (true-listp terms))
      :rule-classes :rewrite)