#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*/ add_makefile_entry_to_file(char *, char *, char *);
int empty_makefile_section(char *, char *);
int /*<<< orphan*/ get_setting(char *, char *);
scalar_t__ is_library(char *);
int /*<<< orphan*/ sprintf(char *, char *, char *, char *, char *, char *);
scalar_t__ strcmp(char *, char *);
void save_makefile_c(char *filename) {
  char str[512];
  char c_standard[512];
  char project_type[512];
  char project_name[512];
  char compile_args[512];
  char sourcedir[512];
  get_setting("project name", project_name);
  get_setting("project type", project_type);
  get_setting("c standard", c_standard);
  get_setting("compile", compile_args);
  get_setting("source dir", sourcedir);
  if ((strcmp(project_type, "c") == 0) || (strcmp(project_type, "C") == 0)) {
    if (is_library(project_name) == 0) {
      if (empty_makefile_section(filename, "all") == 1) {
        sprintf(str,
                "gcc -Wall -std=%s -pedantic "
                "-O3 -o ${APP} %s/*.c -I%s %s",
                c_standard, sourcedir, sourcedir, compile_args);
        add_makefile_entry_to_file(filename, "all", str);
      }
      if (empty_makefile_section(filename, "debug") == 1) {
        sprintf(str,
                "gcc -Wall -std=%s -pedantic "
                "-g -o ${APP} %s/*.c -I%s %s",
                c_standard, sourcedir, sourcedir, compile_args);
        add_makefile_entry_to_file(filename, "debug", str);
      }
    } else {
      if (empty_makefile_section(filename, "all") == 1) {
        sprintf(str,
                "gcc -shared -Wl,-soname,${SONAME} "
                "-std=%s -pedantic -fPIC "
                "-O3 -o ${LIBNAME} %s/*.c -I%s %s",
                c_standard, sourcedir, sourcedir, compile_args);
        add_makefile_entry_to_file(filename, "all", str);
      }
      if (empty_makefile_section(filename, "debug") == 1) {
        sprintf(str,
                "gcc -shared -Wl,-soname,${SONAME} "
                "-std=%s -pedantic -fPIC "
                "-g -o ${LIBNAME} %s/*.c -I%s %s",
                c_standard, sourcedir, sourcedir, compile_args);
        add_makefile_entry_to_file(filename, "debug", str);
      }
    }
  }
}


