Eine aufbereitete Darstellung der Quelle

 
     
 
 
Anforderungen  |   Konzepte  |   Entwurf  |   Entwicklung  |   Qualitätssicherung  |   Lebenszyklus  |   Steuerung
 
 
 
 

Benutzer

Quelle  inlining.v

  Sprache: Coq
 

Module Type T. Parameter Inline(50) t : TypeEnd T.

Module Type F (X : T). Parameter p : X.t. End F.

Module M. Definition t := nat. End M.

Set Inline Level 49.

Module G
  (X : F M [inline at level 49])
  (Y : F M [inline at level 50])
  (Z : F M) : F M [inline at level 50].

(* M.t should not be inlined in the type of X.p, because 49 < 50 *)
Goal X.p = X.p.
match goal with |- _ = _ :> M.t => idtac | _ => fail end.
Fail match goal with |- _ = _ :> nat => idtac | _ => fail end.
Abort.

(* M.t should be inlined in the type of Y.p, because 50 >= 50 *)
Goal Y.p = Y.p.
Fail match goal with |- _ = _ :> M.t => idtac | _ => fail end.
match goal with |- _ = _ :> nat => idtac | _ => fail end.
Abort.

(* M.t should not be inlined in the type of Z.p, because default level < 50 *)
Goal Z.p = Z.p.
match goal with |- _ = _ :> M.t => idtac | _ => fail end.
Fail match goal with |- _ = _ :> nat => idtac | _ => fail end.
Abort.

Definition p := X.p.
End G.

Module N. Definition p := 0End N.

Module P := G N N N.

(* M.t should be inlined in the type of P.p, because 50 >= 50 *)
Goal P.p = P.p.
Fail match goal with |- _ = _ :> M.t => idtac | _ => fail end.
match goal with |- _ = _ :> nat => idtac | _ => fail end.
Abort.

Set Inline Level 50.

Module G'
  (X : F M [inline at level 49])
  (Y : F M [inline at level 50])
  (Z : F M) : F M [inline at level 49].

(* M.t should be inlined in the type of Z.p, because default level >= 50 *)
Goal Z.p = Z.p.
Fail match goal with |- _ = _ :> M.t => idtac | _ => fail end.
match goal with |- _ = _ :> nat => idtac | _ => fail end.
Abort.

Definition p := X.p.
End G'.

Module P' := G' N N N.

(* M.t should not be inlined in the type of P'.p, because 49 < 50 *)
Goal P'.p = P'.p.
match goal with |- _ = _ :> M.t => idtac | _ => fail end.
Fail match goal with |- _ = _ :> nat => idtac | _ => fail end.
Abort.

Set Inline Level 50.

Module G''
  (X : F M [inline at level 49])
  (Y : F M [inline at level 50])
  (Z : F M) : F M.
Definition p := X.p.
End G''.

Module P'' := G'' N N N.

(* M.t should not be inlined in the type of P''.p, because default level >= 50 *)
Goal P''.p = P''.p.
Fail match goal with |- _ = _ :> M.t => idtac | _ => fail end.
match goal with |- _ = _ :> nat => idtac | _ => fail end.
Abort.

Set Inline Level 49.

Module G'''
  (X : F M [inline at level 49])
  (Y : F M [inline at level 50])
  (Z : F M) : F M.
Definition p := X.p.
End G'''.

Module P''' := G''' N N N.

(* M.t should not be inlined in the type of P'.p, because default level < 50 *)
Goal P'''.p = P'''.p.
match goal with |- _ = _ :> M.t => idtac | _ => fail end.
Fail match goal with |- _ = _ :> nat => idtac | _ => fail end.
Abort.

Messung V0.5 in Prozent
C=96 H=94 G=94

¤ Dauer der Verarbeitung: 0.10 Sekunden  (vorverarbeitet am  2026-06-04) ¤

*© Formatika GbR, Deutschland






Wurzel

Suchen

PVS Prover

Isabelle Prover

NIST Cobol Testsuite

Cephes Mathematical Library

Vienna Development Method

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.






                                                                                                                                                                                                                                                                                                                                                                                                     


Neuigkeiten

     Aktuelles
     Motto des Tages

Software

     Quellcodebibliothek
     Eigene Quellcodes
     Fremde Quellcodes
     Suchen

Aktivitäten

     Artikel über Sicherheit
     Anleitung zur Aktivierung von SSL

Muße

     Gedichte
     Musik
     Bilder

Jenseits des Üblichen ....
    

Besucherstatistik

Besucherstatistik