Quellcodebibliothek Statistik Leitseite products/Sources/formale Sprachen/Roqc/test-suite/prerequisite/   (Beweissystem des Inria Version 9.1.0©)  Datei vom 15.8.2025 mit Größe 643 B image not shown  

Quelle  sint63.v   Sprache: Coq

 
Require Export PrimInt63.
Require Import Uint63Axioms.

Declare Scope sint63_scope.
Delimit Scope sint63_scope with sint63.
Definition printer (x : int_wrapper) : pos_neg_int63 :=
  if (ltb (int_wrap x) 4611686018427387904)%uint63 then (* 2^62 *)
    Pos (int_wrap x)
  else
    Neg (add (lxor (int_wrap x) max_int) 1)%uint63.
Definition parser (x : pos_neg_int63) : option int :=
  match x with
  | Pos p => if (ltb p 4611686018427387904)%uint63 then Some p else None
  | Neg n => if (leb n 4611686018427387904)%uint63
             then Some (lxor (sub n 1) max_int)%uint63 else None
  end.
Number Notation int parser printer : sint63_scope.

Messung V0.5
C=90 H=92 G=90

¤ Dauer der Verarbeitung: 0.9 Sekunden  (vorverarbeitet)  ¤

*© Formatika GbR, Deutschland






Wurzel

Suchen

Beweissystem der NASA

Beweissystem Isabelle

NIST Cobol Testsuite

Cephes Mathematical Library

Wiener Entwicklungsmethode

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 und die Messung sind noch experimentell.