x86 assembly (clang, -O0):
<save_makefile_c>:
push   %rbp
mov    %rsp,%rbp
sub    $0xc10,%rsp
mov    %rdi,-0x8(%rbp)
lea    -0x810(%rbp),%rsi
lea    0xe83(%rip),%rdi
call   1040 <get_setting@plt>
lea    -0x610(%rbp),%rsi
lea    0xe7d(%rip),%rdi
call   1040 <get_setting@plt>
lea    -0x410(%rbp),%rsi
lea    0xe77(%rip),%rdi
call   1040 <get_setting@plt>
lea    -0xa10(%rbp),%rsi
lea    0xe6f(%rip),%rdi
call   1040 <get_setting@plt>
lea    -0xc10(%rbp),%rsi
lea    0xe64(%rip),%rdi
call   1040 <get_setting@plt>
lea    -0x610(%rbp),%rdi
lea    0xe5c(%rip),%rsi
call   1030 <strcmp@plt>
cmp    $0x0,%rax
je     1208 <save_makefile_c+0xa8>
lea    -0x610(%rbp),%rdi
lea    0xe41(%rip),%rsi
call   1030 <strcmp@plt>
cmp    $0x0,%rax
jne    13a9 <save_makefile_c+0x249>
lea    -0x810(%rbp),%rdi
call   1050 <is_library@plt>
cmp    $0x0,%rax
jne    12e1 <save_makefile_c+0x181>
mov    -0x8(%rbp),%rdi
lea    0xe13(%rip),%rsi
call   1060 <empty_makefile_section@plt>
cmp    $0x1,%eax
jne    127d <save_makefile_c+0x11d>
lea    -0x210(%rbp),%rdi
lea    -0x410(%rbp),%rdx
lea    -0xc10(%rbp),%rcx
lea    -0xc10(%rbp),%r8
lea    -0xa10(%rbp),%r9
lea    0xddf(%rip),%rsi
call   1070 <sprintf@plt>
mov    -0x8(%rbp),%rdi
lea    -0x210(%rbp),%rdx
lea    0xdc4(%rip),%rsi
call   1080 <add_makefile_entry_to_file@plt>
mov    -0x8(%rbp),%rdi
lea    0xdf1(%rip),%rsi
call   1060 <empty_makefile_section@plt>
cmp    $0x1,%eax
jne    12dc <save_makefile_c+0x17c>
lea    -0x210(%rbp),%rdi
lea    -0x410(%rbp),%rdx
lea    -0xc10(%rbp),%rcx
lea    -0xc10(%rbp),%r8
lea    -0xa10(%rbp),%r9
lea    0xdbf(%rip),%rsi
call   1070 <sprintf@plt>
mov    -0x8(%rbp),%rdi
lea    -0x210(%rbp),%rdx
lea    0xda2(%rip),%rsi
call   1080 <add_makefile_entry_to_file@plt>
jmp    13a4 <save_makefile_c+0x244>
mov    -0x8(%rbp),%rdi
lea    0xd50(%rip),%rsi
call   1060 <empty_makefile_section@plt>
cmp    $0x1,%eax
jne    1340 <save_makefile_c+0x1e0>
lea    -0x210(%rbp),%rdi
lea    -0x410(%rbp),%rdx
lea    -0xc10(%rbp),%rcx
lea    -0xc10(%rbp),%r8
lea    -0xa10(%rbp),%r9
lea    0xd93(%rip),%rsi
call   1070 <sprintf@plt>
mov    -0x8(%rbp),%rdi
lea    -0x210(%rbp),%rdx
lea    0xd01(%rip),%rsi
call   1080 <add_makefile_entry_to_file@plt>
mov    -0x8(%rbp),%rdi
lea    0xd2e(%rip),%rsi
call   1060 <empty_makefile_section@plt>
cmp    $0x1,%eax
jne    139f <save_makefile_c+0x23f>
lea    -0x210(%rbp),%rdi
lea    -0x410(%rbp),%rdx
lea    -0xc10(%rbp),%rcx
lea    -0xc10(%rbp),%r8
lea    -0xa10(%rbp),%r9
lea    0xd8f(%rip),%rsi
call   1070 <sprintf@plt>
mov    -0x8(%rbp),%rdi
lea    -0x210(%rbp),%rdx
lea    0xcdf(%rip),%rsi
call   1080 <add_makefile_entry_to_file@plt>
jmp    13a4 <save_makefile_c+0x244>
jmp    13a9 <save_makefile_c+0x249>
add    $0xc10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<save_makefile_c>:
push   %r14
push   %rbx
sub    $0xc08,%rsp
mov    %rdi,%r14
lea    0xe8c(%rip),%rdi
lea    0x800(%rsp),%rsi
call   1040 <get_setting@plt>
lea    0xe85(%rip),%rdi
lea    0xa00(%rsp),%rbx
mov    %rbx,%rsi
call   1040 <get_setting@plt>
lea    0xe7b(%rip),%rdi
lea    0x400(%rsp),%rsi
call   1040 <get_setting@plt>
lea    0xe72(%rip),%rdi
lea    0x200(%rsp),%rsi
call   1040 <get_setting@plt>
lea    0xe66(%rip),%rdi
mov    %rsp,%rsi
call   1040 <get_setting@plt>
lea    0xe62(%rip),%rsi
mov    %rbx,%rdi
call   1030 <strcmp@plt>
test   %rax,%rax
je     1200 <save_makefile_c+0xa0>
lea    0xe50(%rip),%rsi
lea    0xa00(%rsp),%rdi
call   1030 <strcmp@plt>
test   %rax,%rax
jne    1320 <save_makefile_c+0x1c0>
lea    0x800(%rsp),%rdi
call   1050 <is_library@plt>
mov    %rax,%rbx
lea    0xe25(%rip),%rsi
mov    %r14,%rdi
call   1060 <empty_makefile_section@plt>
test   %rbx,%rbx
je     1289 <save_makefile_c+0x129>
cmp    $0x1,%eax
jne    1268 <save_makefile_c+0x108>
lea    0xe87(%rip),%rsi
lea    0x600(%rsp),%rbx
lea    0x400(%rsp),%rdx
mov    %rsp,%rcx
lea    0x200(%rsp),%r9
mov    %rbx,%rdi
mov    %rcx,%r8
call   1070 <sprintf@plt>
lea    0xddf(%rip),%rsi
mov    %r14,%rdi
mov    %rbx,%rdx
call   1080 <add_makefile_entry_to_file@plt>
lea    0xe0a(%rip),%rsi
mov    %r14,%rdi
call   1060 <empty_makefile_section@plt>
cmp    $0x1,%eax
jne    1320 <save_makefile_c+0x1c0>
lea    0xe8b(%rip),%rsi
jmp    12e8 <save_makefile_c+0x188>
cmp    $0x1,%eax
jne    12cd <save_makefile_c+0x16d>
lea    0xdab(%rip),%rsi
lea    0x600(%rsp),%rbx
lea    0x400(%rsp),%rdx
mov    %rsp,%rcx
lea    0x200(%rsp),%r9
mov    %rbx,%rdi
mov    %rcx,%r8
call   1070 <sprintf@plt>
lea    0xd7a(%rip),%rsi
mov    %r14,%rdi
mov    %rbx,%rdx
call   1080 <add_makefile_entry_to_file@plt>
lea    0xda5(%rip),%rsi
mov    %r14,%rdi
call   1060 <empty_makefile_section@plt>
cmp    $0x1,%eax
jne    1320 <save_makefile_c+0x1c0>
lea    0xd97(%rip),%rsi
lea    0x600(%rsp),%rbx
lea    0x400(%rsp),%rdx
mov    %rsp,%rcx
lea    0x200(%rsp),%r9
mov    %rbx,%rdi
mov    %rcx,%r8
call   1070 <sprintf@plt>
lea    0xd64(%rip),%rsi
mov    %r14,%rdi
mov    %rbx,%rdx
call   1080 <add_makefile_entry_to_file@plt>
add    $0xc08,%rsp
pop    %rbx
pop    %r14
ret

