summaryrefslogtreecommitdiff
path: root/test/smt/exception_3.unsat.sail
blob: b0dd37dbfb128ad613628ddf485fccf1c2bb6b13 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
default Order dec

$include <vector_dec.sail>

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

register R : bool

$property
function prop((): unit) -> bool = {
  try {
    if R then {
       throw(E_bool(true))
    } else {
       return(true);
       false
    }
  } catch {
    E_bool(b) => b,
    E_unit() => false
  }
}