• Top
    • Documentation
    • Books
    • Boolean-reasoning
    • Projects
    • Debugging
    • 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
        • Soft
        • C
          • Syntax-for-tools
            • Disambiguator
            • Abstract-syntax
            • Parser
            • Validator
            • Printer
            • Formalized-subset
            • Mapping-to-language-definition
            • Input-files
            • Defpred
            • Output-files
            • Abstract-syntax-operations
            • Validation-information
            • Implementation-environments
              • Ienv
                • Ienvp
                • Ienv-fix
                • Make-ienv
                • Ienv->short-bytes
                • Ienv->llong-bytes
                • Ienv-equiv
                • Ienv->long-bytes
                • Ienv->int-bytes
                • Ienv->plain-char-signedp
                • Change-ienv
                • Ushort-rangep
                • Ullong-rangep
                • Sshort-rangep
                • Sllong-rangep
                • Ulong-rangep
                • Uint-rangep
                • Slong-rangep
                • Sint-rangep
                • Ushort-max
                • Ulong-max
                • Ullong-max
                • Uint-max
                • Uchar-rangep
                • Sshort-min
                • Sllong-min
                • Schar-rangep
                • Char-min
                • Char-max
                • Sshort-max
                • Slong-min
                • Slong-max
                • Sllong-max
                • Sint-min
                • Sint-max
                • Uchar-max
                • Schar-min
                • Schar-max
                • Ienv-default
              • Concrete-syntax
              • Unambiguity
              • Ascii-identifiers
              • Preprocessing
              • Abstraction-mapping
            • Atc
            • Language
            • Representation
            • Transformation-tools
            • Insertion-sort
            • Pack
          • Bv
          • Imp-language
          • Event-macros
          • Java
          • Bitcoin
          • Ethereum
          • Yul
          • Zcash
          • ACL2-programming-language
          • Prime-fields
          • Json
          • Syntheto
          • File-io-light
          • Cryptography
          • Number-theory
          • Lists-light
          • Axe
          • Builtins
          • Solidity
          • Helpers
          • Htclient
          • Typed-lists-light
          • Arithmetic-light
        • X86isa
        • Axe
        • Execloader
      • Math
      • Testing-utilities
    • Ienv

    Change-ienv

    Modifying constructor for ienv structures.

    Syntax
    (change-ienv x 
                 [:short-bytes <short-bytes>] 
                 [:int-bytes <int-bytes>] 
                 [:long-bytes <long-bytes>] 
                 [:llong-bytes <llong-bytes>] 
                 [:plain-char-signedp <plain-char-signedp>]) 
    

    This is an often useful alternative to make-ienv.

    We construct a new ienv structure that is a copy of x, except that you can explicitly change some particular fields. Any fields you don't mention just keep their values from x.

    Definition

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

    Macro: change-ienv

    (defmacro change-ienv (x &rest args)
      (std::change-aggregate
           'ienv
           x args
           '((:short-bytes . ienv->short-bytes)
             (:int-bytes . ienv->int-bytes)
             (:long-bytes . ienv->long-bytes)
             (:llong-bytes . ienv->llong-bytes)
             (:plain-char-signedp . ienv->plain-char-signedp))
           'change-ienv
           'nil))