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

Quelle  qed-time.sh   Sprache: Shell

 
#!/usr/bin/env bash

set -ex

export COQBIN=$BIN
export PATH=$COQBIN:$PATH

cd misc/qed-time/

# This test checks that the Qed time includes the time of the replayed command

# The version of this test in output-modulo-time checks that each
# command gets 1 time line, but because output-modulo-time normalizes
# times to 0 it can't check that the replayed command is not ignored

rocq c -time file.v > out

last=$(tail -n 1 out)

last=${last#"Chars 98 - 102 [Qed.] "}
last=${last%" secs"*}

# sanity check: regex produces a float
[[ $last =~ [0-9]+"."[0-9]* ]]

test() {
    printf 'if %s <= 0.9:\n\texit (1)\n' "$1" | python3
}

# sanity checks: python works on the code we produce
if test 0.9; then exit 1; fi
test 1.
test 1.1

test "$last"

Messung V0.5
C=89 H=100 G=94

¤ Dauer der Verarbeitung: 0.11 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.