#define NULL ((void *)0)
typedef unsigned long size_t; // Customize by platform.
typedef long intptr_t;
typedef unsigned long uintptr_t;
typedef long scalar_t__; // Either arithmetic or pointer type.
/* By default, we understand bool (as a convenience). */
typedef int bool;
#define false 0
#define true 1

/* Forward declarations */

/* Type definitions */

/* Variables and functions */
int /*<<< orphan*/ printf(char *);
void dissect_fpscr_result_value_class(unsigned long local_fpscr) {
  if (local_fpscr & (0x1 << (63 - 47))) {
    if (local_fpscr & (0x1 << (63 - 48)))
      printf("-Denormalized");
    else if (local_fpscr & (0x1 << (63 - 49)))
      printf("+Denormalized");
    else if (local_fpscr & (0x1 << (63 - 50)))
      printf("-Zero        ");
    else if (local_fpscr & (0x1 << (63 - 51)))
      printf("Quiet NaN    ");
  } else {
    if (local_fpscr & (0x1 << (63 - 48))) {
      if (local_fpscr & (0x1 << (63 - 51)))
        printf("-Infinity    ");
      else
        printf("-Normalized  ");
    } else if (local_fpscr & (0x1 << (63 - 49))) {
      if (local_fpscr & (0x1 << (63 - 51)))
        printf("+Infinity    ");
      else
        printf("+Normalized  ");
      if (local_fpscr & (0x1 << (63 - 50)))
        printf("+Zero        ");
    }
  }
}


x86 assembly (clang, -O0):
<dissect_fpscr_result_value_class>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rax
and    $0x10000,%rax
cmp    $0x0,%rax
je     11d3 <dissect_fpscr_result_value_class+0xc3>
mov    -0x8(%rbp),%rax
and    $0x8000,%rax
cmp    $0x0,%rax
je     1155 <dissect_fpscr_result_value_class+0x45>
lea    0xeb5(%rip),%rdi
call   1030 <printf@plt>
jmp    11ce <dissect_fpscr_result_value_class+0xbe>
mov    -0x8(%rbp),%rax
and    $0x4000,%rax
cmp    $0x0,%rax
je     117a <dissect_fpscr_result_value_class+0x6a>
lea    0xe9e(%rip),%rdi
call   1030 <printf@plt>
jmp    11c9 <dissect_fpscr_result_value_class+0xb9>
mov    -0x8(%rbp),%rax
and    $0x2000,%rax
cmp    $0x0,%rax
je     119f <dissect_fpscr_result_value_class+0x8f>
lea    0xe87(%rip),%rdi
call   1030 <printf@plt>
jmp    11c4 <dissect_fpscr_result_value_class+0xb4>
mov    -0x8(%rbp),%rax
and    $0x1000,%rax
cmp    $0x0,%rax
je     11bf <dissect_fpscr_result_value_class+0xaf>
lea    0xe70(%rip),%rdi
call   1030 <printf@plt>
jmp    11c4 <dissect_fpscr_result_value_class+0xb4>
jmp    11c9 <dissect_fpscr_result_value_class+0xb9>
jmp    11ce <dissect_fpscr_result_value_class+0xbe>
jmp    1291 <dissect_fpscr_result_value_class+0x181>
mov    -0x8(%rbp),%rax
and    $0x8000,%rax
cmp    $0x0,%rax
je     121d <dissect_fpscr_result_value_class+0x10d>
mov    -0x8(%rbp),%rax
and    $0x1000,%rax
cmp    $0x0,%rax
je     120c <dissect_fpscr_result_value_class+0xfc>
lea    0xe36(%rip),%rdi
call   1030 <printf@plt>
jmp    1218 <dissect_fpscr_result_value_class+0x108>
lea    0xe33(%rip),%rdi
call   1030 <printf@plt>
jmp    128c <dissect_fpscr_result_value_class+0x17c>
mov    -0x8(%rbp),%rax
and    $0x4000,%rax
cmp    $0x0,%rax
je     1287 <dissect_fpscr_result_value_class+0x177>
mov    -0x8(%rbp),%rax
and    $0x1000,%rax
cmp    $0x0,%rax
je     1256 <dissect_fpscr_result_value_class+0x146>
lea    0xe08(%rip),%rdi
call   1030 <printf@plt>
jmp    1262 <dissect_fpscr_result_value_class+0x152>
lea    0xe05(%rip),%rdi
call   1030 <printf@plt>
mov    -0x8(%rbp),%rax
and    $0x2000,%rax
cmp    $0x0,%rax
je     1282 <dissect_fpscr_result_value_class+0x172>
lea    0xdf3(%rip),%rdi
call   1030 <printf@plt>
jmp    1287 <dissect_fpscr_result_value_class+0x177>
jmp    128c <dissect_fpscr_result_value_class+0x17c>
jmp    1291 <dissect_fpscr_result_value_class+0x181>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<dissect_fpscr_result_value_class>:
push   %rbx
mov    %rdi,%rbx
test   $0x10000,%ebx
jne    115e <dissect_fpscr_result_value_class+0x4e>
test   $0x8000,%ebx
jne    1180 <dissect_fpscr_result_value_class+0x70>
test   $0x4000,%ebx
je     117e <dissect_fpscr_result_value_class+0x6e>
test   $0x1000,%ebx
lea    0xf29(%rip),%rax
lea    0xf14(%rip),%rdi
cmove  %rax,%rdi
call   1030 <printf@plt>
test   $0x2000,%ebx
je     117e <dissect_fpscr_result_value_class+0x6e>
lea    0xf18(%rip),%rdi
pop    %rbx
jmp    1030 <printf@plt>
test   $0x8000,%ebx
jne    119e <dissect_fpscr_result_value_class+0x8e>
test   $0x4000,%ebx
jne    11ab <dissect_fpscr_result_value_class+0x9b>
test   $0x2000,%ebx
jne    11b8 <dissect_fpscr_result_value_class+0xa8>
test   $0x1000,%ebx
jne    11c5 <dissect_fpscr_result_value_class+0xb5>
pop    %rbx
ret
test   $0x1000,%ebx
lea    0xeb9(%rip),%rax
lea    0xea4(%rip),%rdi
cmove  %rax,%rdi
pop    %rbx
jmp    1030 <printf@plt>
lea    0xe5b(%rip),%rdi
pop    %rbx
jmp    1030 <printf@plt>
lea    0xe5c(%rip),%rdi
pop    %rbx
jmp    1030 <printf@plt>
lea    0xe5d(%rip),%rdi
pop    %rbx
jmp    1030 <printf@plt>
lea    0xe5e(%rip),%rdi
pop    %rbx
jmp    1030 <printf@plt>

