#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*/ io_print(char *, ...);
int /*<<< orphan*/ print_list(int /*<<< orphan*/, char *, char *, char *,
                              int /*<<< orphan*/ *);
int /*<<< orphan*/ prj_get_buildoptions();
int /*<<< orphan*/ prj_get_defines();
int /*<<< orphan*/ prj_get_incpaths();
int prj_has_flag(char *);
void writeCppFlags() {
  int optimizeSize = prj_has_flag("optimize-size");
  int optimizeSpeed =
      prj_has_flag("optimize-speed") || prj_has_flag("optimize");
  int useDebugLibs = (!optimizeSize && !optimizeSpeed);
  if (useDebugLibs)
    io_print(prj_has_flag("static-runtime") ? " /MTd" : " /MDd");
  else
    io_print(prj_has_flag("static-runtime") ? " /MT" : " /MD");
  io_print(" /W%d", prj_has_flag("extra-warnings") ? 4 : 3);
  if (prj_has_flag("fatal-warnings"))
    io_print(" /WX");
  if (useDebugLibs)
    io_print(" /Gm");
  if (!prj_has_flag("no-rtti"))
    io_print(" /GR");
  if (!prj_has_flag("no-exceptions"))
    io_print(" /GX");
  if (!prj_has_flag("no-symbols"))
    io_print(" /ZI");
  if (optimizeSize)
    io_print(" /O1");
  else if (optimizeSpeed)
    io_print(" /O2");
  else
    io_print(" /Od");
  if (prj_has_flag("no-frame-pointer"))
    io_print(" /Oy");
  print_list(prj_get_incpaths(), " /I \"", "\"", "", NULL);
  print_list(prj_get_defines(), " /D \"", "\"", "", NULL);
  io_print(" /YX /FD");
  if (!optimizeSize && !optimizeSpeed)
    io_print(" /GZ");
  io_print(" /c");
  print_list(prj_get_buildoptions(), " ", "", "", NULL);
  io_print("\n");
}


