Filtering...

header

books/projects/smtlink/trusted/z3-py/header
other
(in-package "SMT")
other
(include-book "xdoc/top" :dir :system)
other
(include-book "std/util/define" :dir :system)
other
(include-book "translator")
other
(defsection smt-header
  :parents (z3-py)
  :short "SMT-header contains string definitions for the header of a Z3 file."
  (local (in-theory (enable paragraphp wordp)))
  (define smt-head
    ((smt-conf smtlink-config-p))
    :returns (mv (head paragraphp)
      (import paragraphp))
    (b* ((smt-conf (mbe :logic (smtlink-config-fix smt-conf)
           :exec smt-conf)) ((smtlink-config c) smt-conf))
      (mv (list "from sys import path"
          #\

          "path.insert(1,""
          c.interface-dir
          "")"
          #\

          "path.insert(2,""
          c.pythonpath
          "")"
          #\

          "from "
          c.smt-module
          " import *"
          #\

          #\
)
        (list #\
 "_SMT_ = " c.smt-class "()" #\
)))))