• Top
    • Documentation
    • Books
    • Boolean-reasoning
    • Projects
    • Debugging
    • 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-lintconfig-p
            • Condcheck
            • Lint-warning-suppression
            • Lucid
            • Lvaluecheck
            • Vl-interfacelist-alwaysstyle
            • Truncation-warnings
            • Vl-modulelist-alwaysstyle
            • Skip-detection
              • Vl-ctxexprlist->exprs
              • Sd-keylist->indicies
              • Sd-keylist-find-skipped
              • Sd-problem
                • Sd-problem-fix
                • Sd-problem-p
                • Sd-problem-equiv
                • Make-sd-problem
                  • Change-sd-problem
                  • Sd-problem->priority
                  • Sd-problem->groupsize
                  • Sd-problem->ctx
                  • Sd-problem->type
                  • Sd-problem->key
                • Sd-key
                • Sd-patalist-compare
                • Sd-analyze-ctxexprs
                • Sd-keygen
                • Make-sd-patalist
                • Sd-analyze-modulelist
                • Sd-analyze-module-aux
                • Sd-analyze-module
                • Sd-pp-problem-long
                • Sd-problem-score
                • Sd-pp-problem-header
                • Sd-analyze-modulelist-aux
                • Sd-analyze-design
                • Sd-problem->
                • Sd-patalist
                • Sd-problemlist
                • Sd-pp-problem-brief
                • Sd-keylist
                • Sd-pp-problemlist-long
                • Sd-pp-problemlist-brief
                • Sd-natlist-linear-increments-p
                • Sd-keylist-linear-increments-p
              • Vl-lint-report
              • Vl-lintresult
              • Vl::vl-design-sv-use-set
              • Oddexpr-check
              • Leftright-check
              • Duplicate-detect
              • Selfassigns
              • *vl-lint-help*
              • Arith-compare-check
              • Dupeinst-check
              • Qmarksize-check
              • Lint-whole-file-suppression
              • Run-vl-lint-main
              • Logicassign
              • Run-vl-lint
              • Vl-print-certain-warnings
              • Duperhs-check
              • Vl-lint-top
              • Sd-filter-problems
              • Vl-modulelist-add-svbad-warnings
              • Vl-module-add-svbad-warnings
              • Check-case
              • Vl-lint-extra-actions
              • Drop-lint-stubs
              • Vl-lint-print-warnings
              • Drop-user-submodules
              • Check-namespace
              • Vl-lintconfig-loadconfig
              • Vl-lint-design->svex-modalist-wrapper
              • Vl-delete-sd-problems-for-modnames-aux
              • Vl-collect-new-names-from-orignames
              • Vl-lint-print-all-warnings
              • Vl-design-remove-unnecessary-modules
              • Vl-delete-sd-problems-for-modnames
              • Vl-always-check-style
              • Vl-vardecllist-svbad-warnings
              • Vl-vardecl-svbad-warnings
              • Vl-reportcard-remove-suppressed
              • Vl-reportcard-keep-suppressed
              • Vl-alwayslist-check-style
              • Vl-remove-nameless-descriptions
              • Vl-lint-apply-quiet
              • Vl-warninglist-remove-suppressed
              • Vl-warninglist-keep-suppressed
              • Vl-print-eliminated-descs
              • Vl-module-alwaysstyle
              • Vl-jp-reportcard-aux
              • Vl-interface-alwaysstyle
              • Vl-design-alwaysstyle
              • Vl-jp-description-locations
              • Vl-jp-reportcard
              • Vl-pp-stringlist-lines
              • Vl-jp-design-locations
              • Vl-datatype-svbad-p
              • Unpacked-range-check
              • Sd-problem-major-p
              • Vl-alwaysstyle
            • Vl-server
            • Vl-gather
            • Vl-zip
            • Vl-main
            • Split-plusargs
            • Vl-shell
            • Vl-json
          • Mlib
          • Transforms
        • X86isa
        • Svl
        • Rtl
      • Software-verification
      • Math
      • Testing-utilities
    • Sd-problem

    Make-sd-problem

    Basic constructor macro for sd-problem structures.

    Syntax
    (make-sd-problem [:type <type>] 
                     [:priority <priority>] 
                     [:groupsize <groupsize>] 
                     [:key <key>] 
                     [:ctx <ctx>]) 
    

    This is the usual way to construct sd-problem structures. It simply conses together a structure with the specified fields.

    This macro generates a new sd-problem structure from scratch. See also change-sd-problem, which can "change" an existing structure, instead.

    Definition

    This is an ordinary make- macro introduced by defprod.

    Macro: make-sd-problem

    (defmacro make-sd-problem (&rest args)
      (std::make-aggregate 'sd-problem
                           args
                           '((:type)
                             (:priority)
                             (:groupsize)
                             (:key)
                             (:ctx))
                           'make-sd-problem
                           nil))

    Function: sd-problem

    (defun sd-problem (type priority groupsize key ctx)
      (declare (xargs :guard (and (symbolp type)
                                  (natp priority)
                                  (natp groupsize)
                                  (sd-key-p key)
                                  (vl-context1-p ctx))))
      (declare (xargs :guard t))
      (let ((__function__ 'sd-problem))
        (declare (ignorable __function__))
        (b* ((type (mbe :logic (acl2::symbol-fix type)
                        :exec type))
             (priority (mbe :logic (nfix priority)
                            :exec priority))
             (groupsize (mbe :logic (nfix groupsize)
                             :exec groupsize))
             (key (mbe :logic (sd-key-fix key) :exec key))
             (ctx (mbe :logic (vl-context1-fix ctx)
                       :exec ctx)))
          (cons :sd-problem (cons (cons type priority)
                                  (cons groupsize (cons key ctx)))))))