char Cyc_Tcenv_throw_annot(void *t) {
  struct Cyc_List_List *x = ({ Cyc_Tcenv_fn_throw_annot(t); });
  if (x == 0)
    return '\000';
  else {
    if (({ Cyc_Absyn_is_nothrow(x); }))
      return '\001';
    else {
      if (({ Cyc_Absyn_is_throwsany(x); }))
        return '\003';
      else {
        return '\002';
      }
    }
  }
}


x86 assembly (clang, -O0):
<Cyc_Tcenv_throw_annot>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
mov    %rdi,-0x10(%rbp)
mov    -0x10(%rbp),%rdi
mov    $0x0,%al
call   1030 <Cyc_Tcenv_fn_throw_annot@plt>
mov    %eax,-0x1c(%rbp)
movslq -0x1c(%rbp),%rax
mov    %rax,-0x18(%rbp)
cmpq   $0x0,-0x18(%rbp)
jne    1166 <Cyc_Tcenv_throw_annot+0x36>
movb   $0x0,-0x1(%rbp)
jmp    11ac <Cyc_Tcenv_throw_annot+0x7c>
mov    -0x18(%rbp),%rdi
mov    $0x0,%al
call   1050 <Cyc_Absyn_is_nothrow@plt>
mov    %eax,-0x20(%rbp)
cmpl   $0x0,-0x20(%rbp)
je     1187 <Cyc_Tcenv_throw_annot+0x57>
movb   $0x1,-0x1(%rbp)
jmp    11ac <Cyc_Tcenv_throw_annot+0x7c>
mov    -0x18(%rbp),%rdi
mov    $0x0,%al
call   1040 <Cyc_Absyn_is_throwsany@plt>
mov    %eax,-0x24(%rbp)
cmpl   $0x0,-0x24(%rbp)
je     11a8 <Cyc_Tcenv_throw_annot+0x78>
movb   $0x3,-0x1(%rbp)
jmp    11ac <Cyc_Tcenv_throw_annot+0x7c>
movb   $0x2,-0x1(%rbp)
movsbl -0x1(%rbp),%eax
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<Cyc_Tcenv_throw_annot>:
push   %r14
push   %rbx
push   %rax
xor    %ebx,%ebx
xor    %eax,%eax
call   1030 <Cyc_Tcenv_fn_throw_annot@plt>
test   %eax,%eax
je     1166 <Cyc_Tcenv_throw_annot+0x36>
movslq %eax,%r14
mov    %r14,%rdi
xor    %eax,%eax
call   1050 <Cyc_Absyn_is_nothrow@plt>
mov    $0x1,%bl
test   %eax,%eax
jne    1166 <Cyc_Tcenv_throw_annot+0x36>
mov    %r14,%rdi
xor    %eax,%eax
call   1040 <Cyc_Absyn_is_throwsany@plt>
cmp    $0x1,%eax
mov    $0x3,%bl
sbb    $0x0,%bl
mov    %ebx,%eax
add    $0x8,%rsp
pop    %rbx
pop    %r14
ret

LLVM IR (-O0):
%struct.Cyc_List_List = type opaque
define signext i8 @Cyc_Tcenv_throw_annot(i8* %0) {
%2 = alloca i8
%3 = alloca i8*
%4 = alloca %struct.Cyc_List_List*
%5 = alloca i32
%6 = alloca i32
%7 = alloca i32
store i8* %0, i8** %3
%8 = load i8*, i8** %3
%9 = call i32 (i8*, ...) bitcast (i32 (...)* @Cyc_Tcenv_fn_throw_annot to i32 (i8*, ...)*)(i8* %8)
store i32 %9, i32* %5
%10 = load i32, i32* %5
%11 = sext i32 %10 to i64
%12 = inttoptr i64 %11 to %struct.Cyc_List_List*
store %struct.Cyc_List_List* %12, %struct.Cyc_List_List** %4
%13 = load %struct.Cyc_List_List*, %struct.Cyc_List_List** %4
%14 = icmp eq %struct.Cyc_List_List* %13, null
br i1 %14, label %15, label %16
15: ; preds = %1
store i8 0, i8* %2
br label %29
16: ; preds = %1
%17 = load %struct.Cyc_List_List*, %struct.Cyc_List_List** %4
%18 = call i32 (%struct.Cyc_List_List*, ...) bitcast (i32 (...)* @Cyc_Absyn_is_nothrow to i32 (%struct.Cyc_List_List*, ...)*)(%struct.Cyc_List_List* %17)
store i32 %18, i32* %6
%19 = load i32, i32* %6
%20 = icmp ne i32 %19, 0
br i1 %20, label %21, label %22
21: ; preds = %16
store i8 1, i8* %2
br label %29
22: ; preds = %16
%23 = load %struct.Cyc_List_List*, %struct.Cyc_List_List** %4
%24 = call i32 (%struct.Cyc_List_List*, ...) bitcast (i32 (...)* @Cyc_Absyn_is_throwsany to i32 (%struct.Cyc_List_List*, ...)*)(%struct.Cyc_List_List* %23)
store i32 %24, i32* %7
%25 = load i32, i32* %7
%26 = icmp ne i32 %25, 0
br i1 %26, label %27, label %28
27: ; preds = %22
store i8 3, i8* %2
br label %29
28: ; preds = %22
store i8 2, i8* %2
br label %29
29: ; preds = %28, %27, %21, %15
%30 = load i8, i8* %2
ret i8 %30
}

LLVM IR (-O2):
%struct.Cyc_List_List = type opaque
define signext i8 @Cyc_Tcenv_throw_annot(i8* %0) {
%2 = tail call i32 (i8*, ...) bitcast (i32 (...)* @Cyc_Tcenv_fn_throw_annot to i32 (i8*, ...)*)(i8* %0)
%3 = sext i32 %2 to i64
%4 = inttoptr i64 %3 to %struct.Cyc_List_List*
%5 = icmp eq i32 %2, 0
br i1 %5, label %13, label %6
6: ; preds = %1
%7 = tail call i32 (%struct.Cyc_List_List*, ...) bitcast (i32 (...)* @Cyc_Absyn_is_nothrow to i32 (%struct.Cyc_List_List*, ...)*)(%struct.Cyc_List_List* %4)
%8 = icmp eq i32 %7, 0
br i1 %8, label %9, label %13
9: ; preds = %6
%10 = tail call i32 (%struct.Cyc_List_List*, ...) bitcast (i32 (...)* @Cyc_Absyn_is_throwsany to i32 (%struct.Cyc_List_List*, ...)*)(%struct.Cyc_List_List* %4)
%11 = icmp eq i32 %10, 0
%12 = select i1 %11, i8 2, i8 3
br label %13
13: ; preds = %9, %6, %1
%14 = phi i8 [ 0, %1 ], [ 1, %6 ], [ %12, %9 ]
ret i8 %14
}