• Top
    • Documentation
    • Books
    • Boolean-reasoning
    • Projects
    • Debugging
    • Std
    • Proof-automation
      • Gl
      • Witness-cp
      • Ccg
      • Install-not-normalized
      • Rewrite$
      • Fgl
        • Fgl-rewrite-rules
        • Fgl-function-mode
        • Fgl-object
          • Fgl-object-eval
          • Fgl-object-p
          • G-map
            • Make-g-map
              • G-map->alist
              • G-map->tag
              • Change-g-map
            • 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
        • Removable-runes
        • Efficiency
        • Rewrite-bounds
        • Bash
        • Def-dag-measure
        • Bdd
        • Remove-hyps
        • Contextual-rewriting
        • Simp
        • Rewrite$-hyps
        • Bash-term-to-dnf
        • Use-trivial-ancestors-check
        • Minimal-runes
        • Clause-processor-tools
        • Fn-is-body
        • Without-subsumption
        • Rewrite-equiv-hint
        • Def-bounds
        • Rewrite$-context
        • Try-gl-concls
        • Hint-utils
      • Macro-libraries
      • ACL2
      • Interfacing-tools
      • Hardware-verification
      • Software-verification
      • Math
      • Testing-utilities
    • G-map

    Make-g-map

    Basic constructor macro for g-map structures.

    Syntax
    (make-g-map [:tag <tag>] 
                [:alist <alist>]) 
    

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

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

    Definition

    This is an ordinary make- macro introduced by defprod.

    Macro: make-g-map

    (defmacro make-g-map (&rest args)
      (std::make-aggregate 'g-map
                           args '((:tag) (:alist))
                           'make-g-map
                           nil))

    Function: g-map

    (defun g-map (tag alist)
      (declare (xargs :guard (and (g-map-tag-p tag)
                                  (fgl-object-alist-p alist))))
      (declare (xargs :guard t))
      (let ((__function__ 'g-map))
        (declare (ignorable __function__))
        (b* ((tag (mbe :logic (g-map-tag-fix tag)
                       :exec tag))
             (alist (mbe :logic (fgl-object-alist-fix alist)
                         :exec alist)))
          (cons tag alist))))