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

Quelle  bug_14135.v   Sprache: Coq

 
Require Import Ltac2.Ltac2.

Set Warnings "+redundant-pattern".

Ltac2 good_1(o: 'a option) :=
  match o with
  | Some x => 1
  | None => 2
  end.

Ltac2 good_2(o: 'a option) :=
  match o with
  | Some x => 1
  | _ => 2
  end.

Fail Ltac2 redundant_constructor(o: 'a option) :=
  match o with
  | Some x => 1
  | None => 2
  | Some y => 3
  end.

Fail Ltac2 redundant_catch_all(o: 'a option) :=
  match o with
  | Some x => 1
  | None => 2
  | _ => 3
  end.

Messung V0.5
C=95 H=94 G=94

¤ Dauer der Verarbeitung: 0.2 Sekunden  ¤

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