library colibrilib.models — module VarModelbdd.Var: no key gets a variable (keys is empty, so of_key never returns). A model of partial: of_key may not return, it is the only way to get a variable from a key.
module VarModel1257use int.Int1258use mach.int.Int631259use set.Set1260use colibrilib.bdd.Key1261use mach.c.C as C12621263constant keys : set Key.t =1264Set.add (Key.Index (0:int63)) (Set.add (Key.Index (1:int63)) (Set.singleton (Key.Index (2:int63))))12651266function key_of_var (x: int63) : Key.t = Key.Index x1267function var_of_key (k: Key.t) : int63 =1268match k with Key.Index i -> i | _ -> (0: int63) end1269Valid (17ms) (colibri2)1270let partial of_key (k: Key.t) : int631271ensures { Set.mem k keys /\ result = var_of_key k }1272= C.c_assert false; absurd1273Valid (18ms) (colibri2)1274let to_key (x: int63) : Key.t1275requires { Set.mem (key_of_var x) keys }1276ensures { result = key_of_var x }1277= Key.Index x12781279clone colibrilib.bdd.Var {… begin (* cloned colibrilib.bdd.Var *) Valid (10ms) (colibri2) lemma Var.bij1 Valid (16ms) (colibri2) lemma Var.bij2 Valid (39ms) (colibri2) lemma Var.small_indexes let Var.index int63 : int63 let Var.var t int63 bool : int63 end } with1280constant keys = keys, function key_of_var = key_of_var,1281function var_of_key = var_of_key, val of_key = of_key, val to_key = to_key,1282lemma bij1, lemma bij2, lemma small_indexes1283end1284