@ignore                                                                        
@ignore                                                                        
@ignore  This file is part of Frama-C.                                         
@ignore                                                                        
@ignore  Copyright (C) 2007-2010                                               
@ignore    CEA   (Commissariat  l'nergie atomique et aux nergies            
@ignore           alternatives)                                                
@ignore    INRIA (Institut National de Recherche en Informatique et en         
@ignore           Automatique)                                                 
@ignore                                                                        
@ignore  you can redistribute it and/or modify it under the terms of the GNU   
@ignore  Lesser General Public License as published by the Free Software       
@ignore  Foundation, version 2.1.                                              
@ignore                                                                        
@ignore  It is distributed in the hope that it will be useful,                 
@ignore  but WITHOUT ANY WARRANTY; without even the implied warranty of        
@ignore  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the         
@ignore  GNU Lesser General Public License for more details.                   
@ignore                                                                        
@ignore  See the GNU Lesser General Public License version v2.1                
@ignore  for more details (enclosed in the file licenses/LGPLv2.1).            
@ignore                                                                        
@ignore                                                                        


{2 Overview}

The WP plugin is dedicated to compute Weakest-Preconditions using 
different memory models.
It is organised as follow :

{3 Translation}

First of all, the C program elements and the ACSL properties have to be
translated into a common formalism. Because the final goal is to generate
files for the WHY tool, the {!module:Fol} module provide a representation for
First-Order-Logic compatible with WHY. The module {!module:Why_output} provide
functions to export this representation into WHY files.

The translation modules are :

- {!module:Types} : everything needed to handle C and logic types,

- {!module:Why_ops} :

- {!module:WpFol} :

- {!module:Translate} : translation of Cil expressions knowing basic operations
  from the memory model,

{3 Memory models}

- Memory models : {ul
  {- {!module:Mvar} : common part for variable substitution based models :
    {ul
    {- {!module:Model0} variable substitution, no indirections,}
    {- {!module:Model1} variable substitution, guarded alias,}
    }
  }
  {- {!module:Mmem} : common part for load/store based models :
    {ul
    {- {!module:Model2} load/store, but typed address expressions (no cast),}
    {- {!module:Lower_level} load/store, low level addressing.}
    }
  }
}

{3 Computation}

- {!module:Cil2cfg} : build the CFG keeping information about the structure,

- {!module:WpAnnot} : build a table indexed by CFG nodes and store annotations
either to prove or to use as hypotheses,

- {!module:Calculus} : compute WP 


