• Top
    • Documentation
    • Books
    • Boolean-reasoning
    • Projects
    • Debugging
    • Std
    • Proof-automation
    • Macro-libraries
    • ACL2
    • Interfacing-tools
    • Hardware-verification
      • Gl
      • Esim
      • Vl2014
      • Sv
      • Fgl
        • Fgl-rewrite-rules
        • Fgl-function-mode
        • Fgl-object
          • Fgl-object-eval
          • Fgl-object-p
          • G-map
          • G-ite
            • Make-g-ite
              • G-ite->then
              • G-ite->test
              • G-ite->else
              • Change-g-ite
            • G-cons
            • G-concrete
            • G-apply
            • G-integer
            • Fgl-object-equiv
            • G-boolean
            • G-var
            • Fgl-bitvector
            • Fgl-object-kind
            • Summarize-fgl-object
            • Fgl-make-isomorphic
            • Fgl-object-alist
            • Fgl-objectlist
            • Fgl-object-fix
            • Fgl-object-count
          • Fgl-solving
          • Fgl-handling-if-then-elses
          • Fgl-getting-bits-from-objects
          • Fgl-primitive-and-meta-rules
          • Fgl-counterexamples
          • Fgl-interpreter-overview
          • Fgl-correctness-of-binding-free-variables
          • Fgl-debugging
          • Fgl-testbenches
          • Def-fgl-boolean-constraint
          • Fgl-stack
          • Fgl-rewrite-tracing
          • Def-fgl-param-thm
          • Def-fgl-thm
          • Fgl-fast-alist-support
          • Fgl-array-support
          • Advanced-equivalence-checking-with-fgl
          • Fgl-fty-support
          • Fgl-internals
        • Vwsim
        • Vl
        • X86isa
        • Svl
        • Rtl
      • Software-verification
      • Math
      • Testing-utilities
    • G-ite

    Make-g-ite

    Basic constructor macro for g-ite structures.

    Syntax
    (make-g-ite [:test <test>] 
                [:then <then>] 
                [:else <else>]) 
    

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

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

    Definition

    This is an ordinary make- macro introduced by defprod.

    Macro: make-g-ite

    (defmacro make-g-ite (&rest args)
      (std::make-aggregate 'g-ite
                           args '((:test) (:then) (:else))
                           'make-g-ite
                           nil))

    Function: g-ite

    (defun g-ite (test then else)
      (declare (xargs :guard (and (fgl-object-p test)
                                  (fgl-object-p then)
                                  (fgl-object-p else))))
      (declare (xargs :guard t))
      (let ((__function__ 'g-ite))
        (declare (ignorable __function__))
        (b* ((test (mbe :logic (fgl-object-fix test)
                        :exec test))
             (then (mbe :logic (fgl-object-fix then)
                        :exec then))
             (else (mbe :logic (fgl-object-fix else)
                        :exec else)))
          (cons :g-ite (cons test (cons then else))))))