• Top
    • Documentation
    • Books
    • Boolean-reasoning
    • Projects
    • Debugging
    • Community
    • Std
    • Proof-automation
    • Macro-libraries
    • ACL2
    • Interfacing-tools
    • Hardware-verification
    • Software-verification
      • Kestrel-books
        • Crypto-hdwallet
        • Apt
        • Error-checking
        • Fty-extensions
        • Isar
        • Kestrel-utilities
        • Set
        • C
          • Syntax-for-tools
            • Formalized-subset
            • Mapping-to-language-definition
            • Input-files
            • Compilation-database
            • Printer
            • Output-files
            • Abstract-syntax-operations
            • Implementation-environments
            • Abstract-syntax
              • Abstract-syntax-trees
                • Expr
                  • Exprp
                  • Expr-case
                  • Expr-binary
                  • Expr-kind
                  • Expr-unary
                  • Expr-funcall
                  • Expr-equiv
                  • Expr-cond
                  • Expr-complit
                  • Expr-cast/sub-ambig
                  • Expr-cast/mul-ambig
                    • Make-expr-cast/mul-ambig
                      • Expr-cast/mul-ambig->type/arg1
                      • Expr-cast/mul-ambig->inc/dec
                      • Expr-cast/mul-ambig->arg/arg2
                      • Change-expr-cast/mul-ambig
                    • Expr-cast/logand-ambig
                    • Expr-cast/call-ambig
                    • Expr-cast/and-ambig
                    • Expr-cast/add-ambig
                    • Expr-arrsub
                    • Expr-ident
                    • Expr-alignof-ambig
                    • Expr-va-arg
                    • Expr-tycompat
                    • Expr-string
                    • Expr-offsetof
                    • Expr-memberp
                    • Expr-member
                    • Expr-gensel
                    • Expr-const
                    • Expr-comma
                    • Expr-cast
                    • Expr-alignof
                    • Expr-stmt
                    • Expr-sizeof-ambig
                    • Expr-sizeof
                    • Expr-paren
                    • Expr-label-addr
                    • Expr-extension
                    • Expr-fix
                    • Expr-count
                  • Type-spec
                  • Exprs/decls/stmts
                  • Binop
                  • Stmt
                  • Unop
                  • Amb-expr/tyname
                  • Dirdeclor
                  • Asm-stmt
                  • Dec/oct/hex-const
                  • Simple-escape
                  • Fsuffix
                  • Attrib
                  • Ident
                  • Amb-decl/stmt
                  • Dirabsdeclor
                  • Type-qual
                  • Decl-spec
                  • Fundef
                  • Struct-declon
                  • Asm-name-spec
                  • Amb-declor/absdeclor
                  • Struni-spec
                  • Param-declor
                  • Declor
                  • Stor-spec
                  • Transunit-ensemble
                  • Initdeclor
                  • Absdeclor
                  • Tyname
                  • Keyword-uscores
                  • Label
                  • Align-spec
                  • Expr-option
                  • Spec/qual
                  • Lsuffix
                  • Hex-frac-const
                  • Desiniter
                  • Param-declon
                  • Iconst
                  • Dirabsdeclor-option
                  • Dec-frac-const
                  • Dec-core-fconst
                  • Comp-stmt
                  • Extdecl
                  • Const-expr-option
                  • Amb?-declor/absdeclor
                  • Isuffix
                  • Hex-core-fconst
                  • Attrib-spec
                  • Struct-declor
                  • Escape
                  • Decl
                  • Amb?-expr/tyname
                  • Initer
                  • Ident-option
                  • Bin-expo
                  • Absdeclor-option
                  • Statassert
                  • Member-designor
                  • Initer-option
                  • Enum-spec
                  • Declor-option
                  • Const
                  • Block-item
                  • Hex-quad
                  • Eprefix
                  • Const-expr
                  • Oct-escape
                  • Inc/dec-op
                  • Fun-spec
                  • Dec-expo
                  • Cprefix-option
                  • Asm-name-spec-option
                  • Amb?-decl/stmt
                  • S-char
                  • Isuffix-option
                  • Genassoc
                  • Fsuffix-option
                  • Fconst
                  • Eprefix-option
                  • Dec-expo-option
                  • Cprefix
                  • C-char
                  • Type-spec-option
                  • Sign-option
                  • Sign
                  • Q-char
                  • Iconst-option
                  • H-char
                  • Fundef-option
                  • Asm-output
                  • Asm-input
                  • Designor
                  • Const-option
                  • Usuffix
                  • Univ-char-name
                  • Hprefix
                  • Enumer
                  • Attrib-name
                  • Transunit
                  • Asm-qual
                  • Typequal/attribspec
                  • Stringlit
                  • Dec-expo-prefix
                  • Bin-expo-prefix
                  • Header-name
                  • Cconst
                  • Expr/tyname
                  • Decl/stmt
                  • Declor/absdeclor
                  • Asm-clobber
                  • Typequal/attribspec-list
                  • Decl-spec-list
                  • Stringlit-list
                  • Spec/qual-list
                  • Inc/dec-op-list
                  • Desiniter-list
                  • Attrib-spec-list
                  • S-char-list
                  • Q-char-list
                  • Param-declon-list
                  • H-char-list
                  • Decl-list
                  • C-char-list
                  • Typequal/attribspec-list-list
                  • Struct-declor-list
                  • Struct-declon-list
                  • Initdeclor-list
                  • Genassoc-list
                  • Extdecl-list
                  • Block-item-list
                  • Enumer-list
                  • Ident-list
                  • Filepath-transunit-map
                  • Expr-list
                  • Asm-qual-list
                  • Asm-output-list
                  • Asm-input-list
                  • Asm-clobber-list
                  • Type-spec-list
                  • Stor-spec-list
                  • Ident-set
                  • Ident-option-set
                  • Ident-list-list
                  • Eprefix-option-list
                  • Designor-list
                  • Attrib-list
                • Abstract-syntax-irrelevants
                • Type-specifier-lists
                • Ascii-identifiers
                • Abstraction-mapping
                • Standard
                • Storage-specifier-lists
                • Code-ensembles
                • Purity
                • Make-self-code-ensemble
              • Concrete-syntax
              • Disambiguation
              • Validation
              • Gcc-builtins
              • Preprocessing
              • Parsing
            • Atc
            • Transformation-tools
            • Language
            • Representation
            • Insertion-sort
            • Pack
          • Soft
          • Bv
          • Imp-language
          • Ethereum
          • Event-macros
          • Java
          • Riscv
          • Bitcoin
          • Zcash
          • Yul
          • ACL2-programming-language
          • Prime-fields
          • Json
          • Syntheto
          • File-io-light
          • Cryptography
          • Number-theory
          • Axe
          • Lists-light
          • Builtins
          • Solidity
          • Helpers
          • Htclient
          • Typed-lists-light
          • Arithmetic-light
        • X86isa
        • Axe
        • Execloader
      • Math
      • Testing-utilities
    • Expr-cast/mul-ambig

    Make-expr-cast/mul-ambig

    Basic constructor macro for expr-cast/mul-ambig structures.

    Syntax
    (make-expr-cast/mul-ambig [:type/arg1 <type/arg1>] 
                              [:inc/dec <inc/dec>] 
                              [:arg/arg2 <arg/arg2>]) 
    

    This is the usual way to construct expr-cast/mul-ambig structures. It simply conses together a structure with the specified fields.

    This macro generates a new expr-cast/mul-ambig structure from scratch. See also change-expr-cast/mul-ambig, which can "change" an existing structure, instead.

    Definition

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

    Macro: make-expr-cast/mul-ambig

    (defmacro make-expr-cast/mul-ambig (&rest args)
      (std::make-aggregate 'expr-cast/mul-ambig
                           args
                           '((:type/arg1) (:inc/dec) (:arg/arg2))
                           'make-expr-cast/mul-ambig
                           nil))

    Function: expr-cast/mul-ambig

    (defun expr-cast/mul-ambig (type/arg1 inc/dec arg/arg2)
     (declare (xargs :guard (and (amb-expr/tyname-p type/arg1)
                                 (inc/dec-op-listp inc/dec)
                                 (exprp arg/arg2))))
     (declare (xargs :guard t))
     (b* ((type/arg1 (mbe :logic (amb-expr/tyname-fix type/arg1)
                          :exec type/arg1))
          (inc/dec (mbe :logic (inc/dec-op-list-fix inc/dec)
                        :exec inc/dec))
          (arg/arg2 (mbe :logic (expr-fix arg/arg2)
                         :exec arg/arg2)))
       (cons :cast/mul-ambig (cons type/arg1 (cons inc/dec arg/arg2)))))