• 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
                • Jbinop
                • Jmethod
                • Jtype
                • Jfield
                • Jexprs
                • Jliteral
                • Junop
                • Jlocvar
                • Jcunit
                • Jaccess
                • Maybe-jexpr
                • Jparam
                • Jimport
                • Jcinitializer
                • Jresult
                • Jstatems+jblocks
                  • Jstatem
                    • Jstatem-case
                    • Jstatemp
                    • Jstatem-for
                      • Make-jstatem-for
                        • Jstatem-for->update
                        • Jstatem-for->test
                        • Jstatem-for->init
                        • Jstatem-for->body
                        • Change-jstatem-for
                      • Jstatem-equiv
                      • Jstatem-ifelse
                      • Jstatem-while
                      • Jstatem-if
                      • Jstatem-do
                      • Jstatem-throw
                      • Jstatem-return
                      • Jstatem-locvar
                      • Jstatem-kind
                      • Jstatem-expr
                      • Jstatem-continue
                      • Jstatem-break
                      • Jstatem-fix
                      • Jstatem-count
                    • Jblock
                  • Jexpr-get-field
                  • Jliteral-long-dec-nouscores
                  • Nat-to-dec-chars-theorems
                  • Jmethods-to-jcbody-elements
                  • Jclasses-to-jcbody-elements
                  • Jblock-locvar-final
                  • Jblock-locvar
                  • Jliteral-int-dec-nouscores
                  • Jfields-to-jcbody-elements
                  • Jblock-for
                  • Jblock-smethod
                  • Jblock-imethod
                  • Jblock-ifelse
                  • Jblock-asg-name
                  • Jparam-list->types
                  • Jparam-list->names
                  • Jexpr-lit-long-dec-nouscores
                  • Jexpr-lit-int-dec-nouscores
                  • Jexpr-literal-string
                  • Jexpr-literal-floating
                  • Jexpr-literal-character
                  • Jblock-while
                  • Jblock-method
                  • Jblock-if
                  • Jblock-expr
                  • Jblock-do
                  • Jblock-asg
                  • Jexpr-name-list
                  • Jblock-throw
                  • Jblock-return
                  • Jparam-list
                  • Jimport-list
                  • Jexpr-literal-true
                  • Jexpr-literal-null
                  • Jexpr-literal-false
                  • Jexpr-literal-1
                  • Jexpr-literal-0
                  • Jclass-list
                  • Jblock-continue
                  • Jtype-short
                  • Jtype-long
                  • Jtype-list
                  • Jtype-int
                  • Jtype-float
                  • Jtype-double
                  • Jtype-char
                  • Jtype-byte
                  • Jtype-boolean
                  • Jmethod-list
                  • Jliteral-list
                  • Jfield-list
                  • Jblock-list
                  • Jblock-break
                  • Jclasses+jcmembers
                • 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
                • 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
    • Jstatem-for

    Make-jstatem-for

    Basic constructor macro for jstatem-for structures.

    Syntax
    (make-jstatem-for [:init <init>] 
                      [:test <test>] 
                      [:update <update>] 
                      [:body <body>]) 
    

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

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

    Definition

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

    Macro: make-jstatem-for

    (defmacro make-jstatem-for (&rest args)
      (std::make-aggregate 'jstatem-for
                           args
                           '((:init) (:test) (:update) (:body))
                           'make-jstatem-for
                           nil))

    Function: jstatem-for

    (defun jstatem-for (init test update body)
      (declare (xargs :guard (and (jexprp init)
                                  (jexprp test)
                                  (jexprp update)
                                  (jblockp body))))
      (declare (xargs :guard t))
      (let ((__function__ 'jstatem-for))
        (declare (ignorable __function__))
        (b* ((init (mbe :logic (jexpr-fix init)
                        :exec init))
             (test (mbe :logic (jexpr-fix test)
                        :exec test))
             (update (mbe :logic (jexpr-fix update)
                          :exec update))
             (body (mbe :logic (jblock-fix body)
                        :exec body)))
          (cons :for (list init test update body)))))