• Top
    • Documentation
    • Books
    • Boolean-reasoning
    • Projects
    • Debugging
    • Std
    • Community
    • Proof-automation
    • ACL2
      • Theories
      • Rule-classes
      • Proof-builder
      • Recursion-and-induction
      • Hons-and-memoization
      • Events
      • Parallelism
      • History
      • Programming
      • Operational-semantics
      • Real
      • Start-here
      • Debugging
      • Miscellaneous
      • Output-controls
      • Macros
        • Make-event
        • Defmacro
        • Untranslate-patterns
        • Tc
        • Trans*
        • Macro-aliases-table
        • Macro-args
        • Defabbrev
        • User-defined-functions-table
        • Trans
        • Untranslate-for-execution
        • Add-macro-fn
        • Check-vars-not-free
        • Safe-mode
        • Macro-libraries
          • B*
          • Defunc
          • Fty
          • Apt
          • Std/util
          • Defdata
          • Defrstobj
          • Seq
            • Seqw
            • Match-tree
            • Defrstobj
            • With-supporters
            • Def-partial-measure
            • Template-subst
            • Soft
            • Defthm-domain
            • Event-macros
            • Def-universal-equiv
            • Def-saved-obligs
            • With-supporters-after
            • Definec
            • Sig
            • Outer-local
            • Data-structures
          • Trans1
          • Defmacro-untouchable
          • Set-duplicate-keys-action
          • Add-macro-alias
          • Magic-macroexpand
          • Defmacroq
          • Trans!
          • Remove-macro-fn
          • Remove-macro-alias
          • Add-binop
          • Untrans-table
          • Trans*-
          • Remove-binop
          • Tcp
          • Tca
        • Mailing-lists
        • Interfacing-tools
      • Macro-libraries
        • B*
        • Defunc
        • Fty
        • Apt
        • Std/util
        • Defdata
        • Defrstobj
        • Seq
          • Seqw
          • Match-tree
          • Defrstobj
          • With-supporters
          • Def-partial-measure
          • Template-subst
          • Soft
          • Defthm-domain
          • Event-macros
          • Def-universal-equiv
          • Def-saved-obligs
          • With-supporters-after
          • Definec
          • Sig
          • Outer-local
          • Data-structures
        • Interfacing-tools
        • Hardware-verification
        • Software-verification
        • Math
        • Testing-utilities
      • Seq

      Seqw

      An alternative implementation of the Seq language which allows for warnings to be implicitly collected and stored in a list as your program executes.

      As background see seq; here we only describe the differences between Seqw and Seq.

      The difference is quite straightforward:

      • Whereas a Seq program has the form (seq <stream> ...), a Seqw program instead has one additional argument, (seqw <stream> <warnings> ...), where <warnings> is the name of a warnings structure (see below).
      • Whereas every Seq action returns (mv error val stream), each Seqw action instead returns (mv error val stream warnings), where warnings is the updated warnings structure.
      • Similarly, every Seqw program returns (mv error val stream warnings) instead of (mv error val stream).

      What is a warnings structure? When we use Seqw, we generally accumulate warnings into a list, so our actions just cons new warnings into this list when desired. But Seqw itself imposes no particular constraints on what a warnings structure is, and generally the way in which a warning is updated is determined by the actions of the program rather than by Seqw itself.

      For examples of using SEQW, see the file misc/seqw-examples.lsp.