library colibrilib.bitwise_rules — module TermViewThe builtin of bv_sem.mlw and the arguments of a ground term, from the Dolmen builtin (sem, trusted)
module TermView153use option.Option154use list.List155use colibrilib.bdd.Node156use colibrilib.spec.Opt157use colibrilib.bv_sem.Sem158use colibrilib.bv_dolmen.Dolmen as D159use Term160
The Dolmen builtin and the arguments of a ground term without type arguments (Ground.sem). A ground term has the value of the interpretation of its builtin (Dolmen.of_builtin) in every model
val sem (g:ground) : option (D.builtin, list Node.t)165ensures { match result with166| Some (b, l) -> when_some (fun sb -> interprets g (sb, l)) (D.of_builtin b)167| None -> true end }168Valid (89ms) (colibri2)169let view (g:ground) : option (builtin, list Node.t)170ensures { when_some (interprets g) result }171= match sem g with172| None -> None173| Some (b, l) ->174match D.of_builtin b with175| None -> None176| Some sb -> Some (sb, l)177end178end179end180