pgm_wp.mli 2.06 KB
Newer Older
Jean-Christophe Filliâtre's avatar
headers  
Jean-Christophe Filliâtre committed
1 2
(**************************************************************************)
(*                                                                        *)
3
(*  Copyright (C) 2010-2011                                               *)
4 5 6
(*    François Bobot                                                      *)
(*    Jean-Christophe Filliâtre                                           *)
(*    Claude Marché                                                       *)
Jean-Christophe Filliâtre's avatar
headers  
Jean-Christophe Filliâtre committed
7 8 9 10 11 12 13 14 15 16 17 18
(*    Andrei Paskevich                                                    *)
(*                                                                        *)
(*  This software is free software; you can redistribute it and/or        *)
(*  modify it under the terms of the GNU Library General Public           *)
(*  License version 2.1, with the special exception on linking            *)
(*  described in file LICENSE.                                            *)
(*                                                                        *)
(*  This software is distributed in the hope that it will be useful,      *)
(*  but WITHOUT ANY WARRANTY; without even the implied warranty of        *)
(*  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.                  *)
(*                                                                        *)
(**************************************************************************)
19

20
open Why3
21
open Term
22

23
val debug : Debug.flag
24

Jean-Christophe Filliâtre's avatar
Jean-Christophe Filliâtre committed
25 26 27 28
val decl : Pgm_module.uc -> Pgm_ttree.decl -> Pgm_module.uc
  (** weakest preconditions: takes a module (under construction) as argument,
      and a program declaration, and adds the verification conditions for that
      declaration as goals (in the logic theory contained in the module). *)
29 30

val declare_global_regions : Pgm_types.T.pvsymbol -> unit
31 32 33 34

val declare_mutable_field : Ty.tysymbol -> int -> int -> unit
  (* [declare_mutable_field ts i j] indicates that region [i] in
     [ts] args correspond to the mutable field [j] of [ts] *)
35 36 37 38

val default_variant : lsymbol -> lsymbol -> term -> term -> term
  (* [default_variant le lt phi phi0] = 0 <= phi0 and phi < phi0 *)