#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 *, char *);
scalar_t__ deviceConnectCpuGetAF();
scalar_t__ deviceConnectCpuGetCF();
scalar_t__ deviceConnectCpuGetDF();
scalar_t__ deviceConnectCpuGetIF();
scalar_t__ deviceConnectCpuGetOF();
scalar_t__ deviceConnectCpuGetPF();
scalar_t__ deviceConnectCpuGetSF();
scalar_t__ deviceConnectCpuGetZF();
void rprintflags() {
  PRINTF("%s ", deviceConnectCpuGetOF() ? "OV" : "NV");
  PRINTF("%s ", deviceConnectCpuGetDF() ? "DN" : "UP");
  PRINTF("%s ", deviceConnectCpuGetIF() ? "EI" : "DI");
  PRINTF("%s ", deviceConnectCpuGetSF() ? "NG" : "PL");
  PRINTF("%s ", deviceConnectCpuGetZF() ? "ZR" : "NZ");
  PRINTF("%s ", deviceConnectCpuGetAF() ? "AC" : "NA");
  PRINTF("%s ", deviceConnectCpuGetPF() ? "PE" : "PO");
  PRINTF("%s ", deviceConnectCpuGetCF() ? "CY" : "NC");
}


x86 assembly (clang, -O0):
<rprintflags>:
push   %rbp
mov    %rsp,%rbp
mov    $0x0,%al
call   1080 <deviceConnectCpuGetOF@plt>
mov    %rax,%rcx
lea    0xe62(%rip),%rsi
lea    0xe58(%rip),%rax
cmp    $0x0,%rcx
cmovne %rax,%rsi
lea    0xe45(%rip),%rdi
call   10a0 <PRINTF@plt>
mov    $0x0,%al
call   10b0 <deviceConnectCpuGetDF@plt>
mov    %rax,%rcx
lea    0xe3c(%rip),%rsi
lea    0xe32(%rip),%rax
cmp    $0x0,%rcx
cmovne %rax,%rsi
lea    0xe19(%rip),%rdi
call   10a0 <PRINTF@plt>
mov    $0x0,%al
call   1090 <deviceConnectCpuGetIF@plt>
mov    %rax,%rcx
lea    0xe16(%rip),%rsi
lea    0xe0c(%rip),%rax
cmp    $0x0,%rcx
cmovne %rax,%rsi
lea    0xded(%rip),%rdi
call   10a0 <PRINTF@plt>
mov    $0x0,%al
call   1040 <deviceConnectCpuGetSF@plt>
mov    %rax,%rcx
lea    0xdf0(%rip),%rsi
lea    0xde6(%rip),%rax
cmp    $0x0,%rcx
cmovne %rax,%rsi
lea    0xdc1(%rip),%rdi
call   10a0 <PRINTF@plt>
mov    $0x0,%al
call   1070 <deviceConnectCpuGetZF@plt>
mov    %rax,%rcx
lea    0xdca(%rip),%rsi
lea    0xdc0(%rip),%rax
cmp    $0x0,%rcx
cmovne %rax,%rsi
lea    0xd95(%rip),%rdi
call   10a0 <PRINTF@plt>
mov    $0x0,%al
call   1030 <deviceConnectCpuGetAF@plt>
mov    %rax,%rcx
lea    0xda4(%rip),%rsi
lea    0xd9a(%rip),%rax
cmp    $0x0,%rcx
cmovne %rax,%rsi
lea    0xd69(%rip),%rdi
call   10a0 <PRINTF@plt>
mov    $0x0,%al
call   1050 <deviceConnectCpuGetPF@plt>
mov    %rax,%rcx
lea    0xd7e(%rip),%rsi
lea    0xd74(%rip),%rax
cmp    $0x0,%rcx
cmovne %rax,%rsi
lea    0xd3d(%rip),%rdi
call   10a0 <PRINTF@plt>
mov    $0x0,%al
call   1060 <deviceConnectCpuGetCF@plt>
mov    %rax,%rcx
lea    0xd58(%rip),%rsi
lea    0xd4e(%rip),%rax
cmp    $0x0,%rcx
cmovne %rax,%rsi
lea    0xd11(%rip),%rdi
call   10a0 <PRINTF@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<rprintflags>:
push   %rbx
xor    %eax,%eax
call   1080 <deviceConnectCpuGetOF@plt>
test   %rax,%rax
lea    0xe65(%rip),%rax
lea    0xe5b(%rip),%rsi
cmove  %rax,%rsi
lea    0xe4c(%rip),%rbx
mov    %rbx,%rdi
call   10a0 <PRINTF@plt>
xor    %eax,%eax
call   10b0 <deviceConnectCpuGetDF@plt>
test   %rax,%rax
lea    0xe40(%rip),%rax
lea    0xe36(%rip),%rsi
cmove  %rax,%rsi
mov    %rbx,%rdi
call   10a0 <PRINTF@plt>
xor    %eax,%eax
call   1090 <deviceConnectCpuGetIF@plt>
test   %rax,%rax
lea    0xe22(%rip),%rax
lea    0xe18(%rip),%rsi
cmove  %rax,%rsi
mov    %rbx,%rdi
call   10a0 <PRINTF@plt>
xor    %eax,%eax
call   1040 <deviceConnectCpuGetSF@plt>
test   %rax,%rax
lea    0xe04(%rip),%rax
lea    0xdfa(%rip),%rsi
cmove  %rax,%rsi
mov    %rbx,%rdi
call   10a0 <PRINTF@plt>
xor    %eax,%eax
call   1070 <deviceConnectCpuGetZF@plt>
test   %rax,%rax
lea    0xde6(%rip),%rax
lea    0xddc(%rip),%rsi
cmove  %rax,%rsi
mov    %rbx,%rdi
call   10a0 <PRINTF@plt>
xor    %eax,%eax
call   1030 <deviceConnectCpuGetAF@plt>
test   %rax,%rax
lea    0xdc8(%rip),%rax
lea    0xdbe(%rip),%rsi
cmove  %rax,%rsi
mov    %rbx,%rdi
call   10a0 <PRINTF@plt>
xor    %eax,%eax
call   1050 <deviceConnectCpuGetPF@plt>
test   %rax,%rax
lea    0xdaa(%rip),%rax
lea    0xda0(%rip),%rsi
cmove  %rax,%rsi
mov    %rbx,%rdi
call   10a0 <PRINTF@plt>
xor    %eax,%eax
call   1060 <deviceConnectCpuGetCF@plt>
test   %rax,%rax
lea    0xd8c(%rip),%rax
lea    0xd82(%rip),%rsi
cmove  %rax,%rsi
mov    %rbx,%rdi
pop    %rbx
jmp    10a0 <PRINTF@plt>