LLVM IR (-O0):
@.str = [13 x i8] c"project name\00"
@.str.1 = [13 x i8] c"project type\00"
@.str.2 = [11 x i8] c"c standard\00"
@.str.3 = [8 x i8] c"compile\00"
@.str.4 = [11 x i8] c"source dir\00"
@.str.5 = [2 x i8] c"c\00"
@.str.6 = [2 x i8] c"C\00"
@.str.7 = [4 x i8] c"all\00"
@.str.8 = [57 x i8] c"gcc -Wall -std=%s -pedantic -O3 -o ${APP} %s/*.c -I%s %s\00"
@.str.9 = [6 x i8] c"debug\00"
@.str.10 = [56 x i8] c"gcc -Wall -std=%s -pedantic -g -o ${APP} %s/*.c -I%s %s\00"
@.str.11 = [91 x i8] c"gcc -shared -Wl,-soname,${SONAME} -std=%s -pedantic -fPIC -O3 -o ${LIBNAME} %s/*.c -I%s %s\00"
@.str.12 = [90 x i8] c"gcc -shared -Wl,-soname,${SONAME} -std=%s -pedantic -fPIC -g -o ${LIBNAME} %s/*.c -I%s %s\00"
define void @save_makefile_c(i8* %0) {
%2 = alloca i8*
%3 = alloca [512 x i8]
%4 = alloca [512 x i8]
%5 = alloca [512 x i8]
%6 = alloca [512 x i8]
%7 = alloca [512 x i8]
%8 = alloca [512 x i8]
store i8* %0, i8** %2
%9 = getelementptr inbounds [512 x i8], [512 x i8]* %6, i64 0, i64 0
%10 = call i32 @get_setting(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str, i64 0, i64 0), i8* %9)
%11 = getelementptr inbounds [512 x i8], [512 x i8]* %5, i64 0, i64 0
%12 = call i32 @get_setting(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.1, i64 0, i64 0), i8* %11)
%13 = getelementptr inbounds [512 x i8], [512 x i8]* %4, i64 0, i64 0
%14 = call i32 @get_setting(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.2, i64 0, i64 0), i8* %13)
%15 = getelementptr inbounds [512 x i8], [512 x i8]* %7, i64 0, i64 0
%16 = call i32 @get_setting(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.3, i64 0, i64 0), i8* %15)
%17 = getelementptr inbounds [512 x i8], [512 x i8]* %8, i64 0, i64 0
%18 = call i32 @get_setting(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.4, i64 0, i64 0), i8* %17)
%19 = getelementptr inbounds [512 x i8], [512 x i8]* %5, i64 0, i64 0
%20 = call i64 @strcmp(i8* %19, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.5, i64 0, i64 0))
%21 = icmp eq i64 %20, 0
br i1 %21, label %26, label %22
22: ; preds = %1
%23 = getelementptr inbounds [512 x i8], [512 x i8]* %5, i64 0, i64 0
%24 = call i64 @strcmp(i8* %23, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.6, i64 0, i64 0))
%25 = icmp eq i64 %24, 0
br i1 %25, label %26, label %89
26: ; preds = %22, %1
%27 = getelementptr inbounds [512 x i8], [512 x i8]* %6, i64 0, i64 0
%28 = call i64 @is_library(i8* %27)
%29 = icmp eq i64 %28, 0
br i1 %29, label %30, label %59
30: ; preds = %26
%31 = load i8*, i8** %2
%32 = call i32 @empty_makefile_section(i8* %31, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.7, i64 0, i64 0))
%33 = icmp eq i32 %32, 1
br i1 %33, label %34, label %44
34: ; preds = %30
%35 = getelementptr inbounds [512 x i8], [512 x i8]* %3, i64 0, i64 0
%36 = getelementptr inbounds [512 x i8], [512 x i8]* %4, i64 0, i64 0
%37 = getelementptr inbounds [512 x i8], [512 x i8]* %8, i64 0, i64 0
%38 = getelementptr inbounds [512 x i8], [512 x i8]* %8, i64 0, i64 0
%39 = getelementptr inbounds [512 x i8], [512 x i8]* %7, i64 0, i64 0
%40 = call i32 @sprintf(i8* %35, i8* getelementptr inbounds ([57 x i8], [57 x i8]* @.str.8, i64 0, i64 0), i8* %36, i8* %37, i8* %38, i8* %39)
%41 = load i8*, i8** %2
%42 = getelementptr inbounds [512 x i8], [512 x i8]* %3, i64 0, i64 0
%43 = call i32 @add_makefile_entry_to_file(i8* %41, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.7, i64 0, i64 0), i8* %42)
br label %44
44: ; preds = %34, %30
%45 = load i8*, i8** %2
%46 = call i32 @empty_makefile_section(i8* %45, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.9, i64 0, i64 0))
%47 = icmp eq i32 %46, 1
br i1 %47, label %48, label %58
48: ; preds = %44
%49 = getelementptr inbounds [512 x i8], [512 x i8]* %3, i64 0, i64 0
%50 = getelementptr inbounds [512 x i8], [512 x i8]* %4, i64 0, i64 0
%51 = getelementptr inbounds [512 x i8], [512 x i8]* %8, i64 0, i64 0
%52 = getelementptr inbounds [512 x i8], [512 x i8]* %8, i64 0, i64 0
%53 = getelementptr inbounds [512 x i8], [512 x i8]* %7, i64 0, i64 0
%54 = call i32 @sprintf(i8* %49, i8* getelementptr inbounds ([56 x i8], [56 x i8]* @.str.10, i64 0, i64 0), i8* %50, i8* %51, i8* %52, i8* %53)
%55 = load i8*, i8** %2
%56 = getelementptr inbounds [512 x i8], [512 x i8]* %3, i64 0, i64 0
%57 = call i32 @add_makefile_entry_to_file(i8* %55, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.9, i64 0, i64 0), i8* %56)
br label %58
58: ; preds = %48, %44
br label %88
59: ; preds = %26
%60 = load i8*, i8** %2
%61 = call i32 @empty_makefile_section(i8* %60, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.7, i64 0, i64 0))
%62 = icmp eq i32 %61, 1
br i1 %62, label %63, label %73
63: ; preds = %59
%64 = getelementptr inbounds [512 x i8], [512 x i8]* %3, i64 0, i64 0
%65 = getelementptr inbounds [512 x i8], [512 x i8]* %4, i64 0, i64 0
%66 = getelementptr inbounds [512 x i8], [512 x i8]* %8, i64 0, i64 0
%67 = getelementptr inbounds [512 x i8], [512 x i8]* %8, i64 0, i64 0
%68 = getelementptr inbounds [512 x i8], [512 x i8]* %7, i64 0, i64 0
%69 = call i32 @sprintf(i8* %64, i8* getelementptr inbounds ([91 x i8], [91 x i8]* @.str.11, i64 0, i64 0), i8* %65, i8* %66, i8* %67, i8* %68)
%70 = load i8*, i8** %2
%71 = getelementptr inbounds [512 x i8], [512 x i8]* %3, i64 0, i64 0
%72 = call i32 @add_makefile_entry_to_file(i8* %70, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.7, i64 0, i64 0), i8* %71)
br label %73
73: ; preds = %63, %59
%74 = load i8*, i8** %2
%75 = call i32 @empty_makefile_section(i8* %74, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.9, i64 0, i64 0))
%76 = icmp eq i32 %75, 1
br i1 %76, label %77, label %87
77: ; preds = %73
%78 = getelementptr inbounds [512 x i8], [512 x i8]* %3, i64 0, i64 0
%79 = getelementptr inbounds [512 x i8], [512 x i8]* %4, i64 0, i64 0
%80 = getelementptr inbounds [512 x i8], [512 x i8]* %8, i64 0, i64 0
%81 = getelementptr inbounds [512 x i8], [512 x i8]* %8, i64 0, i64 0
%82 = getelementptr inbounds [512 x i8], [512 x i8]* %7, i64 0, i64 0
%83 = call i32 @sprintf(i8* %78, i8* getelementptr inbounds ([90 x i8], [90 x i8]* @.str.12, i64 0, i64 0), i8* %79, i8* %80, i8* %81, i8* %82)
%84 = load i8*, i8** %2
%85 = getelementptr inbounds [512 x i8], [512 x i8]* %3, i64 0, i64 0
%86 = call i32 @add_makefile_entry_to_file(i8* %84, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.9, i64 0, i64 0), i8* %85)
br label %87
87: ; preds = %77, %73
br label %88
88: ; preds = %87, %58
br label %89
89: ; preds = %88, %22
ret void
}

