(***********************************************************************) (* *) (* 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. *) (* *) (***********************************************************************) open Format include Hcons.PosInt let next = let id = ref ~-1 in fun () -> incr id; make !id let compare (a : t) (b : t) = (a :> int) - (b :> int) let print fmt (x : t) = fprintf fmt "q%a" Pretty.pp_subscript (x :> int) let dummy_state = make max_int