12345678910111213141516171819202122232425262728293031323334353637383940(***********************************************************************)(* *)(* ocamlbuild *)(* *)(* Nicolas Pouillard, Berke Durak, projet Gallium, INRIA Rocquencourt *)(* *)(* Copyright 2007 Institut National de Recherche en Informatique et *)(* en Automatique. All rights reserved. This file is distributed *)(* under the terms of the GNU Library General Public License, with *)(* the special exception on linking described in file ../LICENSE. *)(* *)(***********************************************************************)(* Original author: Berke Durak *)(* Propositional formulas. *)type'at=Andof'atlist|Orof'atlist|Notof'at|Atomof'a|True|False;;letrecevalf=function|Andl->List.for_all(evalf)l|Orl->List.exists(evalf)l|Notx->not(evalfx)|Atoma->fa|True->true|False->false;;letreciterf=function|(Andl|Orl)->List.iter(iterf)l|Notx->iterfx|Atoma->fa|True|False->();;letrecmapf=function|Andl->And(List.map(mapf)l)|Orl->Or(List.map(mapf)l)|Notx->Not(mapfx)|Atoma->Atom(fa)|(True|False)asb->b;;