int test_detect_project() {
  char commandstr[512];
  char directory[512];
  char project_type[512];
  int retval, i;
  const char *proj_type[] = {"c", "cpp", "py", "vala"};
  printf("test_detect_project...");
  sprintf(directory, "%s%ctemp_5728", "/tmp", '/');
  if (directory_exists(directory) == 0) {
    sprintf(commandstr, "%s %s", "mkdir", directory);
    retval = system(commandstr);
  }
  for (i = 0; i < 4; i++) {
    sprintf(commandstr, "%s %s%c*", "rm -f", directory, '/');
    retval = system(commandstr);
    sprintf(commandstr, "touch %s%ctest.%s", directory, '/', proj_type[i]);
    retval = system(commandstr);
    project_type[0] = 0;
    detect_project_type(directory, project_type);
    assert(strlen(project_type) > 0);
    assert(strcmp(project_type, proj_type[i]) == 0);
  }
  printf("Ok\n");
  return retval;
}


x86 assembly (clang, -O0):
<test_detect_project>:
push   %rbp
mov    %rsp,%rbp
sub    $0x630,%rsp
mov    0x2c6e(%rip),%rax
mov    %rax,-0x630(%rbp)
mov    0x2c68(%rip),%rax
mov    %rax,-0x628(%rbp)
mov    0x2c62(%rip),%rax
mov    %rax,-0x620(%rbp)
mov    0x2c5c(%rip),%rax
mov    %rax,-0x618(%rbp)
lea    0xe44(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
lea    -0x400(%rbp),%rdi
lea    0xe46(%rip),%rsi
lea    0xe4d(%rip),%rdx
mov    $0x2f,%ecx
mov    $0x0,%al
call   10a0 <sprintf@plt>
lea    -0x400(%rbp),%rdi
mov    $0x0,%al
call   1070 <directory_exists@plt>
cmp    $0x0,%eax
jne    1240 <test_detect_project+0xc0>
lea    -0x200(%rbp),%rdi
lea    -0x400(%rbp),%rcx
lea    0xe1a(%rip),%rsi
lea    0xe19(%rip),%rdx
mov    $0x0,%al
call   10a0 <sprintf@plt>
lea    -0x200(%rbp),%rdi
mov    $0x0,%al
call   1050 <system@plt>
mov    %eax,-0x604(%rbp)
movl   $0x0,-0x608(%rbp)
cmpl   $0x4,-0x608(%rbp)
jge    1354 <test_detect_project+0x1d4>
lea    -0x200(%rbp),%rdi
lea    -0x400(%rbp),%rcx
lea    0xdd8(%rip),%rsi
lea    0xdda(%rip),%rdx
mov    $0x2f,%r8d
mov    $0x0,%al
call   10a0 <sprintf@plt>
lea    -0x200(%rbp),%rdi
mov    $0x0,%al
call   1050 <system@plt>
mov    %eax,-0x604(%rbp)
lea    -0x200(%rbp),%rdi
lea    -0x400(%rbp),%rdx
movslq -0x608(%rbp),%rax
mov    -0x630(%rbp,%rax,8),%r8
ff
lea    0xd9b(%rip),%rsi
mov    $0x2f,%ecx
mov    $0x0,%al
call   10a0 <sprintf@plt>
lea    -0x200(%rbp),%rdi
mov    $0x0,%al
call   1050 <system@plt>
mov    %eax,-0x604(%rbp)
movb   $0x0,-0x600(%rbp)
lea    -0x400(%rbp),%rdi
lea    -0x600(%rbp),%rsi
mov    $0x0,%al
call   1030 <detect_project_type@plt>
lea    -0x600(%rbp),%rdi
call   1040 <strlen@plt>
cmp    $0x0,%rax
seta   %al
and    $0x1,%al
movzbl %al,%edi
mov    $0x0,%al
call   1090 <assert@plt>
lea    -0x600(%rbp),%rdi
movslq -0x608(%rbp),%rax
mov    -0x630(%rbp,%rax,8),%rsi
ff
call   1080 <strcmp@plt>
cmp    $0x0,%eax
sete   %al
and    $0x1,%al
movzbl %al,%edi
mov    $0x0,%al
call   1090 <assert@plt>
mov    -0x608(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x608(%rbp)
jmp    124a <test_detect_project+0xca>
lea    0xd0a(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
mov    -0x604(%rbp),%eax
add    $0x630,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<test_detect_project>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x608,%rsp
lea    0xe86(%rip),%rdi
xor    %eax,%eax
call   1060 <printf@plt>
lea    0xe8f(%rip),%rsi
lea    0xe96(%rip),%rdx
lea    0x200(%rsp),%rbx
mov    %rbx,%rdi
mov    $0x2f,%ecx
xor    %eax,%eax
call   1090 <sprintf@plt>
mov    %rbx,%rdi
xor    %eax,%eax
call   1070 <directory_exists@plt>
test   %eax,%eax
jne    11f4 <test_detect_project+0x84>
lea    0xe6f(%rip),%rsi
lea    0xe6e(%rip),%rdx
lea    0x400(%rsp),%rbx
lea    0x200(%rsp),%rcx
mov    %rbx,%rdi
xor    %eax,%eax
call   1090 <sprintf@plt>
mov    %rbx,%rdi
xor    %eax,%eax
call   1050 <system@plt>
lea    0xe49(%rip),%r15
lea    0xe4b(%rip),%r12
lea    0x400(%rsp),%rbx
lea    0x200(%rsp),%r14
mov    %rbx,%rdi
mov    %r15,%rsi
mov    %r12,%rdx
mov    %r14,%rcx
mov    $0x2f,%r8d
xor    %eax,%eax
call   1090 <sprintf@plt>
mov    %rbx,%rdi
xor    %eax,%eax
call   1050 <system@plt>
lea    0xe17(%rip),%r13
lea    0xdbd(%rip),%r8
mov    %rbx,%rdi
mov    %r13,%rsi
mov    %r14,%rdx
mov    $0x2f,%ecx
xor    %eax,%eax
call   1090 <sprintf@plt>
mov    %rbx,%rdi
xor    %eax,%eax
call   1050 <system@plt>
movb   $0x0,(%rsp)
mov    %rsp,%rbp
mov    %r14,%rdi
mov    %rbp,%rsi
xor    %eax,%eax
call   1040 <detect_project_type@plt>
xor    %edi,%edi
cmpb   $0x0,(%rsp)
setne  %dil
xor    %eax,%eax
call   1080 <assert@plt>
xor    %edi,%edi
cmpw   $0x63,(%rsp)
sete   %dil
xor    %eax,%eax
call   1080 <assert@plt>
mov    %rbx,%rdi
mov    %r15,%rsi
mov    %r12,%rdx
mov    %r14,%rcx
mov    $0x2f,%r8d
xor    %eax,%eax
call   1090 <sprintf@plt>
mov    %rbx,%rdi
xor    %eax,%eax
call   1050 <system@plt>
lea    0xd3f(%rip),%r8
mov    %rbx,%rdi
mov    %r13,%rsi
mov    %r14,%rdx
mov    $0x2f,%ecx
xor    %eax,%eax
call   1090 <sprintf@plt>
mov    %rbx,%rdi
xor    %eax,%eax
call   1050 <system@plt>
movb   $0x0,(%rsp)
mov    %r14,%rdi
mov    %rbp,%rsi
xor    %eax,%eax
call   1040 <detect_project_type@plt>
xor    %edi,%edi
cmpb   $0x0,(%rsp)
setne  %dil
xor    %eax,%eax
call   1080 <assert@plt>
xor    %edi,%edi
cmpl   $0x707063,(%rsp)
sete   %dil
xor    %eax,%eax
call   1080 <assert@plt>
mov    %rbx,%rdi
mov    %r15,%rsi
mov    %r12,%rdx
mov    %r14,%rcx
mov    $0x2f,%r8d
xor    %eax,%eax
call   1090 <sprintf@plt>
mov    %rbx,%rdi
xor    %eax,%eax
call   1050 <system@plt>
lea    0xcc4(%rip),%r8
mov    %rbx,%rdi
mov    %r13,%rsi
mov    %r14,%rdx
mov    $0x2f,%ecx
xor    %eax,%eax
call   1090 <sprintf@plt>
mov    %rbx,%rdi
xor    %eax,%eax
call   1050 <system@plt>
movb   $0x0,(%rsp)
mov    %r14,%rdi
mov    %rbp,%rsi
xor    %eax,%eax
call   1040 <detect_project_type@plt>
xor    %edi,%edi
cmpb   $0x0,(%rsp)
setne  %dil
xor    %eax,%eax
call   1080 <assert@plt>
mov    $0x7970,%eax
xor    (%rsp),%eax
movzbl 0x2(%rsp),%ecx
xor    %edi,%edi
or     %ax,%cx
sete   %dil
xor    %eax,%eax
call   1080 <assert@plt>
mov    %rbx,%rdi
mov    %r15,%rsi
mov    %r12,%rdx
mov    %r14,%rcx
mov    $0x2f,%r8d
xor    %eax,%eax
call   1090 <sprintf@plt>
mov    %rbx,%rdi
xor    %eax,%eax
call   1050 <system@plt>
lea    0xc3f(%rip),%r8
mov    %rbx,%rdi
mov    %r13,%rsi
mov    %r14,%rdx
mov    $0x2f,%ecx
xor    %eax,%eax
call   1090 <sprintf@plt>
mov    %rbx,%rdi
xor    %eax,%eax
call   1050 <system@plt>
mov    %eax,%ebx
movb   $0x0,(%rsp)
mov    %r14,%rdi
mov    %rbp,%rsi
xor    %eax,%eax
call   1040 <detect_project_type@plt>
xor    %edi,%edi
cmpb   $0x0,(%rsp)
setne  %dil
xor    %eax,%eax
call   1080 <assert@plt>
mov    $0x616c6176,%eax
xor    (%rsp),%eax
movzbl 0x4(%rsp),%ecx
xor    %edi,%edi
or     %eax,%ecx
sete   %dil
xor    %eax,%eax
call   1080 <assert@plt>
lea    0xc35(%rip),%rdi
call   1030 <puts@plt>
mov    %ebx,%eax
add    $0x608,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [2 x i8] c"c\00"
@.str.1 = [4 x i8] c"cpp\00"
@.str.2 = [3 x i8] c"py\00"
@.str.3 = [5 x i8] c"vala\00"
@__const.test_detect_project.proj_type = [4 x i8*] [i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i32 0, i32 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i32 0, i32 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i32 0, i32 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i32 0, i32 0)]
@.str.4 = [23 x i8] c"test_detect_project...\00"
@.str.5 = [14 x i8] c"%s%ctemp_5728\00"
@.str.6 = [5 x i8] c"/tmp\00"
@.str.7 = [6 x i8] c"%s %s\00"
@.str.8 = [6 x i8] c"mkdir\00"
@.str.9 = [9 x i8] c"%s %s%c*\00"
@.str.10 = [6 x i8] c"rm -f\00"
@.str.11 = [18 x i8] c"touch %s%ctest.%s\00"
@.str.12 = [4 x i8] c"Ok\0A\00"
define i32 @test_detect_project() {
%1 = alloca [512 x i8]
%2 = alloca [512 x i8]
%3 = alloca [512 x i8]
%4 = alloca i32
%5 = alloca i32
%6 = alloca [4 x i8*]
%7 = bitcast [4 x i8*]* %6 to i8*
%8 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.4, i64 0, i64 0))
%9 = getelementptr inbounds [512 x i8], [512 x i8]* %2, i64 0, i64 0
%10 = call i32 (i8*, i8*, ...) @sprintf(i8* %9, i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.5, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.6, i64 0, i64 0), i32 47)
%11 = getelementptr inbounds [512 x i8], [512 x i8]* %2, i64 0, i64 0
%12 = call i32 (i8*, ...) bitcast (i32 (...)* @directory_exists to i32 (i8*, ...)*)(i8* %11)
%13 = icmp eq i32 %12, 0
br i1 %13, label %14, label %20
14: ; preds = %0
%15 = getelementptr inbounds [512 x i8], [512 x i8]* %1, i64 0, i64 0
%16 = getelementptr inbounds [512 x i8], [512 x i8]* %2, i64 0, i64 0
%17 = call i32 (i8*, i8*, ...) @sprintf(i8* %15, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.7, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.8, i64 0, i64 0), i8* %16)
%18 = getelementptr inbounds [512 x i8], [512 x i8]* %1, i64 0, i64 0
%19 = call i32 (i8*, ...) bitcast (i32 (...)* @system to i32 (i8*, ...)*)(i8* %18)
store i32 %19, i32* %4
br label %20
20: ; preds = %14, %0
store i32 0, i32* %5
br label %21
21: ; preds = %57, %20
%22 = load i32, i32* %5
%23 = icmp slt i32 %22, 4
br i1 %23, label %24, label %60
24: ; preds = %21
%25 = getelementptr inbounds [512 x i8], [512 x i8]* %1, i64 0, i64 0
%26 = getelementptr inbounds [512 x i8], [512 x i8]* %2, i64 0, i64 0
%27 = call i32 (i8*, i8*, ...) @sprintf(i8* %25, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.9, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.10, i64 0, i64 0), i8* %26, i32 47)
%28 = getelementptr inbounds [512 x i8], [512 x i8]* %1, i64 0, i64 0
%29 = call i32 (i8*, ...) bitcast (i32 (...)* @system to i32 (i8*, ...)*)(i8* %28)
store i32 %29, i32* %4
%30 = getelementptr inbounds [512 x i8], [512 x i8]* %1, i64 0, i64 0
%31 = getelementptr inbounds [512 x i8], [512 x i8]* %2, i64 0, i64 0
%32 = load i32, i32* %5
%33 = sext i32 %32 to i64
%34 = getelementptr inbounds [4 x i8*], [4 x i8*]* %6, i64 0, i64 %33
%35 = load i8*, i8** %34
%36 = call i32 (i8*, i8*, ...) @sprintf(i8* %30, i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.11, i64 0, i64 0), i8* %31, i32 47, i8* %35)
%37 = getelementptr inbounds [512 x i8], [512 x i8]* %1, i64 0, i64 0
%38 = call i32 (i8*, ...) bitcast (i32 (...)* @system to i32 (i8*, ...)*)(i8* %37)
store i32 %38, i32* %4
%39 = getelementptr inbounds [512 x i8], [512 x i8]* %3, i64 0, i64 0
store i8 0, i8* %39
%40 = getelementptr inbounds [512 x i8], [512 x i8]* %2, i64 0, i64 0
%41 = getelementptr inbounds [512 x i8], [512 x i8]* %3, i64 0, i64 0
%42 = call i32 (i8*, i8*, ...) bitcast (i32 (...)* @detect_project_type to i32 (i8*, i8*, ...)*)(i8* %40, i8* %41)
%43 = getelementptr inbounds [512 x i8], [512 x i8]* %3, i64 0, i64 0
%44 = call i64 @strlen(i8* %43)
%45 = icmp ugt i64 %44, 0
%46 = zext i1 %45 to i32
%47 = call i32 (i32, ...) bitcast (i32 (...)* @assert to i32 (i32, ...)*)(i32 %46)
%48 = getelementptr inbounds [512 x i8], [512 x i8]* %3, i64 0, i64 0
%49 = load i32, i32* %5
%50 = sext i32 %49 to i64
%51 = getelementptr inbounds [4 x i8*], [4 x i8*]* %6, i64 0, i64 %50
%52 = load i8*, i8** %51
%53 = call i32 @strcmp(i8* %48, i8* %52)
%54 = icmp eq i32 %53, 0
%55 = zext i1 %54 to i32
%56 = call i32 (i32, ...) bitcast (i32 (...)* @assert to i32 (i32, ...)*)(i32 %55)
br label %57
57: ; preds = %24
%58 = load i32, i32* %5
%59 = add nsw i32 %58, 1
store i32 %59, i32* %5
br label %21
60: ; preds = %21
%61 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.12, i64 0, i64 0))
%62 = load i32, i32* %4
ret i32 %62
}

