#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 /*<<< orphan*/ alloca_code;

/* Variables and functions */
scalar_t__ chaz_CC_test_compile(char *);
int /*<<< orphan*/ chaz_ConfWriter_add_def(char *, char *);
scalar_t__ chaz_HeadCheck_check_many_headers(char const **);
int /*<<< orphan*/ sprintf(char *, char const *, char *, char *);
void chaz_Memory_probe_alloca(void) {
  static const char alloca_code[] = "#include <%s>\n"
                                    "int main() {"
                                    "\n"
                                    "void *foo = %s(1);"
                                    "\n"
                                    "return 0;"
                                    "\n"
                                    "}"
                                    "\n";
  int has_sys_mman_h = 0;
  int has_alloca_h = 0;
  int has_malloc_h = 0;
  int need_stdlib_h = 0;
  int has_alloca = 0;
  int has_builtin_alloca = 0;
  int has_underscore_alloca = 0;
  char code_buf[sizeof(alloca_code) + 100];
  {
    const char *mman_headers[] = {"sys/types.h", "sys/mman.h", NULL};
    if (chaz_HeadCheck_check_many_headers((const char **)mman_headers)) {
      has_sys_mman_h = 1;
      chaz_ConfWriter_add_def("HAS_SYS_MMAN_H", NULL);
    }
  }
  sprintf(code_buf, alloca_code, "alloca.h", "alloca");
  if (chaz_CC_test_compile(code_buf)) {
    has_alloca_h = 1;
    has_alloca = 1;
    chaz_ConfWriter_add_def("HAS_ALLOCA_H", NULL);
    chaz_ConfWriter_add_def("alloca", "alloca");
  }
  if (!has_alloca) {
    sprintf(code_buf, alloca_code, "stdlib.h", "alloca");
    if (chaz_CC_test_compile(code_buf)) {
      has_alloca = 1;
      need_stdlib_h = 1;
      chaz_ConfWriter_add_def("ALLOCA_IN_STDLIB_H", NULL);
      chaz_ConfWriter_add_def("alloca", "alloca");
    }
  }
  if (!has_alloca) {
    sprintf(code_buf, alloca_code, "stdio.h", "__builtin_alloca");
    if (chaz_CC_test_compile(code_buf)) {
      has_builtin_alloca = 1;
      chaz_ConfWriter_add_def("alloca", "__builtin_alloca");
    }
  }
  if (!(has_alloca || has_builtin_alloca)) {
    sprintf(code_buf, alloca_code, "malloc.h", "alloca");
    if (chaz_CC_test_compile(code_buf)) {
      has_malloc_h = 1;
      has_alloca = 1;
      chaz_ConfWriter_add_def("HAS_MALLOC_H", NULL);
      chaz_ConfWriter_add_def("alloca", "alloca");
    }
  }
  if (!(has_alloca || has_builtin_alloca)) {
    sprintf(code_buf, alloca_code, "malloc.h", "_alloca");
    if (chaz_CC_test_compile(code_buf)) {
      has_malloc_h = 1;
      has_underscore_alloca = 1;
      chaz_ConfWriter_add_def("HAS_MALLOC_H", NULL);
      chaz_ConfWriter_add_def("chy_alloca", "_alloca");
    }
  }
}


