#define NULL ((void *)0)
typedef unsigned long size_t; // Customize by platform.
typedef long intptr_t;
typedef unsigned long uintptr_t;
typedef long scalar_t__; // Either arithmetic or pointer type.
/* By default, we understand bool (as a convenience). */
typedef int bool;
#define false 0
#define true 1

/* Forward declarations */

/* Type definitions */
typedef int /*<<< orphan*/ FILE;

/* Variables and functions */
char EOF;
int EXIT_FAILURE;
int EXIT_SUCCESS;
int /*<<< orphan*/ SEEK_SET;
int atoi(char *);
int /*<<< orphan*/ fclose(int /*<<< orphan*/ *);
char fgetc(int /*<<< orphan*/ *);
int /*<<< orphan*/ *fgets(char *, int, int /*<<< orphan*/ *);
int /*<<< orphan*/ *fopen(char *, char *);
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *, char *);
int /*<<< orphan*/ fputc(char, int /*<<< orphan*/ *);
int /*<<< orphan*/ fputs(char *, int /*<<< orphan*/ *);
int /*<<< orphan*/ fseek(int /*<<< orphan*/ *, long, int /*<<< orphan*/);
long ftell(int /*<<< orphan*/ *);
scalar_t__ isdigit(char);
int /*<<< orphan*/ stderr;
int /*<<< orphan*/ strcat(char *, char *);
char *strcpy(char *, char *);
long strlen(char *);
char *strstr(char *, char *);
int /*<<< orphan*/ system(char *);
int tops(char *file_name) {
  char lily_name[1024], ps_name[1024];
  strcpy(lily_name, file_name);
  strcpy(ps_name, file_name);
  strcat(lily_name, ".ly");
  strcat(ps_name, ".ps");
  char commande[1024];
  strcpy(commande, "lilypond --ps ");
  strcat(commande, lily_name);
  system(commande);
  FILE *lily_file, *ps_file;
  lily_file = fopen(lily_name, "r");
  if (lily_file != NULL) {
    ps_file = fopen(ps_name, "r+");
    if (ps_file != NULL) {
      char sentence[8192];
      char *response, *s_line_column;
      int line, column;
      long ps_fs_pos, ps_sd_pos;
      int i, j;
      char l;
      while (fgets(sentence, 8192, ps_file) != NULL) {
        if (isdigit(*sentence)) {
          ps_sd_pos = ftell(ps_file);
          ps_fs_pos = ftell(ps_file) - strlen(sentence);
          response = strstr(sentence, "textedit");
          if (response != NULL) {
            ps_fs_pos += ((response - sentence) / sizeof(char));
            response = strstr(response, ":");
            response++;
            response = strstr(response, ":");
            response++;
            line = atoi(response);
            response = strstr(response, ":");
            response++;
            column = atoi(response);
            i = line;
            j = column;
            fseek(lily_file, 0, SEEK_SET);
            l = fgetc(lily_file);
            while (l != EOF && i > 1) {
              if (l == '\n')
                i--;
              l = fgetc(lily_file);
            }
            if (l == EOF)
              return EXIT_FAILURE;
            while (l != EOF && l != '\n' && j > 0) {
              j--;
              l = fgetc(lily_file);
            }
            if (l == EOF || l == '\n')
              return EXIT_FAILURE;
            if (fgets(sentence, 8192, lily_file) == NULL)
              return EXIT_FAILURE;
            response = strstr(sentence, "%{");
            if (response == NULL) {
              s_line_column = strcpy(sentence, "0:0");
            } else {
              response += 2;
              s_line_column = response;
              while (*response != '%' && *response != '\0')
                response++;
              if (*response == '\0')
                strcpy(s_line_column, "0:0");
              *response = '\0';
            }
            fseek(ps_file, ps_fs_pos, SEEK_SET);
            fputs(s_line_column, ps_file);
            fputs(") mark_URI ", ps_file);
            if (ftell(ps_file) > ps_sd_pos)
              return EXIT_FAILURE;
            j = ps_sd_pos - ftell(ps_file) - 1;
            for (i = 0; i < j; i++)
              fputc(' ', ps_file);
          }
        }
      }
      fclose(ps_file);
    } else {
      fprintf(stderr, "Failed opening :%s\n", ps_name);
    }
    fclose(lily_file);
  } else {
    fprintf(stderr, "Failed opening :%s\n", lily_name);
  }
  strcpy(commande, "ps2pdf ");
  strcat(commande, ps_name);
  system(commande);
  return EXIT_SUCCESS;
}


