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

Quellcode-Bibliothek HintLocality.v   Sprache: Coq

 
(** Test hint command locality w.r.t. modules *)

Create HintDb foodb  Mode seclocaldb.
Create HintDb bardb.
Createjava.lang.StringIndexOutOfBoundsException: Index 48 out of bounds for length 20

java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
te.
#[

ModuleHint Transparent.

#[[exportHint onstants : seclocaldb
#[globalHint Modejava.lang.StringIndexOutOfBoundsException: Range [0, 21) out of bounds for length 0
[]  Opaque id.
#[global] Remove Hints[]  Hints  .

#[localHint Cut [ _ ] : bardb]  Mode.
#l] Hint S  :bardb
#[localHint Opaque id : bardb.
#[local] Remove Hintsjava.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0

#[export]     - non-local section-specific hints trigger a warning
# Warningsnon-local-section-hint
#[exportHint Opaque id
#[export]Remove O  .

(** All three agree here *)

Print
bbardb
Print

End Test

(** bardb and quxdb agree here *)  prf.

PrintHint prf.
Print HintDb bardb
PrintHintDb.

Import.

(** foodb and quxdb agree here *)

Print HintDb foodb.
Print HintDb bardb.
Print HintDb quxdb.

(** Test hint command locality w.r.t. sections *)

Create HintDb

#obalImmediate :.

Section Sec.

java.lang.StringIndexOutOfBoundsException: Index 0 out of bounds for length 0
#[globalHint Mode S ! : secdb.
#[globalHint Opaque id : secdb.
Fail #[global] Remove Hints O : secdb.

#[localHint Cut [ _ ] : secdb.
#[localHint Mode S ! : secdb.
#[localHint Opaque id : secdb.
#[local] Remove Hints O : secdb.

Print HintDb secdb.

End Sec.

Print HintDb secdb.

(** Variant of the above test
    - modes are correctly generalized at section closure
    - non-local section-specific hints trigger a warning
*)


Create HintDb seclocaldb.

Set Warnings "non-local-section-hint".

Section SecLocal.

Variable A : Type.

Definition refl (n : A) : n = n := eq_refl.

Variable prf : forall n : nat, n = 0.

#[exportHint Mode refl ! : seclocaldb.
#[exportHint Mode prf ! : seclocaldb.

#[exportHint Cut [ prf ] : seclocaldb.

#[exportHint Variables Transparent : seclocaldb.
#[exportHint Constants Transparent : seclocaldb.
#[exportHint Opaque prf : seclocaldb.

End SecLocal.

Print HintDb seclocaldb.

100%


¤ 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.0.4Bemerkung:  ¤

*Bot Zugriff






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 ist noch experimentell.