LLVM IR (-O2):
@.str = [2 x i8] c"c\00"
@.str.1 = [4 x i8] c"cpp\00"
@.str.2 = [3 x i8] c"py\00"
@.str.3 = [5 x i8] c"vala\00"
@.str.4 = [23 x i8] c"test_detect_project...\00"
@.str.5 = [14 x i8] c"%s%ctemp_5728\00"
@.str.6 = [5 x i8] c"/tmp\00"
@.str.7 = [6 x i8] c"%s %s\00"
@.str.8 = [6 x i8] c"mkdir\00"
@.str.9 = [9 x i8] c"%s %s%c*\00"
@.str.10 = [6 x i8] c"rm -f\00"
@.str.11 = [18 x i8] c"touch %s%ctest.%s\00"
@str = [3 x i8] c"Ok\00"
define i32 @test_detect_project() {
%1 = alloca [512 x i8]
%2 = alloca [512 x i8]
%3 = alloca [512 x i8]
%4 = getelementptr inbounds [512 x i8], [512 x i8]* %1, i64 0, i64 0
%5 = getelementptr inbounds [512 x i8], [512 x i8]* %2, i64 0, i64 0
%6 = getelementptr inbounds [512 x i8], [512 x i8]* %3, i64 0, i64 0
%7 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([23 x i8], [23 x i8]* @.str.4, i64 0, i64 0))
%8 = call i32 (i8*, i8*, ...) @sprintf(i8* %5, i8* dereferenceable(1) getelementptr inbounds ([14 x i8], [14 x i8]* @.str.5, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.6, i64 0, i64 0), i32 47)
%9 = call i32 (i8*, ...) bitcast (i32 (...)* @directory_exists to i32 (i8*, ...)*)(i8* %5)
%10 = icmp eq i32 %9, 0
br i1 %10, label %11, label %14
11: ; preds = %0
%12 = call i32 (i8*, i8*, ...) @sprintf(i8* %4, i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @.str.7, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.8, i64 0, i64 0), i8* %5)
%13 = call i32 (i8*, ...) bitcast (i32 (...)* @system to i32 (i8*, ...)*)(i8* %4)
br label %14
14: ; preds = %11, %0
%15 = call i32 (i8*, i8*, ...) @sprintf(i8* %4, i8* dereferenceable(1) getelementptr inbounds ([9 x i8], [9 x i8]* @.str.9, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.10, i64 0, i64 0), i8* %5, i32 47)
%16 = call i32 (i8*, ...) bitcast (i32 (...)* @system to i32 (i8*, ...)*)(i8* %4)
%17 = call i32 (i8*, i8*, ...) @sprintf(i8* %4, i8* dereferenceable(1) getelementptr inbounds ([18 x i8], [18 x i8]* @.str.11, i64 0, i64 0), i8* %5, i32 47, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
%18 = call i32 (i8*, ...) bitcast (i32 (...)* @system to i32 (i8*, ...)*)(i8* %4)
store i8 0, i8* %6
%19 = call i32 (i8*, i8*, ...) bitcast (i32 (...)* @detect_project_type to i32 (i8*, i8*, ...)*)(i8* %5, i8* %6)
%20 = load i8, i8* %6
%21 = icmp ne i8 %20, 0
%22 = zext i1 %21 to i32
%23 = call i32 (i32, ...) bitcast (i32 (...)* @assert to i32 (i32, ...)*)(i32 %22)
%24 = bitcast [512 x i8]* %3 to i16*
%25 = load i16, i16* %24
%26 = icmp eq i16 %25, 99
%27 = zext i1 %26 to i32
%28 = call i32 (i32, ...) bitcast (i32 (...)* @assert to i32 (i32, ...)*)(i32 %27)
%29 = call i32 (i8*, i8*, ...) @sprintf(i8* %4, i8* dereferenceable(1) getelementptr inbounds ([9 x i8], [9 x i8]* @.str.9, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.10, i64 0, i64 0), i8* %5, i32 47)
%30 = call i32 (i8*, ...) bitcast (i32 (...)* @system to i32 (i8*, ...)*)(i8* %4)
%31 = call i32 (i8*, i8*, ...) @sprintf(i8* %4, i8* dereferenceable(1) getelementptr inbounds ([18 x i8], [18 x i8]* @.str.11, i64 0, i64 0), i8* %5, i32 47, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0))
%32 = call i32 (i8*, ...) bitcast (i32 (...)* @system to i32 (i8*, ...)*)(i8* %4)
store i8 0, i8* %6
%33 = call i32 (i8*, i8*, ...) bitcast (i32 (...)* @detect_project_type to i32 (i8*, i8*, ...)*)(i8* %5, i8* %6)
%34 = load i8, i8* %6
%35 = icmp ne i8 %34, 0
%36 = zext i1 %35 to i32
%37 = call i32 (i32, ...) bitcast (i32 (...)* @assert to i32 (i32, ...)*)(i32 %36)
%38 = bitcast [512 x i8]* %3 to i32*
%39 = load i32, i32* %38
%40 = icmp eq i32 %39, 7368803
%41 = zext i1 %40 to i32
%42 = call i32 (i32, ...) bitcast (i32 (...)* @assert to i32 (i32, ...)*)(i32 %41)
%43 = call i32 (i8*, i8*, ...) @sprintf(i8* %4, i8* dereferenceable(1) getelementptr inbounds ([9 x i8], [9 x i8]* @.str.9, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.10, i64 0, i64 0), i8* %5, i32 47)
%44 = call i32 (i8*, ...) bitcast (i32 (...)* @system to i32 (i8*, ...)*)(i8* %4)
%45 = call i32 (i8*, i8*, ...) @sprintf(i8* %4, i8* dereferenceable(1) getelementptr inbounds ([18 x i8], [18 x i8]* @.str.11, i64 0, i64 0), i8* %5, i32 47, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0))
%46 = call i32 (i8*, ...) bitcast (i32 (...)* @system to i32 (i8*, ...)*)(i8* %4)
store i8 0, i8* %6
%47 = call i32 (i8*, i8*, ...) bitcast (i32 (...)* @detect_project_type to i32 (i8*, i8*, ...)*)(i8* %5, i8* %6)
%48 = load i8, i8* %6
%49 = icmp ne i8 %48, 0
%50 = zext i1 %49 to i32
%51 = call i32 (i32, ...) bitcast (i32 (...)* @assert to i32 (i32, ...)*)(i32 %50)
%52 = call i32 @bcmp(i8* dereferenceable(3) %6, i8* dereferenceable(3) getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), i64 3)
%53 = icmp eq i32 %52, 0
%54 = zext i1 %53 to i32
%55 = call i32 (i32, ...) bitcast (i32 (...)* @assert to i32 (i32, ...)*)(i32 %54)
%56 = call i32 (i8*, i8*, ...) @sprintf(i8* %4, i8* dereferenceable(1) getelementptr inbounds ([9 x i8], [9 x i8]* @.str.9, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.10, i64 0, i64 0), i8* %5, i32 47)
%57 = call i32 (i8*, ...) bitcast (i32 (...)* @system to i32 (i8*, ...)*)(i8* %4)
%58 = call i32 (i8*, i8*, ...) @sprintf(i8* %4, i8* dereferenceable(1) getelementptr inbounds ([18 x i8], [18 x i8]* @.str.11, i64 0, i64 0), i8* %5, i32 47, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i64 0, i64 0))
%59 = call i32 (i8*, ...) bitcast (i32 (...)* @system to i32 (i8*, ...)*)(i8* %4)
store i8 0, i8* %6
%60 = call i32 (i8*, i8*, ...) bitcast (i32 (...)* @detect_project_type to i32 (i8*, i8*, ...)*)(i8* %5, i8* %6)
%61 = load i8, i8* %6
%62 = icmp ne i8 %61, 0
%63 = zext i1 %62 to i32
%64 = call i32 (i32, ...) bitcast (i32 (...)* @assert to i32 (i32, ...)*)(i32 %63)
%65 = call i32 @bcmp(i8* dereferenceable(5) %6, i8* dereferenceable(5) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i64 0, i64 0), i64 5)
%66 = icmp eq i32 %65, 0
%67 = zext i1 %66 to i32
%68 = call i32 (i32, ...) bitcast (i32 (...)* @assert to i32 (i32, ...)*)(i32 %67)
%69 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([3 x i8], [3 x i8]* @str, i64 0, i64 0))
ret i32 %59
}