X-Git-Url: http://git.nguyen.vg/gitweb/?p=tatoo.git;a=blobdiff_plain;f=src%2Fstate.ml;fp=src%2Fstate.ml;h=0000000000000000000000000000000000000000;hp=bd1c72c3371828f99f96e855cb5de1d6d51f68f1;hb=30bc0bb1291426e5e26eb2dee1ffc41e4c246349;hpb=d9c0e4863807eaf472e875a4bad35cfefe985c95 diff --git a/src/state.ml b/src/state.ml deleted file mode 100644 index bd1c72c..0000000 --- a/src/state.ml +++ /dev/null @@ -1,40 +0,0 @@ -(***********************************************************************) -(* *) -(* TAToo *) -(* *) -(* Kim Nguyen, LRI UMR8623 *) -(* Université Paris-Sud & CNRS *) -(* *) -(* Copyright 2010-2012 Université Paris-Sud and Centre National de la *) -(* Recherche Scientifique. All rights reserved. This file is *) -(* distributed under the terms of the GNU Lesser General Public *) -(* License, with the special exception on linking described in file *) -(* ../LICENSE. *) -(* *) -(***********************************************************************) - -(* - Time-stamp: -*) - -open Format - -type t = int -let make = - let id = ref ~-1 in - fun () -> incr id; !id - -let compare = (-) - -let equal = (==) - -external hash : t -> int = "%identity" - -let print fmt x = fprintf fmt "q%a" Pretty.pp_subscript x - -let dump fmt x = print fmt x - -let check x = - if x < 0 then failwith (Printf.sprintf "State: Assertion %i < 0 failed" x) - -let dummy = max_int