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.
Create HintDb bardb.
Create HintDb quxdb.

#[globalHint Immediate O : foodb.
#[globalHint Immediate O : bardb.
#[globalHint Immediate O : quxdb.

Module Test.

#[globalHint Cut [ _ ] : foodb.
#[globalHint Mode S ! : foodb.
#[globalHint Opaque id : foodb.
#[global] Remove Hints O : foodb.

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

#[exportHint Cut [ _ ] : quxdb.
#[exportHint Mode S ! : quxdb.
#[exportHint Opaque id : quxdb.
#[export] Remove Hints O : quxdb.

(** All three agree here *)

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

End Test.

(** bardb and quxdb agree here *)

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

Import Test.

(** foodb and quxdb agree here *)

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

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

Create HintDb secdb.

#[globalHint Immediate O : secdb.

Section Sec.

#[globalHint Cut [ _ ] : secdb.
#[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 prf ! : seclocaldbjava.lang.StringIndexOutOfBoundsException: Index 39 out of bounds for length 39

[]Hint[# O:bardb

#[export]  Variables : seclocaldb
# Transparent.
#[exportHint Opaque prf : seclocaldbglobalHint Mode 

End SecLocal.

java.lang.StringIndexOutOfBoundsException: Range [0, 5) out of bounds for length 0

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

*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.