Common — library colibrilib.bitwise_rules — module TermView

The builtin of bv_sem.mlw and the arguments of a ground term, from the Dolmen builtin (sem, trusted)

153
module TermView
154
use option.Option
155
use list.List
156
use colibrilib.bdd.Node
157
use colibrilib.spec.Opt
158
use colibrilib.bv_sem.Sem
159
use colibrilib.bv_dolmen.Dolmen as D
160
use Term

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

165
val
sem
(g:ground) : option (D.builtin, list Node.t)
166
ensures { match result with
167
| Some (b, l) -> when_some (fun sb -> interprets g (sb, l)) (D.of_builtin b)
168
| None -> true end }
169
Valid (89ms) (colibri2)
170
let
view
(g:ground) : option (builtin, list Node.t)
171
ensures { when_some (interprets g) result }
172
= match sem g with
173
| None -> None
174
| Some (b, l) ->
175
match D.of_builtin b with
176
| None -> None
177
| Some sb -> Some (sb, l)
178
end
179
end
180
end