x86 assembly (clang, -O0):
<chaz_Memory_probe_alloca>:
push   %rbp
mov    %rsp,%rbp
sub    $0xe0,%rsp
movl   $0x0,-0x4(%rbp)
movl   $0x0,-0x8(%rbp)
movl   $0x0,-0xc(%rbp)
movl   $0x0,-0x10(%rbp)
movl   $0x0,-0x14(%rbp)
movl   $0x0,-0x18(%rbp)
movl   $0x0,-0x1c(%rbp)
mov    0x2c7d(%rip),%rax
mov    %rax,-0xe0(%rbp)
mov    0x2c77(%rip),%rax
mov    %rax,-0xd8(%rbp)
mov    0x2c71(%rip),%rax
mov    %rax,-0xd0(%rbp)
lea    -0xe0(%rbp),%rdi
call   1030 <chaz_HeadCheck_check_many_headers@plt>
cmp    $0x0,%rax
je     11d3 <chaz_Memory_probe_alloca+0x93>
movl   $0x1,-0x4(%rbp)
lea    0xe88(%rip),%rdi
xor    %eax,%eax
mov    %eax,%esi
call   1040 <chaz_ConfWriter_add_def@plt>
lea    -0xc0(%rbp),%rdi
lea    0xe1f(%rip),%rsi
lea    0xe79(%rip),%rdx
lea    0xeb6(%rip),%rcx
call   1060 <sprintf@plt>
lea    -0xc0(%rbp),%rdi
call   1050 <chaz_CC_test_compile@plt>
cmp    $0x0,%rax
je     1237 <chaz_Memory_probe_alloca+0xf7>
movl   $0x1,-0x8(%rbp)
movl   $0x1,-0x14(%rbp)
lea    0xe4b(%rip),%rdi
xor    %eax,%eax
mov    %eax,%esi
call   1040 <chaz_ConfWriter_add_def@plt>
lea    0xe76(%rip),%rsi
mov    %rsi,%rdi
call   1040 <chaz_ConfWriter_add_def@plt>
cmpl   $0x0,-0x14(%rbp)
jne    12aa <chaz_Memory_probe_alloca+0x16a>
lea    -0xc0(%rbp),%rdi
lea    0xdb1(%rip),%rsi
lea    0xe21(%rip),%rdx
lea    0xe48(%rip),%rcx
call   1060 <sprintf@plt>
lea    -0xc0(%rbp),%rdi
call   1050 <chaz_CC_test_compile@plt>
cmp    $0x0,%rax
je     12a5 <chaz_Memory_probe_alloca+0x165>
movl   $0x1,-0x14(%rbp)
movl   $0x1,-0x10(%rbp)
lea    0xdf3(%rip),%rdi
xor    %eax,%eax
mov    %eax,%esi
call   1040 <chaz_ConfWriter_add_def@plt>
lea    0xe08(%rip),%rsi
mov    %rsi,%rdi
call   1040 <chaz_ConfWriter_add_def@plt>
jmp    12aa <chaz_Memory_probe_alloca+0x16a>
cmpl   $0x0,-0x14(%rbp)
jne    130a <chaz_Memory_probe_alloca+0x1ca>
lea    -0xc0(%rbp),%rdi
lea    0xd3e(%rip),%rsi
lea    0xdca(%rip),%rdx
lea    0xdcb(%rip),%rcx
call   1060 <sprintf@plt>
lea    -0xc0(%rbp),%rdi
call   1050 <chaz_CC_test_compile@plt>
cmp    $0x0,%rax
je     1305 <chaz_Memory_probe_alloca+0x1c5>
movl   $0x1,-0x18(%rbp)
lea    0xdac(%rip),%rdi
lea    0xd9b(%rip),%rsi
call   1040 <chaz_ConfWriter_add_def@plt>
jmp    130a <chaz_Memory_probe_alloca+0x1ca>
cmpl   $0x0,-0x14(%rbp)
jne    1387 <chaz_Memory_probe_alloca+0x247>
cmpl   $0x0,-0x18(%rbp)
jne    1387 <chaz_Memory_probe_alloca+0x247>
lea    -0xc0(%rbp),%rdi
lea    0xcd4(%rip),%rsi
lea    0xd79(%rip),%rdx
lea    0xd6b(%rip),%rcx
call   1060 <sprintf@plt>
lea    -0xc0(%rbp),%rdi
call   1050 <chaz_CC_test_compile@plt>
cmp    $0x0,%rax
je     1382 <chaz_Memory_probe_alloca+0x242>
movl   $0x1,-0xc(%rbp)
movl   $0x1,-0x14(%rbp)
lea    0xd4b(%rip),%rdi
xor    %eax,%eax
mov    %eax,%esi
call   1040 <chaz_ConfWriter_add_def@plt>
lea    0xd2b(%rip),%rsi
mov    %rsi,%rdi
call   1040 <chaz_ConfWriter_add_def@plt>
jmp    1387 <chaz_Memory_probe_alloca+0x247>
cmpl   $0x0,-0x14(%rbp)
jne    1408 <chaz_Memory_probe_alloca+0x2c8>
cmpl   $0x0,-0x18(%rbp)
jne    1408 <chaz_Memory_probe_alloca+0x2c8>
lea    -0xc0(%rbp),%rdi
lea    0xc57(%rip),%rsi
lea    0xcfc(%rip),%rdx
lea    0xced(%rip),%rcx
call   1060 <sprintf@plt>
lea    -0xc0(%rbp),%rdi
call   1050 <chaz_CC_test_compile@plt>
cmp    $0x0,%rax
je     1403 <chaz_Memory_probe_alloca+0x2c3>
movl   $0x1,-0xc(%rbp)
movl   $0x1,-0x1c(%rbp)
lea    0xcce(%rip),%rdi
xor    %eax,%eax
mov    %eax,%esi
call   1040 <chaz_ConfWriter_add_def@plt>
lea    0xccb(%rip),%rdi
lea    0xca6(%rip),%rsi
call   1040 <chaz_ConfWriter_add_def@plt>
jmp    1408 <chaz_Memory_probe_alloca+0x2c8>
add    $0xe0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<chaz_Memory_probe_alloca>:
push   %rbx
sub    $0xa0,%rsp
mov    0x2cc1(%rip),%rax
mov    %rax,0x10(%rsp)
movaps 0x2ca5(%rip),%xmm0
movaps %xmm0,(%rsp)
mov    %rsp,%rdi
call   1030 <chaz_HeadCheck_check_many_headers@plt>
test   %rax,%rax
je     117a <chaz_Memory_probe_alloca+0x3a>
lea    0xedf(%rip),%rdi
xor    %esi,%esi
call   1040 <chaz_ConfWriter_add_def@plt>
lea    0xe7f(%rip),%rsi
lea    0xed9(%rip),%rdx
lea    0xf16(%rip),%rcx
mov    %rsp,%rbx
mov    %rbx,%rdi
call   1060 <sprintf@plt>
mov    %rbx,%rdi
call   1050 <chaz_CC_test_compile@plt>
test   %rax,%rax
je     11b0 <chaz_Memory_probe_alloca+0x70>
lea    0xebc(%rip),%rdi
jmp    11e4 <chaz_Memory_probe_alloca+0xa4>
lea    0xe49(%rip),%rsi
lea    0xeb9(%rip),%rdx
lea    0xee0(%rip),%rcx
mov    %rsp,%rbx
mov    %rbx,%rdi
call   1060 <sprintf@plt>
mov    %rbx,%rdi
call   1050 <chaz_CC_test_compile@plt>
test   %rax,%rax
je     1203 <chaz_Memory_probe_alloca+0xc3>
lea    0xe9c(%rip),%rdi
xor    %esi,%esi
call   1040 <chaz_ConfWriter_add_def@plt>
lea    0xeb3(%rip),%rdi
mov    %rdi,%rsi
call   1040 <chaz_ConfWriter_add_def@plt>
add    $0xa0,%rsp
pop    %rbx
ret
lea    0xdf6(%rip),%rsi
lea    0xe82(%rip),%rdx
lea    0xe83(%rip),%rcx
mov    %rsp,%rbx
mov    %rbx,%rdi
call   1060 <sprintf@plt>
mov    %rbx,%rdi
call   1050 <chaz_CC_test_compile@plt>
test   %rax,%rax
je     1240 <chaz_Memory_probe_alloca+0x100>
lea    0xe6e(%rip),%rdi
lea    0xe5d(%rip),%rsi
jmp    11f5 <chaz_Memory_probe_alloca+0xb5>
lea    0xdb9(%rip),%rsi
lea    0xe5e(%rip),%rdx
lea    0xe50(%rip),%rcx
mov    %rsp,%rbx
mov    %rbx,%rdi
call   1060 <sprintf@plt>
mov    %rbx,%rdi
call   1050 <chaz_CC_test_compile@plt>
test   %rax,%rax
je     1279 <chaz_Memory_probe_alloca+0x139>
lea    0xe41(%rip),%rdi
jmp    11e4 <chaz_Memory_probe_alloca+0xa4>
lea    0xd80(%rip),%rsi
lea    0xe25(%rip),%rdx
lea    0xe16(%rip),%rcx
mov    %rsp,%rbx
mov    %rbx,%rdi
call   1060 <sprintf@plt>
mov    %rbx,%rdi
call   1050 <chaz_CC_test_compile@plt>
test   %rax,%rax
je     11fa <chaz_Memory_probe_alloca+0xba>
lea    0xe04(%rip),%rdi
xor    %esi,%esi
call   1040 <chaz_ConfWriter_add_def@plt>
lea    0xe03(%rip),%rdi
lea    0xdde(%rip),%rsi
jmp    11f5 <chaz_Memory_probe_alloca+0xb5>

