Closed shym closed 1 year ago
Given the following source:
type 'a t (*@ mutable model value : 'a list *) val make : 'a -> 'a t (*@ t = make a requires true ensures t.value = t.value *)
ortac qcheck-stm foo.mli "make 42" "int t" will accept to generate the following broken code:
ortac qcheck-stm foo.mli "make 42" "int t"
let init_state = let a_1 = 42 in { value = (t_1.value) }
This might be making the case for a call to subst_term with None for both old and new.
subst_term
None
old
new
Given the following source:
ortac qcheck-stm foo.mli "make 42" "int t"
will accept to generate the following broken code:This might be making the case for a call to
subst_term
withNone
for bothold
andnew
.