• 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
        • Soft
        • Bv
        • Imp-language
        • Ethereum
        • Event-macros
        • Java
        • Riscv
        • Bitcoin
        • Zcash
        • Yul
        • ACL2-programming-language
        • Prime-fields
        • Json
          • Parser-output-to-values
          • Values
            • Value/valuelist/member/memberlist
            • Value-option
              • Value-option-fix
              • Value-option-case
              • Value-option-equiv
              • Value-option-some
                • Value-option-some->val
                • Make-value-option-some
                  • Change-value-option-some
                • Value-option-none
                • Value-optionp
              • Irr-value
              • Irr-member
            • Syntax
            • Patbind-pattern
            • Operations
          • 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
    • Value-option-some

    Make-value-option-some

    Basic constructor macro for value-option-some structures.

    Syntax
    (make-value-option-some [:val <val>]) 
    

    This is the usual way to construct value-option-some structures. It simply conses together a structure with the specified fields.

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

    Definition

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

    Macro: make-value-option-some

    (defmacro make-value-option-some (&rest args)
      (std::make-aggregate 'value-option-some
                           args '((:val))
                           'make-value-option-some
                           nil))

    Function: value-option-some

    (defun value-option-some (fty::val)
      (declare (xargs :guard (valuep fty::val)))
      (declare (xargs :guard t))
      (let ((__function__ 'value-option-some))
        (declare (ignorable __function__))
        (b* ((fty::val (mbe :logic (value-fix fty::val)
                            :exec fty::val)))
          fty::val)))