void save_makefile_install(char *filename, char *section, int no_of_binaries,
                           char **binaries, char *project_name,
                           char *project_type, char *commandline,
                           char *directory, char *svg_filename) {
  int i, no_of_directories;
  char str[512];
  char *directories[20];
  char sourcedir[512];
  int is_install_lib = 0;
  get_setting("source dir", sourcedir);
  if (strcmp(section, "install") != 0) {
    is_install_lib = 1;
  }
  add_makefile_entry_to_file(filename, section, "mkdir -p ${DESTDIR}/usr");
  add_makefile_entry_to_file(filename, section, "mkdir -p ${DESTDIR}${PREFIX}");
  if (is_library(project_name) != 0) {
    add_makefile_entry_to_file(filename, section,
                               "mkdir -p ${DESTDIR}${PREFIX}/${LIBDIR}");
    add_makefile_entry_to_file(filename, section,
                               "mkdir -p ${DESTDIR}${PREFIX}/${LIBDIR}/${APP}");
  } else {
    add_makefile_entry_to_file(filename, section,
                               "mkdir -p ${DESTDIR}${PREFIX}/bin");
  }
  if (no_of_binaries > 0) {
    no_of_directories = get_directories(binaries, no_of_binaries, directories);
    for (i = 0; i < no_of_directories; i++) {
      if (get_subdirectory_string(directories[i]) != 0) {
        if (contains_char(get_subdirectory_string(directories[i]), ' ') == 0) {
          sprintf(str, "mkdir -m 755 -p ${DESTDIR}/%s",
                  get_subdirectory_string(directories[i]));
        } else {
          sprintf(str, "mkdir -m 755 -p ${DESTDIR}\"/%s\"",
                  get_subdirectory_string(directories[i]));
        }
        add_makefile_entry_to_file(filename, section, str);
      }
      free(directories[i]);
    }
  }
  if ((strcmp(project_type, "c") == 0) || (strcmp(project_type, "C") == 0) ||
      (strcmp(project_type, "c++") == 0) ||
      (strcmp(project_type, "C++") == 0) ||
      (strcmp(project_type, "cpp") == 0) ||
      (strcmp(project_type, "CPP") == 0)) {
    if (is_library(project_name) == 0) {
      if (is_qt_project() != 0) {
        add_makefile_entry_to_file(filename, section,
                                   "install -m 755 -s ${GUI_DIR}/${APP} "
                                   "${DESTDIR}${PREFIX}/bin");
      } else {
        add_makefile_entry_to_file(filename, section,
                                   "install -m 755 -s ${APP} "
                                   "${DESTDIR}${PREFIX}/bin");
      }
    } else {
      sprintf(str, "%s -p ${DESTDIR}${PREFIX}/include", "mkdir");
      add_makefile_entry_to_file(filename, section, str);
      sprintf(str, "%s -p ${DESTDIR}${PREFIX}/include/${APP}", "mkdir");
      add_makefile_entry_to_file(filename, section, str);
      sprintf(str, "%s %s/*.h ${DESTDIR}${PREFIX}/include/${APP}", "cp",
              sourcedir);
      add_makefile_entry_to_file(filename, section, str);
      add_makefile_entry_to_file(filename, section,
                                 "install -m 755 ${LIBNAME} "
                                 "${DESTDIR}${PREFIX}/${LIBDIR}");
      if (is_install_lib == 0) {
        add_makefile_entry_to_file(
            filename, section,
            "ln -sf ${DESTDIR}${PREFIX}/${LIBDIR}/${LIBNAME} "
            "${DESTDIR}${PREFIX}/${LIBDIR}/${SONAME}");
        add_makefile_entry_to_file(
            filename, section,
            "ln -sf ${DESTDIR}${PREFIX}/${LIBDIR}/${LIBNAME} "
            "${DESTDIR}${PREFIX}/${LIBDIR}/${APP}.so");
      }
    }
  }
  for (i = 0; i < no_of_binaries; i++) {
    if (get_subdirectory_string(binaries[i]) != 0) {
      if (contains_char(binaries[i], ' ') == 0) {
        sprintf(str, "install -m 755 %s ${DESTDIR}/%s", binaries[i],
                get_subdirectory_string(binaries[i]));
      } else {
        sprintf(str, "install -m 755 \"%s\" ${DESTDIR}\"/%s\"", binaries[i],
                get_subdirectory_string(binaries[i]));
      }
      add_makefile_entry_to_file(filename, section, str);
    }
  }
  if ((is_library(project_name) != 0) && (is_install_lib == 0)) {
    add_makefile_entry_to_file(filename, section, "ldconfig");
  }
  add_makefile_entry_to_file(filename, section,
                             "mkdir -m 755 -p ${DESTDIR}${PREFIX}/share");
  add_makefile_entry_to_file(filename, section,
                             "mkdir -m 755 -p ${DESTDIR}${PREFIX}/share/man");
  add_makefile_entry_to_file(
      filename, section, "mkdir -m 755 -p ${DESTDIR}${PREFIX}/share/man/man1");
  add_makefile_entry_to_file(filename, section,
                             "install -m 644 man/${APP}.1.gz "
                             "${DESTDIR}${PREFIX}/share/man/man1");
  if (strlen(commandline) == 0) {
    add_makefile_entry_to_file(
        filename, section, "mkdir -m 755 -p ${DESTDIR}${PREFIX}/share/${APP}");
    add_makefile_entry_to_file(filename, section,
                               "mkdir -m 755 -p ${DESTDIR}${PREFIX}/share/"
                               "applications");
    add_makefile_entry_to_file(
        filename, section, "mkdir -m 755 -p ${DESTDIR}${PREFIX}/share/pixmaps");
    add_makefile_entry_to_file(
        filename, section, "mkdir -m 755 -p ${DESTDIR}${PREFIX}/share/icons");
    add_makefile_entry_to_file(filename, section,
                               "mkdir -m 755 -p ${DESTDIR}${PREFIX}/share/"
                               "icons/hicolor");
    add_makefile_entry_to_file(filename, section,
                               "mkdir -m 755 -p ${DESTDIR}${PREFIX}/share/"
                               "icons/hicolor/scalable");
    add_makefile_entry_to_file(filename, section,
                               "mkdir -m 755 -p ${DESTDIR}${PREFIX}/share/"
                               "icons/hicolor/scalable/apps");
    add_makefile_entry_to_file(filename, section,
                               "mkdir -m 755 -p ${DESTDIR}${PREFIX}/share/"
                               "icons/hicolor/24x24");
    add_makefile_entry_to_file(filename, section,
                               "mkdir -m 755 -p ${DESTDIR}${PREFIX}/share/"
                               "icons/hicolor/24x24/apps");
    add_makefile_entry_to_file(filename, section,
                               "install -m 644 desktop/${APP}.desktop "
                               "${DESTDIR}${PREFIX}/share/applications/"
                               "${APP}.desktop");
    add_makefile_entry_to_file(filename, section,
                               "install -m 644 desktop/icon24.png "
                               "${DESTDIR}${PREFIX}/share/icons/hicolor/"
                               "24x24/apps/${APP}.png");
    sprintf(svg_filename, "%s%cdesktop%cicon.svg", directory, '/', '/');
    if (file_exists(svg_filename) != 0) {
      add_makefile_entry_to_file(filename, section,
                                 "install -m 644 desktop/icon.svg "
                                 "${DESTDIR}${PREFIX}/share/icons/hicolor/"
                                 "scalable/apps/${APP}.svg");
      add_makefile_entry_to_file(
          filename, section,
          "install -m 644 desktop/icon.svg "
          "${DESTDIR}${PREFIX}/share/pixmaps/${APP}.svg");
    }
  }
  save_makefile_install_scripts(filename, section);
}


