• 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
              • Abstract-syntax
                • Expression
                • Syntax-abstraction
                • Statement
                • Files
                  • Funparam-list->name-list
                  • Fundecl
                  • Var/const-sort
                  • Structdecl
                    • Structdecl-fix
                    • Structdecl-equiv
                    • Make-structdecl
                    • Structdeclp
                    • Structdecl->components
                    • Structdecl->recordp
                    • Structdecl->name
                    • Change-structdecl
                  • File
                  • Finalizer-option
                  • Topdecl
                  • Mappingdecl
                  • Fundecl-option
                  • Finalizer
                  • Funparam
                  • Fun-sort
                  • Programdecl
                  • Compdecl
                  • Var/const-sort-result
                  • Topdecl-list-result
                  • Programdecl-list-result
                  • Importdecl-list-result
                  • Funparam-list-result
                  • Finalizer-option-result
                  • Compdecl-list-result
                  • Topdecl-result
                  • Structdecl-result
                  • Programdecl-result
                  • Mappingdecl-result
                  • Importdecl-result
                  • Importdecl
                  • Funparam-result
                  • Fundecl-result
                  • Fun-sort-result
                  • Finalizer-result
                  • Compdecl-result
                  • File-result
                  • Funparam-list
                  • Programdecl-list
                  • Importdecl-list
                  • Compdecl-list
                  • Var/const-sort-list
                  • Topdecl-list
                  • Fundecl-list
                • Input-files
                • Identifiers
                • Types
                • Struct-init
                • Branch
                • Statements
                • Format-strings
                • Input-syntax-abstraction
                • Expressions
                • Output-files
                • Addresses
                • Literals
                • Characters
                • Expression-list
                • Statement-list
                • Output-syntax-abstraction
                • Struct-init-list
                • Branch-list
                • Annotations
                • Abstract-syntax-trees
                • Symbols
                • Keywords
                • Programs
                • Packages
                • Bit-sizes
              • 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
  • Files

Structdecl

Fixtype of struct and record declarations.

This is a product type introduced by fty::defprod.

Fields
name — identifier
components — compdecl-list
recordp — booleanp

A struct declaration consists of a name (identifier) and a list of struct component declarations. We do not require the list to be non-empty, at the abstract syntax level.

We also include a boolean flag that says whether the struct type is a record type or not. If the flag is set, we do not require, at the level of abstract syntax, that it has the required components for records; instead, this is enforced in the static semantics.

Subtopics

Structdecl-fix
Fixing function for structdecl structures.
Structdecl-equiv
Basic equivalence relation for structdecl structures.
Make-structdecl
Basic constructor macro for structdecl structures.
Structdeclp
Recognizer for structdecl structures.
Structdecl->components
Get the components field from a structdecl.
Structdecl->recordp
Get the recordp field from a structdecl.
Structdecl->name
Get the name field from a structdecl.
Change-structdecl
Modifying constructor for structdecl structures.