#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 */
int EOF;
int alarm_detected(char *, int);
int atoi(char *);
int /*<<< orphan*/ clear_log();
int detect_cycle(char *);
int /*<<< orphan*/ fclose(int /*<<< orphan*/ *);
int /*<<< orphan*/ fflush(int /*<<< orphan*/);
int /*<<< orphan*/ *fopen(char *, char *);
int /*<<< orphan*/ fprintf(int /*<<< orphan*/ *, char *, char *);
int /*<<< orphan*/ get_cycle_number(char *, char *);
int getc(int /*<<< orphan*/ *);
int /*<<< orphan*/ print_time();
int /*<<< orphan*/ print_to_pdf(char *, char *, char *, char *);
int /*<<< orphan*/ printf(char *, ...);
int /*<<< orphan*/ sleep(int);
int /*<<< orphan*/ stdout;
int strlen(char *);
int /*<<< orphan*/ system(char *);
int main(int argc, char **argv) {
  FILE *pFile;
  FILE *pAlarms;
  int sequence = 0;
  int interval = atoi(argv[1]);
  int count = 0;
  int receiving = 0;
  int c;
  char cycnum[6];
  int done = (0 != 0);
  int cycles = 0;
  int alarm_argc = 0;
  int alarm_start_point = 0;
  int start_relay = 0;
  int alarm_count = 0;
  int alarm_active = 0;
  char alarm_cmd[64];
  int i = 0;
  printf("\n\nCycle Detection Application Started  ");
  print_time();
  printf("Monitors active_log.txt file every %d seconds.\n\nVersion 0 "
         "2014-JAN-15 By -DL-\n\n",
         interval);
  while (!done) {
    sleep(interval);
    alarm_argc = 0;
    pFile = fopen("/var/www/active_log.txt", "r");
    if (pFile != NULL) {
      c = getc(pFile);
      while (c != EOF) {
        count++;
        c = getc(pFile);
      }
      fclose(pFile);
      if (count == 0) {
        sequence = 0;
        start_relay = 0;
        alarm_start_point = 0;
        alarm_count = 0;
      } else {
        if (sequence == 0) {
          sequence = 1;
          printf("1: LOG FILE ACTIVE ");
          print_time();
        }
        if (sequence == 3) {
          if (detect_cycle(argv[3]) == 0) {
            clear_log();
            printf("3: NO CYCLE - active_log.txt CLEARED\n\n\n");
            sequence = 0;
          } else {
            printf("3: CYCLE NUMBER: %s  \n", cycnum);
            sequence = 4;
          }
        }
        if (sequence == 4) {
          if (detect_cycle(argv[4]) >= 1) {
            printf("4: END OF CYCLE DETECTED  ");
            print_time();
            sequence = 5;
          }
        }
        if ((sequence == 5) && (receiving == count)) {
          printf("5: PRINTING \n");
          print_to_pdf(cycnum, argv[5], argv[8], argv[9]);
          sequence = 0;
          cycles++;
          printf("(%d)out of (%d) cycles printed before reboot.\n\n\n", cycles,
                 atoi(argv[6]));
          if (cycles == atoi(argv[6])) {
            printf("Rebooting system");
            system("sudo /sbin/shutdown -r now");
          }
        }
        if (sequence == 2) {
          printf("2: VERIFY IF CYCLE\n");
          get_cycle_number(argv[2], cycnum);
          if (strlen(cycnum) >= 2)
            sequence = 3;
          else {
            clear_log();
            printf("3: NO CYCLE DETECTED - active_log.txt CLEARED\n\n\n");
            sequence = 0;
          }
        }
        if ((sequence == 1) && (receiving == count))
          sequence = 2;
        if ((sequence > 3) && (alarm_count < atoi(argv[7]))) {
          for (alarm_argc = 10; alarm_argc < argc; alarm_argc++) {
            alarm_active, start_relay = alarm_detected(argv[alarm_argc],
                                                       alarm_start_point);
            if (start_relay > alarm_start_point) {
              printf("%s ALARM DETECTED  ", argv[alarm_argc]);
              print_time();
              pAlarms = fopen("/var/www/alarms.txt", "a");
              fprintf(pAlarms, "%s  ", argv[alarm_argc]);
              print_time();
              fclose(pAlarms);
              alarm_start_point = start_relay;
              alarm_count++;
            }
          }
        }
      }
      receiving = count;
      count = 0;
    } else
      printf("LOG_FILE = NULL\n");
    fflush(stdout);
  }
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0xb0,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
movl   $0x0,-0x24(%rbp)
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rdi
call   10f0 <atoi@plt>
mov    %eax,-0x28(%rbp)
movl   $0x0,-0x2c(%rbp)
movl   $0x0,-0x30(%rbp)
movl   $0x0,-0x40(%rbp)
movl   $0x0,-0x44(%rbp)
movl   $0x0,-0x48(%rbp)
movl   $0x0,-0x4c(%rbp)
movl   $0x0,-0x50(%rbp)
movl   $0x0,-0x54(%rbp)
movl   $0x0,-0x58(%rbp)
movl   $0x0,-0xa4(%rbp)
lea    0xd80(%rip),%rdi
mov    $0x0,%al
call   1080 <printf@plt>
mov    $0x0,%al
call   10d0 <print_time@plt>
mov    -0x28(%rbp),%esi
lea    0xd90(%rip),%rdi
mov    $0x0,%al
call   1080 <printf@plt>
cmpl   $0x0,-0x40(%rbp)
setne  %al
xor    $0xff,%al
test   $0x1,%al
jne    12b5 <main+0xb5>
jmp    168c <main+0x48c>
mov    -0x28(%rbp),%edi
call   1110 <sleep@plt>
movl   $0x0,-0x48(%rbp)
lea    0xdad(%rip),%rdi
lea    0xdbe(%rip),%rsi
call   10e0 <fopen@plt>
mov    %rax,-0x18(%rbp)
cmpq   $0x0,-0x18(%rbp)
je     166b <main+0x46b>
mov    -0x18(%rbp),%rdi
call   1120 <getc@plt>
mov    %eax,-0x34(%rbp)
mov    -0x34(%rbp),%eax
mov    0x2cec(%rip),%rcx
cmp    (%rcx),%eax
je     131e <main+0x11e>
mov    -0x2c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x2c(%rbp)
mov    -0x18(%rbp),%rdi
call   1120 <getc@plt>
mov    %eax,-0x34(%rbp)
jmp    12f2 <main+0xf2>
mov    -0x18(%rbp),%rdi
call   1040 <fclose@plt>
cmpl   $0x0,-0x2c(%rbp)
jne    1352 <main+0x152>
movl   $0x0,-0x24(%rbp)
movl   $0x0,-0x50(%rbp)
movl   $0x0,-0x4c(%rbp)
movl   $0x0,-0x54(%rbp)
jmp    1659 <main+0x459>
cmpl   $0x0,-0x24(%rbp)
jne    1378 <main+0x178>
movl   $0x1,-0x24(%rbp)
lea    0xd28(%rip),%rdi
mov    $0x0,%al
call   1080 <printf@plt>
mov    $0x0,%al
call   10d0 <print_time@plt>
cmpl   $0x3,-0x24(%rbp)
jne    13d7 <main+0x1d7>
mov    -0x10(%rbp),%rax
mov    0x18(%rax),%rdi
call   1100 <detect_cycle@plt>
cmp    $0x0,%eax
jne    13b9 <main+0x1b9>
mov    $0x0,%al
call   1060 <clear_log@plt>
lea    0xd00(%rip),%rdi
mov    $0x0,%al
call   1080 <printf@plt>
movl   $0x0,-0x24(%rbp)
jmp    13d2 <main+0x1d2>
lea    -0x3a(%rbp),%rsi
lea    0xd0a(%rip),%rdi
mov    $0x0,%al
call   1080 <printf@plt>
movl   $0x4,-0x24(%rbp)
jmp    13d7 <main+0x1d7>
cmpl   $0x4,-0x24(%rbp)
jne    1418 <main+0x218>
mov    -0x10(%rbp),%rax
mov    0x20(%rax),%rdi
call   1100 <detect_cycle@plt>
cmp    $0x1,%eax
jl     1413 <main+0x213>
lea    0xce7(%rip),%rdi
mov    $0x0,%al
call   1080 <printf@plt>
mov    $0x0,%al
call   10d0 <print_time@plt>
movl   $0x5,-0x24(%rbp)
jmp    1418 <main+0x218>
cmpl   $0x5,-0x24(%rbp)
jne    14de <main+0x2de>
mov    -0x30(%rbp),%eax
cmp    -0x2c(%rbp),%eax
jne    14de <main+0x2de>
lea    0xccb(%rip),%rdi
mov    $0x0,%al
call   1080 <printf@plt>
lea    -0x3a(%rbp),%rdi
mov    -0x10(%rbp),%rax
mov    0x28(%rax),%rsi
mov    -0x10(%rbp),%rax
mov    0x40(%rax),%rdx
mov    -0x10(%rbp),%rax
mov    0x48(%rax),%rcx
call   1030 <print_to_pdf@plt>
movl   $0x0,-0x24(%rbp)
mov    -0x44(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x44(%rbp)
mov    -0x44(%rbp),%eax
mov    %eax,-0xac(%rbp)
mov    -0x10(%rbp),%rax
mov    0x30(%rax),%rdi
call   10f0 <atoi@plt>
mov    -0xac(%rbp),%esi
mov    %eax,%edx
lea    0xc7c(%rip),%rdi
mov    $0x0,%al
call   1080 <printf@plt>
mov    -0x44(%rbp),%eax
mov    %eax,-0xa8(%rbp)
mov    -0x10(%rbp),%rax
mov    0x30(%rax),%rdi
call   10f0 <atoi@plt>
mov    %eax,%ecx
mov    -0xa8(%rbp),%eax
cmp    %ecx,%eax
jne    14d9 <main+0x2d9>
lea    0xc79(%rip),%rdi
mov    $0x0,%al
call   1080 <printf@plt>
lea    0xc7c(%rip),%rdi
call   1070 <system@plt>
jmp    14de <main+0x2de>
cmpl   $0x2,-0x24(%rbp)
jne    1546 <main+0x346>
lea    0xc7c(%rip),%rdi
mov    $0x0,%al
call   1080 <printf@plt>
mov    -0x10(%rbp),%rax
mov    0x10(%rax),%rdi
lea    -0x3a(%rbp),%rsi
call   1090 <get_cycle_number@plt>
lea    -0x3a(%rbp),%rdi
call   1050 <strlen@plt>
cmp    $0x2,%eax
jl     1525 <main+0x325>
movl   $0x3,-0x24(%rbp)
jmp    1541 <main+0x341>
mov    $0x0,%al
call   1060 <clear_log@plt>
lea    0xc4c(%rip),%rdi
mov    $0x0,%al
call   1080 <printf@plt>
movl   $0x0,-0x24(%rbp)
jmp    1546 <main+0x346>
cmpl   $0x1,-0x24(%rbp)
jne    1563 <main+0x363>
mov    -0x30(%rbp),%eax
cmp    -0x2c(%rbp),%eax
jne    1563 <main+0x363>
movl   $0x2,-0x24(%rbp)
cmpl   $0x3,-0x24(%rbp)
jle    1654 <main+0x454>
mov    -0x54(%rbp),%eax
mov    %eax,-0xb0(%rbp)
mov    -0x10(%rbp),%rax
mov    0x38(%rax),%rdi
call   10f0 <atoi@plt>
mov    %eax,%ecx
mov    -0xb0(%rbp),%eax
cmp    %ecx,%eax
jge    1654 <main+0x454>
movl   $0xa,-0x48(%rbp)
mov    -0x48(%rbp),%eax
cmp    -0x8(%rbp),%eax
jge    164f <main+0x44f>
mov    -0x10(%rbp),%rax
movslq -0x48(%rbp),%rcx
mov    (%rax,%rcx,8),%rdi
mov    -0x4c(%rbp),%esi
call   10b0 <alarm_detected@plt>
mov    %eax,-0x50(%rbp)
mov    -0x50(%rbp),%eax
cmp    -0x4c(%rbp),%eax
jle    163c <main+0x43c>
mov    -0x10(%rbp),%rax
movslq -0x48(%rbp),%rcx
mov    (%rax,%rcx,8),%rsi
lea    0xbd4(%rip),%rdi
mov    $0x0,%al
call   1080 <printf@plt>
mov    $0x0,%al
call   10d0 <print_time@plt>
lea    0xbd3(%rip),%rdi
lea    0xbe0(%rip),%rsi
call   10e0 <fopen@plt>
mov    %rax,-0x20(%rbp)
mov    -0x20(%rbp),%rdi
mov    -0x10(%rbp),%rax
movslq -0x48(%rbp),%rcx
mov    (%rax,%rcx,8),%rdx
lea    0xbc2(%rip),%rsi
call   10a0 <fprintf@plt>
mov    $0x0,%al
call   10d0 <print_time@plt>
mov    -0x20(%rbp),%rdi
call   1040 <fclose@plt>
mov    -0x50(%rbp),%eax
mov    %eax,-0x4c(%rbp)
mov    -0x54(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x54(%rbp)
jmp    1641 <main+0x441>
mov    -0x48(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x48(%rbp)
jmp    159a <main+0x39a>
jmp    1654 <main+0x454>
jmp    1659 <main+0x459>
mov    -0x2c(%rbp),%eax
mov    %eax,-0x30(%rbp)
movl   $0x0,-0x2c(%rbp)
jmp    1679 <main+0x479>
lea    0xb6d(%rip),%rdi
mov    $0x0,%al
call   1080 <printf@plt>
mov    0x2958(%rip),%rax
mov    (%rax),%edi
call   10c0 <fflush@plt>
jmp    129f <main+0x9f>
mov    -0x4(%rbp),%eax
add    $0xb0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x28,%rsp
mov    %rsi,%r13
mov    %edi,%ebp
mov    0x8(%rsi),%rdi
call   1100 <atoi@plt>
mov    %eax,%ebx
lea    0xde3(%rip),%rdi
xor    %eax,%eax
call   1090 <printf@plt>
xor    %eax,%eax
call   10e0 <print_time@plt>
lea    0xdf6(%rip),%rdi
mov    %ebx,0x14(%rsp)
mov    %ebx,%esi
xor    %eax,%eax
call   1090 <printf@plt>
mov    %ebp,0x10(%rsp)
mov    %ebp,%eax
mov    %rax,0x20(%rsp)
mov    0x2d7f(%rip),%r12
movl   $0x0,0xc(%rsp)
xor    %ebp,%ebp
movl   $0x0,0x8(%rsp)
xor    %ebx,%ebx
movl   $0x0,0x4(%rsp)
jmp    12be <main+0xae>
nopw   0x0(%rax,%rax,1)
mov    %rbp,%rdi
call   1050 <fclose@plt>
xor    %ebp,%ebp
movl   $0x0,0x8(%rsp)
xor    %r15d,%r15d
movl   $0x0,0x4(%rsp)
mov    0x2d24(%rip),%rax
mov    (%rax),%edi
call   10d0 <fflush@plt>
mov    %r15d,%ebx
mov    %ebp,%r14d
mov    0x14(%rsp),%edi
call   1120 <sleep@plt>
lea    0xdbf(%rip),%rdi
lea    0xdd0(%rip),%rsi
call   10f0 <fopen@plt>
test   %rax,%rax
je     1360 <main+0x150>
mov    %rax,%rbp
mov    %rax,%rdi
call   1130 <getc@plt>
cmp    (%r12),%eax
je     1290 <main+0x80>
xor    %r15d,%r15d
cs nopw 0x0(%rax,%rax,1)
add    $0x1,%r15d
mov    %rbp,%rdi
call   1130 <getc@plt>
cmp    (%r12),%eax
jne    1300 <main+0xf0>
mov    %rbp,%rdi
call   1050 <fclose@plt>
mov    0x4(%rsp),%edx
cmp    $0x5,%edx
mov    %r14d,%ebp
ja     1377 <main+0x167>
mov    %edx,%eax
lea    0xcd1(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
jmp    *%rax
lea    0xd6b(%rip),%rdi
xor    %eax,%eax
call   1090 <printf@plt>
xor    %eax,%eax
call   10e0 <print_time@plt>
xor    %eax,%eax
cmp    %r15d,%ebx
sete   %al
jmp    138a <main+0x17a>
nopw   0x0(%rax,%rax,1)
lea    0xe15(%rip),%rdi
call   1030 <puts@plt>
mov    %ebx,%r15d
mov    %r14d,%ebp
jmp    12ad <main+0x9d>
xor    %eax,%eax
cmp    %r15d,%ebx
sete   %cl
cmp    $0x1,%edx
jne    14b8 <main+0x2a8>
mov    %cl,%al
add    $0x1,%eax
mov    %eax,0x4(%rsp)
jmp    12ad <main+0x9d>
lea    0xdef(%rip),%rdi
call   1030 <puts@plt>
mov    0x10(%r13),%rdi
lea    0x1a(%rsp),%rbx
mov    %rbx,%rsi
call   10a0 <get_cycle_number@plt>
mov    %rbx,%rdi
call   1060 <strlen@plt>
cmp    $0x1,%eax
jle    156f <main+0x35f>
movl   $0x3,0x4(%rsp)
jmp    12ad <main+0x9d>
mov    0x18(%r13),%rdi
call   1110 <detect_cycle@plt>
test   %eax,%eax
je     158f <main+0x37f>
lea    0xcd5(%rip),%rdi
lea    0x1a(%rsp),%rsi
xor    %eax,%eax
call   1090 <printf@plt>
mov    0x20(%r13),%rdi
call   1110 <detect_cycle@plt>
test   %eax,%eax
jle    14b1 <main+0x2a1>
lea    0xcc8(%rip),%rdi
xor    %eax,%eax
call   1090 <printf@plt>
xor    %eax,%eax
call   10e0 <print_time@plt>
mov    $0x5,%edx
cmp    %r15d,%ebx
jne    14c1 <main+0x2b1>
lea    0xd9f(%rip),%rdi
call   1030 <puts@plt>
mov    0x28(%r13),%rsi
mov    0x40(%r13),%rdx
mov    0x48(%r13),%rcx
lea    0x1a(%rsp),%rdi
call   1040 <print_to_pdf@plt>
mov    0xc(%rsp),%ebp
add    $0x1,%ebp
mov    0x30(%r13),%rdi
call   1100 <atoi@plt>
movl   $0x0,0x4(%rsp)
lea    0xc86(%rip),%rdi
mov    %ebp,%esi
mov    %eax,%edx
xor    %eax,%eax
call   1090 <printf@plt>
mov    0x30(%r13),%rdi
call   1100 <atoi@plt>
mov    %ebp,0xc(%rsp)
cmp    %eax,%ebp
jne    136c <main+0x15c>
movl   $0x0,0x4(%rsp)
lea    0xc88(%rip),%rdi
xor    %eax,%eax
call   1090 <printf@plt>
lea    0xc8b(%rip),%rdi
call   1080 <system@plt>
jmp    136c <main+0x15c>
mov    $0x4,%edx
jmp    14c1 <main+0x2b1>
cmp    $0x4,%edx
jl     12ad <main+0x9d>
mov    %edx,0x4(%rsp)
mov    0x38(%r13),%rdi
call   1100 <atoi@plt>
cmp    %eax,0x8(%rsp)
jge    12ad <main+0x9d>
mov    0x10(%rsp),%eax
cmp    $0xb,%eax
jl     12ad <main+0x9d>
mov    $0xa,%ebx
jmp    14ff <main+0x2ef>
nopl   0x0(%rax)
add    $0x1,%rbx
cmp    %rbx,0x20(%rsp)
je     12ad <main+0x9d>
mov    0x0(%r13,%rbx,8),%rdi
mov    %ebp,%esi
call   10c0 <alarm_detected@plt>
cmp    %ebp,%eax
jle    14f0 <main+0x2e0>
mov    %eax,%r14d
mov    0x0(%r13,%rbx,8),%rsi
lea    0xc2f(%rip),%rdi
xor    %eax,%eax
call   1090 <printf@plt>
xor    %eax,%eax
call   10e0 <print_time@plt>
lea    0xc2e(%rip),%rdi
lea    0xc3b(%rip),%rsi
call   10f0 <fopen@plt>
mov    %rax,%rbp
mov    0x0(%r13,%rbx,8),%rdx
mov    %rax,%rdi
lea    0xc26(%rip),%rsi
call   10b0 <fprintf@plt>
xor    %eax,%eax
call   10e0 <print_time@plt>
mov    %rbp,%rdi
call   1050 <fclose@plt>
addl   $0x1,0x8(%rsp)
mov    %r14d,%ebp
jmp    14f0 <main+0x2e0>
movl   $0x0,0x4(%rsp)
xor    %eax,%eax
call   1070 <clear_log@plt>
lea    0xc1a(%rip),%rdi
call   1030 <puts@plt>
jmp    12ad <main+0x9d>
movl   $0x0,0x4(%rsp)
xor    %eax,%eax
call   1070 <clear_log@plt>
lea    0xc37(%rip),%rdi
call   1030 <puts@plt>
jmp    12ad <main+0x9d>

LLVM IR (-O0):
@.str = [40 x i8] c"\0A\0ACycle Detection Application Started \00"
@.str.1 = [80 x i8] c"Monitors active_log.txt file every %d seconds.\0A\0AVersion 0 2014-JAN-15 By -DL-\0A\0A\00"
@.str.2 = [24 x i8] c"/var/www/active_log.txt\00"
@.str.3 = [2 x i8] c"r\00"
@EOF = global i32 0
@.str.4 = [20 x i8] c"1: LOG FILE ACTIVE \00"
@.str.5 = [40 x i8] c"3: NO CYCLE - active_log.txt CLEARED\0A\0A\0A\00"
@.str.6 = [23 x i8] c"3: CYCLE NUMBER: %s \0A\00"
@.str.7 = [27 x i8] c"4: END OF CYCLE DETECTED \00"
@.str.8 = [14 x i8] c"5: PRINTING \0A\00"
@.str.9 = [49 x i8] c"(%d)out of (%d) cycles printed before reboot.\0A\0A\0A\00"
@.str.10 = [17 x i8] c"Rebooting system\00"
@.str.11 = [27 x i8] c"sudo /sbin/shutdown -r now\00"
@.str.12 = [20 x i8] c"2: VERIFY IF CYCLE\0A\00"
@.str.13 = [49 x i8] c"3: NO CYCLE DETECTED - active_log.txt CLEARED\0A\0A\0A\00"
@.str.14 = [20 x i8] c"%s ALARM DETECTED \00"
@.str.15 = [20 x i8] c"/var/www/alarms.txt\00"
@.str.16 = [2 x i8] c"a\00"
@.str.17 = [5 x i8] c"%s \00"
@.str.18 = [17 x i8] c"LOG_FILE = NULL\0A\00"
@stdout = global i32 0
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca i32*
%7 = alloca i32*
%8 = alloca i32
%9 = alloca i32
%10 = alloca i32
%11 = alloca i32
%12 = alloca i32
%13 = alloca [6 x i8]
%14 = alloca i32
%15 = alloca i32
%16 = alloca i32
%17 = alloca i32
%18 = alloca i32
%19 = alloca i32
%20 = alloca i32
%21 = alloca [64 x i8]
%22 = alloca i32
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
store i32 0, i32* %8
%23 = load i8**, i8*** %5
%24 = getelementptr inbounds i8*, i8** %23, i64 1
%25 = load i8*, i8** %24
%26 = call i32 @atoi(i8* %25)
store i32 %26, i32* %9
store i32 0, i32* %10
store i32 0, i32* %11
store i32 0, i32* %14
store i32 0, i32* %15
store i32 0, i32* %16
store i32 0, i32* %17
store i32 0, i32* %18
store i32 0, i32* %19
store i32 0, i32* %20
store i32 0, i32* %22
%27 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([40 x i8], [40 x i8]* @.str, i64 0, i64 0))
%28 = call i32 (...) @print_time()
%29 = load i32, i32* %9
%30 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([80 x i8], [80 x i8]* @.str.1, i64 0, i64 0), i32 %29)
br label %31
31: ; preds = %217, %2
%32 = load i32, i32* %14
%33 = icmp ne i32 %32, 0
%34 = xor i1 %33, true
br i1 %34, label %35, label %220
35: ; preds = %31
%36 = load i32, i32* %9
%37 = call i32 @sleep(i32 %36)
store i32 0, i32* %16
%38 = call i32* @fopen(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.3, i64 0, i64 0))
store i32* %38, i32** %6
%39 = load i32*, i32** %6
%40 = icmp ne i32* %39, null
br i1 %40, label %41, label %215
41: ; preds = %35
%42 = load i32*, i32** %6
%43 = call i32 @getc(i32* %42)
store i32 %43, i32* %12
br label %44
44: ; preds = %48, %41
%45 = load i32, i32* %12
%46 = load i32, i32* @EOF
%47 = icmp ne i32 %45, %46
br i1 %47, label %48, label %53
48: ; preds = %44
%49 = load i32, i32* %10
%50 = add nsw i32 %49, 1
store i32 %50, i32* %10
%51 = load i32*, i32** %6
%52 = call i32 @getc(i32* %51)
store i32 %52, i32* %12
br label %44
53: ; preds = %44
%54 = load i32*, i32** %6
%55 = call i32 @fclose(i32* %54)
%56 = load i32, i32* %10
%57 = icmp eq i32 %56, 0
br i1 %57, label %58, label %59
58: ; preds = %53
store i32 0, i32* %8
store i32 0, i32* %18
store i32 0, i32* %17
store i32 0, i32* %19
br label %213
59: ; preds = %53
%60 = load i32, i32* %8
%61 = icmp eq i32 %60, 0
br i1 %61, label %62, label %65
62: ; preds = %59
store i32 1, i32* %8
%63 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.4, i64 0, i64 0))
%64 = call i32 (...) @print_time()
br label %65
65: ; preds = %62, %59
%66 = load i32, i32* %8
%67 = icmp eq i32 %66, 3
br i1 %67, label %68, label %81
68: ; preds = %65
%69 = load i8**, i8*** %5
%70 = getelementptr inbounds i8*, i8** %69, i64 3
%71 = load i8*, i8** %70
%72 = call i32 @detect_cycle(i8* %71)
%73 = icmp eq i32 %72, 0
br i1 %73, label %74, label %77
74: ; preds = %68
%75 = call i32 (...) @clear_log()
%76 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([40 x i8], [40 x i8]* @.str.5, i64 0, i64 0))
store i32 0, i32* %8
br label %80
77: ; preds = %68
%78 = getelementptr inbounds [6 x i8], [6 x i8]* %13, i64 0, i64 0
%79 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.6, i64 0, i64 0), i8* %78)
store i32 4, i32* %8
br label %80
80: ; preds = %77, %74
br label %81
81: ; preds = %80, %65
%82 = load i32, i32* %8
%83 = icmp eq i32 %82, 4
br i1 %83, label %84, label %94
84: ; preds = %81
%85 = load i8**, i8*** %5
%86 = getelementptr inbounds i8*, i8** %85, i64 4
%87 = load i8*, i8** %86
%88 = call i32 @detect_cycle(i8* %87)
%89 = icmp sge i32 %88, 1
br i1 %89, label %90, label %93
90: ; preds = %84
%91 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.7, i64 0, i64 0))
%92 = call i32 (...) @print_time()
store i32 5, i32* %8
br label %93
93: ; preds = %90, %84
br label %94
94: ; preds = %93, %81
%95 = load i32, i32* %8
%96 = icmp eq i32 %95, 5
br i1 %96, label %97, label %132
97: ; preds = %94
%98 = load i32, i32* %11
%99 = load i32, i32* %10
%100 = icmp eq i32 %98, %99
br i1 %100, label %101, label %132
101: ; preds = %97
%102 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.8, i64 0, i64 0))
%103 = getelementptr inbounds [6 x i8], [6 x i8]* %13, i64 0, i64 0
%104 = load i8**, i8*** %5
%105 = getelementptr inbounds i8*, i8** %104, i64 5
%106 = load i8*, i8** %105
%107 = load i8**, i8*** %5
%108 = getelementptr inbounds i8*, i8** %107, i64 8
%109 = load i8*, i8** %108
%110 = load i8**, i8*** %5
%111 = getelementptr inbounds i8*, i8** %110, i64 9
%112 = load i8*, i8** %111
%113 = call i32 @print_to_pdf(i8* %103, i8* %106, i8* %109, i8* %112)
store i32 0, i32* %8
%114 = load i32, i32* %15
%115 = add nsw i32 %114, 1
store i32 %115, i32* %15
%116 = load i32, i32* %15
%117 = load i8**, i8*** %5
%118 = getelementptr inbounds i8*, i8** %117, i64 6
%119 = load i8*, i8** %118
%120 = call i32 @atoi(i8* %119)
%121 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([49 x i8], [49 x i8]* @.str.9, i64 0, i64 0), i32 %116, i32 %120)
%122 = load i32, i32* %15
%123 = load i8**, i8*** %5
%124 = getelementptr inbounds i8*, i8** %123, i64 6
%125 = load i8*, i8** %124
%126 = call i32 @atoi(i8* %125)
%127 = icmp eq i32 %122, %126
br i1 %127, label %128, label %131
128: ; preds = %101
%129 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.10, i64 0, i64 0))
%130 = call i32 @system(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.11, i64 0, i64 0))
br label %131
131: ; preds = %128, %101
br label %132
132: ; preds = %131, %97, %94
%133 = load i32, i32* %8
%134 = icmp eq i32 %133, 2
br i1 %134, label %135, label %150
135: ; preds = %132
%136 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.12, i64 0, i64 0))
%137 = load i8**, i8*** %5
%138 = getelementptr inbounds i8*, i8** %137, i64 2
%139 = load i8*, i8** %138
%140 = getelementptr inbounds [6 x i8], [6 x i8]* %13, i64 0, i64 0
%141 = call i32 @get_cycle_number(i8* %139, i8* %140)
%142 = getelementptr inbounds [6 x i8], [6 x i8]* %13, i64 0, i64 0
%143 = call i32 @strlen(i8* %142)
%144 = icmp sge i32 %143, 2
br i1 %144, label %145, label %146
145: ; preds = %135
store i32 3, i32* %8
br label %149
146: ; preds = %135
%147 = call i32 (...) @clear_log()
%148 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([49 x i8], [49 x i8]* @.str.13, i64 0, i64 0))
store i32 0, i32* %8
br label %149
149: ; preds = %146, %145
br label %150
150: ; preds = %149, %132
%151 = load i32, i32* %8
%152 = icmp eq i32 %151, 1
br i1 %152, label %153, label %158
153: ; preds = %150
%154 = load i32, i32* %11
%155 = load i32, i32* %10
%156 = icmp eq i32 %154, %155
br i1 %156, label %157, label %158
157: ; preds = %153
store i32 2, i32* %8
br label %158
158: ; preds = %157, %153, %150
%159 = load i32, i32* %8
%160 = icmp sgt i32 %159, 3
br i1 %160, label %161, label %212
161: ; preds = %158
%162 = load i32, i32* %19
%163 = load i8**, i8*** %5
%164 = getelementptr inbounds i8*, i8** %163, i64 7
%165 = load i8*, i8** %164
%166 = call i32 @atoi(i8* %165)
%167 = icmp slt i32 %162, %166
br i1 %167, label %168, label %212
168: ; preds = %161
store i32 10, i32* %16
br label %169
169: ; preds = %208, %168
%170 = load i32, i32* %16
%171 = load i32, i32* %4
%172 = icmp slt i32 %170, %171
br i1 %172, label %173, label %211
173: ; preds = %169
%174 = load i32, i32* %20
%175 = load i8**, i8*** %5
%176 = load i32, i32* %16
%177 = sext i32 %176 to i64
%178 = getelementptr inbounds i8*, i8** %175, i64 %177
%179 = load i8*, i8** %178
%180 = load i32, i32* %17
%181 = call i32 @alarm_detected(i8* %179, i32 %180)
store i32 %181, i32* %18
%182 = load i32, i32* %18
%183 = load i32, i32* %17
%184 = icmp sgt i32 %182, %183
br i1 %184, label %185, label %207
185: ; preds = %173
%186 = load i8**, i8*** %5
%187 = load i32, i32* %16
%188 = sext i32 %187 to i64
%189 = getelementptr inbounds i8*, i8** %186, i64 %188
%190 = load i8*, i8** %189
%191 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.14, i64 0, i64 0), i8* %190)
%192 = call i32 (...) @print_time()
%193 = call i32* @fopen(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.15, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.16, i64 0, i64 0))
store i32* %193, i32** %7
%194 = load i32*, i32** %7
%195 = load i8**, i8*** %5
%196 = load i32, i32* %16
%197 = sext i32 %196 to i64
%198 = getelementptr inbounds i8*, i8** %195, i64 %197
%199 = load i8*, i8** %198
%200 = call i32 @fprintf(i32* %194, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.17, i64 0, i64 0), i8* %199)
%201 = call i32 (...) @print_time()
%202 = load i32*, i32** %7
%203 = call i32 @fclose(i32* %202)
%204 = load i32, i32* %18
store i32 %204, i32* %17
%205 = load i32, i32* %19
%206 = add nsw i32 %205, 1
store i32 %206, i32* %19
br label %207
207: ; preds = %185, %173
br label %208
208: ; preds = %207
%209 = load i32, i32* %16
%210 = add nsw i32 %209, 1
store i32 %210, i32* %16
br label %169
211: ; preds = %169
br label %212
212: ; preds = %211, %161, %158
br label %213
213: ; preds = %212, %58
%214 = load i32, i32* %10
store i32 %214, i32* %11
store i32 0, i32* %10
br label %217
215: ; preds = %35
%216 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.18, i64 0, i64 0))
br label %217
217: ; preds = %215, %213
%218 = load i32, i32* @stdout
%219 = call i32 @fflush(i32 %218)
br label %31
220: ; preds = %31
%221 = load i32, i32* %3
ret i32 %221
}