x86 assembly (clang, -O0):
<save_makefile_install>:
push   %rbp
mov    %rsp,%rbp
sub    $0x520,%rsp
mov    0x20(%rbp),%rax
mov    0x18(%rbp),%rax
mov    0x10(%rbp),%rax
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %edx,-0x14(%rbp)
mov    %rcx,-0x20(%rbp)
mov    %r8,-0x28(%rbp)
mov    %r9,-0x30(%rbp)
movl   $0x0,-0x4e4(%rbp)
lea    -0x4e0(%rbp),%rsi
lea    0xdea(%rip),%rdi
mov    $0x0,%al
call   1090 <get_setting@plt>
mov    -0x10(%rbp),%rdi
lea    0xde3(%rip),%rsi
call   1080 <strcmp@plt>
cmp    $0x0,%eax
je     1240 <save_makefile_install+0x70>
movl   $0x1,-0x4e4(%rbp)
mov    -0x8(%rbp),%rdi
mov    -0x10(%rbp),%rsi
lea    0xdc4(%rip),%rdx
mov    $0x0,%al
call   10f0 <add_makefile_entry_to_file@plt>
mov    -0x8(%rbp),%rdi
mov    -0x10(%rbp),%rsi
lea    0xdc6(%rip),%rdx
mov    $0x0,%al
call   10f0 <add_makefile_entry_to_file@plt>
mov    -0x28(%rbp),%rdi
mov    $0x0,%al
call   10c0 <is_library@plt>
cmp    $0x0,%eax
je     12b1 <save_makefile_install+0xe1>
mov    -0x8(%rbp),%rdi
mov    -0x10(%rbp),%rsi
lea    0xdb9(%rip),%rdx
mov    $0x0,%al
call   10f0 <add_makefile_entry_to_file@plt>
mov    -0x8(%rbp),%rdi
mov    -0x10(%rbp),%rsi
lea    0xdca(%rip),%rdx
mov    $0x0,%al
call   10f0 <add_makefile_entry_to_file@plt>
jmp    12c7 <save_makefile_install+0xf7>
mov    -0x8(%rbp),%rdi
mov    -0x10(%rbp),%rsi
lea    0xddd(%rip),%rdx
mov    $0x0,%al
call   10f0 <add_makefile_entry_to_file@plt>
cmpl   $0x0,-0x14(%rbp)
jle    13f1 <save_makefile_install+0x221>
mov    -0x20(%rbp),%rdi
mov    -0x14(%rbp),%esi
lea    -0x2e0(%rbp),%rdx
mov    $0x0,%al
call   10b0 <get_directories@plt>
mov    %eax,-0x38(%rbp)
movl   $0x0,-0x34(%rbp)
mov    -0x34(%rbp),%eax
cmp    -0x38(%rbp),%eax
jge    13ec <save_makefile_install+0x21c>
movslq -0x34(%rbp),%rax
mov    -0x2e0(%rbp,%rax,8),%rdi
ff
mov    $0x0,%al
call   10e0 <get_subdirectory_string@plt>
cmp    $0x0,%eax
je     13cd <save_makefile_install+0x1fd>
movslq -0x34(%rbp),%rax
mov    -0x2e0(%rbp,%rax,8),%rdi
ff
mov    $0x0,%al
call   10e0 <get_subdirectory_string@plt>
mov    %eax,%edi
mov    $0x20,%esi
mov    $0x0,%al
call   1050 <contains_char@plt>
cmp    $0x0,%eax
jne    137f <save_makefile_install+0x1af>
lea    -0x240(%rbp),%rax
mov    %rax,-0x4f0(%rbp)
movslq -0x34(%rbp),%rax
mov    -0x2e0(%rbp,%rax,8),%rdi
ff
mov    $0x0,%al
call   10e0 <get_subdirectory_string@plt>
mov    -0x4f0(%rbp),%rdi
mov    %eax,%edx
lea    0xd4b(%rip),%rsi
mov    $0x0,%al
call   10d0 <sprintf@plt>
jmp    13b7 <save_makefile_install+0x1e7>
lea    -0x240(%rbp),%rax
mov    %rax,-0x4f8(%rbp)
movslq -0x34(%rbp),%rax
mov    -0x2e0(%rbp,%rax,8),%rdi
ff
mov    $0x0,%al
call   10e0 <get_subdirectory_string@plt>
mov    -0x4f8(%rbp),%rdi
mov    %eax,%edx
lea    0xd2c(%rip),%rsi
mov    $0x0,%al
call   10d0 <sprintf@plt>
mov    -0x8(%rbp),%rdi
mov    -0x10(%rbp),%rsi
lea    -0x240(%rbp),%rdx
mov    $0x0,%al
call   10f0 <add_makefile_entry_to_file@plt>
movslq -0x34(%rbp),%rax
mov    -0x2e0(%rbp,%rax,8),%rdi
ff
call   1030 <free@plt>
mov    -0x34(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x34(%rbp)
jmp    12f0 <save_makefile_install+0x120>
jmp    13f1 <save_makefile_install+0x221>
mov    -0x30(%rbp),%rdi
lea    0xd00(%rip),%rsi
call   1080 <strcmp@plt>
cmp    $0x0,%eax
je     1487 <save_makefile_install+0x2b7>
mov    -0x30(%rbp),%rdi
lea    0xce9(%rip),%rsi
call   1080 <strcmp@plt>
cmp    $0x0,%eax
je     1487 <save_makefile_install+0x2b7>
mov    -0x30(%rbp),%rdi
lea    0xcd2(%rip),%rsi
call   1080 <strcmp@plt>
cmp    $0x0,%eax
je     1487 <save_makefile_install+0x2b7>
mov    -0x30(%rbp),%rdi
lea    0xcbd(%rip),%rsi
call   1080 <strcmp@plt>
cmp    $0x0,%eax
je     1487 <save_makefile_install+0x2b7>
mov    -0x30(%rbp),%rdi
lea    0xca8(%rip),%rsi
call   1080 <strcmp@plt>
cmp    $0x0,%eax
je     1487 <save_makefile_install+0x2b7>
mov    -0x30(%rbp),%rdi
lea    0xc93(%rip),%rsi
call   1080 <strcmp@plt>
cmp    $0x0,%eax
jne    15d7 <save_makefile_install+0x407>
mov    -0x28(%rbp),%rdi
mov    $0x0,%al
call   10c0 <is_library@plt>
cmp    $0x0,%eax
jne    14e1 <save_makefile_install+0x311>
mov    $0x0,%al
call   1060 <is_qt_project@plt>
cmp    $0x0,%eax
je     14c6 <save_makefile_install+0x2f6>
mov    -0x8(%rbp),%rdi
mov    -0x10(%rbp),%rsi
lea    0xc56(%rip),%rdx
mov    $0x0,%al
call   10f0 <add_makefile_entry_to_file@plt>
jmp    14dc <save_makefile_install+0x30c>
mov    -0x8(%rbp),%rdi
mov    -0x10(%rbp),%rsi
lea    0xc77(%rip),%rdx
mov    $0x0,%al
call   10f0 <add_makefile_entry_to_file@plt>
jmp    15d2 <save_makefile_install+0x402>
lea    -0x240(%rbp),%rdi
lea    0xc8e(%rip),%rsi
lea    0xca9(%rip),%rdx
mov    $0x0,%al
call   10d0 <sprintf@plt>
mov    -0x8(%rbp),%rdi
mov    -0x10(%rbp),%rsi
lea    -0x240(%rbp),%rdx
mov    $0x0,%al
call   10f0 <add_makefile_entry_to_file@plt>
lea    -0x240(%rbp),%rdi
lea    0xc84(%rip),%rsi
lea    0xc77(%rip),%rdx
mov    $0x0,%al
call   10d0 <sprintf@plt>
mov    -0x8(%rbp),%rdi
mov    -0x10(%rbp),%rsi
lea    -0x240(%rbp),%rdx
mov    $0x0,%al
call   10f0 <add_makefile_entry_to_file@plt>
lea    -0x240(%rbp),%rdi
lea    -0x4e0(%rbp),%rcx
lea    0xc74(%rip),%rsi
lea    0xc9a(%rip),%rdx
mov    $0x0,%al
call   10d0 <sprintf@plt>
mov    -0x8(%rbp),%rdi
mov    -0x10(%rbp),%rsi
lea    -0x240(%rbp),%rdx
mov    $0x0,%al
call   10f0 <add_makefile_entry_to_file@plt>
mov    -0x8(%rbp),%rdi
mov    -0x10(%rbp),%rsi
lea    0xc71(%rip),%rdx
mov    $0x0,%al
call   10f0 <add_makefile_entry_to_file@plt>
cmpl   $0x0,-0x4e4(%rbp)
jne    15cd <save_makefile_install+0x3fd>
mov    -0x8(%rbp),%rdi
mov    -0x10(%rbp),%rsi
lea    0xc86(%rip),%rdx
mov    $0x0,%al
call   10f0 <add_makefile_entry_to_file@plt>
mov    -0x8(%rbp),%rdi
mov    -0x10(%rbp),%rsi
lea    0xcc8(%rip),%rdx
mov    $0x0,%al
call   10f0 <add_makefile_entry_to_file@plt>
jmp    15d2 <save_makefile_install+0x402>
jmp    15d7 <save_makefile_install+0x407>
movl   $0x0,-0x34(%rbp)
mov    -0x34(%rbp),%eax
cmp    -0x14(%rbp),%eax
jge    16f9 <save_makefile_install+0x529>
mov    -0x20(%rbp),%rax
movslq -0x34(%rbp),%rcx
mov    (%rax,%rcx,8),%rdi
mov    $0x0,%al
call   10e0 <get_subdirectory_string@plt>
cmp    $0x0,%eax
je     16e6 <save_makefile_install+0x516>
mov    -0x20(%rbp),%rax
movslq -0x34(%rbp),%rcx
mov    (%rax,%rcx,8),%rdi
mov    $0x20,%esi
mov    $0x0,%al
call   1050 <contains_char@plt>
cmp    $0x0,%eax
jne    167e <save_makefile_install+0x4ae>
lea    -0x240(%rbp),%rax
mov    %rax,-0x508(%rbp)
mov    -0x20(%rbp),%rax
movslq -0x34(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
mov    %rax,-0x500(%rbp)
mov    -0x20(%rbp),%rax
movslq -0x34(%rbp),%rcx
mov    (%rax,%rcx,8),%rdi
mov    $0x0,%al
call   10e0 <get_subdirectory_string@plt>
mov    -0x508(%rbp),%rdi
mov    -0x500(%rbp),%rdx
mov    %eax,%ecx
lea    0xc74(%rip),%rsi
mov    $0x0,%al
call   10d0 <sprintf@plt>
jmp    16d0 <save_makefile_install+0x500>
lea    -0x240(%rbp),%rax
mov    %rax,-0x518(%rbp)
mov    -0x20(%rbp),%rax
movslq -0x34(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
mov    %rax,-0x510(%rbp)
mov    -0x20(%rbp),%rax
movslq -0x34(%rbp),%rcx
mov    (%rax,%rcx,8),%rdi
mov    $0x0,%al
call   10e0 <get_subdirectory_string@plt>
mov    -0x518(%rbp),%rdi
mov    -0x510(%rbp),%rdx
mov    %eax,%ecx
lea    0xc3d(%rip),%rsi
mov    $0x0,%al
call   10d0 <sprintf@plt>
mov    -0x8(%rbp),%rdi
mov    -0x10(%rbp),%rsi
lea    -0x240(%rbp),%rdx
mov    $0x0,%al
call   10f0 <add_makefile_entry_to_file@plt>
jmp    16eb <save_makefile_install+0x51b>
mov    -0x34(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x34(%rbp)
jmp    15de <save_makefile_install+0x40e>
mov    -0x28(%rbp),%rdi
mov    $0x0,%al
call   10c0 <is_library@plt>
cmp    $0x0,%eax
je     1730 <save_makefile_install+0x560>
cmpl   $0x0,-0x4e4(%rbp)
jne    1730 <save_makefile_install+0x560>
mov    -0x8(%rbp),%rdi
mov    -0x10(%rbp),%rsi
lea    0xc01(%rip),%rdx
mov    $0x0,%al
call   10f0 <add_makefile_entry_to_file@plt>
mov    -0x8(%rbp),%rdi
mov    -0x10(%rbp),%rsi
lea    0xbf4(%rip),%rdx
mov    $0x0,%al
call   10f0 <add_makefile_entry_to_file@plt>
mov    -0x8(%rbp),%rdi
mov    -0x10(%rbp),%rsi
lea    0xc08(%rip),%rdx
mov    $0x0,%al
call   10f0 <add_makefile_entry_to_file@plt>
mov    -0x8(%rbp),%rdi
mov    -0x10(%rbp),%rsi
lea    0xc20(%rip),%rdx
mov    $0x0,%al
call   10f0 <add_makefile_entry_to_file@plt>
mov    -0x8(%rbp),%rdi
mov    -0x10(%rbp),%rsi
lea    0xc3d(%rip),%rdx
mov    $0x0,%al
call   10f0 <add_makefile_entry_to_file@plt>
mov    0x10(%rbp),%rdi
call   1070 <strlen@plt>
cmp    $0x0,%rax
jne    18f1 <save_makefile_install+0x721>
mov    -0x8(%rbp),%rdi
mov    -0x10(%rbp),%rsi
lea    0xc56(%rip),%rdx
mov    $0x0,%al
call   10f0 <add_makefile_entry_to_file@plt>
mov    -0x8(%rbp),%rdi
mov    -0x10(%rbp),%rsi
lea    0xc71(%rip),%rdx
mov    $0x0,%al
call   10f0 <add_makefile_entry_to_file@plt>
mov    -0x8(%rbp),%rdi
mov    -0x10(%rbp),%rsi
lea    0xc92(%rip),%rdx
mov    $0x0,%al
call   10f0 <add_makefile_entry_to_file@plt>
mov    -0x8(%rbp),%rdi
mov    -0x10(%rbp),%rsi
lea    0xcae(%rip),%rdx
mov    $0x0,%al
call   10f0 <add_makefile_entry_to_file@plt>
mov    -0x8(%rbp),%rdi
mov    -0x10(%rbp),%rsi
lea    0xcc8(%rip),%rdx
mov    $0x0,%al
call   10f0 <add_makefile_entry_to_file@plt>
mov    -0x8(%rbp),%rdi
mov    -0x10(%rbp),%rsi
lea    0xcea(%rip),%rdx
mov    $0x0,%al
call   10f0 <add_makefile_entry_to_file@plt>
mov    -0x8(%rbp),%rdi
mov    -0x10(%rbp),%rsi
lea    0xd15(%rip),%rdx
mov    $0x0,%al
call   10f0 <add_makefile_entry_to_file@plt>
mov    -0x8(%rbp),%rdi
mov    -0x10(%rbp),%rsi
lea    0xd45(%rip),%rdx
mov    $0x0,%al
call   10f0 <add_makefile_entry_to_file@plt>
mov    -0x8(%rbp),%rdi
mov    -0x10(%rbp),%rsi
lea    0xd6d(%rip),%rdx
mov    $0x0,%al
call   10f0 <add_makefile_entry_to_file@plt>
mov    -0x8(%rbp),%rdi
mov    -0x10(%rbp),%rsi
lea    0xd9a(%rip),%rdx
mov    $0x0,%al
call   10f0 <add_makefile_entry_to_file@plt>
mov    -0x8(%rbp),%rdi
mov    -0x10(%rbp),%rsi
lea    0xde0(%rip),%rdx
mov    $0x0,%al
call   10f0 <add_makefile_entry_to_file@plt>
mov    0x20(%rbp),%rdi
mov    0x18(%rbp),%rdx
lea    0xe2a(%rip),%rsi
mov    $0x2f,%r8d
mov    %r8d,%ecx
mov    $0x0,%al
call   10d0 <sprintf@plt>
mov    0x20(%rbp),%rdi
mov    $0x0,%al
call   1040 <file_exists@plt>
cmp    $0x0,%eax
je     18ec <save_makefile_install+0x71c>
mov    -0x8(%rbp),%rdi
mov    -0x10(%rbp),%rsi
lea    0xe0d(%rip),%rdx
mov    $0x0,%al
call   10f0 <add_makefile_entry_to_file@plt>
mov    -0x8(%rbp),%rdi
mov    -0x10(%rbp),%rsi
lea    0xe58(%rip),%rdx
mov    $0x0,%al
call   10f0 <add_makefile_entry_to_file@plt>
jmp    18f1 <save_makefile_install+0x721>
mov    -0x8(%rbp),%rdi
mov    -0x10(%rbp),%rsi
mov    $0x0,%al
call   10a0 <save_makefile_install_scripts@plt>
add    $0x520,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<save_makefile_install>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x4c8,%rsp
mov    %r9,0x8(%rsp)
mov    %r8,%rbx
mov    %rcx,0x10(%rsp)
mov    %edx,%ebp
mov    %rsi,%r12
mov    %rdi,%r13
lea    0xe13(%rip),%rdi
lea    0x2c0(%rsp),%rsi
xor    %eax,%eax
call   1080 <get_setting@plt>
lea    0xe08(%rip),%rsi
mov    %r12,%rdi
call   1070 <strcmp@plt>
mov    %eax,(%rsp)
lea    0xdfe(%rip),%rdx
mov    %r13,%rdi
mov    %r12,%rsi
xor    %eax,%eax
call   10e0 <add_makefile_entry_to_file@plt>
lea    0xe02(%rip),%rdx
mov    %r13,%rdi
mov    %r12,%rsi
xor    %eax,%eax
call   10e0 <add_makefile_entry_to_file@plt>
mov    %rbx,0x18(%rsp)
mov    %rbx,%rdi
xor    %eax,%eax
call   10b0 <is_library@plt>
test   %eax,%eax
je     1266 <save_makefile_install+0xa6>
lea    0xdf8(%rip),%rdx
mov    %r13,%rdi
mov    %r12,%rsi
xor    %eax,%eax
call   10e0 <add_makefile_entry_to_file@plt>
lea    0xe0b(%rip),%rdx
jmp    126d <save_makefile_install+0xad>
lea    0xe30(%rip),%rdx
mov    %r13,%rdi
mov    %r12,%rsi
xor    %eax,%eax
call   10e0 <add_makefile_entry_to_file@plt>
mov    %ebp,0x4(%rsp)
test   %ebp,%ebp
jle    133d <save_makefile_install+0x17d>
lea    0x20(%rsp),%rdx
mov    0x10(%rsp),%rdi
mov    0x4(%rsp),%esi
xor    %eax,%eax
call   10a0 <get_directories@plt>
test   %eax,%eax
jle    133d <save_makefile_install+0x17d>
mov    %eax,%ebx
lea    0xc0(%rsp),%r15
xor    %r14d,%r14d
jmp    12d3 <save_makefile_install+0x113>
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
mov    0x20(%rsp,%r14,8),%rdi
call   1030 <free@plt>
add    $0x1,%r14
cmp    %r14,%rbx
je     133d <save_makefile_install+0x17d>
mov    0x20(%rsp,%r14,8),%rdi
xor    %eax,%eax
call   10d0 <get_subdirectory_string@plt>
test   %eax,%eax
je     12c0 <save_makefile_install+0x100>
mov    0x20(%rsp,%r14,8),%rdi
xor    %eax,%eax
call   10d0 <get_subdirectory_string@plt>
mov    %eax,%edi
mov    $0x20,%esi
xor    %eax,%eax
call   1050 <contains_char@plt>
mov    %eax,%ebp
mov    0x20(%rsp,%r14,8),%rdi
xor    %eax,%eax
call   10d0 <get_subdirectory_string@plt>
test   %ebp,%ebp
lea    0xdc8(%rip),%rsi
lea    0xda3(%rip),%rcx
cmove  %rcx,%rsi
mov    %r15,%rdi
mov    %eax,%edx
xor    %eax,%eax
call   10c0 <sprintf@plt>
mov    %r13,%rdi
mov    %r12,%rsi
mov    %r15,%rdx
xor    %eax,%eax
call   10e0 <add_makefile_entry_to_file@plt>
jmp    12c0 <save_makefile_install+0x100>
lea    0xdb8(%rip),%rsi
mov    0x8(%rsp),%rbx
mov    %rbx,%rdi
call   1070 <strcmp@plt>
test   %eax,%eax
mov    0x4(%rsp),%r14d
je     13bd <save_makefile_install+0x1fd>
lea    0xd9d(%rip),%rsi
mov    %rbx,%rdi
call   1070 <strcmp@plt>
test   %eax,%eax
je     13bd <save_makefile_install+0x1fd>
lea    0xd8c(%rip),%rsi
mov    %rbx,%rdi
call   1070 <strcmp@plt>
test   %eax,%eax
je     13bd <save_makefile_install+0x1fd>
lea    0xd7d(%rip),%rsi
mov    %rbx,%rdi
call   1070 <strcmp@plt>
test   %eax,%eax
je     13bd <save_makefile_install+0x1fd>
lea    0xd6e(%rip),%rsi
mov    %rbx,%rdi
call   1070 <strcmp@plt>
test   %eax,%eax
je     13bd <save_makefile_install+0x1fd>
lea    0xd5f(%rip),%rsi
mov    %rbx,%rdi
call   1070 <strcmp@plt>
test   %eax,%eax
jne    14b7 <save_makefile_install+0x2f7>
mov    0x18(%rsp),%rdi
xor    %eax,%eax
call   10b0 <is_library@plt>
test   %eax,%eax
je     148f <save_makefile_install+0x2cf>
lea    0xda5(%rip),%rsi
lea    0xdc0(%rip),%r15
lea    0xc0(%rsp),%rbp
mov    %rbp,%rdi
mov    %r15,%rdx
xor    %eax,%eax
call   10c0 <sprintf@plt>
mov    %r13,%rdi
mov    %r12,%rsi
mov    %rbp,%rdx
xor    %eax,%eax
call   10e0 <add_makefile_entry_to_file@plt>
lea    0xd9a(%rip),%rsi
mov    %rbp,%rdi
mov    %r15,%rdx
xor    %eax,%eax
call   10c0 <sprintf@plt>
mov    %r13,%rdi
mov    %r12,%rsi
mov    %rbp,%rdx
xor    %eax,%eax
call   10e0 <add_makefile_entry_to_file@plt>
lea    0xd9f(%rip),%rsi
lea    0xdc5(%rip),%rdx
lea    0x2c0(%rsp),%rcx
mov    %rbp,%rdi
xor    %eax,%eax
call   10c0 <sprintf@plt>
mov    %r13,%rdi
mov    %r12,%rsi
mov    %rbp,%rdx
xor    %eax,%eax
call   10e0 <add_makefile_entry_to_file@plt>
lea    0xd9f(%rip),%rdx
mov    %r13,%rdi
mov    %r12,%rsi
xor    %eax,%eax
call   10e0 <add_makefile_entry_to_file@plt>
cmpl   $0x0,(%rsp)
jne    14b7 <save_makefile_install+0x2f7>
lea    0xdbd(%rip),%rdx
mov    %r13,%rdi
mov    %r12,%rsi
xor    %eax,%eax
call   10e0 <add_makefile_entry_to_file@plt>
lea    0xe01(%rip),%rdx
jmp    14aa <save_makefile_install+0x2ea>
xor    %eax,%eax
call   1060 <is_qt_project@plt>
test   %eax,%eax
lea    0xcad(%rip),%rax
lea    0xc6a(%rip),%rdx
cmove  %rax,%rdx
mov    %r13,%rdi
mov    %r12,%rsi
xor    %eax,%eax
call   10e0 <add_makefile_entry_to_file@plt>
mov    %r13,0x8(%rsp)
mov    %r12,%r13
test   %r14d,%r14d
mov    0x10(%rsp),%rbx
jle    1559 <save_makefile_install+0x399>
mov    %r14d,%r14d
lea    0xc0(%rsp),%r15
xor    %r12d,%r12d
jmp    14e9 <save_makefile_install+0x329>
nopl   (%rax)
add    $0x1,%r12
cmp    %r12,%r14
je     1559 <save_makefile_install+0x399>
mov    (%rbx,%r12,8),%rdi
xor    %eax,%eax
call   10d0 <get_subdirectory_string@plt>
test   %eax,%eax
je     14e0 <save_makefile_install+0x320>
mov    (%rbx,%r12,8),%rdi
mov    $0x20,%esi
xor    %eax,%eax
call   1050 <contains_char@plt>
mov    %eax,%ebx
mov    0x10(%rsp),%rax
mov    (%rax,%r12,8),%rbp
mov    %rbp,%rdi
xor    %eax,%eax
call   10d0 <get_subdirectory_string@plt>
test   %ebx,%ebx
mov    0x10(%rsp),%rbx
lea    0xddb(%rip),%rsi
lea    0xdb4(%rip),%rcx
cmove  %rcx,%rsi
mov    %r15,%rdi
mov    %rbp,%rdx
mov    %eax,%ecx
xor    %eax,%eax
call   10c0 <sprintf@plt>
mov    0x8(%rsp),%rdi
mov    %r13,%rsi
mov    %r15,%rdx
xor    %eax,%eax
call   10e0 <add_makefile_entry_to_file@plt>
jmp    14e0 <save_makefile_install+0x320>
mov    0x500(%rsp),%r14
mov    0x18(%rsp),%rdi
xor    %eax,%eax
call   10b0 <is_library@plt>
test   %eax,%eax
mov    0x8(%rsp),%rbx
je     1590 <save_makefile_install+0x3d0>
cmpl   $0x0,(%rsp)
jne    1590 <save_makefile_install+0x3d0>
lea    0xda7(%rip),%rdx
mov    %rbx,%rdi
mov    %r13,%rsi
xor    %eax,%eax
call   10e0 <add_makefile_entry_to_file@plt>
lea    0xd9c(%rip),%rdx
mov    %rbx,%rdi
mov    %r13,%rsi
xor    %eax,%eax
call   10e0 <add_makefile_entry_to_file@plt>
lea    0xdb2(%rip),%rdx
mov    %rbx,%rdi
mov    %r13,%rsi
xor    %eax,%eax
call   10e0 <add_makefile_entry_to_file@plt>
lea    0xdcc(%rip),%rdx
mov    %rbx,%rdi
mov    %r13,%rsi
xor    %eax,%eax
call   10e0 <add_makefile_entry_to_file@plt>
lea    0xdeb(%rip),%rdx
mov    %rbx,%rdi
mov    %r13,%rsi
xor    %eax,%eax
call   10e0 <add_makefile_entry_to_file@plt>
cmpb   $0x0,(%r14)
jne    172b <save_makefile_install+0x56b>
mov    0x510(%rsp),%r15
mov    0x508(%rsp),%r14
lea    0xdff(%rip),%rdx
mov    %rbx,%rdi
mov    %r13,%rsi
xor    %eax,%eax
call   10e0 <add_makefile_entry_to_file@plt>
lea    0xe1c(%rip),%rdx
mov    %rbx,%rdi
mov    %r13,%rsi
xor    %eax,%eax
call   10e0 <add_makefile_entry_to_file@plt>
lea    0xe3f(%rip),%rdx
mov    %rbx,%rdi
mov    %r13,%rsi
xor    %eax,%eax
call   10e0 <add_makefile_entry_to_file@plt>
lea    0xe5d(%rip),%rdx
mov    %rbx,%rdi
mov    %r13,%rsi
xor    %eax,%eax
call   10e0 <add_makefile_entry_to_file@plt>
lea    0xe79(%rip),%rdx
mov    %rbx,%rdi
mov    %r13,%rsi
xor    %eax,%eax
call   10e0 <add_makefile_entry_to_file@plt>
lea    0xe9d(%rip),%rdx
mov    %rbx,%rdi
mov    %r13,%rsi
xor    %eax,%eax
call   10e0 <add_makefile_entry_to_file@plt>
lea    0xeca(%rip),%rdx
mov    %rbx,%rdi
mov    %r13,%rsi
xor    %eax,%eax
call   10e0 <add_makefile_entry_to_file@plt>
lea    0xefc(%rip),%rdx
mov    %rbx,%rdi
mov    %r13,%rsi
xor    %eax,%eax
call   10e0 <add_makefile_entry_to_file@plt>
lea    0xf26(%rip),%rdx
mov    %rbx,%rdi
mov    %r13,%rsi
xor    %eax,%eax
call   10e0 <add_makefile_entry_to_file@plt>
lea    0xf55(%rip),%rdx
mov    %rbx,%rdi
mov    %r13,%rsi
xor    %eax,%eax
call   10e0 <add_makefile_entry_to_file@plt>
lea    0xf9d(%rip),%rdx
mov    %rbx,%rdi
mov    %r13,%rsi
xor    %eax,%eax
call   10e0 <add_makefile_entry_to_file@plt>
lea    0xfe9(%rip),%rsi
mov    %r15,%rdi
mov    %r14,%rdx
mov    $0x2f,%ecx
mov    $0x2f,%r8d
xor    %eax,%eax
call   10c0 <sprintf@plt>
mov    %r15,%rdi
xor    %eax,%eax
call   1040 <file_exists@plt>
test   %eax,%eax
je     172b <save_makefile_install+0x56b>
lea    0xfd2(%rip),%rdx
mov    %rbx,%rdi
mov    %r13,%rsi
xor    %eax,%eax
call   10e0 <add_makefile_entry_to_file@plt>
lea    0x101f(%rip),%rdx
mov    %rbx,%rdi
mov    %r13,%rsi
xor    %eax,%eax
call   10e0 <add_makefile_entry_to_file@plt>
mov    %rbx,%rdi
mov    %r13,%rsi
xor    %eax,%eax
call   1090 <save_makefile_install_scripts@plt>
add    $0x4c8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [11 x i8] c"source dir\00"
@.str.1 = [8 x i8] c"install\00"
@.str.2 = [24 x i8] c"mkdir -p ${DESTDIR}/usr\00"
@.str.3 = [29 x i8] c"mkdir -p ${DESTDIR}${PREFIX}\00"
@.str.4 = [39 x i8] c"mkdir -p ${DESTDIR}${PREFIX}/${LIBDIR}\00"
@.str.5 = [46 x i8] c"mkdir -p ${DESTDIR}${PREFIX}/${LIBDIR}/${APP}\00"
@.str.6 = [33 x i8] c"mkdir -p ${DESTDIR}${PREFIX}/bin\00"
@.str.7 = [30 x i8] c"mkdir -m 755 -p ${DESTDIR}/%s\00"
@.str.8 = [32 x i8] c"mkdir -m 755 -p ${DESTDIR}\22/%s\22\00"
@.str.9 = [2 x i8] c"c\00"
@.str.10 = [2 x i8] c"C\00"
@.str.11 = [4 x i8] c"c++\00"
@.str.12 = [4 x i8] c"C++\00"
@.str.13 = [4 x i8] c"cpp\00"
@.str.14 = [4 x i8] c"CPP\00"
@.str.15 = [60 x i8] c"install -m 755 -s ${GUI_DIR}/${APP} ${DESTDIR}${PREFIX}/bin\00"
@.str.16 = [49 x i8] c"install -m 755 -s ${APP} ${DESTDIR}${PREFIX}/bin\00"
@.str.17 = [34 x i8] c"%s -p ${DESTDIR}${PREFIX}/include\00"
@.str.18 = [6 x i8] c"mkdir\00"
@.str.19 = [41 x i8] c"%s -p ${DESTDIR}${PREFIX}/include/${APP}\00"
@.str.20 = [45 x i8] c"%s %s/*.h ${DESTDIR}${PREFIX}/include/${APP}\00"
@.str.21 = [3 x i8] c"cp\00"
@.str.22 = [56 x i8] c"install -m 755 ${LIBNAME} ${DESTDIR}${PREFIX}/${LIBDIR}\00"
@.str.23 = [88 x i8] c"ln -sf ${DESTDIR}${PREFIX}/${LIBDIR}/${LIBNAME} ${DESTDIR}${PREFIX}/${LIBDIR}/${SONAME}\00"
@.str.24 = [88 x i8] c"ln -sf ${DESTDIR}${PREFIX}/${LIBDIR}/${LIBNAME} ${DESTDIR}${PREFIX}/${LIBDIR}/${APP}.so\00"
@.str.25 = [32 x i8] c"install -m 755 %s ${DESTDIR}/%s\00"
@.str.26 = [36 x i8] c"install -m 755 \22%s\22 ${DESTDIR}\22/%s\22\00"
@.str.27 = [9 x i8] c"ldconfig\00"
@.str.28 = [42 x i8] c"mkdir -m 755 -p ${DESTDIR}${PREFIX}/share\00"
@.str.29 = [46 x i8] c"mkdir -m 755 -p ${DESTDIR}${PREFIX}/share/man\00"
@.str.30 = [51 x i8] c"mkdir -m 755 -p ${DESTDIR}${PREFIX}/share/man/man1\00"
@.str.31 = [66 x i8] c"install -m 644 man/${APP}.1.gz ${DESTDIR}${PREFIX}/share/man/man1\00"
@.str.32 = [49 x i8] c"mkdir -m 755 -p ${DESTDIR}${PREFIX}/share/${APP}\00"
@.str.33 = [55 x i8] c"mkdir -m 755 -p ${DESTDIR}${PREFIX}/share/applications\00"
@.str.34 = [50 x i8] c"mkdir -m 755 -p ${DESTDIR}${PREFIX}/share/pixmaps\00"
@.str.35 = [48 x i8] c"mkdir -m 755 -p ${DESTDIR}${PREFIX}/share/icons\00"
@.str.36 = [56 x i8] c"mkdir -m 755 -p ${DESTDIR}${PREFIX}/share/icons/hicolor\00"
@.str.37 = [65 x i8] c"mkdir -m 755 -p ${DESTDIR}${PREFIX}/share/icons/hicolor/scalable\00"
@.str.38 = [70 x i8] c"mkdir -m 755 -p ${DESTDIR}${PREFIX}/share/icons/hicolor/scalable/apps\00"
@.str.39 = [62 x i8] c"mkdir -m 755 -p ${DESTDIR}${PREFIX}/share/icons/hicolor/24x24\00"
@.str.40 = [67 x i8] c"mkdir -m 755 -p ${DESTDIR}${PREFIX}/share/icons/hicolor/24x24/apps\00"
@.str.41 = [92 x i8] c"install -m 644 desktop/${APP}.desktop ${DESTDIR}${PREFIX}/share/applications/${APP}.desktop\00"
@.str.42 = [96 x i8] c"install -m 644 desktop/icon24.png ${DESTDIR}${PREFIX}/share/icons/hicolor/24x24/apps/${APP}.png\00"
@.str.43 = [22 x i8] c"%s%cdesktop%cicon.svg\00"
@.str.44 = [97 x i8] c"install -m 644 desktop/icon.svg ${DESTDIR}${PREFIX}/share/icons/hicolor/scalable/apps/${APP}.svg\00"
@.str.45 = [77 x i8] c"install -m 644 desktop/icon.svg ${DESTDIR}${PREFIX}/share/pixmaps/${APP}.svg\00"
define void @save_makefile_install(i8* %0, i8* %1, i32 %2, i8** %3, i8* %4, i8* %5, i8* %6, i8* %7, i8* %8) {
%10 = alloca i8*
%11 = alloca i8*
%12 = alloca i32
%13 = alloca i8**
%14 = alloca i8*
%15 = alloca i8*
%16 = alloca i8*
%17 = alloca i8*
%18 = alloca i8*
%19 = alloca i32
%20 = alloca i32
%21 = alloca [512 x i8]
%22 = alloca [20 x i8*]
%23 = alloca [512 x i8]
%24 = alloca i32
store i8* %0, i8** %10
store i8* %1, i8** %11
store i32 %2, i32* %12
store i8** %3, i8*** %13
store i8* %4, i8** %14
store i8* %5, i8** %15
store i8* %6, i8** %16
store i8* %7, i8** %17
store i8* %8, i8** %18
store i32 0, i32* %24
%25 = getelementptr inbounds [512 x i8], [512 x i8]* %23, i64 0, i64 0
%26 = call i32 (i8*, i8*, ...) bitcast (i32 (...)* @get_setting to i32 (i8*, i8*, ...)*)(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str, i64 0, i64 0), i8* %25)
%27 = load i8*, i8** %11
%28 = call i32 @strcmp(i8* %27, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.1, i64 0, i64 0))
%29 = icmp ne i32 %28, 0
br i1 %29, label %30, label %31
30: ; preds = %9
store i32 1, i32* %24
br label %31
31: ; preds = %30, %9
%32 = load i8*, i8** %10
%33 = load i8*, i8** %11
%34 = call i32 (i8*, i8*, i8*, ...) bitcast (i32 (...)* @add_makefile_entry_to_file to i32 (i8*, i8*, i8*, ...)*)(i8* %32, i8* %33, i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.2, i64 0, i64 0))
%35 = load i8*, i8** %10
%36 = load i8*, i8** %11
%37 = call i32 (i8*, i8*, i8*, ...) bitcast (i32 (...)* @add_makefile_entry_to_file to i32 (i8*, i8*, i8*, ...)*)(i8* %35, i8* %36, i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.3, i64 0, i64 0))
%38 = load i8*, i8** %14
%39 = call i32 (i8*, ...) bitcast (i32 (...)* @is_library to i32 (i8*, ...)*)(i8* %38)
%40 = icmp ne i32 %39, 0
br i1 %40, label %41, label %48
41: ; preds = %31
%42 = load i8*, i8** %10
%43 = load i8*, i8** %11
%44 = call i32 (i8*, i8*, i8*, ...) bitcast (i32 (...)* @add_makefile_entry_to_file to i32 (i8*, i8*, i8*, ...)*)(i8* %42, i8* %43, i8* getelementptr inbounds ([39 x i8], [39 x i8]* @.str.4, i64 0, i64 0))
%45 = load i8*, i8** %10
%46 = load i8*, i8** %11
%47 = call i32 (i8*, i8*, i8*, ...) bitcast (i32 (...)* @add_makefile_entry_to_file to i32 (i8*, i8*, i8*, ...)*)(i8* %45, i8* %46, i8* getelementptr inbounds ([46 x i8], [46 x i8]* @.str.5, i64 0, i64 0))
br label %52
48: ; preds = %31
%49 = load i8*, i8** %10
%50 = load i8*, i8** %11
%51 = call i32 (i8*, i8*, i8*, ...) bitcast (i32 (...)* @add_makefile_entry_to_file to i32 (i8*, i8*, i8*, ...)*)(i8* %49, i8* %50, i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.6, i64 0, i64 0))
br label %52
52: ; preds = %48, %41
%53 = load i32, i32* %12
%54 = icmp sgt i32 %53, 0
br i1 %54, label %55, label %109
55: ; preds = %52
%56 = load i8**, i8*** %13
%57 = load i32, i32* %12
%58 = getelementptr inbounds [20 x i8*], [20 x i8*]* %22, i64 0, i64 0
%59 = call i32 (i8**, i32, i8**, ...) bitcast (i32 (...)* @get_directories to i32 (i8**, i32, i8**, ...)*)(i8** %56, i32 %57, i8** %58)
store i32 %59, i32* %20
store i32 0, i32* %19
br label %60
60: ; preds = %105, %55
%61 = load i32, i32* %19
%62 = load i32, i32* %20
%63 = icmp slt i32 %61, %62
br i1 %63, label %64, label %108
64: ; preds = %60
%65 = load i32, i32* %19
%66 = sext i32 %65 to i64
%67 = getelementptr inbounds [20 x i8*], [20 x i8*]* %22, i64 0, i64 %66
%68 = load i8*, i8** %67
%69 = call i32 (i8*, ...) bitcast (i32 (...)* @get_subdirectory_string to i32 (i8*, ...)*)(i8* %68)
%70 = icmp ne i32 %69, 0
br i1 %70, label %71, label %100
71: ; preds = %64
%72 = load i32, i32* %19
%73 = sext i32 %72 to i64
%74 = getelementptr inbounds [20 x i8*], [20 x i8*]* %22, i64 0, i64 %73
%75 = load i8*, i8** %74
%76 = call i32 (i8*, ...) bitcast (i32 (...)* @get_subdirectory_string to i32 (i8*, ...)*)(i8* %75)
%77 = call i32 (i32, i32, ...) bitcast (i32 (...)* @contains_char to i32 (i32, i32, ...)*)(i32 %76, i32 32)
%78 = icmp eq i32 %77, 0
br i1 %78, label %79, label %87
79: ; preds = %71
%80 = getelementptr inbounds [512 x i8], [512 x i8]* %21, i64 0, i64 0
%81 = load i32, i32* %19
%82 = sext i32 %81 to i64
%83 = getelementptr inbounds [20 x i8*], [20 x i8*]* %22, i64 0, i64 %82
%84 = load i8*, i8** %83
%85 = call i32 (i8*, ...) bitcast (i32 (...)* @get_subdirectory_string to i32 (i8*, ...)*)(i8* %84)
%86 = call i32 (i8*, i8*, ...) @sprintf(i8* %80, i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.7, i64 0, i64 0), i32 %85)
br label %95
87: ; preds = %71
%88 = getelementptr inbounds [512 x i8], [512 x i8]* %21, i64 0, i64 0
%89 = load i32, i32* %19
%90 = sext i32 %89 to i64
%91 = getelementptr inbounds [20 x i8*], [20 x i8*]* %22, i64 0, i64 %90
%92 = load i8*, i8** %91
%93 = call i32 (i8*, ...) bitcast (i32 (...)* @get_subdirectory_string to i32 (i8*, ...)*)(i8* %92)
%94 = call i32 (i8*, i8*, ...) @sprintf(i8* %88, i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.8, i64 0, i64 0), i32 %93)
br label %95
95: ; preds = %87, %79
%96 = load i8*, i8** %10
%97 = load i8*, i8** %11
%98 = getelementptr inbounds [512 x i8], [512 x i8]* %21, i64 0, i64 0
%99 = call i32 (i8*, i8*, i8*, ...) bitcast (i32 (...)* @add_makefile_entry_to_file to i32 (i8*, i8*, i8*, ...)*)(i8* %96, i8* %97, i8* %98)
br label %100
100: ; preds = %95, %64
%101 = load i32, i32* %19
%102 = sext i32 %101 to i64
%103 = getelementptr inbounds [20 x i8*], [20 x i8*]* %22, i64 0, i64 %102
%104 = load i8*, i8** %103
br label %105
105: ; preds = %100
%106 = load i32, i32* %19
%107 = add nsw i32 %106, 1
store i32 %107, i32* %19
br label %60
108: ; preds = %60
br label %109
109: ; preds = %108, %52
%110 = load i8*, i8** %15
%111 = call i32 @strcmp(i8* %110, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.9, i64 0, i64 0))
%112 = icmp eq i32 %111, 0
br i1 %112, label %133, label %113
113: ; preds = %109
%114 = load i8*, i8** %15
%115 = call i32 @strcmp(i8* %114, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.10, i64 0, i64 0))
%116 = icmp eq i32 %115, 0
br i1 %116, label %133, label %117
117: ; preds = %113
%118 = load i8*, i8** %15
%119 = call i32 @strcmp(i8* %118, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.11, i64 0, i64 0))
%120 = icmp eq i32 %119, 0
br i1 %120, label %133, label %121
121: ; preds = %117
%122 = load i8*, i8** %15
%123 = call i32 @strcmp(i8* %122, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.12, i64 0, i64 0))
%124 = icmp eq i32 %123, 0
br i1 %124, label %133, label %125
125: ; preds = %121
%126 = load i8*, i8** %15
%127 = call i32 @strcmp(i8* %126, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.13, i64 0, i64 0))
%128 = icmp eq i32 %127, 0
br i1 %128, label %133, label %129
129: ; preds = %125
%130 = load i8*, i8** %15
%131 = call i32 @strcmp(i8* %130, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.14, i64 0, i64 0))
%132 = icmp eq i32 %131, 0
br i1 %132, label %133, label %183
133: ; preds = %129, %125, %121, %117, %113, %109
%134 = load i8*, i8** %14
%135 = call i32 (i8*, ...) bitcast (i32 (...)* @is_library to i32 (i8*, ...)*)(i8* %134)
%136 = icmp eq i32 %135, 0
br i1 %136, label %137, label %149
137: ; preds = %133
%138 = call i32 (...) @is_qt_project()
%139 = icmp ne i32 %138, 0
br i1 %139, label %140, label %144
140: ; preds = %137
%141 = load i8*, i8** %10
%142 = load i8*, i8** %11
%143 = call i32 (i8*, i8*, i8*, ...) bitcast (i32 (...)* @add_makefile_entry_to_file to i32 (i8*, i8*, i8*, ...)*)(i8* %141, i8* %142, i8* getelementptr inbounds ([60 x i8], [60 x i8]* @.str.15, i64 0, i64 0))
br label %148
144: ; preds = %137
%145 = load i8*, i8** %10
%146 = load i8*, i8** %11
%147 = call i32 (i8*, i8*, i8*, ...) bitcast (i32 (...)* @add_makefile_entry_to_file to i32 (i8*, i8*, i8*, ...)*)(i8* %145, i8* %146, i8* getelementptr inbounds ([49 x i8], [49 x i8]* @.str.16, i64 0, i64 0))
br label %148
148: ; preds = %144, %140
br label %182
149: ; preds = %133
%150 = getelementptr inbounds [512 x i8], [512 x i8]* %21, i64 0, i64 0
%151 = call i32 (i8*, i8*, ...) @sprintf(i8* %150, i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.17, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.18, i64 0, i64 0))
%152 = load i8*, i8** %10
%153 = load i8*, i8** %11
%154 = getelementptr inbounds [512 x i8], [512 x i8]* %21, i64 0, i64 0
%155 = call i32 (i8*, i8*, i8*, ...) bitcast (i32 (...)* @add_makefile_entry_to_file to i32 (i8*, i8*, i8*, ...)*)(i8* %152, i8* %153, i8* %154)
%156 = getelementptr inbounds [512 x i8], [512 x i8]* %21, i64 0, i64 0
%157 = call i32 (i8*, i8*, ...) @sprintf(i8* %156, i8* getelementptr inbounds ([41 x i8], [41 x i8]* @.str.19, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.18, i64 0, i64 0))
%158 = load i8*, i8** %10
%159 = load i8*, i8** %11
%160 = getelementptr inbounds [512 x i8], [512 x i8]* %21, i64 0, i64 0
%161 = call i32 (i8*, i8*, i8*, ...) bitcast (i32 (...)* @add_makefile_entry_to_file to i32 (i8*, i8*, i8*, ...)*)(i8* %158, i8* %159, i8* %160)
%162 = getelementptr inbounds [512 x i8], [512 x i8]* %21, i64 0, i64 0
%163 = getelementptr inbounds [512 x i8], [512 x i8]* %23, i64 0, i64 0
%164 = call i32 (i8*, i8*, ...) @sprintf(i8* %162, i8* getelementptr inbounds ([45 x i8], [45 x i8]* @.str.20, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.21, i64 0, i64 0), i8* %163)
%165 = load i8*, i8** %10
%166 = load i8*, i8** %11
%167 = getelementptr inbounds [512 x i8], [512 x i8]* %21, i64 0, i64 0
%168 = call i32 (i8*, i8*, i8*, ...) bitcast (i32 (...)* @add_makefile_entry_to_file to i32 (i8*, i8*, i8*, ...)*)(i8* %165, i8* %166, i8* %167)
%169 = load i8*, i8** %10
%170 = load i8*, i8** %11
%171 = call i32 (i8*, i8*, i8*, ...) bitcast (i32 (...)* @add_makefile_entry_to_file to i32 (i8*, i8*, i8*, ...)*)(i8* %169, i8* %170, i8* getelementptr inbounds ([56 x i8], [56 x i8]* @.str.22, i64 0, i64 0))
%172 = load i32, i32* %24
%173 = icmp eq i32 %172, 0
br i1 %173, label %174, label %181
174: ; preds = %149
%175 = load i8*, i8** %10
%176 = load i8*, i8** %11
%177 = call i32 (i8*, i8*, i8*, ...) bitcast (i32 (...)* @add_makefile_entry_to_file to i32 (i8*, i8*, i8*, ...)*)(i8* %175, i8* %176, i8* getelementptr inbounds ([88 x i8], [88 x i8]* @.str.23, i64 0, i64 0))
%178 = load i8*, i8** %10
%179 = load i8*, i8** %11
%180 = call i32 (i8*, i8*, i8*, ...) bitcast (i32 (...)* @add_makefile_entry_to_file to i32 (i8*, i8*, i8*, ...)*)(i8* %178, i8* %179, i8* getelementptr inbounds ([88 x i8], [88 x i8]* @.str.24, i64 0, i64 0))
br label %181
181: ; preds = %174, %149
br label %182
182: ; preds = %181, %148
br label %183
183: ; preds = %182, %129
store i32 0, i32* %19
br label %184
184: ; preds = %238, %183
%185 = load i32, i32* %19
%186 = load i32, i32* %12
%187 = icmp slt i32 %185, %186
br i1 %187, label %188, label %241
188: ; preds = %184
%189 = load i8**, i8*** %13
%190 = load i32, i32* %19
%191 = sext i32 %190 to i64
%192 = getelementptr inbounds i8*, i8** %189, i64 %191
%193 = load i8*, i8** %192
%194 = call i32 (i8*, ...) bitcast (i32 (...)* @get_subdirectory_string to i32 (i8*, ...)*)(i8* %193)
%195 = icmp ne i32 %194, 0
br i1 %195, label %196, label %237
196: ; preds = %188
%197 = load i8**, i8*** %13
%198 = load i32, i32* %19
%199 = sext i32 %198 to i64
%200 = getelementptr inbounds i8*, i8** %197, i64 %199
%201 = load i8*, i8** %200
%202 = call i32 (i8*, i32, ...) bitcast (i32 (...)* @contains_char to i32 (i8*, i32, ...)*)(i8* %201, i32 32)
%203 = icmp eq i32 %202, 0
br i1 %203, label %204, label %218
204: ; preds = %196
%205 = getelementptr inbounds [512 x i8], [512 x i8]* %21, i64 0, i64 0
%206 = load i8**, i8*** %13
%207 = load i32, i32* %19
%208 = sext i32 %207 to i64
%209 = getelementptr inbounds i8*, i8** %206, i64 %208
%210 = load i8*, i8** %209
%211 = load i8**, i8*** %13
%212 = load i32, i32* %19
%213 = sext i32 %212 to i64
%214 = getelementptr inbounds i8*, i8** %211, i64 %213
%215 = load i8*, i8** %214
%216 = call i32 (i8*, ...) bitcast (i32 (...)* @get_subdirectory_string to i32 (i8*, ...)*)(i8* %215)
%217 = call i32 (i8*, i8*, ...) @sprintf(i8* %205, i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.25, i64 0, i64 0), i8* %210, i32 %216)
br label %232
218: ; preds = %196
%219 = getelementptr inbounds [512 x i8], [512 x i8]* %21, i64 0, i64 0
%220 = load i8**, i8*** %13
%221 = load i32, i32* %19
%222 = sext i32 %221 to i64
%223 = getelementptr inbounds i8*, i8** %220, i64 %222
%224 = load i8*, i8** %223
%225 = load i8**, i8*** %13
%226 = load i32, i32* %19
%227 = sext i32 %226 to i64
%228 = getelementptr inbounds i8*, i8** %225, i64 %227
%229 = load i8*, i8** %228
%230 = call i32 (i8*, ...) bitcast (i32 (...)* @get_subdirectory_string to i32 (i8*, ...)*)(i8* %229)
%231 = call i32 (i8*, i8*, ...) @sprintf(i8* %219, i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.26, i64 0, i64 0), i8* %224, i32 %230)
br label %232
232: ; preds = %218, %204
%233 = load i8*, i8** %10
%234 = load i8*, i8** %11
%235 = getelementptr inbounds [512 x i8], [512 x i8]* %21, i64 0, i64 0
%236 = call i32 (i8*, i8*, i8*, ...) bitcast (i32 (...)* @add_makefile_entry_to_file to i32 (i8*, i8*, i8*, ...)*)(i8* %233, i8* %234, i8* %235)
br label %237
237: ; preds = %232, %188
br label %238
238: ; preds = %237
%239 = load i32, i32* %19
%240 = add nsw i32 %239, 1
store i32 %240, i32* %19
br label %184
241: ; preds = %184
%242 = load i8*, i8** %14
%243 = call i32 (i8*, ...) bitcast (i32 (...)* @is_library to i32 (i8*, ...)*)(i8* %242)
%244 = icmp ne i32 %243, 0
br i1 %244, label %245, label %252
245: ; preds = %241
%246 = load i32, i32* %24
%247 = icmp eq i32 %246, 0
br i1 %247, label %248, label %252
248: ; preds = %245
%249 = load i8*, i8** %10
%250 = load i8*, i8** %11
%251 = call i32 (i8*, i8*, i8*, ...) bitcast (i32 (...)* @add_makefile_entry_to_file to i32 (i8*, i8*, i8*, ...)*)(i8* %249, i8* %250, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.27, i64 0, i64 0))
br label %252
252: ; preds = %248, %245, %241
%253 = load i8*, i8** %10
%254 = load i8*, i8** %11
%255 = call i32 (i8*, i8*, i8*, ...) bitcast (i32 (...)* @add_makefile_entry_to_file to i32 (i8*, i8*, i8*, ...)*)(i8* %253, i8* %254, i8* getelementptr inbounds ([42 x i8], [42 x i8]* @.str.28, i64 0, i64 0))
%256 = load i8*, i8** %10
%257 = load i8*, i8** %11
%258 = call i32 (i8*, i8*, i8*, ...) bitcast (i32 (...)* @add_makefile_entry_to_file to i32 (i8*, i8*, i8*, ...)*)(i8* %256, i8* %257, i8* getelementptr inbounds ([46 x i8], [46 x i8]* @.str.29, i64 0, i64 0))
%259 = load i8*, i8** %10
%260 = load i8*, i8** %11
%261 = call i32 (i8*, i8*, i8*, ...) bitcast (i32 (...)* @add_makefile_entry_to_file to i32 (i8*, i8*, i8*, ...)*)(i8* %259, i8* %260, i8* getelementptr inbounds ([51 x i8], [51 x i8]* @.str.30, i64 0, i64 0))
%262 = load i8*, i8** %10
%263 = load i8*, i8** %11
%264 = call i32 (i8*, i8*, i8*, ...) bitcast (i32 (...)* @add_makefile_entry_to_file to i32 (i8*, i8*, i8*, ...)*)(i8* %262, i8* %263, i8* getelementptr inbounds ([66 x i8], [66 x i8]* @.str.31, i64 0, i64 0))
%265 = load i8*, i8** %16
%266 = call i64 @strlen(i8* %265)
%267 = icmp eq i64 %266, 0
br i1 %267, label %268, label %316
268: ; preds = %252
%269 = load i8*, i8** %10
%270 = load i8*, i8** %11
%271 = call i32 (i8*, i8*, i8*, ...) bitcast (i32 (...)* @add_makefile_entry_to_file to i32 (i8*, i8*, i8*, ...)*)(i8* %269, i8* %270, i8* getelementptr inbounds ([49 x i8], [49 x i8]* @.str.32, i64 0, i64 0))
%272 = load i8*, i8** %10
%273 = load i8*, i8** %11
%274 = call i32 (i8*, i8*, i8*, ...) bitcast (i32 (...)* @add_makefile_entry_to_file to i32 (i8*, i8*, i8*, ...)*)(i8* %272, i8* %273, i8* getelementptr inbounds ([55 x i8], [55 x i8]* @.str.33, i64 0, i64 0))
%275 = load i8*, i8** %10
%276 = load i8*, i8** %11
%277 = call i32 (i8*, i8*, i8*, ...) bitcast (i32 (...)* @add_makefile_entry_to_file to i32 (i8*, i8*, i8*, ...)*)(i8* %275, i8* %276, i8* getelementptr inbounds ([50 x i8], [50 x i8]* @.str.34, i64 0, i64 0))
%278 = load i8*, i8** %10
%279 = load i8*, i8** %11
%280 = call i32 (i8*, i8*, i8*, ...) bitcast (i32 (...)* @add_makefile_entry_to_file to i32 (i8*, i8*, i8*, ...)*)(i8* %278, i8* %279, i8* getelementptr inbounds ([48 x i8], [48 x i8]* @.str.35, i64 0, i64 0))
%281 = load i8*, i8** %10
%282 = load i8*, i8** %11
%283 = call i32 (i8*, i8*, i8*, ...) bitcast (i32 (...)* @add_makefile_entry_to_file to i32 (i8*, i8*, i8*, ...)*)(i8* %281, i8* %282, i8* getelementptr inbounds ([56 x i8], [56 x i8]* @.str.36, i64 0, i64 0))
%284 = load i8*, i8** %10
%285 = load i8*, i8** %11
%286 = call i32 (i8*, i8*, i8*, ...) bitcast (i32 (...)* @add_makefile_entry_to_file to i32 (i8*, i8*, i8*, ...)*)(i8* %284, i8* %285, i8* getelementptr inbounds ([65 x i8], [65 x i8]* @.str.37, i64 0, i64 0))
%287 = load i8*, i8** %10
%288 = load i8*, i8** %11
%289 = call i32 (i8*, i8*, i8*, ...) bitcast (i32 (...)* @add_makefile_entry_to_file to i32 (i8*, i8*, i8*, ...)*)(i8* %287, i8* %288, i8* getelementptr inbounds ([70 x i8], [70 x i8]* @.str.38, i64 0, i64 0))
%290 = load i8*, i8** %10
%291 = load i8*, i8** %11
%292 = call i32 (i8*, i8*, i8*, ...) bitcast (i32 (...)* @add_makefile_entry_to_file to i32 (i8*, i8*, i8*, ...)*)(i8* %290, i8* %291, i8* getelementptr inbounds ([62 x i8], [62 x i8]* @.str.39, i64 0, i64 0))
%293 = load i8*, i8** %10
%294 = load i8*, i8** %11
%295 = call i32 (i8*, i8*, i8*, ...) bitcast (i32 (...)* @add_makefile_entry_to_file to i32 (i8*, i8*, i8*, ...)*)(i8* %293, i8* %294, i8* getelementptr inbounds ([67 x i8], [67 x i8]* @.str.40, i64 0, i64 0))
%296 = load i8*, i8** %10
%297 = load i8*, i8** %11
%298 = call i32 (i8*, i8*, i8*, ...) bitcast (i32 (...)* @add_makefile_entry_to_file to i32 (i8*, i8*, i8*, ...)*)(i8* %296, i8* %297, i8* getelementptr inbounds ([92 x i8], [92 x i8]* @.str.41, i64 0, i64 0))
%299 = load i8*, i8** %10
%300 = load i8*, i8** %11
%301 = call i32 (i8*, i8*, i8*, ...) bitcast (i32 (...)* @add_makefile_entry_to_file to i32 (i8*, i8*, i8*, ...)*)(i8* %299, i8* %300, i8* getelementptr inbounds ([96 x i8], [96 x i8]* @.str.42, i64 0, i64 0))
%302 = load i8*, i8** %18
%303 = load i8*, i8** %17
%304 = call i32 (i8*, i8*, ...) @sprintf(i8* %302, i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.43, i64 0, i64 0), i8* %303, i32 47, i32 47)
%305 = load i8*, i8** %18
%306 = call i32 (i8*, ...) bitcast (i32 (...)* @file_exists to i32 (i8*, ...)*)(i8* %305)
%307 = icmp ne i32 %306, 0
br i1 %307, label %308, label %315
308: ; preds = %268
%309 = load i8*, i8** %10
%310 = load i8*, i8** %11
%311 = call i32 (i8*, i8*, i8*, ...) bitcast (i32 (...)* @add_makefile_entry_to_file to i32 (i8*, i8*, i8*, ...)*)(i8* %309, i8* %310, i8* getelementptr inbounds ([97 x i8], [97 x i8]* @.str.44, i64 0, i64 0))
%312 = load i8*, i8** %10
%313 = load i8*, i8** %11
%314 = call i32 (i8*, i8*, i8*, ...) bitcast (i32 (...)* @add_makefile_entry_to_file to i32 (i8*, i8*, i8*, ...)*)(i8* %312, i8* %313, i8* getelementptr inbounds ([77 x i8], [77 x i8]* @.str.45, i64 0, i64 0))
br label %315
315: ; preds = %308, %268
br label %316
316: ; preds = %315, %252
%317 = load i8*, i8** %10
%318 = load i8*, i8** %11
%319 = call i32 (i8*, i8*, ...) bitcast (i32 (...)* @save_makefile_install_scripts to i32 (i8*, i8*, ...)*)(i8* %317, i8* %318)
ret void
}

