• Top
    • Documentation
    • Books
    • Boolean-reasoning
    • Projects
    • Debugging
    • Community
    • Std
    • Proof-automation
    • Macro-libraries
    • ACL2
    • Interfacing-tools
    • Hardware-verification
      • Gl
      • Esim
      • Vl2014
      • Sv
      • Fgl
      • Vwsim
      • Vl
        • Syntax
        • Loader
        • Warnings
        • Getting-started
        • Utilities
        • Printer
        • Kit
          • Vl-lint
          • Vl-server
          • Vl-gather
          • Vl-zip
            • Vl-zip-opts-p
            • Vl-zipfile
              • Vl-zipfile-fix
              • Vl-read-zip-header
              • Vl-maybe-zipfile
                • Vl-maybe-zipfile-fix
                • Vl-maybe-zipfile-equiv
                • Vl-maybe-zipfile-case
                  • Vl-maybe-zipfile-some
                  • Vl-maybe-zipfile-none
                  • Vl-maybe-zipfile-p
                • Vl-read-zip
                • Make-vl-zipfile
                • Vl-zipfile-equiv
                • Vl-zipfile-p
                • Change-vl-zipfile
                • Vl-zipfile->syntax
                • Vl-zipfile->filemap
                • Vl-zipfile->design
                • Vl-zipfile->defines
                • Vl-zipfile->name
                • Vl-zipfile->ltime
                • Vl-zipfile->date
                • Vl-write-zip
              • *vl-zip-help*
              • Vl-zip-top
              • Vl-zip-main
            • Vl-main
            • Split-plusargs
            • Vl-shell
            • Vl-json
          • Mlib
          • Transforms
        • X86isa
        • Svl
        • Rtl
      • Software-verification
      • Math
      • Testing-utilities
    • Vl-maybe-zipfile

    Vl-maybe-zipfile-case

    Case macro for the different kinds of vl-maybe-zipfile structures.

    This is an fty sum-type case macro, typically introduced by defflexsum or deftagsum. It allows you to safely check the type of a vl-maybe-zipfile structure, or to split into cases based on its type.

    Short Form

    In its short form, vl-maybe-zipfile-case allows you to safely check the type of a vl-maybe-zipfile structure. For example:

    (vl-maybe-zipfile-case x :none)

    can be used to determine whether x is a none instead of some other kind of vl-maybe-zipfile structure.

    Long Form

    In its longer form, vl-maybe-zipfile-case allows you to split into cases based on the kind of structure you are looking at. A typical example would be:

    (vl-maybe-zipfile-case x
      :none ...
      :some ...)

    It is also possible to consolidate ``uninteresting'' cases using :otherwise.

    For convenience, the case macro automatically binds the fields of x for you, as appropriate for each case. That is, in the :none case, you can use defprod-style foo.bar style accessors for x without having to explicitly add a none b* binder.