#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 */
scalar_t__ isGreaterThan();
scalar_t__ isHalt();
scalar_t__ isLessThan();
scalar_t__ isNonZero();
scalar_t__ isOverflow();
scalar_t__ isSigning();
scalar_t__ isUnderflow();
scalar_t__ isZero();
int /*<<< orphan*/ printf(char *);
void printFlags() {
  printf("Flags           : ");
  if (isGreaterThan()) {
    printf("GreaterThan ");
  }
  if (isLessThan()) {
    printf("LessThan ");
  }
  if (isZero()) {
    printf("Zero ");
  }
  if (isNonZero()) {
    printf("NonZero ");
  }
  if (isOverflow()) {
    printf("Overflow ");
  }
  if (isUnderflow()) {
    printf("Underflow ");
  }
  if (isSigning()) {
    printf("Signing ");
  }
  if (isHalt()) {
    printf("Halt");
  }
  printf("\n");
}


x86 assembly (clang, -O0):
<printFlags>:
push   %rbp
mov    %rsp,%rbp
lea    0xe65(%rip),%rdi
call   1040 <printf@plt>
mov    $0x0,%al
call   10a0 <isGreaterThan@plt>
cmp    $0x0,%rax
je     11bd <printFlags+0x2d>
lea    0xe5b(%rip),%rdi
call   1040 <printf@plt>
mov    $0x0,%al
call   1070 <isLessThan@plt>
cmp    $0x0,%rax
je     11da <printFlags+0x4a>
lea    0xe4b(%rip),%rdi
call   1040 <printf@plt>
mov    $0x0,%al
call   1090 <isZero@plt>
cmp    $0x0,%rax
je     11f7 <printFlags+0x67>
lea    0xe3b(%rip),%rdi
call   1040 <printf@plt>
mov    $0x0,%al
call   1030 <isNonZero@plt>
cmp    $0x0,%rax
je     1214 <printFlags+0x84>
lea    0xe1b(%rip),%rdi
call   1040 <printf@plt>
mov    $0x0,%al
call   1080 <isOverflow@plt>
cmp    $0x0,%rax
je     1231 <printFlags+0xa1>
lea    0xe07(%rip),%rdi
call   1040 <printf@plt>
mov    $0x0,%al
call   1060 <isUnderflow@plt>
cmp    $0x0,%rax
je     124e <printFlags+0xbe>
lea    0xdf4(%rip),%rdi
call   1040 <printf@plt>
mov    $0x0,%al
call   1050 <isSigning@plt>
cmp    $0x0,%rax
je     126b <printFlags+0xdb>
lea    0xde2(%rip),%rdi
call   1040 <printf@plt>
mov    $0x0,%al
call   10b0 <isHalt@plt>
cmp    $0x0,%rax
je     1288 <printFlags+0xf8>
lea    0xdce(%rip),%rdi
call   1040 <printf@plt>
lea    0xdc7(%rip),%rdi
call   1040 <printf@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<printFlags>:
push   %rax
lea    0xe58(%rip),%rdi
call   1050 <printf@plt>
xor    %eax,%eax
call   10b0 <isGreaterThan@plt>
test   %rax,%rax
je     11c5 <printFlags+0x25>
lea    0xe53(%rip),%rdi
call   1050 <printf@plt>
xor    %eax,%eax
call   1080 <isLessThan@plt>
test   %rax,%rax
je     11dd <printFlags+0x3d>
lea    0xe48(%rip),%rdi
call   1050 <printf@plt>
xor    %eax,%eax
call   10a0 <isZero@plt>
test   %rax,%rax
je     11f5 <printFlags+0x55>
lea    0xe3d(%rip),%rdi
call   1050 <printf@plt>
xor    %eax,%eax
call   1040 <isNonZero@plt>
test   %rax,%rax
je     120d <printFlags+0x6d>
lea    0xe22(%rip),%rdi
call   1050 <printf@plt>
xor    %eax,%eax
call   1090 <isOverflow@plt>
test   %rax,%rax
je     1225 <printFlags+0x85>
lea    0xe13(%rip),%rdi
call   1050 <printf@plt>
xor    %eax,%eax
call   1070 <isUnderflow@plt>
test   %rax,%rax
je     123d <printFlags+0x9d>
lea    0xe05(%rip),%rdi
call   1050 <printf@plt>
xor    %eax,%eax
call   1060 <isSigning@plt>
test   %rax,%rax
je     1255 <printFlags+0xb5>
lea    0xdf8(%rip),%rdi
call   1050 <printf@plt>
xor    %eax,%eax
call   10c0 <isHalt@plt>
test   %rax,%rax
je     126d <printFlags+0xcd>
lea    0xde9(%rip),%rdi
call   1050 <printf@plt>
mov    $0xa,%edi
pop    %rax
jmp    1030 <putchar@plt>