LLVM IR (-O0):
@.str = [14 x i8] c"-Denormalized\00"
@.str.1 = [14 x i8] c"+Denormalized\00"
@.str.2 = [14 x i8] c"-Zero \00"
@.str.3 = [14 x i8] c"Quiet NaN \00"
@.str.4 = [14 x i8] c"-Infinity \00"
@.str.5 = [14 x i8] c"-Normalized \00"
@.str.6 = [14 x i8] c"+Infinity \00"
@.str.7 = [14 x i8] c"+Normalized \00"
@.str.8 = [14 x i8] c"+Zero \00"
define void @dissect_fpscr_result_value_class(i64 %0) {
%2 = alloca i64
store i64 %0, i64* %2
%3 = load i64, i64* %2
%4 = and i64 %3, 65536
%5 = icmp ne i64 %4, 0
br i1 %5, label %6, label %34
6: ; preds = %1
%7 = load i64, i64* %2
%8 = and i64 %7, 32768
%9 = icmp ne i64 %8, 0
br i1 %9, label %10, label %12
10: ; preds = %6
%11 = call i32 @printf(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str, i64 0, i64 0))
br label %33
12: ; preds = %6
%13 = load i64, i64* %2
%14 = and i64 %13, 16384
%15 = icmp ne i64 %14, 0
br i1 %15, label %16, label %18
16: ; preds = %12
%17 = call i32 @printf(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.1, i64 0, i64 0))
br label %32
18: ; preds = %12
%19 = load i64, i64* %2
%20 = and i64 %19, 8192
%21 = icmp ne i64 %20, 0
br i1 %21, label %22, label %24
22: ; preds = %18
%23 = call i32 @printf(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.2, i64 0, i64 0))
br label %31
24: ; preds = %18
%25 = load i64, i64* %2
%26 = and i64 %25, 4096
%27 = icmp ne i64 %26, 0
br i1 %27, label %28, label %30
28: ; preds = %24
%29 = call i32 @printf(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.3, i64 0, i64 0))
br label %30
30: ; preds = %28, %24
br label %31
31: ; preds = %30, %22
br label %32
32: ; preds = %31, %16
br label %33
33: ; preds = %32, %10
br label %68
34: ; preds = %1
%35 = load i64, i64* %2
%36 = and i64 %35, 32768
%37 = icmp ne i64 %36, 0
br i1 %37, label %38, label %47
38: ; preds = %34
%39 = load i64, i64* %2
%40 = and i64 %39, 4096
%41 = icmp ne i64 %40, 0
br i1 %41, label %42, label %44
42: ; preds = %38
%43 = call i32 @printf(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.4, i64 0, i64 0))
br label %46
44: ; preds = %38
%45 = call i32 @printf(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.5, i64 0, i64 0))
br label %46
46: ; preds = %44, %42
br label %67
47: ; preds = %34
%48 = load i64, i64* %2
%49 = and i64 %48, 16384
%50 = icmp ne i64 %49, 0
br i1 %50, label %51, label %66
51: ; preds = %47
%52 = load i64, i64* %2
%53 = and i64 %52, 4096
%54 = icmp ne i64 %53, 0
br i1 %54, label %55, label %57
55: ; preds = %51
%56 = call i32 @printf(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.6, i64 0, i64 0))
br label %59
57: ; preds = %51
%58 = call i32 @printf(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.7, i64 0, i64 0))
br label %59
59: ; preds = %57, %55
%60 = load i64, i64* %2
%61 = and i64 %60, 8192
%62 = icmp ne i64 %61, 0
br i1 %62, label %63, label %65
63: ; preds = %59
%64 = call i32 @printf(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.8, i64 0, i64 0))
br label %65
65: ; preds = %63, %59
br label %66
66: ; preds = %65, %47
br label %67
67: ; preds = %66, %46
br label %68
68: ; preds = %67, %33
ret void
}