LLVM IR (-O0):
@.str = [4 x i8] c"%s \00"
@.str.1 = [3 x i8] c"OV\00"
@.str.2 = [3 x i8] c"NV\00"
@.str.3 = [3 x i8] c"DN\00"
@.str.4 = [3 x i8] c"UP\00"
@.str.5 = [3 x i8] c"EI\00"
@.str.6 = [3 x i8] c"DI\00"
@.str.7 = [3 x i8] c"NG\00"
@.str.8 = [3 x i8] c"PL\00"
@.str.9 = [3 x i8] c"ZR\00"
@.str.10 = [3 x i8] c"NZ\00"
@.str.11 = [3 x i8] c"AC\00"
@.str.12 = [3 x i8] c"NA\00"
@.str.13 = [3 x i8] c"PE\00"
@.str.14 = [3 x i8] c"PO\00"
@.str.15 = [3 x i8] c"CY\00"
@.str.16 = [3 x i8] c"NC\00"
define void @rprintflags() {
%1 = call i64 (...) @deviceConnectCpuGetOF()
%2 = icmp ne i64 %1, 0
%3 = zext i1 %2 to i64
%4 = select i1 %2, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0)
%5 = call i32 @PRINTF(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i8* %4)
%6 = call i64 (...) @deviceConnectCpuGetDF()
%7 = icmp ne i64 %6, 0
%8 = zext i1 %7 to i64
%9 = select i1 %7, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.4, i64 0, i64 0)
%10 = call i32 @PRINTF(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i8* %9)
%11 = call i64 (...) @deviceConnectCpuGetIF()
%12 = icmp ne i64 %11, 0
%13 = zext i1 %12 to i64
%14 = select i1 %12, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.5, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.6, i64 0, i64 0)
%15 = call i32 @PRINTF(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i8* %14)
%16 = call i64 (...) @deviceConnectCpuGetSF()
%17 = icmp ne i64 %16, 0
%18 = zext i1 %17 to i64
%19 = select i1 %17, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.7, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.8, i64 0, i64 0)
%20 = call i32 @PRINTF(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i8* %19)
%21 = call i64 (...) @deviceConnectCpuGetZF()
%22 = icmp ne i64 %21, 0
%23 = zext i1 %22 to i64
%24 = select i1 %22, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.9, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.10, i64 0, i64 0)
%25 = call i32 @PRINTF(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i8* %24)
%26 = call i64 (...) @deviceConnectCpuGetAF()
%27 = icmp ne i64 %26, 0
%28 = zext i1 %27 to i64
%29 = select i1 %27, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.11, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.12, i64 0, i64 0)
%30 = call i32 @PRINTF(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i8* %29)
%31 = call i64 (...) @deviceConnectCpuGetPF()
%32 = icmp ne i64 %31, 0
%33 = zext i1 %32 to i64
%34 = select i1 %32, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.13, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.14, i64 0, i64 0)
%35 = call i32 @PRINTF(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i8* %34)
%36 = call i64 (...) @deviceConnectCpuGetCF()
%37 = icmp ne i64 %36, 0
%38 = zext i1 %37 to i64
%39 = select i1 %37, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.15, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.16, i64 0, i64 0)
%40 = call i32 @PRINTF(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i8* %39)
ret void
}