LLVM IR (-O0):
@.str = [19 x i8] c"Flags : \00"
@.str.1 = [13 x i8] c"GreaterThan \00"
@.str.2 = [10 x i8] c"LessThan \00"
@.str.3 = [6 x i8] c"Zero \00"
@.str.4 = [9 x i8] c"NonZero \00"
@.str.5 = [10 x i8] c"Overflow \00"
@.str.6 = [11 x i8] c"Underflow \00"
@.str.7 = [9 x i8] c"Signing \00"
@.str.8 = [5 x i8] c"Halt\00"
@.str.9 = [2 x i8] c"\0A\00"
define void @printFlags() {
%1 = call i32 @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str, i64 0, i64 0))
%2 = call i64 (...) @isGreaterThan()
%3 = icmp ne i64 %2, 0
br i1 %3, label %4, label %6
4: ; preds = %0
%5 = call i32 @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.1, i64 0, i64 0))
br label %6
6: ; preds = %4, %0
%7 = call i64 (...) @isLessThan()
%8 = icmp ne i64 %7, 0
br i1 %8, label %9, label %11
9: ; preds = %6
%10 = call i32 @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.2, i64 0, i64 0))
br label %11
11: ; preds = %9, %6
%12 = call i64 (...) @isZero()
%13 = icmp ne i64 %12, 0
br i1 %13, label %14, label %16
14: ; preds = %11
%15 = call i32 @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.3, i64 0, i64 0))
br label %16
16: ; preds = %14, %11
%17 = call i64 (...) @isNonZero()
%18 = icmp ne i64 %17, 0
br i1 %18, label %19, label %21
19: ; preds = %16
%20 = call i32 @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.4, i64 0, i64 0))
br label %21
21: ; preds = %19, %16
%22 = call i64 (...) @isOverflow()
%23 = icmp ne i64 %22, 0
br i1 %23, label %24, label %26
24: ; preds = %21
%25 = call i32 @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.5, i64 0, i64 0))
br label %26
26: ; preds = %24, %21
%27 = call i64 (...) @isUnderflow()
%28 = icmp ne i64 %27, 0
br i1 %28, label %29, label %31
29: ; preds = %26
%30 = call i32 @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.6, i64 0, i64 0))
br label %31
31: ; preds = %29, %26
%32 = call i64 (...) @isSigning()
%33 = icmp ne i64 %32, 0
br i1 %33, label %34, label %36
34: ; preds = %31
%35 = call i32 @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.7, i64 0, i64 0))
br label %36
36: ; preds = %34, %31
%37 = call i64 (...) @isHalt()
%38 = icmp ne i64 %37, 0
br i1 %38, label %39, label %41
39: ; preds = %36
%40 = call i32 @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.8, i64 0, i64 0))
br label %41
41: ; preds = %39, %36
%42 = call i32 @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.9, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@.str = [19 x i8] c"Flags : \00"
@.str.1 = [13 x i8] c"GreaterThan \00"
@.str.2 = [10 x i8] c"LessThan \00"
@.str.3 = [6 x i8] c"Zero \00"
@.str.4 = [9 x i8] c"NonZero \00"
@.str.5 = [10 x i8] c"Overflow \00"
@.str.6 = [11 x i8] c"Underflow \00"
@.str.7 = [9 x i8] c"Signing \00"
@.str.8 = [5 x i8] c"Halt\00"
define void @printFlags() {
%1 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([19 x i8], [19 x i8]* @.str, i64 0, i64 0))
%2 = tail call i64 (...) @isGreaterThan()
%3 = icmp eq i64 %2, 0
br i1 %3, label %6, label %4
4: ; preds = %0
%5 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([13 x i8], [13 x i8]* @.str.1, i64 0, i64 0))
br label %6
6: ; preds = %4, %0
%7 = tail call i64 (...) @isLessThan()
%8 = icmp eq i64 %7, 0
br i1 %8, label %11, label %9
9: ; preds = %6
%10 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([10 x i8], [10 x i8]* @.str.2, i64 0, i64 0))
br label %11
11: ; preds = %9, %6
%12 = tail call i64 (...) @isZero()
%13 = icmp eq i64 %12, 0
br i1 %13, label %16, label %14
14: ; preds = %11
%15 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @.str.3, i64 0, i64 0))
br label %16
16: ; preds = %14, %11
%17 = tail call i64 (...) @isNonZero()
%18 = icmp eq i64 %17, 0
br i1 %18, label %21, label %19
19: ; preds = %16
%20 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([9 x i8], [9 x i8]* @.str.4, i64 0, i64 0))
br label %21
21: ; preds = %19, %16
%22 = tail call i64 (...) @isOverflow()
%23 = icmp eq i64 %22, 0
br i1 %23, label %26, label %24
24: ; preds = %21
%25 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([10 x i8], [10 x i8]* @.str.5, i64 0, i64 0))
br label %26
26: ; preds = %24, %21
%27 = tail call i64 (...) @isUnderflow()
%28 = icmp eq i64 %27, 0
br i1 %28, label %31, label %29
29: ; preds = %26
%30 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([11 x i8], [11 x i8]* @.str.6, i64 0, i64 0))
br label %31
31: ; preds = %29, %26
%32 = tail call i64 (...) @isSigning()
%33 = icmp eq i64 %32, 0
br i1 %33, label %36, label %34
34: ; preds = %31
%35 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([9 x i8], [9 x i8]* @.str.7, i64 0, i64 0))
br label %36
36: ; preds = %34, %31
%37 = tail call i64 (...) @isHalt()
%38 = icmp eq i64 %37, 0
br i1 %38, label %41, label %39
39: ; preds = %36
%40 = tail call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.8, i64 0, i64 0))
br label %41
41: ; preds = %39, %36
%42 = tail call i32 @putchar(i32 10)
ret void
}