#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 */
typedef int fe_status_t;

/* Variables and functions */
int FE_HAS_CARRIER;
int FE_HAS_LOCK;
int FE_HAS_SIGNAL;
int FE_HAS_SYNC;
int FE_HAS_VITERBI;
int FE_REINIT;
int FE_TIMEDOUT;
int /*<<< orphan*/ printf(char *);
int FEDumpStatus(fe_status_t *stat) {
  if ((*stat) & FE_HAS_SIGNAL)
    printf(" FE_HAS_SIGNAL");
  if ((*stat) & FE_HAS_VITERBI)
    printf(" FE_HAS_VITERBI");
  if ((*stat) & FE_HAS_SYNC)
    printf(" FE_HAS_SYNC");
  if ((*stat) & FE_HAS_CARRIER)
    printf(" FE_HAS_CARRIER");
  if ((*stat) & FE_HAS_LOCK)
    printf(" FE_HAS_LOCK");
  if ((*stat) & FE_TIMEDOUT)
    printf(" FE_TIMEDOUT");
  if ((*stat) & FE_REINIT)
    printf(" FE_REINIT");
  return 0;
}


x86 assembly (clang, -O0):
<FEDumpStatus>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rax
mov    (%rax),%eax
mov    0x2eb7(%rip),%rcx
and    (%rcx),%eax
cmp    $0x0,%eax
je     1140 <FEDumpStatus+0x30>
lea    0xec5(%rip),%rdi
call   1030 <printf@plt>
mov    -0x8(%rbp),%rax
mov    (%rax),%eax
mov    0x2e6b(%rip),%rcx
and    (%rcx),%eax
cmp    $0x0,%eax
je     1164 <FEDumpStatus+0x54>
lea    0xeb0(%rip),%rdi
call   1030 <printf@plt>
mov    -0x8(%rbp),%rax
mov    (%rax),%eax
mov    0x2e87(%rip),%rcx
and    (%rcx),%eax
cmp    $0x0,%eax
je     1188 <FEDumpStatus+0x78>
lea    0xe9c(%rip),%rdi
call   1030 <printf@plt>
mov    -0x8(%rbp),%rax
mov    (%rax),%eax
mov    0x2e3b(%rip),%rcx
and    (%rcx),%eax
cmp    $0x0,%eax
je     11ac <FEDumpStatus+0x9c>
lea    0xe85(%rip),%rdi
call   1030 <printf@plt>
mov    -0x8(%rbp),%rax
mov    (%rax),%eax
mov    0x2e1f(%rip),%rcx
and    (%rcx),%eax
cmp    $0x0,%eax
je     11d0 <FEDumpStatus+0xc0>
lea    0xe71(%rip),%rdi
call   1030 <printf@plt>
mov    -0x8(%rbp),%rax
mov    (%rax),%eax
mov    0x2deb(%rip),%rcx
and    (%rcx),%eax
cmp    $0x0,%eax
je     11f4 <FEDumpStatus+0xe4>
lea    0xe5a(%rip),%rdi
call   1030 <printf@plt>
mov    -0x8(%rbp),%rax
mov    (%rax),%eax
mov    0x2daf(%rip),%rcx
and    (%rcx),%eax
cmp    $0x0,%eax
je     1218 <FEDumpStatus+0x108>
lea    0xe43(%rip),%rdi
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<FEDumpStatus>:
push   %rbx
mov    %rdi,%rbx
mov    (%rdi),%eax
mov    0x2ec3(%rip),%rcx
test   %eax,(%rcx)
je     112f <FEDumpStatus+0x1f>
lea    0xed8(%rip),%rdi
call   1030 <printf@plt>
mov    (%rbx),%eax
mov    0x2e82(%rip),%rcx
test   %eax,(%rcx)
je     1148 <FEDumpStatus+0x38>
lea    0xece(%rip),%rdi
call   1030 <printf@plt>
mov    (%rbx),%eax
mov    0x2ea9(%rip),%rcx
test   %eax,(%rcx)
je     1161 <FEDumpStatus+0x51>
lea    0xec5(%rip),%rdi
call   1030 <printf@plt>
mov    (%rbx),%eax
mov    0x2e68(%rip),%rcx
test   %eax,(%rcx)
je     117a <FEDumpStatus+0x6a>
lea    0xeb9(%rip),%rdi
call   1030 <printf@plt>
mov    (%rbx),%eax
mov    0x2e57(%rip),%rcx
test   %eax,(%rcx)
je     1193 <FEDumpStatus+0x83>
lea    0xeb0(%rip),%rdi
call   1030 <printf@plt>
mov    (%rbx),%eax
mov    0x2e2e(%rip),%rcx
test   %eax,(%rcx)
je     11ac <FEDumpStatus+0x9c>
lea    0xea4(%rip),%rdi
call   1030 <printf@plt>
mov    (%rbx),%eax
mov    0x2dfd(%rip),%rcx
test   %eax,(%rcx)
je     11c3 <FEDumpStatus+0xb3>
lea    0xe98(%rip),%rdi
call   1030 <printf@plt>
xor    %eax,%eax
pop    %rbx
ret