x86 assembly (clang, -O0):
<tops>:
push   %rbp
mov    %rsp,%rbp
sub    $0x2c70,%rsp
mov    %rdi,-0x10(%rbp)
lea    -0x410(%rbp),%rdi
mov    -0x10(%rbp),%rsi
call   1040 <strcpy@plt>
lea    -0x810(%rbp),%rdi
mov    -0x10(%rbp),%rsi
call   1040 <strcpy@plt>
lea    -0x410(%rbp),%rdi
lea    0xdc3(%rip),%rsi
call   1110 <strcat@plt>
lea    -0x810(%rbp),%rdi
lea    0xdb4(%rip),%rsi
call   1110 <strcat@plt>
lea    -0xc10(%rbp),%rdi
lea    0xda5(%rip),%rsi
call   1040 <strcpy@plt>
lea    -0xc10(%rbp),%rdi
lea    -0x410(%rbp),%rsi
call   1110 <strcat@plt>
lea    -0xc10(%rbp),%rdi
call   1070 <system@plt>
lea    -0x410(%rbp),%rdi
lea    0xd82(%rip),%rsi
call   10f0 <fopen@plt>
mov    %rax,-0xc18(%rbp)
cmpq   $0x0,-0xc18(%rbp)
je     1845 <tops+0x645>
lea    -0x810(%rbp),%rdi
lea    0xd5c(%rip),%rsi
call   10f0 <fopen@plt>
mov    %rax,-0xc20(%rbp)
cmpq   $0x0,-0xc20(%rbp)
je     1818 <tops+0x618>
jmp    12dc <tops+0xdc>
lea    -0x2c20(%rbp),%rdi
mov    -0xc20(%rbp),%rdx
mov    $0x2000,%esi
call   10b0 <fgets@plt>
cmp    $0x0,%rax
je     1807 <tops+0x607>
movsbl -0x2c20(%rbp),%edi
call   1030 <isdigit@plt>
cmp    $0x0,%rax
je     1802 <tops+0x602>
mov    -0xc20(%rbp),%rdi
call   10d0 <ftell@plt>
mov    %rax,-0x2c48(%rbp)
mov    -0xc20(%rbp),%rdi
call   10d0 <ftell@plt>
mov    %rax,-0x2c60(%rbp)
lea    -0x2c20(%rbp),%rdi
call   1060 <strlen@plt>
mov    %rax,%rcx
mov    -0x2c60(%rbp),%rax
sub    %rcx,%rax
mov    %rax,-0x2c40(%rbp)
lea    -0x2c20(%rbp),%rdi
lea    0xcb4(%rip),%rsi
call   1120 <strstr@plt>
mov    %rax,-0x2c28(%rbp)
cmpq   $0x0,-0x2c28(%rbp)
je     17fd <tops+0x5fd>
mov    -0x2c28(%rbp),%rax
lea    -0x2c20(%rbp),%rcx
sub    %rcx,%rax
shr    $0x0,%rax
add    -0x2c40(%rbp),%rax
mov    %rax,-0x2c40(%rbp)
mov    -0x2c28(%rbp),%rdi
lea    0xc72(%rip),%rsi
call   1120 <strstr@plt>
mov    %rax,-0x2c28(%rbp)
mov    -0x2c28(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x2c28(%rbp)
mov    -0x2c28(%rbp),%rdi
lea    0xc46(%rip),%rsi
call   1120 <strstr@plt>
mov    %rax,-0x2c28(%rbp)
mov    -0x2c28(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x2c28(%rbp)
mov    -0x2c28(%rbp),%rdi
call   1100 <atoi@plt>
mov    %eax,-0x2c34(%rbp)
mov    -0x2c28(%rbp),%rdi
lea    0xc08(%rip),%rsi
call   1120 <strstr@plt>
mov    %rax,-0x2c28(%rbp)
mov    -0x2c28(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x2c28(%rbp)
mov    -0x2c28(%rbp),%rdi
call   1100 <atoi@plt>
mov    %eax,-0x2c38(%rbp)
mov    -0x2c34(%rbp),%eax
mov    %eax,-0x2c4c(%rbp)
mov    -0x2c38(%rbp),%eax
mov    %eax,-0x2c50(%rbp)
mov    -0xc18(%rbp),%rdi
mov    0x2b5d(%rip),%rax
mov    (%rax),%edx
xor    %eax,%eax
mov    %eax,%esi
call   10e0 <fseek@plt>
mov    -0xc18(%rbp),%rdi
call   1090 <fgetc@plt>
mov    %al,-0x2c51(%rbp)
movsbl -0x2c51(%rbp),%ecx
mov    0x2b4a(%rip),%rax
movsbl (%rax),%edx
xor    %eax,%eax
cmp    %edx,%ecx
mov    %al,-0x2c61(%rbp)
je     14c1 <tops+0x2c1>
cmpl   $0x1,-0x2c4c(%rbp)
setg   %al
mov    %al,-0x2c61(%rbp)
mov    -0x2c61(%rbp),%al
test   $0x1,%al
jne    14d4 <tops+0x2d4>
jmp    150a <tops+0x30a>
movsbl -0x2c51(%rbp),%eax
cmp    $0xa,%eax
jne    14f3 <tops+0x2f3>
mov    -0x2c4c(%rbp),%eax
add    $0xffffffff,%eax
mov    %eax,-0x2c4c(%rbp)
mov    -0xc18(%rbp),%rdi
call   1090 <fgetc@plt>
mov    %al,-0x2c51(%rbp)
jmp    1490 <tops+0x290>
movsbl -0x2c51(%rbp),%eax
mov    0x2ad0(%rip),%rcx
movsbl (%rcx),%ecx
cmp    %ecx,%eax
jne    1534 <tops+0x334>
mov    0x2a9e(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x4(%rbp)
jmp    189f <tops+0x69f>
jmp    1539 <tops+0x339>
movsbl -0x2c51(%rbp),%ecx
mov    0x2aa1(%rip),%rax
movsbl (%rax),%edx
xor    %eax,%eax
cmp    %edx,%ecx
mov    %al,-0x2c62(%rbp)
je     1582 <tops+0x382>
movsbl -0x2c51(%rbp),%ecx
xor    %eax,%eax
cmp    $0xa,%ecx
mov    %al,-0x2c62(%rbp)
je     1582 <tops+0x382>
cmpl   $0x0,-0x2c50(%rbp)
setg   %al
mov    %al,-0x2c62(%rbp)
mov    -0x2c62(%rbp),%al
test   $0x1,%al
jne    1595 <tops+0x395>
jmp    15bb <tops+0x3bb>
mov    -0x2c50(%rbp),%eax
add    $0xffffffff,%eax
mov    %eax,-0x2c50(%rbp)
mov    -0xc18(%rbp),%rdi
call   1090 <fgetc@plt>
mov    %al,-0x2c51(%rbp)
jmp    1539 <tops+0x339>
movsbl -0x2c51(%rbp),%eax
mov    0x2a1f(%rip),%rcx
movsbl (%rcx),%ecx
cmp    %ecx,%eax
je     15e4 <tops+0x3e4>
movsbl -0x2c51(%rbp),%eax
cmp    $0xa,%eax
jne    15f5 <tops+0x3f5>
mov    0x29dd(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x4(%rbp)
jmp    189f <tops+0x69f>
lea    -0x2c20(%rbp),%rdi
mov    -0xc18(%rbp),%rdx
mov    $0x2000,%esi
call   10b0 <fgets@plt>
cmp    $0x0,%rax
jne    1628 <tops+0x428>
mov    0x29aa(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x4(%rbp)
jmp    189f <tops+0x69f>
lea    -0x2c20(%rbp),%rdi
lea    0x9f1(%rip),%rsi
call   1120 <strstr@plt>
mov    %rax,-0x2c28(%rbp)
cmpq   $0x0,-0x2c28(%rbp)
jne    166f <tops+0x46f>
lea    -0x2c20(%rbp),%rdi
lea    0x9cc(%rip),%rsi
call   1040 <strcpy@plt>
mov    %rax,-0x2c30(%rbp)
jmp    171a <tops+0x51a>
mov    -0x2c28(%rbp),%rax
add    $0x2,%rax
mov    %rax,-0x2c28(%rbp)
mov    -0x2c28(%rbp),%rax
mov    %rax,-0x2c30(%rbp)
mov    -0x2c28(%rbp),%rax
movsbl (%rax),%ecx
xor    %eax,%eax
cmp    $0x25,%ecx
mov    %al,-0x2c63(%rbp)
je     16c0 <tops+0x4c0>
mov    -0x2c28(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x0,%eax
setne  %al
mov    %al,-0x2c63(%rbp)
mov    -0x2c63(%rbp),%al
test   $0x1,%al
jne    16d3 <tops+0x4d3>
jmp    16ea <tops+0x4ea>
mov    -0x2c28(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x2c28(%rbp)
jmp    168f <tops+0x48f>
mov    -0x2c28(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x0,%eax
jne    1710 <tops+0x510>
mov    -0x2c30(%rbp),%rdi
lea    0x91f(%rip),%rsi
call   1040 <strcpy@plt>
mov    -0x2c28(%rbp),%rax
movb   $0x0,(%rax)
mov    -0xc20(%rbp),%rdi
mov    -0x2c40(%rbp),%rsi
mov    0x28a1(%rip),%rax
mov    (%rax),%edx
call   10e0 <fseek@plt>
mov    -0x2c30(%rbp),%rdi
mov    -0xc20(%rbp),%rsi
call   1080 <fputs@plt>
mov    -0xc20(%rbp),%rsi
lea    0x8d7(%rip),%rdi
call   1080 <fputs@plt>
mov    -0xc20(%rbp),%rdi
call   10d0 <ftell@plt>
cmp    -0x2c48(%rbp),%rax
jle    1786 <tops+0x586>
mov    0x284c(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x4(%rbp)
jmp    189f <tops+0x69f>
mov    -0x2c48(%rbp),%rax
mov    %rax,-0x2c70(%rbp)
mov    -0xc20(%rbp),%rdi
call   10d0 <ftell@plt>
mov    %rax,%rcx
mov    -0x2c70(%rbp),%rax
sub    %rcx,%rax
sub    $0x1,%rax
mov    %eax,-0x2c50(%rbp)
movl   $0x0,-0x2c4c(%rbp)
mov    -0x2c4c(%rbp),%eax
cmp    -0x2c50(%rbp),%eax
jge    17f8 <tops+0x5f8>
mov    -0xc20(%rbp),%rsi
mov    $0x20,%edi
call   10a0 <fputc@plt>
mov    -0x2c4c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x2c4c(%rbp)
jmp    17c1 <tops+0x5c1>
jmp    17fd <tops+0x5fd>
jmp    1802 <tops+0x602>
jmp    12dc <tops+0xdc>
mov    -0xc20(%rbp),%rdi
call   1050 <fclose@plt>
jmp    1834 <tops+0x634>
mov    0x27b9(%rip),%rax
mov    (%rax),%edi
lea    -0x810(%rbp),%rdx
lea    0x80b(%rip),%rsi
call   10c0 <fprintf@plt>
mov    -0xc18(%rbp),%rdi
call   1050 <fclose@plt>
jmp    1861 <tops+0x661>
mov    0x278c(%rip),%rax
mov    (%rax),%edi
lea    -0x410(%rbp),%rdx
lea    0x7de(%rip),%rsi
call   10c0 <fprintf@plt>
lea    -0xc10(%rbp),%rdi
lea    0x7df(%rip),%rsi
call   1040 <strcpy@plt>
lea    -0xc10(%rbp),%rdi
lea    -0x810(%rbp),%rsi
call   1110 <strcat@plt>
lea    -0xc10(%rbp),%rdi
call   1070 <system@plt>
mov    0x2726(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x2c70,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<tops>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x2c28,%rsp
mov    %rdi,%rbp
lea    0x820(%rsp),%r14
mov    %r14,%rdi
mov    %rbp,%rsi
call   1040 <strcpy@plt>
lea    0x420(%rsp),%rbx
mov    %rbx,%rdi
mov    %rbp,%rsi
call   1040 <strcpy@plt>
lea    0xd9f(%rip),%rsi
mov    %r14,%rdi
call   1120 <strcat@plt>
lea    0xd94(%rip),%rsi
mov    %rbx,%rdi
call   1120 <strcat@plt>
movabs $0x2073702d2d2064,%rax
mov    %rax,0x27(%rsp)
movabs $0x646e6f70796c696c,%rax
6f 6e 64
mov    %rax,0x20(%rsp)
lea    0x20(%rsp),%rbx
mov    %rbx,%rdi
mov    %r14,%rsi
call   1120 <strcat@plt>
mov    %rbx,%rdi
call   1070 <system@plt>
lea    0xd62(%rip),%rsi
mov    %r14,%rdi
call   1100 <fopen@plt>
test   %rax,%rax
je     1588 <tops+0x368>
mov    %rax,%r12
lea    0xd49(%rip),%rsi
lea    0x420(%rsp),%rdi
call   1100 <fopen@plt>
test   %rax,%rax
je     15a7 <tops+0x387>
mov    %rax,%rbx
lea    0xc20(%rsp),%r14
mov    %r14,%rdi
mov    $0x2000,%esi
mov    %rax,%rdx
call   10c0 <fgets@plt>
test   %rax,%rax
je     15c6 <tops+0x3a6>
mov    %rbx,(%rsp)
jmp    1329 <tops+0x109>
mov    %r14,%rdi
mov    $0x2000,%esi
mov    %rbx,%rdx
call   10c0 <fgets@plt>
test   %rax,%rax
je     15c6 <tops+0x3a6>
movsbl 0xc20(%rsp),%edi
call   1030 <isdigit@plt>
test   %rax,%rax
je     1310 <tops+0xf0>
mov    %rbx,%rdi
call   10e0 <ftell@plt>
mov    %rax,%r13
mov    %rbx,%rdi
call   10e0 <ftell@plt>
mov    %rax,%r15
mov    %r14,%rdi
lea    0xcc1(%rip),%rsi
call   1140 <strstr@plt>
test   %rax,%rax
je     1310 <tops+0xf0>
mov    %rax,%rbp
mov    %r15,0x18(%rsp)
mov    %r14,%rdi
call   1060 <strlen@plt>
mov    %rax,%r14
mov    %rbp,0x10(%rsp)
mov    %rbp,%rdi
mov    $0x3a,%esi
call   1080 <strchr@plt>
lea    0x1(%rax),%rdi
mov    $0x3a,%esi
call   1080 <strchr@plt>
lea    0x1(%rax),%rbx
mov    %rbx,%rdi
call   1110 <atoi@plt>
mov    %eax,%ebp
mov    %rbx,%rdi
mov    $0x3a,%esi
call   1080 <strchr@plt>
lea    0x1(%rax),%rdi
call   1110 <atoi@plt>
mov    %eax,%r15d
mov    0x2c0a(%rip),%rax
mov    (%rax),%edx
mov    %r12,%rdi
xor    %esi,%esi
call   10f0 <fseek@plt>
mov    %r12,%rdi
call   10a0 <fgetc@plt>
mov    0x2c07(%rip),%rcx
mov    (%rcx),%cl
cmp    %cl,%al
mov    %r14,0x8(%rsp)
je     1428 <tops+0x208>
cmp    $0x2,%ebp
jl     1428 <tops+0x208>
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
xor    %ebx,%ebx
cmp    $0xa,%al
sete   %r14b
mov    %r12,%rdi
call   10a0 <fgetc@plt>
mov    0x2bd1(%rip),%rcx
movzbl (%rcx),%ecx
cmp    %cl,%al
je     1428 <tops+0x208>
mov    %r14b,%bl
sub    %ebx,%ebp
cmp    $0x1,%ebp
ja     1400 <tops+0x1e0>
cmp    %cl,%al
mov    (%rsp),%rbx
lea    0xc20(%rsp),%r14
je     161d <tops+0x3fd>
cmp    $0xa,%al
je     1477 <tops+0x257>
test   %r15d,%r15d
jle    1477 <tops+0x257>
cs nopw 0x0(%rax,%rax,1)
nop
mov    %r12,%rdi
call   10a0 <fgetc@plt>
mov    0x2b89(%rip),%rcx
movzbl (%rcx),%ecx
cmp    $0xa,%al
je     1477 <tops+0x257>
cmp    %cl,%al
je     1477 <tops+0x257>
lea    -0x1(%r15),%edx
cmp    $0x1,%r15d
mov    %edx,%r15d
ja     1450 <tops+0x230>
cmp    $0xa,%al
je     161d <tops+0x3fd>
cmp    %cl,%al
je     161d <tops+0x3fd>
mov    %r14,%rdi
mov    $0x2000,%esi
mov    %r12,%rdx
call   10c0 <fgets@plt>
test   %rax,%rax
je     161d <tops+0x3fd>
mov    0x18(%rsp),%r15
add    0x10(%rsp),%r15
mov    0x8(%rsp),%rax
add    %r14,%rax
sub    %rax,%r15
mov    %r14,%rdi
lea    0xb66(%rip),%rsi
call   1140 <strstr@plt>
test   %rax,%rax
je     14f2 <tops+0x2d2>
mov    %rax,%rbp
add    $0x2,%rbp
mov    %rbp,%rax
cs nopw 0x0(%rax,%rax,1)
nopl   (%rax)
movzbl (%rax),%ecx
test   %cl,%cl
je     1502 <tops+0x2e2>
cmp    $0x25,%cl
je     1509 <tops+0x2e9>
add    $0x1,%rax
jmp    14e0 <tops+0x2c0>
movl   $0x303a30,0xc20(%rsp)
mov    %r14,%rbp
jmp    150c <tops+0x2ec>
movl   $0x303a30,0x0(%rbp)
movb   $0x0,(%rax)
mov    0x2abd(%rip),%rax
mov    (%rax),%edx
mov    %rbx,%rdi
mov    %r15,%rsi
call   10f0 <fseek@plt>
mov    %rbp,%rdi
mov    %rbx,%rsi
call   1090 <fputs@plt>
mov    $0xb,%esi
mov    $0x1,%edx
lea    0xaec(%rip),%rdi
mov    %rbx,%rcx
call   1130 <fwrite@plt>
mov    %rbx,%rdi
call   10e0 <ftell@plt>
cmp    %r13,%rax
jg     161d <tops+0x3fd>
mov    %rbx,%rdi
call   10e0 <ftell@plt>
not    %eax
add    %eax,%r13d
test   %r13d,%r13d
jle    1310 <tops+0xf0>
nopl   0x0(%rax,%rax,1)
mov    $0x20,%edi
mov    %rbx,%rsi
call   10b0 <fputc@plt>
add    $0xffffffff,%r13d
jne    1570 <tops+0x350>
jmp    1310 <tops+0xf0>
mov    0x2a49(%rip),%rax
mov    (%rax),%edi
lea    0xa9c(%rip),%rsi
lea    0x820(%rsp),%rdx
call   10d0 <fprintf@plt>
jmp    15d6 <tops+0x3b6>
mov    0x2a2a(%rip),%rax
mov    (%rax),%edi
lea    0xa7d(%rip),%rsi
lea    0x420(%rsp),%rdx
call   10d0 <fprintf@plt>
jmp    15ce <tops+0x3ae>
mov    %rbx,%rdi
call   1050 <fclose@plt>
mov    %r12,%rdi
call   1050 <fclose@plt>
movabs $0x20666470327370,%rax
mov    %rax,0x20(%rsp)
lea    0x20(%rsp),%rbx
lea    0x420(%rsp),%rsi
mov    %rbx,%rdi
call   1120 <strcat@plt>
mov    %rbx,%rdi
call   1070 <system@plt>
mov    0x29b7(%rip),%rax
mov    (%rax),%eax
add    $0x2c28,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret
mov    0x29a4(%rip),%rax
jmp    1609 <tops+0x3e9>

LLVM IR (-O0):
@.str = [4 x i8] c".ly\00"
@.str.1 = [4 x i8] c".ps\00"
@.str.2 = [15 x i8] c"lilypond --ps \00"
@.str.3 = [2 x i8] c"r\00"
@.str.4 = [3 x i8] c"r+\00"
@.str.5 = [9 x i8] c"textedit\00"
@.str.6 = [2 x i8] c":\00"
@SEEK_SET = global i32 0
@EOF = global i8 0
@EXIT_FAILURE = global i32 0
@.str.7 = [3 x i8] c"%{\00"
@.str.8 = [4 x i8] c"0:0\00"
@.str.9 = [12 x i8] c") mark_URI \00"
@stderr = global i32 0
@.str.10 = [20 x i8] c"Failed opening :%s\0A\00"
@.str.11 = [8 x i8] c"ps2pdf \00"
@EXIT_SUCCESS = global i32 0
define i32 @tops(i8* %0) {
%2 = alloca i32
%3 = alloca i8*
%4 = alloca [1024 x i8]
%5 = alloca [1024 x i8]
%6 = alloca [1024 x i8]
%7 = alloca i32*
%8 = alloca i32*
%9 = alloca [8192 x i8]
%10 = alloca i8*
%11 = alloca i8*
%12 = alloca i32
%13 = alloca i32
%14 = alloca i64
%15 = alloca i64
%16 = alloca i32
%17 = alloca i32
%18 = alloca i8
store i8* %0, i8** %3
%19 = getelementptr inbounds [1024 x i8], [1024 x i8]* %4, i64 0, i64 0
%20 = load i8*, i8** %3
%21 = call i8* @strcpy(i8* %19, i8* %20)
%22 = getelementptr inbounds [1024 x i8], [1024 x i8]* %5, i64 0, i64 0
%23 = load i8*, i8** %3
%24 = call i8* @strcpy(i8* %22, i8* %23)
%25 = getelementptr inbounds [1024 x i8], [1024 x i8]* %4, i64 0, i64 0
%26 = call i32 @strcat(i8* %25, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0))
%27 = getelementptr inbounds [1024 x i8], [1024 x i8]* %5, i64 0, i64 0
%28 = call i32 @strcat(i8* %27, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0))
%29 = getelementptr inbounds [1024 x i8], [1024 x i8]* %6, i64 0, i64 0
%30 = call i8* @strcpy(i8* %29, i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.2, i64 0, i64 0))
%31 = getelementptr inbounds [1024 x i8], [1024 x i8]* %6, i64 0, i64 0
%32 = getelementptr inbounds [1024 x i8], [1024 x i8]* %4, i64 0, i64 0
%33 = call i32 @strcat(i8* %31, i8* %32)
%34 = getelementptr inbounds [1024 x i8], [1024 x i8]* %6, i64 0, i64 0
%35 = call i32 @system(i8* %34)
%36 = getelementptr inbounds [1024 x i8], [1024 x i8]* %4, i64 0, i64 0
%37 = call i32* @fopen(i8* %36, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.3, i64 0, i64 0))
store i32* %37, i32** %7
%38 = load i32*, i32** %7
%39 = icmp ne i32* %38, null
br i1 %39, label %40, label %252
40: ; preds = %1
%41 = getelementptr inbounds [1024 x i8], [1024 x i8]* %5, i64 0, i64 0
%42 = call i32* @fopen(i8* %41, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.4, i64 0, i64 0))
store i32* %42, i32** %8
%43 = load i32*, i32** %8
%44 = icmp ne i32* %43, null
br i1 %44, label %45, label %245
45: ; preds = %40
br label %46
46: ; preds = %241, %45
%47 = getelementptr inbounds [8192 x i8], [8192 x i8]* %9, i64 0, i64 0
%48 = load i32*, i32** %8
%49 = call i32* @fgets(i8* %47, i32 8192, i32* %48)
%50 = icmp ne i32* %49, null
br i1 %50, label %51, label %242
51: ; preds = %46
%52 = getelementptr inbounds [8192 x i8], [8192 x i8]* %9, i64 0, i64 0
%53 = load i8, i8* %52
%54 = call i64 @isdigit(i8 signext %53)
%55 = icmp ne i64 %54, 0
br i1 %55, label %56, label %241
56: ; preds = %51
%57 = load i32*, i32** %8
%58 = call i64 @ftell(i32* %57)
store i64 %58, i64* %15
%59 = load i32*, i32** %8
%60 = call i64 @ftell(i32* %59)
%61 = getelementptr inbounds [8192 x i8], [8192 x i8]* %9, i64 0, i64 0
%62 = call i64 @strlen(i8* %61)
%63 = sub nsw i64 %60, %62
store i64 %63, i64* %14
%64 = getelementptr inbounds [8192 x i8], [8192 x i8]* %9, i64 0, i64 0
%65 = call i8* @strstr(i8* %64, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.5, i64 0, i64 0))
store i8* %65, i8** %10
%66 = load i8*, i8** %10
%67 = icmp ne i8* %66, null
br i1 %67, label %68, label %240
68: ; preds = %56
%69 = load i8*, i8** %10
%70 = getelementptr inbounds [8192 x i8], [8192 x i8]* %9, i64 0, i64 0
%71 = ptrtoint i8* %69 to i64
%72 = ptrtoint i8* %70 to i64
%73 = sub i64 %71, %72
%74 = udiv i64 %73, 1
%75 = load i64, i64* %14
%76 = add i64 %75, %74
store i64 %76, i64* %14
%77 = load i8*, i8** %10
%78 = call i8* @strstr(i8* %77, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.6, i64 0, i64 0))
store i8* %78, i8** %10
%79 = load i8*, i8** %10
%80 = getelementptr inbounds i8, i8* %79, i32 1
store i8* %80, i8** %10
%81 = load i8*, i8** %10
%82 = call i8* @strstr(i8* %81, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.6, i64 0, i64 0))
store i8* %82, i8** %10
%83 = load i8*, i8** %10
%84 = getelementptr inbounds i8, i8* %83, i32 1
store i8* %84, i8** %10
%85 = load i8*, i8** %10
%86 = call i32 @atoi(i8* %85)
store i32 %86, i32* %12
%87 = load i8*, i8** %10
%88 = call i8* @strstr(i8* %87, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.6, i64 0, i64 0))
store i8* %88, i8** %10
%89 = load i8*, i8** %10
%90 = getelementptr inbounds i8, i8* %89, i32 1
store i8* %90, i8** %10
%91 = load i8*, i8** %10
%92 = call i32 @atoi(i8* %91)
store i32 %92, i32* %13
%93 = load i32, i32* %12
store i32 %93, i32* %16
%94 = load i32, i32* %13
store i32 %94, i32* %17
%95 = load i32*, i32** %7
%96 = load i32, i32* @SEEK_SET
%97 = call i32 @fseek(i32* %95, i64 0, i32 %96)
%98 = load i32*, i32** %7
%99 = call signext i8 @fgetc(i32* %98)
store i8 %99, i8* %18
br label %100
100: ; preds = %118, %68
%101 = load i8, i8* %18
%102 = sext i8 %101 to i32
%103 = load i8, i8* @EOF
%104 = sext i8 %103 to i32
%105 = icmp ne i32 %102, %104
br i1 %105, label %106, label %109
106: ; preds = %100
%107 = load i32, i32* %16
%108 = icmp sgt i32 %107, 1
br label %109
109: ; preds = %106, %100
%110 = phi i1 [ false, %100 ], [ %108, %106 ]
br i1 %110, label %111, label %121
111: ; preds = %109
%112 = load i8, i8* %18
%113 = sext i8 %112 to i32
%114 = icmp eq i32 %113, 10
br i1 %114, label %115, label %118
115: ; preds = %111
%116 = load i32, i32* %16
%117 = add nsw i32 %116, -1
store i32 %117, i32* %16
br label %118
118: ; preds = %115, %111
%119 = load i32*, i32** %7
%120 = call signext i8 @fgetc(i32* %119)
store i8 %120, i8* %18
br label %100
121: ; preds = %109
%122 = load i8, i8* %18
%123 = sext i8 %122 to i32
%124 = load i8, i8* @EOF
%125 = sext i8 %124 to i32
%126 = icmp eq i32 %123, %125
br i1 %126, label %127, label %129
127: ; preds = %121
%128 = load i32, i32* @EXIT_FAILURE
store i32 %128, i32* %2
br label %265
129: ; preds = %121
br label %130
130: ; preds = %145, %129
%131 = load i8, i8* %18
%132 = sext i8 %131 to i32
%133 = load i8, i8* @EOF
%134 = sext i8 %133 to i32
%135 = icmp ne i32 %132, %134
br i1 %135, label %136, label %143
136: ; preds = %130
%137 = load i8, i8* %18
%138 = sext i8 %137 to i32
%139 = icmp ne i32 %138, 10
br i1 %139, label %140, label %143
140: ; preds = %136
%141 = load i32, i32* %17
%142 = icmp sgt i32 %141, 0
br label %143
143: ; preds = %140, %136, %130
%144 = phi i1 [ false, %136 ], [ false, %130 ], [ %142, %140 ]
br i1 %144, label %145, label %150
145: ; preds = %143
%146 = load i32, i32* %17
%147 = add nsw i32 %146, -1
store i32 %147, i32* %17
%148 = load i32*, i32** %7
%149 = call signext i8 @fgetc(i32* %148)
store i8 %149, i8* %18
br label %130
150: ; preds = %143
%151 = load i8, i8* %18
%152 = sext i8 %151 to i32
%153 = load i8, i8* @EOF
%154 = sext i8 %153 to i32
%155 = icmp eq i32 %152, %154
br i1 %155, label %160, label %156
156: ; preds = %150
%157 = load i8, i8* %18
%158 = sext i8 %157 to i32
%159 = icmp eq i32 %158, 10
br i1 %159, label %160, label %162
160: ; preds = %156, %150
%161 = load i32, i32* @EXIT_FAILURE
store i32 %161, i32* %2
br label %265
162: ; preds = %156
%163 = getelementptr inbounds [8192 x i8], [8192 x i8]* %9, i64 0, i64 0
%164 = load i32*, i32** %7
%165 = call i32* @fgets(i8* %163, i32 8192, i32* %164)
%166 = icmp eq i32* %165, null
br i1 %166, label %167, label %169
167: ; preds = %162
%168 = load i32, i32* @EXIT_FAILURE
store i32 %168, i32* %2
br label %265
169: ; preds = %162
%170 = getelementptr inbounds [8192 x i8], [8192 x i8]* %9, i64 0, i64 0
%171 = call i8* @strstr(i8* %170, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.7, i64 0, i64 0))
store i8* %171, i8** %10
%172 = load i8*, i8** %10
%173 = icmp eq i8* %172, null
br i1 %173, label %174, label %177
174: ; preds = %169
%175 = getelementptr inbounds [8192 x i8], [8192 x i8]* %9, i64 0, i64 0
%176 = call i8* @strcpy(i8* %175, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.8, i64 0, i64 0))
store i8* %176, i8** %11
br label %206
177: ; preds = %169
%178 = load i8*, i8** %10
%179 = getelementptr inbounds i8, i8* %178, i64 2
store i8* %179, i8** %10
%180 = load i8*, i8** %10
store i8* %180, i8** %11
br label %181
181: ; preds = %193, %177
%182 = load i8*, i8** %10
%183 = load i8, i8* %182
%184 = sext i8 %183 to i32
%185 = icmp ne i32 %184, 37
br i1 %185, label %186, label %191
186: ; preds = %181
%187 = load i8*, i8** %10
%188 = load i8, i8* %187
%189 = sext i8 %188 to i32
%190 = icmp ne i32 %189, 0
br label %191
191: ; preds = %186, %181
%192 = phi i1 [ false, %181 ], [ %190, %186 ]
br i1 %192, label %193, label %196
193: ; preds = %191
%194 = load i8*, i8** %10
%195 = getelementptr inbounds i8, i8* %194, i32 1
store i8* %195, i8** %10
br label %181
196: ; preds = %191
%197 = load i8*, i8** %10
%198 = load i8, i8* %197
%199 = sext i8 %198 to i32
%200 = icmp eq i32 %199, 0
br i1 %200, label %201, label %204
201: ; preds = %196
%202 = load i8*, i8** %11
%203 = call i8* @strcpy(i8* %202, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.8, i64 0, i64 0))
br label %204
204: ; preds = %201, %196
%205 = load i8*, i8** %10
store i8 0, i8* %205
br label %206
206: ; preds = %204, %174
%207 = load i32*, i32** %8
%208 = load i64, i64* %14
%209 = load i32, i32* @SEEK_SET
%210 = call i32 @fseek(i32* %207, i64 %208, i32 %209)
%211 = load i8*, i8** %11
%212 = load i32*, i32** %8
%213 = call i32 @fputs(i8* %211, i32* %212)
%214 = load i32*, i32** %8
%215 = call i32 @fputs(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.9, i64 0, i64 0), i32* %214)
%216 = load i32*, i32** %8
%217 = call i64 @ftell(i32* %216)
%218 = load i64, i64* %15
%219 = icmp sgt i64 %217, %218
br i1 %219, label %220, label %222
220: ; preds = %206
%221 = load i32, i32* @EXIT_FAILURE
store i32 %221, i32* %2
br label %265
222: ; preds = %206
%223 = load i64, i64* %15
%224 = load i32*, i32** %8
%225 = call i64 @ftell(i32* %224)
%226 = sub nsw i64 %223, %225
%227 = sub nsw i64 %226, 1
%228 = trunc i64 %227 to i32
store i32 %228, i32* %17
store i32 0, i32* %16
br label %229
229: ; preds = %236, %222
%230 = load i32, i32* %16
%231 = load i32, i32* %17
%232 = icmp slt i32 %230, %231
br i1 %232, label %233, label %239
233: ; preds = %229
%234 = load i32*, i32** %8
%235 = call i32 @fputc(i8 signext 32, i32* %234)
br label %236
236: ; preds = %233
%237 = load i32, i32* %16
%238 = add nsw i32 %237, 1
store i32 %238, i32* %16
br label %229
239: ; preds = %229
br label %240
240: ; preds = %239, %56
br label %241
241: ; preds = %240, %51
br label %46
242: ; preds = %46
%243 = load i32*, i32** %8
%244 = call i32 @fclose(i32* %243)
br label %249
245: ; preds = %40
%246 = load i32, i32* @stderr
%247 = getelementptr inbounds [1024 x i8], [1024 x i8]* %5, i64 0, i64 0
%248 = call i32 @fprintf(i32 %246, i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.10, i64 0, i64 0), i8* %247)
br label %249
249: ; preds = %245, %242
%250 = load i32*, i32** %7
%251 = call i32 @fclose(i32* %250)
br label %256
252: ; preds = %1
%253 = load i32, i32* @stderr
%254 = getelementptr inbounds [1024 x i8], [1024 x i8]* %4, i64 0, i64 0
%255 = call i32 @fprintf(i32 %253, i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.10, i64 0, i64 0), i8* %254)
br label %256
256: ; preds = %252, %249
%257 = getelementptr inbounds [1024 x i8], [1024 x i8]* %6, i64 0, i64 0
%258 = call i8* @strcpy(i8* %257, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.11, i64 0, i64 0))
%259 = getelementptr inbounds [1024 x i8], [1024 x i8]* %6, i64 0, i64 0
%260 = getelementptr inbounds [1024 x i8], [1024 x i8]* %5, i64 0, i64 0
%261 = call i32 @strcat(i8* %259, i8* %260)
%262 = getelementptr inbounds [1024 x i8], [1024 x i8]* %6, i64 0, i64 0
%263 = call i32 @system(i8* %262)
%264 = load i32, i32* @EXIT_SUCCESS
store i32 %264, i32* %2
br label %265
265: ; preds = %256, %220, %167, %160, %127
%266 = load i32, i32* %2
ret i32 %266
}

