summaryrefslogtreecommitdiff
path: root/src/specialize.ml
diff options
context:
space:
mode:
authorAlasdair Armstrong2019-04-30 19:35:43 +0100
committerAlasdair Armstrong2019-04-30 19:41:14 +0100
commit58d46e240315abb684823812ff1b2a9684653e5d (patch)
tree5291f11c6dfd6b960788437df5e671981da21360 /src/specialize.ml
parent00d7ee1d3ef2a7cf6835c101aba922749f657963 (diff)
SMT: Allow custom queries
As an example: $counterexample :query exist match_failure function prop(xs: bits(4)) -> unit = { match xs { _ : bits(3) @ 0b0 => () } } Will return Solver found counterexample: ok xs -> 0x1 as we are asking for an input such that a match failure occurs, meanwhile $counterexample :query ~(exist match_failure) function prop(xs: bits(4)) -> unit = { match xs { _ : bits(3) @ 0b0 => () } } will return 0x0 as we are asking for an input such that no match failure occurs. Note that we can now support properties for non-boolean functions by not including the return event in the query.
Diffstat (limited to 'src/specialize.ml')
0 files changed, 0 insertions, 0 deletions