LLVM IR (-O0):
@FE_HAS_SIGNAL = global i32 0
@.str = [15 x i8] c" FE_HAS_SIGNAL\00"
@FE_HAS_VITERBI = global i32 0
@.str.1 = [16 x i8] c" FE_HAS_VITERBI\00"
@FE_HAS_SYNC = global i32 0
@.str.2 = [13 x i8] c" FE_HAS_SYNC\00"
@FE_HAS_CARRIER = global i32 0
@.str.3 = [16 x i8] c" FE_HAS_CARRIER\00"
@FE_HAS_LOCK = global i32 0
@.str.4 = [13 x i8] c" FE_HAS_LOCK\00"
@FE_TIMEDOUT = global i32 0
@.str.5 = [13 x i8] c" FE_TIMEDOUT\00"
@FE_REINIT = global i32 0
@.str.6 = [11 x i8] c" FE_REINIT\00"
define i32 @FEDumpStatus(i32* %0) {
%2 = alloca i32*
store i32* %0, i32** %2
%3 = load i32*, i32** %2
%4 = load i32, i32* %3
%5 = load i32, i32* @FE_HAS_SIGNAL
%6 = and i32 %4, %5
%7 = icmp ne i32 %6, 0
br i1 %7, label %8, label %10
8: ; preds = %1
%9 = call i32 @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str, i64 0, i64 0))
br label %10
10: ; preds = %8, %1
%11 = load i32*, i32** %2
%12 = load i32, i32* %11
%13 = load i32, i32* @FE_HAS_VITERBI
%14 = and i32 %12, %13
%15 = icmp ne i32 %14, 0
br i1 %15, label %16, label %18
16: ; preds = %10
%17 = call i32 @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.1, i64 0, i64 0))
br label %18
18: ; preds = %16, %10
%19 = load i32*, i32** %2
%20 = load i32, i32* %19
%21 = load i32, i32* @FE_HAS_SYNC
%22 = and i32 %20, %21
%23 = icmp ne i32 %22, 0
br i1 %23, label %24, label %26
24: ; preds = %18
%25 = call i32 @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.2, i64 0, i64 0))
br label %26
26: ; preds = %24, %18
%27 = load i32*, i32** %2
%28 = load i32, i32* %27
%29 = load i32, i32* @FE_HAS_CARRIER
%30 = and i32 %28, %29
%31 = icmp ne i32 %30, 0
br i1 %31, label %32, label %34
32: ; preds = %26
%33 = call i32 @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.3, i64 0, i64 0))
br label %34
34: ; preds = %32, %26
%35 = load i32*, i32** %2
%36 = load i32, i32* %35
%37 = load i32, i32* @FE_HAS_LOCK
%38 = and i32 %36, %37
%39 = icmp ne i32 %38, 0
br i1 %39, label %40, label %42
40: ; preds = %34
%41 = call i32 @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.4, i64 0, i64 0))
br label %42
42: ; preds = %40, %34
%43 = load i32*, i32** %2
%44 = load i32, i32* %43
%45 = load i32, i32* @FE_TIMEDOUT
%46 = and i32 %44, %45
%47 = icmp ne i32 %46, 0
br i1 %47, label %48, label %50
48: ; preds = %42
%49 = call i32 @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.5, i64 0, i64 0))
br label %50
50: ; preds = %48, %42
%51 = load i32*, i32** %2
%52 = load i32, i32* %51
%53 = load i32, i32* @FE_REINIT
%54 = and i32 %52, %53
%55 = icmp ne i32 %54, 0
br i1 %55, label %56, label %58
56: ; preds = %50
%57 = call i32 @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.6, i64 0, i64 0))
br label %58
58: ; preds = %56, %50
ret i32 0
}

