opam-version: "2.0"
maintainer: "Francois.Bobot@cea.fr"
authors: [
  "François Bobot"
  "Jean-Christophe Filliâtre"
  "Claude Marché"
  "Guillaume Melquiond"
  "Andrei Paskevich"
]
homepage: "http://why3.lri.fr/"
license: "LGPL-2.1-only"
doc: ["http://why3.lri.fr/#documentation"]
tags: [
  "deductive"
  "program verification"
  "formal specification"
  "automated theorem prover"
  "interactive theorem prover"
]
build: [
  [
    "./configure"
    "--prefix"
    prefix
    "--sbindir=%{lib}%/why3/sbin"
    "--libexecdir=%{lib}%/why3/libexec"
    "--sysconfdir=%{lib}%/why3/etc"
    "--sharedstatedir=%{lib}%/why3/com"
    "--localstatedir=%{lib}%/why3/var"
    "--libdir=%{lib}%/why3/lib"
    "--includedir=%{lib}%/why3/include"
    "--datarootdir=%{lib}%/why3/share"
    "--disable-bench"
  ]
  [make "opt" "byte"]
  [make "stdlibdoc" "apidoc"] {with-doc}
]
depends: [
  "ocaml" {< "4.06.0"}
  "alt-ergo"
  "lablgtk"
  "conf-gtksourceview"
]
depopts: ["ocamlgraph" "coq"]
conflicts: [
  "coq" {< "8.3"}
  "coq" {>= "8.5"}
  "ocamlgraph" {< "1.8.2"}
]
install: [
  [make "install" "install-lib"]
  [make "DOCDIR=%{doc}%/why3" "install-doc"] {with-doc}
]
synopsis: "Why3 is a platform for deductive program verification."
description: """
It provides a rich language for specification and programming, called
WhyML, and relies on external theorem provers, both automated and
interactive, to discharge verification conditions. Why3 comes with a
standard library of logical theories (integer and real arithmetic,
Boolean operations, sets and maps, etc.) and basic programming data
structures (arrays, queues, hash tables, etc.). A user can write WhyML
programs directly and get correct-by-construction OCaml programs
through an automated extraction mechanism. WhyML is also used as an
intermediate language for the verification of C, Java, or Ada
programs.

Why3 is a complete reimplementation of the former Why platform. Among
the new features are: numerous extensions to the input language, a new
architecture for calling external provers, and a well-designed API,
allowing to use Why3 as a software library. An important emphasis is
put on modularity and genericity, giving the end user a possibility to
easily reuse Why3 formalizations or to add support for a new external
prover if wanted."""
url {
  src: "https://gforge.inria.fr/frs/download.php/33490/why3-0.83.tar.gz"
  checksum: "md5=35f99e5f64939e50ea57f641ba2073ec"
}