LLVM IR (-O2):
@.str = [13 x i8] c"project name\00"
@.str.1 = [13 x i8] c"project type\00"
@.str.2 = [11 x i8] c"c standard\00"
@.str.3 = [8 x i8] c"compile\00"
@.str.4 = [11 x i8] c"source dir\00"
@.str.5 = [2 x i8] c"c\00"
@.str.6 = [2 x i8] c"C\00"
@.str.7 = [4 x i8] c"all\00"
@.str.8 = [57 x i8] c"gcc -Wall -std=%s -pedantic -O3 -o ${APP} %s/*.c -I%s %s\00"
@.str.9 = [6 x i8] c"debug\00"
@.str.10 = [56 x i8] c"gcc -Wall -std=%s -pedantic -g -o ${APP} %s/*.c -I%s %s\00"
@.str.11 = [91 x i8] c"gcc -shared -Wl,-soname,${SONAME} -std=%s -pedantic -fPIC -O3 -o ${LIBNAME} %s/*.c -I%s %s\00"
@.str.12 = [90 x i8] c"gcc -shared -Wl,-soname,${SONAME} -std=%s -pedantic -fPIC -g -o ${LIBNAME} %s/*.c -I%s %s\00"
define void @save_makefile_c(i8* %0) {
%2 = alloca [512 x i8]
%3 = alloca [512 x i8]
%4 = alloca [512 x i8]
%5 = alloca [512 x i8]
%6 = alloca [512 x i8]
%7 = alloca [512 x i8]
%8 = getelementptr inbounds [512 x i8], [512 x i8]* %2, i64 0, i64 0
%9 = getelementptr inbounds [512 x i8], [512 x i8]* %3, i64 0, i64 0
%10 = getelementptr inbounds [512 x i8], [512 x i8]* %4, i64 0, i64 0
%11 = getelementptr inbounds [512 x i8], [512 x i8]* %5, i64 0, i64 0
%12 = getelementptr inbounds [512 x i8], [512 x i8]* %6, i64 0, i64 0
%13 = getelementptr inbounds [512 x i8], [512 x i8]* %7, i64 0, i64 0
%14 = call i32 @get_setting(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str, i64 0, i64 0), i8* %11)
%15 = call i32 @get_setting(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.1, i64 0, i64 0), i8* %10)
%16 = call i32 @get_setting(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.2, i64 0, i64 0), i8* %9)
%17 = call i32 @get_setting(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.3, i64 0, i64 0), i8* %12)
%18 = call i32 @get_setting(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.4, i64 0, i64 0), i8* %13)
%19 = call i64 @strcmp(i8* %10, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.5, i64 0, i64 0))
%20 = icmp eq i64 %19, 0
br i1 %20, label %24, label %21
21: ; preds = %1
%22 = call i64 @strcmp(i8* %10, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.6, i64 0, i64 0))
%23 = icmp eq i64 %22, 0
br i1 %23, label %24, label %47
24: ; preds = %21, %1
%25 = call i64 @is_library(i8* %11)
%26 = icmp eq i64 %25, 0
%27 = call i32 @empty_makefile_section(i8* %0, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.7, i64 0, i64 0))
%28 = icmp eq i32 %27, 1
br i1 %26, label %29, label %36
29: ; preds = %24
br i1 %28, label %30, label %33
30: ; preds = %29
%31 = call i32 @sprintf(i8* %8, i8* dereferenceable(1) getelementptr inbounds ([57 x i8], [57 x i8]* @.str.8, i64 0, i64 0), i8* %9, i8* %13, i8* %13, i8* %12)
%32 = call i32 @add_makefile_entry_to_file(i8* %0, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.7, i64 0, i64 0), i8* %8)
br label %33
33: ; preds = %30, %29
%34 = call i32 @empty_makefile_section(i8* %0, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.9, i64 0, i64 0))
%35 = icmp eq i32 %34, 1
br i1 %35, label %43, label %47
36: ; preds = %24
br i1 %28, label %37, label %40
37: ; preds = %36
%38 = call i32 @sprintf(i8* %8, i8* dereferenceable(1) getelementptr inbounds ([91 x i8], [91 x i8]* @.str.11, i64 0, i64 0), i8* %9, i8* %13, i8* %13, i8* %12)
%39 = call i32 @add_makefile_entry_to_file(i8* %0, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.7, i64 0, i64 0), i8* %8)
br label %40
40: ; preds = %37, %36
%41 = call i32 @empty_makefile_section(i8* %0, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.9, i64 0, i64 0))
%42 = icmp eq i32 %41, 1
br i1 %42, label %43, label %47
43: ; preds = %40, %33
%44 = phi i8* [ getelementptr inbounds ([56 x i8], [56 x i8]* @.str.10, i64 0, i64 0), %33 ], [ getelementptr inbounds ([90 x i8], [90 x i8]* @.str.12, i64 0, i64 0), %40 ]
%45 = call i32 @sprintf(i8* %8, i8* dereferenceable(1) %44, i8* %9, i8* %13, i8* %13, i8* %12)
%46 = call i32 @add_makefile_entry_to_file(i8* %0, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.9, i64 0, i64 0), i8* %8)
br label %47
47: ; preds = %43, %33, %40, %21
ret void
}