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  

Quelle  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.
#[localHint 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 Mode prf ! : seclocaldb.

#[exportHint Cut [ prf ] : seclocaldb.

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

End SecLocal.

Print HintDb seclocaldb.

Messung V0.5
C=95 H=100 G=97

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