products/sources/formale Sprachen/PVS/pvs-patches image not shown  

Quellcode-Bibliothek

© Kompilation durch diese Firma

[Weder Korrektheit noch Funktionsfähigkeit der Software werden zugesichert.]

Datei: patch-8.lisp   Sprache: Lisp

Original von: PVS©

(defmethod pvs-sxhash* ((e1 rational-expr) bindings)
   (declare (ignore bindings))
   (with-slots ((n1 number)) e1
     (sxhash n1)))

(defmethod translate-to-prove :around ((obj name-expr))
   (if (and (free-variables obj)(or *bound-variables* *bindings*))
       (call-next-method)
       (let ((hashed-value (gethash obj *translate-to-prove-hash*)))
     (or hashed-value
         (let ((result (call-next-method)))
           (setf (gethash obj *translate-to-prove-hash*)
             result)
           result)))))

(defmethod translate-to-prove :around ((obj binding-expr))
   (if (and (free-variables obj)(or *bound-variables* *bindings*))
       (call-next-method)
       (let ((hashed-value
          (gethash obj *translate-to-prove-hash*)))
     (or hashed-value
         (let ((result (call-next-method)))
           (setf (gethash obj *translate-to-prove-hash*)
             result)
           result)))))


¤ Dauer der Verarbeitung: 0.19 Sekunden  (vorverarbeitet)  ¤





Download des
Quellennavigators
Download des
sprechenden Kalenders

in der Quellcodebibliothek suchen




Haftungshinweis

Die Informationen auf dieser Webseite wurden nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit, noch Qualität der bereit gestellten Informationen zugesichert.


Bemerkung:

Die farbliche Syntaxdarstellung ist noch experimentell.


Bot Zugriff