LLVM IR (-O2):
@.str = [14 x i8] c"-Denormalized\00"
@.str.1 = [14 x i8] c"+Denormalized\00"
@.str.2 = [14 x i8] c"-Zero \00"
@.str.3 = [14 x i8] c"Quiet NaN \00"
@.str.4 = [14 x i8] c"-Infinity \00"
@.str.5 = [14 x i8] c"-Normalized \00"
@.str.6 = [14 x i8] c"+Infinity \00"
@.str.7 = [14 x i8] c"+Normalized \00"
@.str.8 = [14 x i8] c"+Zero \00"
define void @dissect_fpscr_result_value_class(i64 %0) {
%2 = and i64 %0, 65536
%3 = icmp eq i64 %2, 0
%4 = and i64 %0, 32768
%5 = icmp eq i64 %4, 0
br i1 %3, label %16, label %6
6: ; preds = %1
br i1 %5, label %7, label %31
7: ; preds = %6
%8 = and i64 %0, 16384
%9 = icmp eq i64 %8, 0
br i1 %9, label %10, label %31
10: ; preds = %7
%11 = and i64 %0, 8192
%12 = icmp eq i64 %11, 0
br i1 %12, label %13, label %31
13: ; preds = %10
%14 = and i64 %0, 4096
%15 = icmp eq i64 %14, 0
br i1 %15, label %34, label %31
16: ; preds = %1
br i1 %5, label %21, label %17
17: ; preds = %16
%18 = and i64 %0, 4096
%19 = icmp eq i64 %18, 0
%20 = select i1 %19, i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.5, i64 0, i64 0), i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.4, i64 0, i64 0)
br label %31
21: ; preds = %16
%22 = and i64 %0, 16384
%23 = icmp eq i64 %22, 0
br i1 %23, label %34, label %24
24: ; preds = %21
%25 = and i64 %0, 4096
%26 = icmp eq i64 %25, 0
%27 = select i1 %26, i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.7, i64 0, i64 0), i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.6, i64 0, i64 0)
%28 = tail call i32 @printf(i8* dereferenceable(1) %27)
%29 = and i64 %0, 8192
%30 = icmp eq i64 %29, 0
br i1 %30, label %34, label %31
31: ; preds = %24, %17, %13, %10, %7, %6
%32 = phi i8* [ getelementptr inbounds ([14 x i8], [14 x i8]* @.str, i64 0, i64 0), %6 ], [ getelementptr inbounds ([14 x i8], [14 x i8]* @.str.1, i64 0, i64 0), %7 ], [ getelementptr inbounds ([14 x i8], [14 x i8]* @.str.2, i64 0, i64 0), %10 ], [ getelementptr inbounds ([14 x i8], [14 x i8]* @.str.3, i64 0, i64 0), %13 ], [ %20, %17 ], [ getelementptr inbounds ([14 x i8], [14 x i8]* @.str.8, i64 0, i64 0), %24 ]
%33 = tail call i32 @printf(i8* dereferenceable(1) %32)
br label %34
34: ; preds = %31, %24, %21, %13
ret void
}