• Top
    • Documentation
    • Books
    • Boolean-reasoning
    • Projects
      • Apt
      • Zfc
      • Acre
      • Milawa
      • Smtlink
      • Abnf
      • Vwsim
      • Isar
      • Wp-gen
      • Dimacs-reader
      • Pfcs
      • Legacy-defrstobj
      • Proof-checker-array
      • Soft
      • C
      • Farray
      • Rp-rewriter
      • Instant-runoff-voting
      • Imp-language
      • Sidekick
      • Leftist-trees
      • Java
      • Riscv
      • Taspi
      • Bitcoin
      • Des
      • Ethereum
      • X86isa
      • Sha-2
      • Yul
      • Zcash
      • Proof-checker-itp13
      • Regex
      • ACL2-programming-language
      • Json
      • Jfkr
      • Equational
      • Cryptography
      • Poseidon
      • Where-do-i-place-my-book
      • Axe
      • Aleo
        • Aleobft
        • Aleovm
        • Leo
          • Grammar
          • Early-version
            • Json2ast
            • Testing
            • Definition
              • Flattening
                • Flatten-statements/branches
                • Simplify-flattened-if
                • Flatten-expression
                • Fenv-option
                • Flatten-fundecl
                • Fenv-const-add
                • Fenv
                  • Fenv-fix
                  • Fenvp
                  • Fenv-equiv
                  • Make-fenv
                    • Fenv->constants
                    • Change-fenv
                    • Fenv->curve
                  • Fenv-const-lookup
                  • Init-fenv
                  • Const-fenv
                • Abstract-syntax
                • Dynamic-semantics
                • Compilation
                • Static-semantics
                • Concrete-syntax
        • Bigmems
        • Builtins
        • Execloader
        • Solidity
        • Paco
        • Concurrent-programs
        • Bls12-377-curves
      • Debugging
      • Community
      • Std
      • Proof-automation
      • Macro-libraries
      • ACL2
      • Interfacing-tools
      • Hardware-verification
      • Software-verification
      • Math
      • Testing-utilities
    • Fenv

    Make-fenv

    Basic constructor macro for fenv structures.

    Syntax
    (make-fenv [:constants <constants>] 
               [:curve <curve>]) 
    

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

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

    Definition

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

    Macro: make-fenv

    (defmacro make-fenv (&rest args)
      (std::make-aggregate 'fenv
                           args '((:constants) (:curve))
                           'make-fenv
                           nil))

    Function: fenv

    (defun fenv (constants curve)
      (declare (xargs :guard (and (const-fenvp constants)
                                  (curvep curve))))
      (declare (xargs :guard t))
      (let ((__function__ 'fenv))
        (declare (ignorable __function__))
        (b* ((constants (mbe :logic (const-fenv-fix constants)
                             :exec constants))
             (curve (mbe :logic (curve-fix curve)
                         :exec curve)))
          (cons :fenv (list (cons 'constants constants)
                            (cons 'curve curve))))))