LLVM IR (-O0):
@chaz_Memory_probe_alloca.alloca_code = internal constant [59 x i8] c"#include <%s>\0Aint main() {\0Avoid *foo = %s(1);\0Areturn 0;\0A}\0A\00"
@.str = [12 x i8] c"sys/types.h\00"
@.str.1 = [11 x i8] c"sys/mman.h\00"
@__const.chaz_Memory_probe_alloca.mman_headers = [3 x i8*] [i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str, i32 0, i32 0), i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.1, i32 0, i32 0), i8* null]
@.str.2 = [15 x i8] c"HAS_SYS_MMAN_H\00"
@.str.3 = [9 x i8] c"alloca.h\00"
@.str.4 = [7 x i8] c"alloca\00"
@.str.5 = [13 x i8] c"HAS_ALLOCA_H\00"
@.str.6 = [9 x i8] c"stdlib.h\00"
@.str.7 = [19 x i8] c"ALLOCA_IN_STDLIB_H\00"
@.str.8 = [8 x i8] c"stdio.h\00"
@.str.9 = [17 x i8] c"__builtin_alloca\00"
@.str.10 = [9 x i8] c"malloc.h\00"
@.str.11 = [13 x i8] c"HAS_MALLOC_H\00"
@.str.12 = [8 x i8] c"_alloca\00"
@.str.13 = [11 x i8] c"chy_alloca\00"
define void @chaz_Memory_probe_alloca() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
%4 = alloca i32
%5 = alloca i32
%6 = alloca i32
%7 = alloca i32
%8 = alloca [159 x i8]
%9 = alloca [3 x i8*]
store i32 0, i32* %1
store i32 0, i32* %2
store i32 0, i32* %3
store i32 0, i32* %4
store i32 0, i32* %5
store i32 0, i32* %6
store i32 0, i32* %7
%10 = bitcast [3 x i8*]* %9 to i8*
%11 = getelementptr inbounds [3 x i8*], [3 x i8*]* %9, i64 0, i64 0
%12 = call i64 @chaz_HeadCheck_check_many_headers(i8** %11)
%13 = icmp ne i64 %12, 0
br i1 %13, label %14, label %16
14: ; preds = %0
store i32 1, i32* %1
%15 = call i32 @chaz_ConfWriter_add_def(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.2, i64 0, i64 0), i8* null)
br label %16
16: ; preds = %14, %0
%17 = getelementptr inbounds [159 x i8], [159 x i8]* %8, i64 0, i64 0
%18 = call i32 @sprintf(i8* %17, i8* getelementptr inbounds ([59 x i8], [59 x i8]* @chaz_Memory_probe_alloca.alloca_code, i64 0, i64 0), i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.4, i64 0, i64 0))
%19 = getelementptr inbounds [159 x i8], [159 x i8]* %8, i64 0, i64 0
%20 = call i64 @chaz_CC_test_compile(i8* %19)
%21 = icmp ne i64 %20, 0
br i1 %21, label %22, label %25
22: ; preds = %16
store i32 1, i32* %2
store i32 1, i32* %5
%23 = call i32 @chaz_ConfWriter_add_def(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.5, i64 0, i64 0), i8* null)
%24 = call i32 @chaz_ConfWriter_add_def(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.4, i64 0, i64 0))
br label %25
25: ; preds = %22, %16
%26 = load i32, i32* %5
%27 = icmp ne i32 %26, 0
br i1 %27, label %38, label %28
28: ; preds = %25
%29 = getelementptr inbounds [159 x i8], [159 x i8]* %8, i64 0, i64 0
%30 = call i32 @sprintf(i8* %29, i8* getelementptr inbounds ([59 x i8], [59 x i8]* @chaz_Memory_probe_alloca.alloca_code, i64 0, i64 0), i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.6, i64 0, i64 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.4, i64 0, i64 0))
%31 = getelementptr inbounds [159 x i8], [159 x i8]* %8, i64 0, i64 0
%32 = call i64 @chaz_CC_test_compile(i8* %31)
%33 = icmp ne i64 %32, 0
br i1 %33, label %34, label %37
34: ; preds = %28
store i32 1, i32* %5
store i32 1, i32* %4
%35 = call i32 @chaz_ConfWriter_add_def(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.7, i64 0, i64 0), i8* null)
%36 = call i32 @chaz_ConfWriter_add_def(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.4, i64 0, i64 0))
br label %37
37: ; preds = %34, %28
br label %38
38: ; preds = %37, %25
%39 = load i32, i32* %5
%40 = icmp ne i32 %39, 0
br i1 %40, label %50, label %41
41: ; preds = %38
%42 = getelementptr inbounds [159 x i8], [159 x i8]* %8, i64 0, i64 0
%43 = call i32 @sprintf(i8* %42, i8* getelementptr inbounds ([59 x i8], [59 x i8]* @chaz_Memory_probe_alloca.alloca_code, i64 0, i64 0), i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.8, i64 0, i64 0), i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.9, i64 0, i64 0))
%44 = getelementptr inbounds [159 x i8], [159 x i8]* %8, i64 0, i64 0
%45 = call i64 @chaz_CC_test_compile(i8* %44)
%46 = icmp ne i64 %45, 0
br i1 %46, label %47, label %49
47: ; preds = %41
store i32 1, i32* %6
%48 = call i32 @chaz_ConfWriter_add_def(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.9, i64 0, i64 0))
br label %49
49: ; preds = %47, %41
br label %50
50: ; preds = %49, %38
%51 = load i32, i32* %5
%52 = icmp ne i32 %51, 0
br i1 %52, label %66, label %53
53: ; preds = %50
%54 = load i32, i32* %6
%55 = icmp ne i32 %54, 0
br i1 %55, label %66, label %56
56: ; preds = %53
%57 = getelementptr inbounds [159 x i8], [159 x i8]* %8, i64 0, i64 0
%58 = call i32 @sprintf(i8* %57, i8* getelementptr inbounds ([59 x i8], [59 x i8]* @chaz_Memory_probe_alloca.alloca_code, i64 0, i64 0), i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.10, i64 0, i64 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.4, i64 0, i64 0))
%59 = getelementptr inbounds [159 x i8], [159 x i8]* %8, i64 0, i64 0
%60 = call i64 @chaz_CC_test_compile(i8* %59)
%61 = icmp ne i64 %60, 0
br i1 %61, label %62, label %65
62: ; preds = %56
store i32 1, i32* %3
store i32 1, i32* %5
%63 = call i32 @chaz_ConfWriter_add_def(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.11, i64 0, i64 0), i8* null)
%64 = call i32 @chaz_ConfWriter_add_def(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.4, i64 0, i64 0))
br label %65
65: ; preds = %62, %56
br label %66
66: ; preds = %65, %53, %50
%67 = load i32, i32* %5
%68 = icmp ne i32 %67, 0
br i1 %68, label %82, label %69
69: ; preds = %66
%70 = load i32, i32* %6
%71 = icmp ne i32 %70, 0
br i1 %71, label %82, label %72
72: ; preds = %69
%73 = getelementptr inbounds [159 x i8], [159 x i8]* %8, i64 0, i64 0
%74 = call i32 @sprintf(i8* %73, i8* getelementptr inbounds ([59 x i8], [59 x i8]* @chaz_Memory_probe_alloca.alloca_code, i64 0, i64 0), i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.10, i64 0, i64 0), i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.12, i64 0, i64 0))
%75 = getelementptr inbounds [159 x i8], [159 x i8]* %8, i64 0, i64 0
%76 = call i64 @chaz_CC_test_compile(i8* %75)
%77 = icmp ne i64 %76, 0
br i1 %77, label %78, label %81
78: ; preds = %72
store i32 1, i32* %3
store i32 1, i32* %7
%79 = call i32 @chaz_ConfWriter_add_def(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.11, i64 0, i64 0), i8* null)
%80 = call i32 @chaz_ConfWriter_add_def(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.13, i64 0, i64 0), i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.12, i64 0, i64 0))
br label %81
81: ; preds = %78, %72
br label %82
82: ; preds = %81, %69, %66
ret void
}

