summaryrefslogtreecommitdiff
path: root/test/smt/exception.unsat.sail
blob: cd9f64d8205fb1c6bb7250f4d8084596bef174bd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
default Order dec

$include <vector_dec.sail>

union exception = {
  E_bool : bool,
  E_unit : unit
}

$property
function prop((): unit) -> bool = {
  try {
    throw(E_bool(true))
  } catch {
    E_bool(b) => b,
    E_unit() => false
  }
}