LLVM IR (-O2):
@.str = [11 x i8] c"source dir\00"
@.str.1 = [8 x i8] c"install\00"
@.str.2 = [24 x i8] c"mkdir -p ${DESTDIR}/usr\00"
@.str.3 = [29 x i8] c"mkdir -p ${DESTDIR}${PREFIX}\00"
@.str.4 = [39 x i8] c"mkdir -p ${DESTDIR}${PREFIX}/${LIBDIR}\00"
@.str.5 = [46 x i8] c"mkdir -p ${DESTDIR}${PREFIX}/${LIBDIR}/${APP}\00"
@.str.6 = [33 x i8] c"mkdir -p ${DESTDIR}${PREFIX}/bin\00"
@.str.7 = [30 x i8] c"mkdir -m 755 -p ${DESTDIR}/%s\00"
@.str.8 = [32 x i8] c"mkdir -m 755 -p ${DESTDIR}\22/%s\22\00"
@.str.9 = [2 x i8] c"c\00"
@.str.10 = [2 x i8] c"C\00"
@.str.11 = [4 x i8] c"c++\00"
@.str.12 = [4 x i8] c"C++\00"
@.str.13 = [4 x i8] c"cpp\00"
@.str.14 = [4 x i8] c"CPP\00"
@.str.15 = [60 x i8] c"install -m 755 -s ${GUI_DIR}/${APP} ${DESTDIR}${PREFIX}/bin\00"
@.str.16 = [49 x i8] c"install -m 755 -s ${APP} ${DESTDIR}${PREFIX}/bin\00"
@.str.17 = [34 x i8] c"%s -p ${DESTDIR}${PREFIX}/include\00"
@.str.18 = [6 x i8] c"mkdir\00"
@.str.19 = [41 x i8] c"%s -p ${DESTDIR}${PREFIX}/include/${APP}\00"
@.str.20 = [45 x i8] c"%s %s/*.h ${DESTDIR}${PREFIX}/include/${APP}\00"
@.str.21 = [3 x i8] c"cp\00"
@.str.22 = [56 x i8] c"install -m 755 ${LIBNAME} ${DESTDIR}${PREFIX}/${LIBDIR}\00"
@.str.23 = [88 x i8] c"ln -sf ${DESTDIR}${PREFIX}/${LIBDIR}/${LIBNAME} ${DESTDIR}${PREFIX}/${LIBDIR}/${SONAME}\00"
@.str.24 = [88 x i8] c"ln -sf ${DESTDIR}${PREFIX}/${LIBDIR}/${LIBNAME} ${DESTDIR}${PREFIX}/${LIBDIR}/${APP}.so\00"
@.str.25 = [32 x i8] c"install -m 755 %s ${DESTDIR}/%s\00"
@.str.26 = [36 x i8] c"install -m 755 \22%s\22 ${DESTDIR}\22/%s\22\00"
@.str.27 = [9 x i8] c"ldconfig\00"
@.str.28 = [42 x i8] c"mkdir -m 755 -p ${DESTDIR}${PREFIX}/share\00"
@.str.29 = [46 x i8] c"mkdir -m 755 -p ${DESTDIR}${PREFIX}/share/man\00"
@.str.30 = [51 x i8] c"mkdir -m 755 -p ${DESTDIR}${PREFIX}/share/man/man1\00"
@.str.31 = [66 x i8] c"install -m 644 man/${APP}.1.gz ${DESTDIR}${PREFIX}/share/man/man1\00"
@.str.32 = [49 x i8] c"mkdir -m 755 -p ${DESTDIR}${PREFIX}/share/${APP}\00"
@.str.33 = [55 x i8] c"mkdir -m 755 -p ${DESTDIR}${PREFIX}/share/applications\00"
@.str.34 = [50 x i8] c"mkdir -m 755 -p ${DESTDIR}${PREFIX}/share/pixmaps\00"
@.str.35 = [48 x i8] c"mkdir -m 755 -p ${DESTDIR}${PREFIX}/share/icons\00"
@.str.36 = [56 x i8] c"mkdir -m 755 -p ${DESTDIR}${PREFIX}/share/icons/hicolor\00"
@.str.37 = [65 x i8] c"mkdir -m 755 -p ${DESTDIR}${PREFIX}/share/icons/hicolor/scalable\00"
@.str.38 = [70 x i8] c"mkdir -m 755 -p ${DESTDIR}${PREFIX}/share/icons/hicolor/scalable/apps\00"
@.str.39 = [62 x i8] c"mkdir -m 755 -p ${DESTDIR}${PREFIX}/share/icons/hicolor/24x24\00"
@.str.40 = [67 x i8] c"mkdir -m 755 -p ${DESTDIR}${PREFIX}/share/icons/hicolor/24x24/apps\00"
@.str.41 = [92 x i8] c"install -m 644 desktop/${APP}.desktop ${DESTDIR}${PREFIX}/share/applications/${APP}.desktop\00"
@.str.42 = [96 x i8] c"install -m 644 desktop/icon24.png ${DESTDIR}${PREFIX}/share/icons/hicolor/24x24/apps/${APP}.png\00"
@.str.43 = [22 x i8] c"%s%cdesktop%cicon.svg\00"
@.str.44 = [97 x i8] c"install -m 644 desktop/icon.svg ${DESTDIR}${PREFIX}/share/icons/hicolor/scalable/apps/${APP}.svg\00"
@.str.45 = [77 x i8] c"install -m 644 desktop/icon.svg ${DESTDIR}${PREFIX}/share/pixmaps/${APP}.svg\00"
define void @save_makefile_install(i8* %0, i8* %1, i32 %2, i8** %3, i8* %4, i8* nocapture %5, i8* nocapture %6, i8* %7, i8* %8) {
%10 = alloca [512 x i8]
%11 = alloca [20 x i8*]
%12 = alloca [512 x i8]
%13 = getelementptr inbounds [512 x i8], [512 x i8]* %10, i64 0, i64 0
%14 = bitcast [20 x i8*]* %11 to i8*
%15 = getelementptr inbounds [512 x i8], [512 x i8]* %12, i64 0, i64 0
%16 = call i32 (i8*, i8*, ...) bitcast (i32 (...)* @get_setting to i32 (i8*, i8*, ...)*)(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str, i64 0, i64 0), i8* %15)
%17 = call i32 @strcmp(i8* dereferenceable(1) %1, i8* dereferenceable(8) getelementptr inbounds ([8 x i8], [8 x i8]* @.str.1, i64 0, i64 0))
%18 = icmp eq i32 %17, 0
%19 = call i32 (i8*, i8*, i8*, ...) bitcast (i32 (...)* @add_makefile_entry_to_file to i32 (i8*, i8*, i8*, ...)*)(i8* %0, i8* %1, i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.2, i64 0, i64 0))
%20 = call i32 (i8*, i8*, i8*, ...) bitcast (i32 (...)* @add_makefile_entry_to_file to i32 (i8*, i8*, i8*, ...)*)(i8* %0, i8* %1, i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.3, i64 0, i64 0))
%21 = call i32 (i8*, ...) bitcast (i32 (...)* @is_library to i32 (i8*, ...)*)(i8* %4)
%22 = icmp eq i32 %21, 0
br i1 %22, label %25, label %23
23: ; preds = %9
%24 = call i32 (i8*, i8*, i8*, ...) bitcast (i32 (...)* @add_makefile_entry_to_file to i32 (i8*, i8*, i8*, ...)*)(i8* %0, i8* %1, i8* getelementptr inbounds ([39 x i8], [39 x i8]* @.str.4, i64 0, i64 0))
br label %25
25: ; preds = %9, %23
%26 = phi i8* [ getelementptr inbounds ([46 x i8], [46 x i8]* @.str.5, i64 0, i64 0), %23 ], [ getelementptr inbounds ([33 x i8], [33 x i8]* @.str.6, i64 0, i64 0), %9 ]
%27 = call i32 (i8*, i8*, i8*, ...) bitcast (i32 (...)* @add_makefile_entry_to_file to i32 (i8*, i8*, i8*, ...)*)(i8* %0, i8* %1, i8* %26)
%28 = icmp sgt i32 %2, 0
br i1 %28, label %29, label %55
29: ; preds = %25
%30 = getelementptr inbounds [20 x i8*], [20 x i8*]* %11, i64 0, i64 0
%31 = call i32 (i8**, i32, i8**, ...) bitcast (i32 (...)* @get_directories to i32 (i8**, i32, i8**, ...)*)(i8** %3, i32 %2, i8** %30)
%32 = icmp sgt i32 %31, 0
br i1 %32, label %33, label %55
33: ; preds = %29
%34 = zext i32 %31 to i64
br label %35
35: ; preds = %33, %51
%36 = phi i64 [ 0, %33 ], [ %53, %51 ]
%37 = getelementptr inbounds [20 x i8*], [20 x i8*]* %11, i64 0, i64 %36
%38 = load i8*, i8** %37
%39 = call i32 (i8*, ...) bitcast (i32 (...)* @get_subdirectory_string to i32 (i8*, ...)*)(i8* %38)
%40 = icmp eq i32 %39, 0
br i1 %40, label %51, label %41
41: ; preds = %35
%42 = load i8*, i8** %37
%43 = call i32 (i8*, ...) bitcast (i32 (...)* @get_subdirectory_string to i32 (i8*, ...)*)(i8* %42)
%44 = call i32 (i32, i32, ...) bitcast (i32 (...)* @contains_char to i32 (i32, i32, ...)*)(i32 %43, i32 32)
%45 = icmp eq i32 %44, 0
%46 = load i8*, i8** %37
%47 = call i32 (i8*, ...) bitcast (i32 (...)* @get_subdirectory_string to i32 (i8*, ...)*)(i8* %46)
%48 = select i1 %45, i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.7, i64 0, i64 0), i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.8, i64 0, i64 0)
%49 = call i32 (i8*, i8*, ...) @sprintf(i8* %13, i8* dereferenceable(1) %48, i32 %47)
%50 = call i32 (i8*, i8*, i8*, ...) bitcast (i32 (...)* @add_makefile_entry_to_file to i32 (i8*, i8*, i8*, ...)*)(i8* %0, i8* %1, i8* %13)
br label %51
51: ; preds = %41, %35
%52 = load i8*, i8** %37
%53 = add nuw nsw i64 %36, 1
%54 = icmp eq i64 %53, %34
br i1 %54, label %55, label %35
55: ; preds = %51, %29, %25
%56 = call i32 @strcmp(i8* dereferenceable(1) %5, i8* dereferenceable(2) getelementptr inbounds ([2 x i8], [2 x i8]* @.str.9, i64 0, i64 0))
%57 = icmp eq i32 %56, 0
br i1 %57, label %73, label %58
58: ; preds = %55
%59 = call i32 @strcmp(i8* dereferenceable(1) %5, i8* dereferenceable(2) getelementptr inbounds ([2 x i8], [2 x i8]* @.str.10, i64 0, i64 0))
%60 = icmp eq i32 %59, 0
br i1 %60, label %73, label %61
61: ; preds = %58
%62 = call i32 @strcmp(i8* dereferenceable(1) %5, i8* dereferenceable(4) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.11, i64 0, i64 0))
%63 = icmp eq i32 %62, 0
br i1 %63, label %73, label %64
64: ; preds = %61
%65 = call i32 @strcmp(i8* dereferenceable(1) %5, i8* dereferenceable(4) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.12, i64 0, i64 0))
%66 = icmp eq i32 %65, 0
br i1 %66, label %73, label %67
67: ; preds = %64
%68 = call i32 @strcmp(i8* dereferenceable(1) %5, i8* dereferenceable(4) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.13, i64 0, i64 0))
%69 = icmp eq i32 %68, 0
br i1 %69, label %73, label %70
70: ; preds = %67
%71 = call i32 @strcmp(i8* dereferenceable(1) %5, i8* dereferenceable(4) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.14, i64 0, i64 0))
%72 = icmp eq i32 %71, 0
br i1 %72, label %73, label %93
73: ; preds = %70, %67, %64, %61, %58, %55
%74 = call i32 (i8*, ...) bitcast (i32 (...)* @is_library to i32 (i8*, ...)*)(i8* %4)
%75 = icmp eq i32 %74, 0
br i1 %75, label %76, label %80
76: ; preds = %73
%77 = call i32 (...) @is_qt_project()
%78 = icmp eq i32 %77, 0
%79 = select i1 %78, i8* getelementptr inbounds ([49 x i8], [49 x i8]* @.str.16, i64 0, i64 0), i8* getelementptr inbounds ([60 x i8], [60 x i8]* @.str.15, i64 0, i64 0)
br label %90
80: ; preds = %73
%81 = call i32 (i8*, i8*, ...) @sprintf(i8* %13, i8* dereferenceable(1) getelementptr inbounds ([34 x i8], [34 x i8]* @.str.17, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.18, i64 0, i64 0))
%82 = call i32 (i8*, i8*, i8*, ...) bitcast (i32 (...)* @add_makefile_entry_to_file to i32 (i8*, i8*, i8*, ...)*)(i8* %0, i8* %1, i8* %13)
%83 = call i32 (i8*, i8*, ...) @sprintf(i8* %13, i8* dereferenceable(1) getelementptr inbounds ([41 x i8], [41 x i8]* @.str.19, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.18, i64 0, i64 0))
%84 = call i32 (i8*, i8*, i8*, ...) bitcast (i32 (...)* @add_makefile_entry_to_file to i32 (i8*, i8*, i8*, ...)*)(i8* %0, i8* %1, i8* %13)
%85 = call i32 (i8*, i8*, ...) @sprintf(i8* %13, i8* dereferenceable(1) getelementptr inbounds ([45 x i8], [45 x i8]* @.str.20, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.21, i64 0, i64 0), i8* %15)
%86 = call i32 (i8*, i8*, i8*, ...) bitcast (i32 (...)* @add_makefile_entry_to_file to i32 (i8*, i8*, i8*, ...)*)(i8* %0, i8* %1, i8* %13)
%87 = call i32 (i8*, i8*, i8*, ...) bitcast (i32 (...)* @add_makefile_entry_to_file to i32 (i8*, i8*, i8*, ...)*)(i8* %0, i8* %1, i8* getelementptr inbounds ([56 x i8], [56 x i8]* @.str.22, i64 0, i64 0))
br i1 %18, label %88, label %93
88: ; preds = %80
%89 = call i32 (i8*, i8*, i8*, ...) bitcast (i32 (...)* @add_makefile_entry_to_file to i32 (i8*, i8*, i8*, ...)*)(i8* %0, i8* %1, i8* getelementptr inbounds ([88 x i8], [88 x i8]* @.str.23, i64 0, i64 0))
br label %90
90: ; preds = %76, %88
%91 = phi i8* [ getelementptr inbounds ([88 x i8], [88 x i8]* @.str.24, i64 0, i64 0), %88 ], [ %79, %76 ]
%92 = call i32 (i8*, i8*, i8*, ...) bitcast (i32 (...)* @add_makefile_entry_to_file to i32 (i8*, i8*, i8*, ...)*)(i8* %0, i8* %1, i8* %91)
br label %93
93: ; preds = %90, %80, %70
br i1 %28, label %94, label %114
94: ; preds = %93
%95 = zext i32 %2 to i64
br label %96
96: ; preds = %94, %111
%97 = phi i64 [ 0, %94 ], [ %112, %111 ]
%98 = getelementptr inbounds i8*, i8** %3, i64 %97
%99 = load i8*, i8** %98
%100 = call i32 (i8*, ...) bitcast (i32 (...)* @get_subdirectory_string to i32 (i8*, ...)*)(i8* %99)
%101 = icmp eq i32 %100, 0
br i1 %101, label %111, label %102
102: ; preds = %96
%103 = load i8*, i8** %98
%104 = call i32 (i8*, i32, ...) bitcast (i32 (...)* @contains_char to i32 (i8*, i32, ...)*)(i8* %103, i32 32)
%105 = icmp eq i32 %104, 0
%106 = load i8*, i8** %98
%107 = call i32 (i8*, ...) bitcast (i32 (...)* @get_subdirectory_string to i32 (i8*, ...)*)(i8* %106)
%108 = select i1 %105, i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.25, i64 0, i64 0), i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.26, i64 0, i64 0)
%109 = call i32 (i8*, i8*, ...) @sprintf(i8* %13, i8* dereferenceable(1) %108, i8* %106, i32 %107)
%110 = call i32 (i8*, i8*, i8*, ...) bitcast (i32 (...)* @add_makefile_entry_to_file to i32 (i8*, i8*, i8*, ...)*)(i8* %0, i8* %1, i8* %13)
br label %111
111: ; preds = %96, %102
%112 = add nuw nsw i64 %97, 1
%113 = icmp eq i64 %112, %95
br i1 %113, label %114, label %96
114: ; preds = %111, %93
%115 = call i32 (i8*, ...) bitcast (i32 (...)* @is_library to i32 (i8*, ...)*)(i8* %4)
%116 = icmp ne i32 %115, 0
%117 = select i1 %116, i1 %18, i1 false
br i1 %117, label %118, label %120
118: ; preds = %114
%119 = call i32 (i8*, i8*, i8*, ...) bitcast (i32 (...)* @add_makefile_entry_to_file to i32 (i8*, i8*, i8*, ...)*)(i8* %0, i8* %1, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.27, i64 0, i64 0))
br label %120
120: ; preds = %118, %114
%121 = call i32 (i8*, i8*, i8*, ...) bitcast (i32 (...)* @add_makefile_entry_to_file to i32 (i8*, i8*, i8*, ...)*)(i8* %0, i8* %1, i8* getelementptr inbounds ([42 x i8], [42 x i8]* @.str.28, i64 0, i64 0))
%122 = call i32 (i8*, i8*, i8*, ...) bitcast (i32 (...)* @add_makefile_entry_to_file to i32 (i8*, i8*, i8*, ...)*)(i8* %0, i8* %1, i8* getelementptr inbounds ([46 x i8], [46 x i8]* @.str.29, i64 0, i64 0))
%123 = call i32 (i8*, i8*, i8*, ...) bitcast (i32 (...)* @add_makefile_entry_to_file to i32 (i8*, i8*, i8*, ...)*)(i8* %0, i8* %1, i8* getelementptr inbounds ([51 x i8], [51 x i8]* @.str.30, i64 0, i64 0))
%124 = call i32 (i8*, i8*, i8*, ...) bitcast (i32 (...)* @add_makefile_entry_to_file to i32 (i8*, i8*, i8*, ...)*)(i8* %0, i8* %1, i8* getelementptr inbounds ([66 x i8], [66 x i8]* @.str.31, i64 0, i64 0))
%125 = load i8, i8* %6
%126 = icmp eq i8 %125, 0
br i1 %126, label %127, label %145
127: ; preds = %120
%128 = call i32 (i8*, i8*, i8*, ...) bitcast (i32 (...)* @add_makefile_entry_to_file to i32 (i8*, i8*, i8*, ...)*)(i8* %0, i8* %1, i8* getelementptr inbounds ([49 x i8], [49 x i8]* @.str.32, i64 0, i64 0))
%129 = call i32 (i8*, i8*, i8*, ...) bitcast (i32 (...)* @add_makefile_entry_to_file to i32 (i8*, i8*, i8*, ...)*)(i8* %0, i8* %1, i8* getelementptr inbounds ([55 x i8], [55 x i8]* @.str.33, i64 0, i64 0))
%130 = call i32 (i8*, i8*, i8*, ...) bitcast (i32 (...)* @add_makefile_entry_to_file to i32 (i8*, i8*, i8*, ...)*)(i8* %0, i8* %1, i8* getelementptr inbounds ([50 x i8], [50 x i8]* @.str.34, i64 0, i64 0))
%131 = call i32 (i8*, i8*, i8*, ...) bitcast (i32 (...)* @add_makefile_entry_to_file to i32 (i8*, i8*, i8*, ...)*)(i8* %0, i8* %1, i8* getelementptr inbounds ([48 x i8], [48 x i8]* @.str.35, i64 0, i64 0))
%132 = call i32 (i8*, i8*, i8*, ...) bitcast (i32 (...)* @add_makefile_entry_to_file to i32 (i8*, i8*, i8*, ...)*)(i8* %0, i8* %1, i8* getelementptr inbounds ([56 x i8], [56 x i8]* @.str.36, i64 0, i64 0))
%133 = call i32 (i8*, i8*, i8*, ...) bitcast (i32 (...)* @add_makefile_entry_to_file to i32 (i8*, i8*, i8*, ...)*)(i8* %0, i8* %1, i8* getelementptr inbounds ([65 x i8], [65 x i8]* @.str.37, i64 0, i64 0))
%134 = call i32 (i8*, i8*, i8*, ...) bitcast (i32 (...)* @add_makefile_entry_to_file to i32 (i8*, i8*, i8*, ...)*)(i8* %0, i8* %1, i8* getelementptr inbounds ([70 x i8], [70 x i8]* @.str.38, i64 0, i64 0))
%135 = call i32 (i8*, i8*, i8*, ...) bitcast (i32 (...)* @add_makefile_entry_to_file to i32 (i8*, i8*, i8*, ...)*)(i8* %0, i8* %1, i8* getelementptr inbounds ([62 x i8], [62 x i8]* @.str.39, i64 0, i64 0))
%136 = call i32 (i8*, i8*, i8*, ...) bitcast (i32 (...)* @add_makefile_entry_to_file to i32 (i8*, i8*, i8*, ...)*)(i8* %0, i8* %1, i8* getelementptr inbounds ([67 x i8], [67 x i8]* @.str.40, i64 0, i64 0))
%137 = call i32 (i8*, i8*, i8*, ...) bitcast (i32 (...)* @add_makefile_entry_to_file to i32 (i8*, i8*, i8*, ...)*)(i8* %0, i8* %1, i8* getelementptr inbounds ([92 x i8], [92 x i8]* @.str.41, i64 0, i64 0))
%138 = call i32 (i8*, i8*, i8*, ...) bitcast (i32 (...)* @add_makefile_entry_to_file to i32 (i8*, i8*, i8*, ...)*)(i8* %0, i8* %1, i8* getelementptr inbounds ([96 x i8], [96 x i8]* @.str.42, i64 0, i64 0))
%139 = call i32 (i8*, i8*, ...) @sprintf(i8* dereferenceable(1) %8, i8* dereferenceable(1) getelementptr inbounds ([22 x i8], [22 x i8]* @.str.43, i64 0, i64 0), i8* %7, i32 47, i32 47)
%140 = call i32 (i8*, ...) bitcast (i32 (...)* @file_exists to i32 (i8*, ...)*)(i8* %8)
%141 = icmp eq i32 %140, 0
br i1 %141, label %145, label %142
142: ; preds = %127
%143 = call i32 (i8*, i8*, i8*, ...) bitcast (i32 (...)* @add_makefile_entry_to_file to i32 (i8*, i8*, i8*, ...)*)(i8* %0, i8* %1, i8* getelementptr inbounds ([97 x i8], [97 x i8]* @.str.44, i64 0, i64 0))
%144 = call i32 (i8*, i8*, i8*, ...) bitcast (i32 (...)* @add_makefile_entry_to_file to i32 (i8*, i8*, i8*, ...)*)(i8* %0, i8* %1, i8* getelementptr inbounds ([77 x i8], [77 x i8]* @.str.45, i64 0, i64 0))
br label %145
145: ; preds = %127, %142, %120
%146 = call i32 (i8*, i8*, ...) bitcast (i32 (...)* @save_makefile_install_scripts to i32 (i8*, i8*, ...)*)(i8* %0, i8* %1)
ret void
}