LLVM IR (-O2):
@chaz_Memory_probe_alloca.alloca_code = internal constant [59 x i8] c"#include <%s>\0Aint main() {\0Avoid *foo = %s(1);\0Areturn 0;\0A}\0A\00"
@.str = [12 x i8] c"sys/types.h\00"
@.str.1 = [11 x i8] c"sys/mman.h\00"
@__const.chaz_Memory_probe_alloca.mman_headers = [3 x i8*] [i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str, i32 0, i32 0), i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.1, i32 0, i32 0), i8* null]
@.str.2 = [15 x i8] c"HAS_SYS_MMAN_H\00"
@.str.3 = [9 x i8] c"alloca.h\00"
@.str.4 = [7 x i8] c"alloca\00"
@.str.5 = [13 x i8] c"HAS_ALLOCA_H\00"
@.str.6 = [9 x i8] c"stdlib.h\00"
@.str.7 = [19 x i8] c"ALLOCA_IN_STDLIB_H\00"
@.str.8 = [8 x i8] c"stdio.h\00"
@.str.9 = [17 x i8] c"__builtin_alloca\00"
@.str.10 = [9 x i8] c"malloc.h\00"
@.str.11 = [13 x i8] c"HAS_MALLOC_H\00"
@.str.12 = [8 x i8] c"_alloca\00"
@.str.13 = [11 x i8] c"chy_alloca\00"
define void @chaz_Memory_probe_alloca() {
%1 = alloca [159 x i8]
%2 = alloca [3 x i8*]
%3 = getelementptr inbounds [159 x i8], [159 x i8]* %1, i64 0, i64 0
%4 = bitcast [3 x i8*]* %2 to i8*
%5 = getelementptr inbounds [3 x i8*], [3 x i8*]* %2, i64 0, i64 0
%6 = call i64 @chaz_HeadCheck_check_many_headers(i8** %5)
%7 = icmp eq i64 %6, 0
br i1 %7, label %10, label %8
8: ; preds = %0
%9 = call i32 @chaz_ConfWriter_add_def(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.2, i64 0, i64 0), i8* null)
br label %10
10: ; preds = %8, %0
%11 = call i32 @sprintf(i8* %3, i8* dereferenceable(1) getelementptr inbounds ([59 x i8], [59 x i8]* @chaz_Memory_probe_alloca.alloca_code, i64 0, i64 0), i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.4, i64 0, i64 0))
%12 = call i64 @chaz_CC_test_compile(i8* %3)
%13 = icmp eq i64 %12, 0
br i1 %13, label %17, label %14
14: ; preds = %10
%15 = call i32 @chaz_ConfWriter_add_def(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.5, i64 0, i64 0), i8* null)
%16 = call i32 @chaz_ConfWriter_add_def(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.4, i64 0, i64 0))
br label %44
17: ; preds = %10
%18 = call i32 @sprintf(i8* %3, i8* dereferenceable(1) getelementptr inbounds ([59 x i8], [59 x i8]* @chaz_Memory_probe_alloca.alloca_code, i64 0, i64 0), i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.6, i64 0, i64 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.4, i64 0, i64 0))
%19 = call i64 @chaz_CC_test_compile(i8* %3)
%20 = icmp eq i64 %19, 0
br i1 %20, label %24, label %21
21: ; preds = %17
%22 = call i32 @chaz_ConfWriter_add_def(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.7, i64 0, i64 0), i8* null)
%23 = call i32 @chaz_ConfWriter_add_def(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.4, i64 0, i64 0))
br label %44
24: ; preds = %17
%25 = call i32 @sprintf(i8* %3, i8* dereferenceable(1) getelementptr inbounds ([59 x i8], [59 x i8]* @chaz_Memory_probe_alloca.alloca_code, i64 0, i64 0), i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.8, i64 0, i64 0), i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.9, i64 0, i64 0))
%26 = call i64 @chaz_CC_test_compile(i8* %3)
%27 = icmp eq i64 %26, 0
br i1 %27, label %30, label %28
28: ; preds = %24
%29 = call i32 @chaz_ConfWriter_add_def(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.9, i64 0, i64 0))
br label %44
30: ; preds = %24
%31 = call i32 @sprintf(i8* %3, i8* dereferenceable(1) getelementptr inbounds ([59 x i8], [59 x i8]* @chaz_Memory_probe_alloca.alloca_code, i64 0, i64 0), i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.10, i64 0, i64 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.4, i64 0, i64 0))
%32 = call i64 @chaz_CC_test_compile(i8* %3)
%33 = icmp eq i64 %32, 0
br i1 %33, label %37, label %34
34: ; preds = %30
%35 = call i32 @chaz_ConfWriter_add_def(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.11, i64 0, i64 0), i8* null)
%36 = call i32 @chaz_ConfWriter_add_def(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.4, i64 0, i64 0))
br label %44
37: ; preds = %30
%38 = call i32 @sprintf(i8* %3, i8* dereferenceable(1) getelementptr inbounds ([59 x i8], [59 x i8]* @chaz_Memory_probe_alloca.alloca_code, i64 0, i64 0), i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.10, i64 0, i64 0), i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.12, i64 0, i64 0))
%39 = call i64 @chaz_CC_test_compile(i8* %3)
%40 = icmp eq i64 %39, 0
br i1 %40, label %44, label %41
41: ; preds = %37
%42 = call i32 @chaz_ConfWriter_add_def(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.11, i64 0, i64 0), i8* null)
%43 = call i32 @chaz_ConfWriter_add_def(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.13, i64 0, i64 0), i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.12, i64 0, i64 0))
br label %44
44: ; preds = %28, %14, %21, %34, %37, %41
ret void
}