LLVM IR (-O2):
@.str = [4 x i8] c"%s \00"
@.str.1 = [3 x i8] c"OV\00"
@.str.2 = [3 x i8] c"NV\00"
@.str.3 = [3 x i8] c"DN\00"
@.str.4 = [3 x i8] c"UP\00"
@.str.5 = [3 x i8] c"EI\00"
@.str.6 = [3 x i8] c"DI\00"
@.str.7 = [3 x i8] c"NG\00"
@.str.8 = [3 x i8] c"PL\00"
@.str.9 = [3 x i8] c"ZR\00"
@.str.10 = [3 x i8] c"NZ\00"
@.str.11 = [3 x i8] c"AC\00"
@.str.12 = [3 x i8] c"NA\00"
@.str.13 = [3 x i8] c"PE\00"
@.str.14 = [3 x i8] c"PO\00"
@.str.15 = [3 x i8] c"CY\00"
@.str.16 = [3 x i8] c"NC\00"
define void @rprintflags() {
%1 = tail call i64 (...) @deviceConnectCpuGetOF()
%2 = icmp eq i64 %1, 0
%3 = select i1 %2, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0)
%4 = tail call i32 @PRINTF(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i8* %3)
%5 = tail call i64 (...) @deviceConnectCpuGetDF()
%6 = icmp eq i64 %5, 0
%7 = select i1 %6, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i64 0, i64 0)
%8 = tail call i32 @PRINTF(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i8* %7)
%9 = tail call i64 (...) @deviceConnectCpuGetIF()
%10 = icmp eq i64 %9, 0
%11 = select i1 %10, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.6, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.5, i64 0, i64 0)
%12 = tail call i32 @PRINTF(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i8* %11)
%13 = tail call i64 (...) @deviceConnectCpuGetSF()
%14 = icmp eq i64 %13, 0
%15 = select i1 %14, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.8, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.7, i64 0, i64 0)
%16 = tail call i32 @PRINTF(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i8* %15)
%17 = tail call i64 (...) @deviceConnectCpuGetZF()
%18 = icmp eq i64 %17, 0
%19 = select i1 %18, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.10, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.9, i64 0, i64 0)
%20 = tail call i32 @PRINTF(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i8* %19)
%21 = tail call i64 (...) @deviceConnectCpuGetAF()
%22 = icmp eq i64 %21, 0
%23 = select i1 %22, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.12, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.11, i64 0, i64 0)
%24 = tail call i32 @PRINTF(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i8* %23)
%25 = tail call i64 (...) @deviceConnectCpuGetPF()
%26 = icmp eq i64 %25, 0
%27 = select i1 %26, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.14, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.13, i64 0, i64 0)
%28 = tail call i32 @PRINTF(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i8* %27)
%29 = tail call i64 (...) @deviceConnectCpuGetCF()
%30 = icmp eq i64 %29, 0
%31 = select i1 %30, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.16, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.15, i64 0, i64 0)
%32 = tail call i32 @PRINTF(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i8* %31)
ret void
}