LLVM IR (-O2):
@.str = [40 x i8] c"\0A\0ACycle Detection Application Started \00"
@.str.1 = [80 x i8] c"Monitors active_log.txt file every %d seconds.\0A\0AVersion 0 2014-JAN-15 By -DL-\0A\0A\00"
@.str.2 = [24 x i8] c"/var/www/active_log.txt\00"
@.str.3 = [2 x i8] c"r\00"
@EOF = global i32 0
@.str.4 = [20 x i8] c"1: LOG FILE ACTIVE \00"
@.str.6 = [23 x i8] c"3: CYCLE NUMBER: %s \0A\00"
@.str.7 = [27 x i8] c"4: END OF CYCLE DETECTED \00"
@.str.9 = [49 x i8] c"(%d)out of (%d) cycles printed before reboot.\0A\0A\0A\00"
@.str.10 = [17 x i8] c"Rebooting system\00"
@.str.11 = [27 x i8] c"sudo /sbin/shutdown -r now\00"
@.str.14 = [20 x i8] c"%s ALARM DETECTED \00"
@.str.15 = [20 x i8] c"/var/www/alarms.txt\00"
@.str.16 = [2 x i8] c"a\00"
@.str.17 = [5 x i8] c"%s \00"
@stdout = global i32 0
@str = [16 x i8] c"LOG_FILE = NULL\00"
@str.19 = [19 x i8] c"2: VERIFY IF CYCLE\00"
@str.20 = [48 x i8] c"3: NO CYCLE DETECTED - active_log.txt CLEARED\0A\0A\00"
@str.21 = [13 x i8] c"5: PRINTING \00"
@str.22 = [39 x i8] c"3: NO CYCLE - active_log.txt CLEARED\0A\0A\00"
define i32 @main(i32 %0, i8** nocapture %1) {
%3 = alloca [6 x i8]
%4 = getelementptr inbounds i8*, i8** %1, i64 1
%5 = load i8*, i8** %4
%6 = tail call i32 @atoi(i8* %5)
%7 = getelementptr inbounds [6 x i8], [6 x i8]* %3, i64 0, i64 0
%8 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([40 x i8], [40 x i8]* @.str, i64 0, i64 0))
%9 = tail call i32 (...) @print_time()
%10 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([80 x i8], [80 x i8]* @.str.1, i64 0, i64 0), i32 %6)
%11 = getelementptr inbounds i8*, i8** %1, i64 2
%12 = getelementptr inbounds i8*, i8** %1, i64 3
%13 = getelementptr inbounds i8*, i8** %1, i64 4
%14 = getelementptr inbounds i8*, i8** %1, i64 5
%15 = getelementptr inbounds i8*, i8** %1, i64 8
%16 = getelementptr inbounds i8*, i8** %1, i64 9
%17 = getelementptr inbounds i8*, i8** %1, i64 6
%18 = getelementptr inbounds i8*, i8** %1, i64 7
%19 = icmp sgt i32 %0, 10
%20 = zext i32 %0 to i64
br label %21
21: ; preds = %129, %2
%22 = phi i32 [ 0, %2 ], [ %130, %129 ]
%23 = phi i32 [ 0, %2 ], [ %131, %129 ]
%24 = phi i32 [ 0, %2 ], [ %132, %129 ]
%25 = phi i32 [ 0, %2 ], [ %133, %129 ]
%26 = phi i32 [ 0, %2 ], [ %134, %129 ]
%27 = call i32 @sleep(i32 %6)
%28 = call i32* @fopen(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.3, i64 0, i64 0))
%29 = icmp eq i32* %28, null
br i1 %29, label %127, label %30
30: ; preds = %21
%31 = call i32 @getc(i32* %28)
%32 = load i32, i32* @EOF
%33 = icmp eq i32 %31, %32
br i1 %33, label %34, label %36
34: ; preds = %30
%35 = call i32 @fclose(i32* %28)
br label %129
36: ; preds = %30, %36
%37 = phi i32 [ %38, %36 ], [ 0, %30 ]
%38 = add nuw nsw i32 %37, 1
%39 = call i32 @getc(i32* %28)
%40 = load i32, i32* @EOF
%41 = icmp eq i32 %39, %40
br i1 %41, label %42, label %36
42: ; preds = %36
%43 = call i32 @fclose(i32* %28)
switch i32 %26, label %92 [
i32 0, label %44
i32 3, label %49
i32 4, label %58
i32 5, label %65
i32 2, label %83
]
44: ; preds = %42
%45 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([20 x i8], [20 x i8]* @.str.4, i64 0, i64 0))
%46 = call i32 (...) @print_time()
%47 = icmp eq i32 %25, %38
%48 = select i1 %47, i32 2, i32 1
br label %129
49: ; preds = %42
%50 = load i8*, i8** %12
%51 = call i32 @detect_cycle(i8* %50)
%52 = icmp eq i32 %51, 0
br i1 %52, label %53, label %56
53: ; preds = %49
%54 = call i32 (...) @clear_log()
%55 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([39 x i8], [39 x i8]* @str.22, i64 0, i64 0))
br label %129
56: ; preds = %49
%57 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([23 x i8], [23 x i8]* @.str.6, i64 0, i64 0), i8* %7)
br label %58
58: ; preds = %42, %56
%59 = load i8*, i8** %13
%60 = call i32 @detect_cycle(i8* %59)
%61 = icmp sgt i32 %60, 0
br i1 %61, label %62, label %98
62: ; preds = %58
%63 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([27 x i8], [27 x i8]* @.str.7, i64 0, i64 0))
%64 = call i32 (...) @print_time()
br label %65
65: ; preds = %42, %62
%66 = icmp eq i32 %25, %38
br i1 %66, label %67, label %98
67: ; preds = %65
%68 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([13 x i8], [13 x i8]* @str.21, i64 0, i64 0))
%69 = load i8*, i8** %14
%70 = load i8*, i8** %15
%71 = load i8*, i8** %16
%72 = call i32 @print_to_pdf(i8* %7, i8* %69, i8* %70, i8* %71)
%73 = add nsw i32 %22, 1
%74 = load i8*, i8** %17
%75 = call i32 @atoi(i8* %74)
%76 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([49 x i8], [49 x i8]* @.str.9, i64 0, i64 0), i32 %73, i32 %75)
%77 = load i8*, i8** %17
%78 = call i32 @atoi(i8* %77)
%79 = icmp eq i32 %73, %78
br i1 %79, label %80, label %129
80: ; preds = %67
%81 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([17 x i8], [17 x i8]* @.str.10, i64 0, i64 0))
%82 = call i32 @system(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.11, i64 0, i64 0))
br label %129
83: ; preds = %42
%84 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([19 x i8], [19 x i8]* @str.19, i64 0, i64 0))
%85 = load i8*, i8** %11
%86 = call i32 @get_cycle_number(i8* %85, i8* %7)
%87 = call i32 @strlen(i8* %7)
%88 = icmp sgt i32 %87, 1
br i1 %88, label %129, label %89
89: ; preds = %83
%90 = call i32 (...) @clear_log()
%91 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([48 x i8], [48 x i8]* @str.20, i64 0, i64 0))
br label %129
92: ; preds = %42
%93 = icmp eq i32 %26, 1
%94 = icmp eq i32 %25, %38
%95 = select i1 %94, i32 2, i32 1
br i1 %93, label %129, label %96
96: ; preds = %92
%97 = icmp sgt i32 %26, 3
br i1 %97, label %98, label %129
98: ; preds = %65, %58, %96
%99 = phi i32 [ %26, %96 ], [ 5, %65 ], [ 4, %58 ]
%100 = load i8*, i8** %18
%101 = call i32 @atoi(i8* %100)
%102 = icmp slt i32 %24, %101
br i1 %102, label %103, label %129
103: ; preds = %98
br i1 %19, label %104, label %129
104: ; preds = %103, %122
%105 = phi i64 [ %125, %122 ], [ 10, %103 ]
%106 = phi i32 [ %124, %122 ], [ %24, %103 ]
%107 = phi i32 [ %123, %122 ], [ %23, %103 ]
%108 = getelementptr inbounds i8*, i8** %1, i64 %105
%109 = load i8*, i8** %108
%110 = call i32 @alarm_detected(i8* %109, i32 %107)
%111 = icmp sgt i32 %110, %107
br i1 %111, label %112, label %122
112: ; preds = %104
%113 = load i8*, i8** %108
%114 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([20 x i8], [20 x i8]* @.str.14, i64 0, i64 0), i8* %113)
%115 = call i32 (...) @print_time()
%116 = call i32* @fopen(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.15, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.16, i64 0, i64 0))
%117 = load i8*, i8** %108
%118 = call i32 @fprintf(i32* %116, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.17, i64 0, i64 0), i8* %117)
%119 = call i32 (...) @print_time()
%120 = call i32 @fclose(i32* %116)
%121 = add nsw i32 %106, 1
br label %122
122: ; preds = %104, %112
%123 = phi i32 [ %110, %112 ], [ %107, %104 ]
%124 = phi i32 [ %121, %112 ], [ %106, %104 ]
%125 = add nuw nsw i64 %105, 1
%126 = icmp eq i64 %125, %20
br i1 %126, label %129, label %104
127: ; preds = %21
%128 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([16 x i8], [16 x i8]* @str, i64 0, i64 0))
br label %129
129: ; preds = %122, %34, %103, %67, %80, %53, %92, %44, %83, %89, %98, %96, %127
%130 = phi i32 [ %22, %127 ], [ %22, %98 ], [ %22, %96 ], [ %22, %89 ], [ %22, %83 ], [ %22, %44 ], [ %22, %92 ], [ %73, %67 ], [ %73, %80 ], [ %22, %53 ], [ %22, %103 ], [ %22, %34 ], [ %22, %122 ]
%131 = phi i32 [ %23, %127 ], [ %23, %98 ], [ %23, %96 ], [ %23, %89 ], [ %23, %83 ], [ %23, %44 ], [ %23, %92 ], [ %23, %67 ], [ %23, %80 ], [ %23, %53 ], [ %23, %103 ], [ 0, %34 ], [ %123, %122 ]
%132 = phi i32 [ %24, %127 ], [ %24, %98 ], [ %24, %96 ], [ %24, %89 ], [ %24, %83 ], [ %24, %44 ], [ %24, %92 ], [ %24, %67 ], [ %24, %80 ], [ %24, %53 ], [ %24, %103 ], [ 0, %34 ], [ %124, %122 ]
%133 = phi i32 [ %25, %127 ], [ %38, %98 ], [ %38, %96 ], [ %38, %89 ], [ %38, %83 ], [ %38, %44 ], [ %38, %92 ], [ %25, %67 ], [ %25, %80 ], [ %38, %53 ], [ %38, %103 ], [ 0, %34 ], [ %38, %122 ]
%134 = phi i32 [ %26, %127 ], [ %99, %98 ], [ %26, %96 ], [ 0, %89 ], [ 3, %83 ], [ %48, %44 ], [ %95, %92 ], [ 0, %67 ], [ 0, %80 ], [ 0, %53 ], [ %99, %103 ], [ 0, %34 ], [ %99, %122 ]
%135 = load i32, i32* @stdout
%136 = call i32 @fflush(i32 %135)
br label %21
}