x86 assembly (clang, -O0):
<writeCppFlags>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
lea    0xe91(%rip),%rdi
call   1070 <prj_has_flag@plt>
mov    %eax,-0x4(%rbp)
lea    0xe90(%rip),%rdi
call   1070 <prj_has_flag@plt>
mov    %eax,%ecx
mov    $0x1,%al
cmp    $0x0,%ecx
mov    %al,-0xd(%rbp)
jne    11a8 <writeCppFlags+0x48>
lea    0xe83(%rip),%rdi
call   1070 <prj_has_flag@plt>
cmp    $0x0,%eax
setne  %al
mov    %al,-0xd(%rbp)
mov    -0xd(%rbp),%al
and    $0x1,%al
movzbl %al,%eax
mov    %eax,-0x8(%rbp)
xor    %eax,%eax
cmpl   $0x0,-0x4(%rbp)
mov    %al,-0xe(%rbp)
jne    11ce <writeCppFlags+0x6e>
cmpl   $0x0,-0x8(%rbp)
setne  %al
xor    $0xff,%al
mov    %al,-0xe(%rbp)
mov    -0xe(%rbp),%al
and    $0x1,%al
movzbl %al,%eax
mov    %eax,-0xc(%rbp)
cmpl   $0x0,-0xc(%rbp)
je     1212 <writeCppFlags+0xb2>
lea    0xe3c(%rip),%rdi
call   1070 <prj_has_flag@plt>
mov    %eax,%ecx
lea    0xe43(%rip),%rdi
lea    0xe36(%rip),%rax
cmp    $0x0,%ecx
cmovne %rax,%rdi
mov    $0x0,%al
call   1040 <io_print@plt>
jmp    123c <writeCppFlags+0xdc>
lea    0xe0d(%rip),%rdi
call   1070 <prj_has_flag@plt>
mov    %eax,%ecx
lea    0xe1f(%rip),%rdi
lea    0xe13(%rip),%rax
cmp    $0x0,%ecx
cmovne %rax,%rdi
mov    $0x0,%al
call   1040 <io_print@plt>
lea    0xe0e(%rip),%rdi
call   1070 <prj_has_flag@plt>
mov    %eax,%ecx
mov    $0x3,%esi
mov    $0x4,%eax
cmp    $0x0,%ecx
cmovne %eax,%esi
lea    0xdea(%rip),%rdi
mov    $0x0,%al
call   1040 <io_print@plt>
lea    0xdf1(%rip),%rdi
call   1070 <prj_has_flag@plt>
cmp    $0x0,%eax
je     128b <writeCppFlags+0x12b>
lea    0xdeb(%rip),%rdi
mov    $0x0,%al
call   1040 <io_print@plt>
cmpl   $0x0,-0xc(%rbp)
je     12a3 <writeCppFlags+0x143>
lea    0xdd8(%rip),%rdi
mov    $0x0,%al
call   1040 <io_print@plt>
lea    0xdcf(%rip),%rdi
call   1070 <prj_has_flag@plt>
cmp    $0x0,%eax
jne    12c6 <writeCppFlags+0x166>
lea    0xdc2(%rip),%rdi
mov    $0x0,%al
call   1040 <io_print@plt>
lea    0xdb9(%rip),%rdi
call   1070 <prj_has_flag@plt>
cmp    $0x0,%eax
jne    12e9 <writeCppFlags+0x189>
lea    0xdb2(%rip),%rdi
mov    $0x0,%al
call   1040 <io_print@plt>
lea    0xda9(%rip),%rdi
call   1070 <prj_has_flag@plt>
cmp    $0x0,%eax
jne    130c <writeCppFlags+0x1ac>
lea    0xd9f(%rip),%rdi
mov    $0x0,%al
call   1040 <io_print@plt>
cmpl   $0x0,-0x4(%rbp)
je     1329 <writeCppFlags+0x1c9>
lea    0xd8c(%rip),%rdi
mov    $0x0,%al
call   1040 <io_print@plt>
jmp    1359 <writeCppFlags+0x1f9>
cmpl   $0x0,-0x8(%rbp)
je     1346 <writeCppFlags+0x1e6>
lea    0xd74(%rip),%rdi
mov    $0x0,%al
call   1040 <io_print@plt>
jmp    1354 <writeCppFlags+0x1f4>
lea    0xd66(%rip),%rdi
mov    $0x0,%al
call   1040 <io_print@plt>
jmp    1359 <writeCppFlags+0x1f9>
lea    0xd58(%rip),%rdi
call   1070 <prj_has_flag@plt>
cmp    $0x0,%eax
je     137c <writeCppFlags+0x21c>
lea    0xd54(%rip),%rdi
mov    $0x0,%al
call   1040 <io_print@plt>
mov    $0x0,%al
call   1080 <prj_get_incpaths@plt>
mov    %eax,%edi
lea    0xd42(%rip),%rsi
lea    0xd45(%rip),%rdx
lea    0xd55(%rip),%rcx
xor    %eax,%eax
mov    %eax,%r8d
call   1030 <print_list@plt>
mov    $0x0,%al
call   1050 <prj_get_defines@plt>
mov    %eax,%edi
lea    0xd20(%rip),%rsi
lea    0xd1d(%rip),%rdx
lea    0xd2d(%rip),%rcx
xor    %eax,%eax
mov    %eax,%r8d
call   1030 <print_list@plt>
lea    0xd07(%rip),%rdi
mov    $0x0,%al
call   1040 <io_print@plt>
cmpl   $0x0,-0x4(%rbp)
jne    13fc <writeCppFlags+0x29c>
cmpl   $0x0,-0x8(%rbp)
jne    13fc <writeCppFlags+0x29c>
lea    0xcee(%rip),%rdi
mov    $0x0,%al
call   1040 <io_print@plt>
lea    0xce5(%rip),%rdi
mov    $0x0,%al
call   1040 <io_print@plt>
mov    $0x0,%al
call   1060 <prj_get_buildoptions@plt>
mov    %eax,%edi
lea    0xcd2(%rip),%rsi
lea    0xcce(%rip),%rcx
xor    %eax,%eax
mov    %eax,%r8d
mov    %rcx,%rdx
call   1030 <print_list@plt>
lea    0xcb9(%rip),%rdi
mov    $0x0,%al
call   1040 <io_print@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<writeCppFlags>:
push   %rbp
push   %r15
push   %r14
push   %rbx
push   %rax
lea    0xe92(%rip),%rdi
call   1070 <prj_has_flag@plt>
mov    %eax,%ebx
lea    0xe92(%rip),%rdi
call   1070 <prj_has_flag@plt>
test   %eax,%eax
je     1190 <writeCppFlags+0x30>
test   %ebx,%ebx
setne  %r14b
mov    $0x1,%r15b
jmp    11ac <writeCppFlags+0x4c>
lea    0xe86(%rip),%rdi
call   1070 <prj_has_flag@plt>
test   %eax,%eax
setne  %r15b
test   %ebx,%ebx
setne  %r14b
or     %eax,%ebx
je     11d1 <writeCppFlags+0x71>
lea    0xe73(%rip),%rdi
call   1070 <prj_has_flag@plt>
test   %eax,%eax
lea    0xe85(%rip),%rax
lea    0xe79(%rip),%rdi
cmove  %rax,%rdi
mov    $0x1,%bpl
jmp    11f9 <writeCppFlags+0x99>
lea    0xe4e(%rip),%rdi
call   1070 <prj_has_flag@plt>
test   %eax,%eax
lea    0xe55(%rip),%rax
lea    0xe48(%rip),%rdi
cmove  %rax,%rdi
xor    %ebp,%ebp
xor    %r14d,%r14d
xor    %r15d,%r15d
xor    %eax,%eax
call   1040 <io_print@plt>
lea    0xe4a(%rip),%rdi
call   1070 <prj_has_flag@plt>
cmp    $0x1,%eax
mov    $0x4,%esi
sbb    $0x0,%esi
lea    0xe2d(%rip),%rdi
xor    %eax,%eax
call   1040 <io_print@plt>
lea    0xe34(%rip),%rdi
call   1070 <prj_has_flag@plt>
test   %eax,%eax
je     1243 <writeCppFlags+0xe3>
lea    0xe33(%rip),%rdi
xor    %eax,%eax
call   1040 <io_print@plt>
test   %bpl,%bpl
jne    1256 <writeCppFlags+0xf6>
lea    0xe25(%rip),%rdi
xor    %eax,%eax
call   1040 <io_print@plt>
lea    0xe1c(%rip),%rdi
call   1070 <prj_has_flag@plt>
test   %eax,%eax
jne    1274 <writeCppFlags+0x114>
lea    0xe14(%rip),%rdi
xor    %eax,%eax
call   1040 <io_print@plt>
lea    0xe0b(%rip),%rdi
call   1070 <prj_has_flag@plt>
test   %eax,%eax
jne    1292 <writeCppFlags+0x132>
lea    0xe09(%rip),%rdi
xor    %eax,%eax
call   1040 <io_print@plt>
lea    0xe00(%rip),%rdi
call   1070 <prj_has_flag@plt>
test   %eax,%eax
jne    12b0 <writeCppFlags+0x150>
lea    0xdfb(%rip),%rdi
xor    %eax,%eax
call   1040 <io_print@plt>
lea    0xdf7(%rip),%rax
lea    0xdf5(%rip),%rcx
test   %r15b,%r15b
cmovne %rax,%rcx
lea    0xddd(%rip),%rdi
test   %r14b,%r14b
cmove  %rcx,%rdi
xor    %eax,%eax
call   1040 <io_print@plt>
lea    0xdd7(%rip),%rdi
call   1070 <prj_has_flag@plt>
test   %eax,%eax
je     12f8 <writeCppFlags+0x198>
lea    0xdd8(%rip),%rdi
xor    %eax,%eax
call   1040 <io_print@plt>
xor    %eax,%eax
call   1080 <prj_get_incpaths@plt>
lea    0xdc8(%rip),%rsi
lea    0xdcb(%rip),%rbx
lea    0xddb(%rip),%r14
mov    %eax,%edi
mov    %rbx,%rdx
mov    %r14,%rcx
xor    %r8d,%r8d
call   1030 <print_list@plt>
xor    %eax,%eax
call   1050 <prj_get_defines@plt>
lea    0xda2(%rip),%rsi
mov    %eax,%edi
mov    %rbx,%rdx
mov    %r14,%rcx
xor    %r8d,%r8d
call   1030 <print_list@plt>
lea    0xd91(%rip),%rdi
xor    %eax,%eax
call   1040 <io_print@plt>
test   %bpl,%bpl
jne    1363 <writeCppFlags+0x203>
lea    0xd87(%rip),%rdi
xor    %eax,%eax
call   1040 <io_print@plt>
lea    0xd7e(%rip),%rdi
xor    %eax,%eax
call   1040 <io_print@plt>
xor    %eax,%eax
call   1060 <prj_get_buildoptions@plt>
lea    0xd6d(%rip),%rsi
lea    0xd69(%rip),%rcx
mov    %eax,%edi
mov    %rcx,%rdx
xor    %r8d,%r8d
call   1030 <print_list@plt>
lea    0xd54(%rip),%rdi
xor    %eax,%eax
add    $0x8,%rsp
pop    %rbx
pop    %r14
pop    %r15
pop    %rbp
jmp    1040 <io_print@plt>

