• 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
        • Bv
        • Imp-language
        • Event-macros
        • Java
          • Atj
            • Atj-implementation
              • Atj-types
              • Atj-java-primitive-array-model
              • Atj-java-abstract-syntax
              • Atj-input-processing
              • Atj-java-pretty-printer
              • Atj-code-generation
              • Atj-java-primitives
              • Atj-java-primitive-arrays
              • Atj-type-macros
              • Atj-java-syntax-operations
              • Atj-fn
              • Atj-library-extensions
              • Atj-java-input-types
              • Atj-test-structures
                • Atj-test-value
                • Atj-test
                  • Atj-test-fix
                  • Make-atj-test
                    • Atj-test-equiv
                    • Change-atj-test
                    • Atj-test->outputs
                    • Atj-test->inputs
                    • Atj-test->function
                    • Atj-test->name
                    • Atj-testp
                  • Atj-test-value-of-type
                  • Atj-test-values-of-types
                  • Atj-test-value-to-type
                  • Atj-test-values-to-types
                  • Atj-test-value-ACL2-list
                  • Atj-test-value-list
                  • Atj-test-list
                • Aij-notions
                • Atj-macro-definition
              • Atj-tutorial
            • Aij
            • Language
          • 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
    • Atj-test

    Make-atj-test

    Basic constructor macro for atj-test structures.

    Syntax
    (make-atj-test [:name <name>] 
                   [:function <function>] 
                   [:inputs <inputs>] 
                   [:outputs <outputs>]) 
    

    This is the usual way to construct atj-test structures. It simply conses together a structure with the specified fields.

    This macro generates a new atj-test structure from scratch. See also change-atj-test, which can "change" an existing structure, instead.

    Definition

    This is an ordinary make- macro introduced by fty::defprod.

    Macro: make-atj-test

    (defmacro make-atj-test (&rest args)
      (std::make-aggregate 'atj-test
                           args
                           '((:name)
                             (:function)
                             (:inputs)
                             (:outputs))
                           'make-atj-test
                           nil))

    Function: atj-test

    (defun atj-test (name function inputs outputs)
      (declare (xargs :guard (and (stringp name)
                                  (symbolp function)
                                  (atj-test-value-listp inputs)
                                  (atj-test-value-listp outputs))))
      (declare (xargs :guard t))
      (let ((__function__ 'atj-test))
        (declare (ignorable __function__))
        (b* ((name (mbe :logic (str-fix name) :exec name))
             (function (mbe :logic (acl2::symbol-fix function)
                            :exec function))
             (inputs (mbe :logic (atj-test-value-list-fix inputs)
                          :exec inputs))
             (outputs (mbe :logic (atj-test-value-list-fix outputs)
                           :exec outputs)))
          (list (cons 'name name)
                (cons 'function function)
                (cons 'inputs inputs)
                (cons 'outputs outputs)))))