• Top
    • Documentation
    • Books
    • Boolean-reasoning
    • Projects
    • Debugging
    • Std
    • Community
    • Proof-automation
    • Macro-libraries
    • ACL2
    • Interfacing-tools
      • Io
      • Defttag
      • Sys-call
      • Save-exec
      • Quicklisp
      • Std/io
      • Oslib
      • Bridge
      • Clex
        • Example-lexer
        • Sin
          • Strin-p
          • Sin$c
            • Line-and-column-tracking
            • Sin$c-okp
            • Sin$c-init
            • Sin$c-nthcdr
            • Sin$c-cdr
            • Sin$c-firstn
            • Sin$c-count-charset
            • Sin$c-nth
            • Sin$c-matches-p
            • Sin$c-imatches-p
            • Sin$c-find
            • Sin$c-len
            • Sin$c-endp
            • Sin$c-car
            • Sin$corr
              • Sin$c-get-line
              • Sin$c-get-file
              • Sin$c-get-col
          • Matching-functions
          • Def-sin-progress
        • Tshell
        • Unsound-eval
        • Hacker
        • ACL2s-interface
        • Startup-banner
        • Command-line
      • Hardware-verification
      • Software-verification
      • Math
      • Testing-utilities
    • Sin$c

    Sin$corr

    Correspondence between the concrete sin$c stobj and its abstract strin-p representation.

    Signature
    (sin$corr sin$c x) → *

    Definitions and Theorems

    Function: sin$corr

    (defun sin$corr (sin$c x)
      (declare (xargs :stobjs (sin$c)))
      (declare (xargs :guard t))
      (let ((__function__ 'sin$corr))
        (declare (ignorable __function__))
        (and (sin$c-okp sin$c)
             (strin-p x)
             (b* (((strin x) x)
                  (chars (strin-left x))
                  (str (sin$c-str sin$c))
                  (pos (sin$c-pos sin$c))
                  (line (sin$c-line sin$c))
                  (col (sin$c-col sin$c))
                  (file (sin$c-file sin$c)))
               (and (equal chars (nthcdr pos (coerce str 'list)))
                    (equal x.line (+ 1 line))
                    (equal x.col col)
                    (equal x.file file))))))