LLVM IR (-O2):
@.str = [4 x i8] c".ly\00"
@.str.1 = [4 x i8] c".ps\00"
@.str.2 = [15 x i8] c"lilypond --ps \00"
@.str.3 = [2 x i8] c"r\00"
@.str.4 = [3 x i8] c"r+\00"
@.str.5 = [9 x i8] c"textedit\00"
@SEEK_SET = global i32 0
@EOF = global i8 0
@EXIT_FAILURE = global i32 0
@.str.7 = [3 x i8] c"%{\00"
@.str.9 = [12 x i8] c") mark_URI \00"
@stderr = global i32 0
@.str.10 = [20 x i8] c"Failed opening :%s\0A\00"
@EXIT_SUCCESS = global i32 0
define i32 @tops(i8* nocapture %0) {
%2 = alloca [1024 x i8]
%3 = alloca [1024 x i8]
%4 = alloca [1024 x i8]
%5 = alloca [8192 x i8]
%6 = getelementptr inbounds [1024 x i8], [1024 x i8]* %2, i64 0, i64 0
%7 = getelementptr inbounds [1024 x i8], [1024 x i8]* %3, i64 0, i64 0
%8 = call i8* @strcpy(i8* %6, i8* dereferenceable(1) %0)
%9 = call i8* @strcpy(i8* %7, i8* dereferenceable(1) %0)
%10 = call i32 @strcat(i8* %6, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0))
%11 = call i32 @strcat(i8* %7, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0))
%12 = getelementptr inbounds [1024 x i8], [1024 x i8]* %4, i64 0, i64 0
%13 = call i32 @strcat(i8* %12, i8* %6)
%14 = call i32 @system(i8* %12)
%15 = call i32* @fopen(i8* %6, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.3, i64 0, i64 0))
%16 = icmp eq i32* %15, null
br i1 %16, label %140, label %17
17: ; preds = %1
%18 = call i32* @fopen(i8* %7, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.4, i64 0, i64 0))
%19 = icmp eq i32* %18, null
br i1 %19, label %135, label %20
20: ; preds = %17
%21 = getelementptr inbounds [8192 x i8], [8192 x i8]* %5, i64 0, i64 0
%22 = call i32* @fgets(i8* %21, i32 8192, i32* %18)
%23 = icmp eq i32* %22, null
br i1 %23, label %133, label %24
24: ; preds = %20
%25 = ptrtoint [8192 x i8]* %5 to i64
%26 = bitcast [8192 x i8]* %5 to i32*
br label %27
27: ; preds = %24, %128
%28 = load i8, i8* %21
%29 = call i64 @isdigit(i8 signext %28)
%30 = icmp eq i64 %29, 0
br i1 %30, label %128, label %31
31: ; preds = %27
%32 = call i64 @ftell(i32* %18)
%33 = call i64 @ftell(i32* %18)
%34 = call i8* @strstr(i8* %21, i8* dereferenceable(1) getelementptr inbounds ([9 x i8], [9 x i8]* @.str.5, i64 0, i64 0))
%35 = icmp eq i8* %34, null
br i1 %35, label %128, label %36
36: ; preds = %31
%37 = call i64 @strlen(i8* %21)
%38 = ptrtoint i8* %34 to i64
%39 = add i64 %33, %38
%40 = add i64 %37, %25
%41 = sub i64 %39, %40
%42 = call i8* @strchr(i8* %34, i32 58)
%43 = getelementptr inbounds i8, i8* %42, i64 1
%44 = call i8* @strchr(i8* %43, i32 58)
%45 = getelementptr inbounds i8, i8* %44, i64 1
%46 = call i32 @atoi(i8* %45)
%47 = call i8* @strchr(i8* %45, i32 58)
%48 = getelementptr inbounds i8, i8* %47, i64 1
%49 = call i32 @atoi(i8* %48)
%50 = load i32, i32* @SEEK_SET
%51 = call i32 @fseek(i32* %15, i64 0, i32 %50)
%52 = call signext i8 @fgetc(i32* %15)
%53 = load i8, i8* @EOF
%54 = icmp ne i8 %52, %53
%55 = icmp sgt i32 %46, 1
%56 = select i1 %54, i1 %55, i1 false
br i1 %56, label %57, label %68
57: ; preds = %36, %57
%58 = phi i8 [ %63, %57 ], [ %52, %36 ]
%59 = phi i32 [ %62, %57 ], [ %46, %36 ]
%60 = icmp eq i8 %58, 10
%61 = sext i1 %60 to i32
%62 = add nsw i32 %59, %61
%63 = call signext i8 @fgetc(i32* %15)
%64 = load i8, i8* @EOF
%65 = icmp ne i8 %63, %64
%66 = icmp ugt i32 %62, 1
%67 = select i1 %65, i1 %66, i1 false
br i1 %67, label %57, label %68
68: ; preds = %57, %36
%69 = phi i8 [ %52, %36 ], [ %63, %57 ]
%70 = phi i8 [ %53, %36 ], [ %64, %57 ]
%71 = icmp eq i8 %69, %70
br i1 %71, label %131, label %72
72: ; preds = %68
%73 = icmp ne i8 %69, 10
%74 = icmp sgt i32 %49, 0
%75 = select i1 %73, i1 %74, i1 false
br i1 %75, label %76, label %86
76: ; preds = %72, %76
%77 = phi i32 [ %78, %76 ], [ %49, %72 ]
%78 = add nsw i32 %77, -1
%79 = call signext i8 @fgetc(i32* %15)
%80 = load i8, i8* @EOF
%81 = icmp ne i8 %79, %80
%82 = icmp ne i8 %79, 10
%83 = and i1 %82, %81
%84 = icmp ugt i32 %77, 1
%85 = select i1 %83, i1 %84, i1 false
br i1 %85, label %76, label %86
86: ; preds = %76, %72
%87 = phi i8 [ %69, %72 ], [ %79, %76 ]
%88 = phi i8 [ %70, %72 ], [ %80, %76 ]
%89 = icmp eq i8 %87, %88
%90 = icmp eq i8 %87, 10
%91 = or i1 %90, %89
br i1 %91, label %131, label %92
92: ; preds = %86
%93 = call i32* @fgets(i8* %21, i32 8192, i32* %15)
%94 = icmp eq i32* %93, null
br i1 %94, label %131, label %95
95: ; preds = %92
%96 = call i8* @strstr(i8* %21, i8* dereferenceable(1) getelementptr inbounds ([3 x i8], [3 x i8]* @.str.7, i64 0, i64 0))
%97 = icmp eq i8* %96, null
br i1 %97, label %98, label %99
98: ; preds = %95
store i32 3160624, i32* %26
br label %109
99: ; preds = %95
%100 = getelementptr inbounds i8, i8* %96, i64 2
br label %101
101: ; preds = %104, %99
%102 = phi i8* [ %100, %99 ], [ %105, %104 ]
%103 = load i8, i8* %102
switch i8 %103, label %104 [
i8 0, label %106
i8 37, label %108
]
104: ; preds = %101
%105 = getelementptr inbounds i8, i8* %102, i64 1
br label %101
106: ; preds = %101
%107 = bitcast i8* %100 to i32*
store i32 3160624, i32* %107
br label %108
108: ; preds = %101, %106
store i8 0, i8* %102
br label %109
109: ; preds = %108, %98
%110 = phi i8* [ %21, %98 ], [ %100, %108 ]
%111 = load i32, i32* @SEEK_SET
%112 = call i32 @fseek(i32* %18, i64 %41, i32 %111)
%113 = call i32 @fputs(i8* %110, i32* %18)
%114 = call i64 @fwrite(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.9, i64 0, i64 0), i64 11, i64 1, i32* %18)
%115 = call i64 @ftell(i32* %18)
%116 = icmp sgt i64 %115, %32
br i1 %116, label %131, label %117
117: ; preds = %109
%118 = call i64 @ftell(i32* %18)
%119 = xor i64 %118, -1
%120 = add i64 %32, %119
%121 = trunc i64 %120 to i32
%122 = icmp sgt i32 %121, 0
br i1 %122, label %123, label %128
123: ; preds = %117, %123
%124 = phi i32 [ %126, %123 ], [ 0, %117 ]
%125 = call i32 @fputc(i8 signext 32, i32* %18)
%126 = add nuw nsw i32 %124, 1
%127 = icmp eq i32 %126, %121
br i1 %127, label %128, label %123
128: ; preds = %123, %117, %31, %27
%129 = call i32* @fgets(i8* %21, i32 8192, i32* %18)
%130 = icmp eq i32* %129, null
br i1 %130, label %133, label %27
131: ; preds = %109, %92, %86, %68
%132 = load i32, i32* @EXIT_FAILURE
br label %148
133: ; preds = %128, %20
%134 = call i32 @fclose(i32* %18)
br label %138
135: ; preds = %17
%136 = load i32, i32* @stderr
%137 = call i32 @fprintf(i32 %136, i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.10, i64 0, i64 0), i8* %7)
br label %138
138: ; preds = %133, %135
%139 = call i32 @fclose(i32* %15)
br label %143
140: ; preds = %1
%141 = load i32, i32* @stderr
%142 = call i32 @fprintf(i32 %141, i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.10, i64 0, i64 0), i8* %6)
br label %143
143: ; preds = %140, %138
%144 = bitcast [1024 x i8]* %4 to i64*
store i64 9119780819858288, i64* %144
%145 = call i32 @strcat(i8* %12, i8* %7)
%146 = call i32 @system(i8* %12)
%147 = load i32, i32* @EXIT_SUCCESS
br label %148
148: ; preds = %131, %143
%149 = phi i32 [ %147, %143 ], [ %132, %131 ]
ret i32 %149
}