LLVM IR (-O0):
@.str = [14 x i8] c"optimize-size\00"
@.str.1 = [15 x i8] c"optimize-speed\00"
@.str.2 = [9 x i8] c"optimize\00"
@.str.3 = [15 x i8] c"static-runtime\00"
@.str.4 = [6 x i8] c" /MTd\00"
@.str.5 = [6 x i8] c" /MDd\00"
@.str.6 = [5 x i8] c" /MT\00"
@.str.7 = [5 x i8] c" /MD\00"
@.str.8 = [6 x i8] c" /W%d\00"
@.str.9 = [15 x i8] c"extra-warnings\00"
@.str.10 = [15 x i8] c"fatal-warnings\00"
@.str.11 = [5 x i8] c" /WX\00"
@.str.12 = [5 x i8] c" /Gm\00"
@.str.13 = [8 x i8] c"no-rtti\00"
@.str.14 = [5 x i8] c" /GR\00"
@.str.15 = [14 x i8] c"no-exceptions\00"
@.str.16 = [5 x i8] c" /GX\00"
@.str.17 = [11 x i8] c"no-symbols\00"
@.str.18 = [5 x i8] c" /ZI\00"
@.str.19 = [5 x i8] c" /O1\00"
@.str.20 = [5 x i8] c" /O2\00"
@.str.21 = [5 x i8] c" /Od\00"
@.str.22 = [17 x i8] c"no-frame-pointer\00"
@.str.23 = [5 x i8] c" /Oy\00"
@.str.24 = [6 x i8] c" /I \22\00"
@.str.25 = [2 x i8] c"\22\00"
@.str.26 = [1 x i8] zeroinitializer
@.str.27 = [6 x i8] c" /D \22\00"
@.str.28 = [9 x i8] c" /YX /FD\00"
@.str.29 = [5 x i8] c" /GZ\00"
@.str.30 = [4 x i8] c" /c\00"
@.str.31 = [2 x i8] c" \00"
@.str.32 = [2 x i8] c"\0A\00"
define void @writeCppFlags() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
%4 = call i32 @prj_has_flag(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str, i64 0, i64 0))
store i32 %4, i32* %1
%5 = call i32 @prj_has_flag(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.1, i64 0, i64 0))
%6 = icmp ne i32 %5, 0
br i1 %6, label %10, label %7
7: ; preds = %0
%8 = call i32 @prj_has_flag(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.2, i64 0, i64 0))
%9 = icmp ne i32 %8, 0
br label %10
10: ; preds = %7, %0
%11 = phi i1 [ true, %0 ], [ %9, %7 ]
%12 = zext i1 %11 to i32
store i32 %12, i32* %2
%13 = load i32, i32* %1
%14 = icmp ne i32 %13, 0
br i1 %14, label %19, label %15
15: ; preds = %10
%16 = load i32, i32* %2
%17 = icmp ne i32 %16, 0
%18 = xor i1 %17, true
br label %19
19: ; preds = %15, %10
%20 = phi i1 [ false, %10 ], [ %18, %15 ]
%21 = zext i1 %20 to i32
store i32 %21, i32* %3
%22 = load i32, i32* %3
%23 = icmp ne i32 %22, 0
br i1 %23, label %24, label %30
24: ; preds = %19
%25 = call i32 @prj_has_flag(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.3, i64 0, i64 0))
%26 = icmp ne i32 %25, 0
%27 = zext i1 %26 to i64
%28 = select i1 %26, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.5, i64 0, i64 0)
%29 = call i32 (i8*, ...) @io_print(i8* %28)
br label %36
30: ; preds = %19
%31 = call i32 @prj_has_flag(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.3, i64 0, i64 0))
%32 = icmp ne i32 %31, 0
%33 = zext i1 %32 to i64
%34 = select i1 %32, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.6, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.7, i64 0, i64 0)
%35 = call i32 (i8*, ...) @io_print(i8* %34)
br label %36
36: ; preds = %30, %24
%37 = call i32 @prj_has_flag(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.9, i64 0, i64 0))
%38 = icmp ne i32 %37, 0
%39 = zext i1 %38 to i64
%40 = select i1 %38, i32 4, i32 3
%41 = call i32 (i8*, ...) @io_print(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.8, i64 0, i64 0), i32 %40)
%42 = call i32 @prj_has_flag(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.10, i64 0, i64 0))
%43 = icmp ne i32 %42, 0
br i1 %43, label %44, label %46
44: ; preds = %36
%45 = call i32 (i8*, ...) @io_print(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.11, i64 0, i64 0))
br label %46
46: ; preds = %44, %36
%47 = load i32, i32* %3
%48 = icmp ne i32 %47, 0
br i1 %48, label %49, label %51
49: ; preds = %46
%50 = call i32 (i8*, ...) @io_print(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.12, i64 0, i64 0))
br label %51
51: ; preds = %49, %46
%52 = call i32 @prj_has_flag(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.13, i64 0, i64 0))
%53 = icmp ne i32 %52, 0
br i1 %53, label %56, label %54
54: ; preds = %51
%55 = call i32 (i8*, ...) @io_print(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.14, i64 0, i64 0))
br label %56
56: ; preds = %54, %51
%57 = call i32 @prj_has_flag(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.15, i64 0, i64 0))
%58 = icmp ne i32 %57, 0
br i1 %58, label %61, label %59
59: ; preds = %56
%60 = call i32 (i8*, ...) @io_print(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.16, i64 0, i64 0))
br label %61
61: ; preds = %59, %56
%62 = call i32 @prj_has_flag(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.17, i64 0, i64 0))
%63 = icmp ne i32 %62, 0
br i1 %63, label %66, label %64
64: ; preds = %61
%65 = call i32 (i8*, ...) @io_print(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.18, i64 0, i64 0))
br label %66
66: ; preds = %64, %61
%67 = load i32, i32* %1
%68 = icmp ne i32 %67, 0
br i1 %68, label %69, label %71
69: ; preds = %66
%70 = call i32 (i8*, ...) @io_print(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.19, i64 0, i64 0))
br label %79
71: ; preds = %66
%72 = load i32, i32* %2
%73 = icmp ne i32 %72, 0
br i1 %73, label %74, label %76
74: ; preds = %71
%75 = call i32 (i8*, ...) @io_print(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.20, i64 0, i64 0))
br label %78
76: ; preds = %71
%77 = call i32 (i8*, ...) @io_print(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.21, i64 0, i64 0))
br label %78
78: ; preds = %76, %74
br label %79
79: ; preds = %78, %69
%80 = call i32 @prj_has_flag(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.22, i64 0, i64 0))
%81 = icmp ne i32 %80, 0
br i1 %81, label %82, label %84
82: ; preds = %79
%83 = call i32 (i8*, ...) @io_print(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.23, i64 0, i64 0))
br label %84
84: ; preds = %82, %79
%85 = call i32 (...) @prj_get_incpaths()
%86 = call i32 @print_list(i32 %85, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.24, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.25, i64 0, i64 0), i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.26, i64 0, i64 0), i32* null)
%87 = call i32 (...) @prj_get_defines()
%88 = call i32 @print_list(i32 %87, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.27, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.25, i64 0, i64 0), i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.26, i64 0, i64 0), i32* null)
%89 = call i32 (i8*, ...) @io_print(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.28, i64 0, i64 0))
%90 = load i32, i32* %1
%91 = icmp ne i32 %90, 0
br i1 %91, label %97, label %92
92: ; preds = %84
%93 = load i32, i32* %2
%94 = icmp ne i32 %93, 0
br i1 %94, label %97, label %95
95: ; preds = %92
%96 = call i32 (i8*, ...) @io_print(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.29, i64 0, i64 0))
br label %97
97: ; preds = %95, %92, %84
%98 = call i32 (i8*, ...) @io_print(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.30, i64 0, i64 0))
%99 = call i32 (...) @prj_get_buildoptions()
%100 = call i32 @print_list(i32 %99, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.31, i64 0, i64 0), i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.26, i64 0, i64 0), i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.26, i64 0, i64 0), i32* null)
%101 = call i32 (i8*, ...) @io_print(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.32, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@.str = [14 x i8] c"optimize-size\00"
@.str.1 = [15 x i8] c"optimize-speed\00"
@.str.2 = [9 x i8] c"optimize\00"
@.str.3 = [15 x i8] c"static-runtime\00"
@.str.4 = [6 x i8] c" /MTd\00"
@.str.5 = [6 x i8] c" /MDd\00"
@.str.6 = [5 x i8] c" /MT\00"
@.str.7 = [5 x i8] c" /MD\00"
@.str.8 = [6 x i8] c" /W%d\00"
@.str.9 = [15 x i8] c"extra-warnings\00"
@.str.10 = [15 x i8] c"fatal-warnings\00"
@.str.11 = [5 x i8] c" /WX\00"
@.str.12 = [5 x i8] c" /Gm\00"
@.str.13 = [8 x i8] c"no-rtti\00"
@.str.14 = [5 x i8] c" /GR\00"
@.str.15 = [14 x i8] c"no-exceptions\00"
@.str.16 = [5 x i8] c" /GX\00"
@.str.17 = [11 x i8] c"no-symbols\00"
@.str.18 = [5 x i8] c" /ZI\00"
@.str.19 = [5 x i8] c" /O1\00"
@.str.20 = [5 x i8] c" /O2\00"
@.str.21 = [5 x i8] c" /Od\00"
@.str.22 = [17 x i8] c"no-frame-pointer\00"
@.str.23 = [5 x i8] c" /Oy\00"
@.str.24 = [6 x i8] c" /I \22\00"
@.str.25 = [2 x i8] c"\22\00"
@.str.26 = [1 x i8] zeroinitializer
@.str.27 = [6 x i8] c" /D \22\00"
@.str.28 = [9 x i8] c" /YX /FD\00"
@.str.29 = [5 x i8] c" /GZ\00"
@.str.30 = [4 x i8] c" /c\00"
@.str.31 = [2 x i8] c" \00"
@.str.32 = [2 x i8] c"\0A\00"
define void @writeCppFlags() {
%1 = tail call i32 @prj_has_flag(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str, i64 0, i64 0))
%2 = tail call i32 @prj_has_flag(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.1, i64 0, i64 0))
%3 = icmp eq i32 %2, 0
br i1 %3, label %6, label %4
4: ; preds = %0
%5 = icmp ne i32 %1, 0
br label %15
6: ; preds = %0
%7 = tail call i32 @prj_has_flag(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.2, i64 0, i64 0))
%8 = icmp ne i32 %7, 0
%9 = icmp ne i32 %1, 0
%10 = select i1 %9, i1 true, i1 %8
br i1 %10, label %15, label %11
11: ; preds = %6
%12 = tail call i32 @prj_has_flag(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.3, i64 0, i64 0))
%13 = icmp eq i32 %12, 0
%14 = select i1 %13, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.5, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.4, i64 0, i64 0)
br label %21
15: ; preds = %4, %6
%16 = phi i1 [ %5, %4 ], [ %9, %6 ]
%17 = phi i1 [ true, %4 ], [ %8, %6 ]
%18 = tail call i32 @prj_has_flag(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.3, i64 0, i64 0))
%19 = icmp eq i32 %18, 0
%20 = select i1 %19, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.7, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.6, i64 0, i64 0)
br label %21
21: ; preds = %15, %11
%22 = phi i8* [ %20, %15 ], [ %14, %11 ]
%23 = phi i1 [ true, %15 ], [ false, %11 ]
%24 = phi i1 [ %16, %15 ], [ false, %11 ]
%25 = phi i1 [ %17, %15 ], [ false, %11 ]
%26 = tail call i32 (i8*, ...) @io_print(i8* %22)
%27 = tail call i32 @prj_has_flag(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.9, i64 0, i64 0))
%28 = icmp eq i32 %27, 0
%29 = select i1 %28, i32 3, i32 4
%30 = tail call i32 (i8*, ...) @io_print(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.8, i64 0, i64 0), i32 %29)
%31 = tail call i32 @prj_has_flag(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.10, i64 0, i64 0))
%32 = icmp eq i32 %31, 0
br i1 %32, label %35, label %33
33: ; preds = %21
%34 = tail call i32 (i8*, ...) @io_print(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.11, i64 0, i64 0))
br label %35
35: ; preds = %33, %21
br i1 %23, label %38, label %36
36: ; preds = %35
%37 = tail call i32 (i8*, ...) @io_print(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.12, i64 0, i64 0))
br label %38
38: ; preds = %36, %35
%39 = tail call i32 @prj_has_flag(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.13, i64 0, i64 0))
%40 = icmp eq i32 %39, 0
br i1 %40, label %41, label %43
41: ; preds = %38
%42 = tail call i32 (i8*, ...) @io_print(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.14, i64 0, i64 0))
br label %43
43: ; preds = %41, %38
%44 = tail call i32 @prj_has_flag(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.15, i64 0, i64 0))
%45 = icmp eq i32 %44, 0
br i1 %45, label %46, label %48
46: ; preds = %43
%47 = tail call i32 (i8*, ...) @io_print(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.16, i64 0, i64 0))
br label %48
48: ; preds = %46, %43
%49 = tail call i32 @prj_has_flag(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.17, i64 0, i64 0))
%50 = icmp eq i32 %49, 0
br i1 %50, label %51, label %53
51: ; preds = %48
%52 = tail call i32 (i8*, ...) @io_print(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.18, i64 0, i64 0))
br label %53
53: ; preds = %51, %48
%54 = select i1 %25, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.20, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.21, i64 0, i64 0)
%55 = select i1 %24, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.19, i64 0, i64 0), i8* %54
%56 = tail call i32 (i8*, ...) @io_print(i8* %55)
%57 = tail call i32 @prj_has_flag(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.22, i64 0, i64 0))
%58 = icmp eq i32 %57, 0
br i1 %58, label %61, label %59
59: ; preds = %53
%60 = tail call i32 (i8*, ...) @io_print(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.23, i64 0, i64 0))
br label %61
61: ; preds = %59, %53
%62 = tail call i32 (...) @prj_get_incpaths()
%63 = tail call i32 @print_list(i32 %62, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.24, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.25, i64 0, i64 0), i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.26, i64 0, i64 0), i32* null)
%64 = tail call i32 (...) @prj_get_defines()
%65 = tail call i32 @print_list(i32 %64, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.27, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.25, i64 0, i64 0), i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.26, i64 0, i64 0), i32* null)
%66 = tail call i32 (i8*, ...) @io_print(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.28, i64 0, i64 0))
br i1 %23, label %69, label %67
67: ; preds = %61
%68 = tail call i32 (i8*, ...) @io_print(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.29, i64 0, i64 0))
br label %69
69: ; preds = %67, %61
%70 = tail call i32 (i8*, ...) @io_print(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.30, i64 0, i64 0))
%71 = tail call i32 (...) @prj_get_buildoptions()
%72 = tail call i32 @print_list(i32 %71, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.31, i64 0, i64 0), i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.26, i64 0, i64 0), i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.26, i64 0, i64 0), i32* null)
%73 = tail call i32 (i8*, ...) @io_print(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.32, i64 0, i64 0))
ret void
}