LLVM IR (-O2):
@FE_HAS_SIGNAL = global i32 0
@.str = [15 x i8] c" FE_HAS_SIGNAL\00"
@FE_HAS_VITERBI = global i32 0
@.str.1 = [16 x i8] c" FE_HAS_VITERBI\00"
@FE_HAS_SYNC = global i32 0
@.str.2 = [13 x i8] c" FE_HAS_SYNC\00"
@FE_HAS_CARRIER = global i32 0
@.str.3 = [16 x i8] c" FE_HAS_CARRIER\00"
@FE_HAS_LOCK = global i32 0
@.str.4 = [13 x i8] c" FE_HAS_LOCK\00"
@FE_TIMEDOUT = global i32 0
@.str.5 = [13 x i8] c" FE_TIMEDOUT\00"
@FE_REINIT = global i32 0
@.str.6 = [11 x i8] c" FE_REINIT\00"
define i32 @FEDumpStatus(i32* nocapture %0) {
%2 = load i32, i32* %0
%3 = load i32, i32* @FE_HAS_SIGNAL
%4 = and i32 %3, %2
%5 = icmp eq i32 %4, 0
br i1 %5, label %9, label %6
6: ; preds = %1
%7 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([15 x i8], [15 x i8]* @.str, i64 0, i64 0))
%8 = load i32, i32* %0
br label %9
9: ; preds = %6, %1
%10 = phi i32 [ %8, %6 ], [ %2, %1 ]
%11 = load i32, i32* @FE_HAS_VITERBI
%12 = and i32 %11, %10
%13 = icmp eq i32 %12, 0
br i1 %13, label %17, label %14
14: ; preds = %9
%15 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([16 x i8], [16 x i8]* @.str.1, i64 0, i64 0))
%16 = load i32, i32* %0
br label %17
17: ; preds = %14, %9
%18 = phi i32 [ %16, %14 ], [ %10, %9 ]
%19 = load i32, i32* @FE_HAS_SYNC
%20 = and i32 %19, %18
%21 = icmp eq i32 %20, 0
br i1 %21, label %25, label %22
22: ; preds = %17
%23 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([13 x i8], [13 x i8]* @.str.2, i64 0, i64 0))
%24 = load i32, i32* %0
br label %25
25: ; preds = %22, %17
%26 = phi i32 [ %24, %22 ], [ %18, %17 ]
%27 = load i32, i32* @FE_HAS_CARRIER
%28 = and i32 %27, %26
%29 = icmp eq i32 %28, 0
br i1 %29, label %33, label %30
30: ; preds = %25
%31 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([16 x i8], [16 x i8]* @.str.3, i64 0, i64 0))
%32 = load i32, i32* %0
br label %33
33: ; preds = %30, %25
%34 = phi i32 [ %32, %30 ], [ %26, %25 ]
%35 = load i32, i32* @FE_HAS_LOCK
%36 = and i32 %35, %34
%37 = icmp eq i32 %36, 0
br i1 %37, label %41, label %38
38: ; preds = %33
%39 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([13 x i8], [13 x i8]* @.str.4, i64 0, i64 0))
%40 = load i32, i32* %0
br label %41
41: ; preds = %38, %33
%42 = phi i32 [ %40, %38 ], [ %34, %33 ]
%43 = load i32, i32* @FE_TIMEDOUT
%44 = and i32 %43, %42
%45 = icmp eq i32 %44, 0
br i1 %45, label %49, label %46
46: ; preds = %41
%47 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([13 x i8], [13 x i8]* @.str.5, i64 0, i64 0))
%48 = load i32, i32* %0
br label %49
49: ; preds = %46, %41
%50 = phi i32 [ %48, %46 ], [ %42, %41 ]
%51 = load i32, i32* @FE_REINIT
%52 = and i32 %51, %50
%53 = icmp eq i32 %52, 0
br i1 %53, label %56, label %54
54: ; preds = %49
%55 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([11 x i8], [11 x i8]* @.str.6, i64 0, i64 0))
br label %56
56: ; preds = %54, %49
ret i32 0
}