• 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
          • G-cons
            • Make-g-cons
            • G-cons->cdr
            • G-cons->car
            • Change-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
  • Fgl-object

G-cons

FGL object constructor for conses.

This is a product type, introduced by defflexsum in support of fgl-object.

Fields
car — fgl-object
cdr — fgl-object

An object constructed as (g-cons car cdr) evaluates to the cons of the evaluations of FGL objects car and cdr. This could be represented instead as (g-apply 'cons car cdr), but the g-cons constructor saves memory by using only one cons in its representation, rather than four as would be used in the g-apply version.

Subtopics

Make-g-cons
Basic constructor macro for g-cons structures.
G-cons->cdr
Get the cdr field from a g-cons.
G-cons->car
Get the car field from a g-cons.
Change-g-cons
Modifying constructor for g-cons structures.