#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 /*<<< orphan*/ exit(int);
int /*<<< orphan*/ fclose(int /*<<< orphan*/ *);
int /*<<< orphan*/ feof(int /*<<< orphan*/ *);
int /*<<< orphan*/ *fopen(char *, char *);
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *);
int /*<<< orphan*/ fscanf(int /*<<< orphan*/ *, char *, char *);
int /*<<< orphan*/ replaceVar(char *, char *);
int /*<<< orphan*/ stderr;
int strlen(char *);
void createHTMLCode(char *out) {
  int i, j = 0, flag = 0, flagVar = 0, z = 0;
  FILE *f;
  char buffer[500], vars[100];
  if ((f = fopen("monitor.html", "r")) == NULL) {
    fprintf(stderr, "Error open the html source");
    exit(1);
  }
  fscanf(f, "%[^\n]%*c", buffer);
  while (!feof(f)) {
    flag = 0;
    flagVar = 0;
    z = 0;
    for (i = 0; i < strlen(buffer); i++) {
      if ((buffer[i] == '\t') || ((buffer[i] == ' ') && (flag == 0))) {
        continue;
      }
      if (buffer[i] == '"') {
        out[j] = '\"';
        j++;
        continue;
      }
      if (buffer[i] == '$' || flagVar == 1) {
        vars[z] = buffer[i];
        z++;
        if (flagVar == 0 && buffer[i] == '$') {
          flagVar = 1;
          continue;
        }
        if (flagVar == 1 && buffer[i] == '$') {
          flagVar = 0;
          vars[z] = '\0';
          replaceVar(vars, vars);
          for (z = 0; z < strlen(vars); z++) {
            out[j] = vars[z];
            j++;
          }
          z = 0;
        }
        continue;
      }
      out[j] = buffer[i];
      j++;
      flag = 1;
    }
    fscanf(f, "%[^\n]%*c", buffer);
  }
  fclose(f);
}


x86 assembly (clang, -O0):
<createHTMLCode>:
push   %rbp
mov    %rsp,%rbp
sub    $0x2a0,%rsp
mov    %rdi,-0x8(%rbp)
movl   $0x0,-0x10(%rbp)
movl   $0x0,-0x14(%rbp)
movl   $0x0,-0x18(%rbp)
movl   $0x0,-0x1c(%rbp)
lea    0xe4e(%rip),%rdi
lea    0xe54(%rip),%rsi
call   1090 <fopen@plt>
mov    %rax,-0x28(%rbp)
cmp    $0x0,%rax
jne    11eb <createHTMLCode+0x6b>
mov    0x2e0d(%rip),%rax
mov    (%rax),%edi
lea    0xe33(%rip),%rsi
call   1060 <fprintf@plt>
mov    $0x1,%edi
call   10a0 <exit@plt>
mov    -0x28(%rbp),%rdi
lea    -0x220(%rbp),%rdx
lea    0xe2d(%rip),%rsi
call   1050 <fscanf@plt>
mov    -0x28(%rbp),%rdi
call   1070 <feof@plt>
cmp    $0x0,%eax
setne  %al
xor    $0xff,%al
test   $0x1,%al
jne    1220 <createHTMLCode+0xa0>
jmp    142c <createHTMLCode+0x2ac>
movl   $0x0,-0x14(%rbp)
movl   $0x0,-0x18(%rbp)
movl   $0x0,-0x1c(%rbp)
movl   $0x0,-0xc(%rbp)
mov    -0xc(%rbp),%eax
mov    %eax,-0x294(%rbp)
lea    -0x220(%rbp),%rdi
call   1040 <strlen@plt>
mov    %eax,%ecx
mov    -0x294(%rbp),%eax
cmp    %ecx,%eax
jge    1410 <createHTMLCode+0x290>
movslq -0xc(%rbp),%rax
movsbl -0x220(%rbp,%rax,1),%eax
ff
cmp    $0x9,%eax
je     1295 <createHTMLCode+0x115>
movslq -0xc(%rbp),%rax
movsbl -0x220(%rbp,%rax,1),%eax
ff
cmp    $0x20,%eax
jne    129a <createHTMLCode+0x11a>
cmpl   $0x0,-0x14(%rbp)
jne    129a <createHTMLCode+0x11a>
jmp    1402 <createHTMLCode+0x282>
movslq -0xc(%rbp),%rax
movsbl -0x220(%rbp,%rax,1),%eax
ff
cmp    $0x22,%eax
jne    12c9 <createHTMLCode+0x149>
mov    -0x8(%rbp),%rax
movslq -0x10(%rbp),%rcx
movb   $0x22,(%rax,%rcx,1)
mov    -0x10(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x10(%rbp)
jmp    1402 <createHTMLCode+0x282>
movslq -0xc(%rbp),%rax
movsbl -0x220(%rbp,%rax,1),%eax
ff
cmp    $0x24,%eax
je     12e8 <createHTMLCode+0x168>
cmpl   $0x1,-0x18(%rbp)
jne    13dc <createHTMLCode+0x25c>
movslq -0xc(%rbp),%rax
mov    -0x220(%rbp,%rax,1),%cl
movslq -0x1c(%rbp),%rax
mov    %cl,-0x290(%rbp,%rax,1)
mov    -0x1c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x1c(%rbp)
cmpl   $0x0,-0x18(%rbp)
jne    1332 <createHTMLCode+0x1b2>
movslq -0xc(%rbp),%rax
movsbl -0x220(%rbp,%rax,1),%eax
ff
cmp    $0x24,%eax
jne    1332 <createHTMLCode+0x1b2>
movl   $0x1,-0x18(%rbp)
jmp    1402 <createHTMLCode+0x282>
cmpl   $0x1,-0x18(%rbp)
jne    13d7 <createHTMLCode+0x257>
movslq -0xc(%rbp),%rax
movsbl -0x220(%rbp,%rax,1),%eax
ff
cmp    $0x24,%eax
jne    13d7 <createHTMLCode+0x257>
movl   $0x0,-0x18(%rbp)
movslq -0x1c(%rbp),%rax
movb   $0x0,-0x290(%rbp,%rax,1)
lea    -0x290(%rbp),%rdi
lea    -0x290(%rbp),%rsi
call   1080 <replaceVar@plt>
movl   $0x0,-0x1c(%rbp)
mov    -0x1c(%rbp),%eax
mov    %eax,-0x298(%rbp)
lea    -0x290(%rbp),%rdi
call   1040 <strlen@plt>
mov    %eax,%ecx
mov    -0x298(%rbp),%eax
cmp    %ecx,%eax
jge    13d0 <createHTMLCode+0x250>
movslq -0x1c(%rbp),%rax
mov    -0x290(%rbp,%rax,1),%dl
mov    -0x8(%rbp),%rax
movslq -0x10(%rbp),%rcx
mov    %dl,(%rax,%rcx,1)
mov    -0x10(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x10(%rbp)
mov    -0x1c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x1c(%rbp)
jmp    137e <createHTMLCode+0x1fe>
movl   $0x0,-0x1c(%rbp)
jmp    1402 <createHTMLCode+0x282>
movslq -0xc(%rbp),%rax
mov    -0x220(%rbp,%rax,1),%dl
mov    -0x8(%rbp),%rax
movslq -0x10(%rbp),%rcx
mov    %dl,(%rax,%rcx,1)
mov    -0x10(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x10(%rbp)
movl   $0x1,-0x14(%rbp)
mov    -0xc(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xc(%rbp)
jmp    123c <createHTMLCode+0xbc>
mov    -0x28(%rbp),%rdi
lea    -0x220(%rbp),%rdx
lea    0xc08(%rip),%rsi
call   1050 <fscanf@plt>
jmp    1202 <createHTMLCode+0x82>
mov    -0x28(%rbp),%rdi
call   1030 <fclose@plt>
add    $0x2a0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<createHTMLCode>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x288,%rsp
mov    %rdi,%r15
lea    0xe65(%rip),%rdi
lea    0xe6b(%rip),%rsi
call   1090 <fopen@plt>
test   %rax,%rax
je     1376 <createHTMLCode+0x1f6>
mov    %rax,%rbx
lea    0xe70(%rip),%rsi
lea    0x90(%rsp),%rdx
mov    %rax,%rdi
call   1050 <fscanf@plt>
mov    %rbx,%rdi
call   1070 <feof@plt>
test   %eax,%eax
je     11f0 <createHTMLCode+0x70>
mov    %rbx,%rdi
call   1030 <fclose@plt>
add    $0x288,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret
xor    %eax,%eax
mov    %rax,0x8(%rsp)
lea    0x90(%rsp),%rbp
mov    %r15,0x10(%rsp)
mov    %rbx,0x18(%rsp)
jmp    1236 <createHTMLCode+0xb6>
nopl   0x0(%rax,%rax,1)
mov    0x18(%rsp),%rbx
mov    %rbx,%rdi
lea    0xe0b(%rip),%rsi
mov    %r14,%rbp
mov    %r14,%rdx
call   1050 <fscanf@plt>
mov    %rbx,%rdi
call   1070 <feof@plt>
test   %eax,%eax
jne    11d6 <createHTMLCode+0x56>
mov    %rbp,%r14
mov    %rbp,%rdi
call   1040 <strlen@plt>
test   %eax,%eax
jle    1210 <createHTMLCode+0x90>
xor    %r13d,%r13d
xor    %ebx,%ebx
xor    %ebp,%ebp
xor    %r12d,%r12d
jmp    1283 <createHTMLCode+0x103>
mov    0x8(%rsp),%rcx
movslq %ecx,%rax
movb   $0x22,(%r15,%rax,1)
add    $0x1,%ecx
mov    %rcx,0x8(%rsp)
cs nopw 0x0(%rax,%rax,1)
add    $0x1,%r13
mov    %r14,%rdi
call   1040 <strlen@plt>
cltq
cmp    %rax,%r13
jge    1210 <createHTMLCode+0x90>
mov    0x90(%rsp,%r13,1),%al
cmp    $0x9,%al
je     1270 <createHTMLCode+0xf0>
cmp    $0x20,%al
jne    12a0 <createHTMLCode+0x120>
test   %r12d,%r12d
jne    12a0 <createHTMLCode+0x120>
xor    %r12d,%r12d
jmp    1270 <createHTMLCode+0xf0>
nopl   (%rax)
cmp    $0x22,%al
je     1251 <createHTMLCode+0xd1>
cmp    $0x24,%al
je     12cb <createHTMLCode+0x14b>
cmp    $0x1,%ebp
je     12cb <createHTMLCode+0x14b>
mov    0x8(%rsp),%rcx
movslq %ecx,%rcx
mov    %al,(%r15,%rcx,1)
add    $0x1,%ecx
mov    %rcx,0x8(%rsp)
xor    %ebp,%ebp
mov    $0x1,%r12d
jmp    1270 <createHTMLCode+0xf0>
movslq %ebx,%rbx
mov    %al,0x20(%rsp,%rbx,1)
add    $0x1,%rbx
test   %ebp,%ebp
jne    12e4 <createHTMLCode+0x164>
xor    %ebp,%ebp
cmp    $0x24,%al
sete   %bpl
jmp    1270 <createHTMLCode+0xf0>
cmp    $0x1,%ebp
jne    1368 <createHTMLCode+0x1e8>
mov    $0x1,%ebp
cmp    $0x24,%al
jne    1270 <createHTMLCode+0xf0>
movb   $0x0,0x20(%rsp,%rbx,1)
lea    0x20(%rsp),%rbx
mov    %rbx,%rdi
mov    %rbx,%rsi
call   1080 <replaceVar@plt>
mov    %rbx,%rdi
call   1040 <strlen@plt>
xor    %ebp,%ebp
test   %eax,%eax
jle    136f <createHTMLCode+0x1ef>
movslq 0x8(%rsp),%rbx
add    %r15,%rbx
xor    %r15d,%r15d
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
movzbl 0x20(%rsp,%r15,1),%eax
mov    %al,(%rbx,%r15,1)
add    $0x1,%r15
lea    0x20(%rsp),%rdi
call   1040 <strlen@plt>
cltq
cmp    %rax,%r15
jl     1330 <createHTMLCode+0x1b0>
mov    0x8(%rsp),%rax
add    %r15d,%eax
mov    %rax,0x8(%rsp)
xor    %ebx,%ebx
mov    0x10(%rsp),%r15
jmp    1270 <createHTMLCode+0xf0>
xor    %ebp,%ebp
jmp    1270 <createHTMLCode+0xf0>
xor    %ebx,%ebx
jmp    1270 <createHTMLCode+0xf0>
mov    0x2c63(%rip),%rax
mov    (%rax),%edi
lea    0xc89(%rip),%rsi
call   1060 <fprintf@plt>
mov    $0x1,%edi
call   10a0 <exit@plt>

LLVM IR (-O0):
@.str = [13 x i8] c"monitor.html\00"
@.str.1 = [2 x i8] c"r\00"
@stderr = global i32 0
@.str.2 = [27 x i8] c"Error open the html source\00"
@.str.3 = [9 x i8] c"%[^\0A]%*c\00"
define void @createHTMLCode(i8* %0) {
%2 = alloca i8*
%3 = alloca i32
%4 = alloca i32
%5 = alloca i32
%6 = alloca i32
%7 = alloca i32
%8 = alloca i32*
%9 = alloca [500 x i8]
%10 = alloca [100 x i8]
store i8* %0, i8** %2
store i32 0, i32* %4
store i32 0, i32* %5
store i32 0, i32* %6
store i32 0, i32* %7
%11 = call i32* @fopen(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
store i32* %11, i32** %8
%12 = icmp eq i32* %11, null
br i1 %12, label %13, label %17
13: ; preds = %1
%14 = load i32, i32* @stderr
%15 = call i32 @fprintf(i32 %14, i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.2, i64 0, i64 0))
%16 = call i32 @exit(i32 1)
unreachable
17: ; preds = %1
%18 = load i32*, i32** %8
%19 = getelementptr inbounds [500 x i8], [500 x i8]* %9, i64 0, i64 0
%20 = call i32 @fscanf(i32* %18, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.3, i64 0, i64 0), i8* %19)
br label %21
21: ; preds = %146, %17
%22 = load i32*, i32** %8
%23 = call i32 @feof(i32* %22)
%24 = icmp ne i32 %23, 0
%25 = xor i1 %24, true
br i1 %25, label %26, label %150
26: ; preds = %21
store i32 0, i32* %5
store i32 0, i32* %6
store i32 0, i32* %7
store i32 0, i32* %3
br label %27
27: ; preds = %143, %26
%28 = load i32, i32* %3
%29 = getelementptr inbounds [500 x i8], [500 x i8]* %9, i64 0, i64 0
%30 = call i32 @strlen(i8* %29)
%31 = icmp slt i32 %28, %30
br i1 %31, label %32, label %146
32: ; preds = %27
%33 = load i32, i32* %3
%34 = sext i32 %33 to i64
%35 = getelementptr inbounds [500 x i8], [500 x i8]* %9, i64 0, i64 %34
%36 = load i8, i8* %35
%37 = sext i8 %36 to i32
%38 = icmp eq i32 %37, 9
br i1 %38, label %49, label %39
39: ; preds = %32
%40 = load i32, i32* %3
%41 = sext i32 %40 to i64
%42 = getelementptr inbounds [500 x i8], [500 x i8]* %9, i64 0, i64 %41
%43 = load i8, i8* %42
%44 = sext i8 %43 to i32
%45 = icmp eq i32 %44, 32
br i1 %45, label %46, label %50
46: ; preds = %39
%47 = load i32, i32* %5
%48 = icmp eq i32 %47, 0
br i1 %48, label %49, label %50
49: ; preds = %46, %32
br label %143
50: ; preds = %46, %39
%51 = load i32, i32* %3
%52 = sext i32 %51 to i64
%53 = getelementptr inbounds [500 x i8], [500 x i8]* %9, i64 0, i64 %52
%54 = load i8, i8* %53
%55 = sext i8 %54 to i32
%56 = icmp eq i32 %55, 34
br i1 %56, label %57, label %64
57: ; preds = %50
%58 = load i8*, i8** %2
%59 = load i32, i32* %4
%60 = sext i32 %59 to i64
%61 = getelementptr inbounds i8, i8* %58, i64 %60
store i8 34, i8* %61
%62 = load i32, i32* %4
%63 = add nsw i32 %62, 1
store i32 %63, i32* %4
br label %143
64: ; preds = %50
%65 = load i32, i32* %3
%66 = sext i32 %65 to i64
%67 = getelementptr inbounds [500 x i8], [500 x i8]* %9, i64 0, i64 %66
%68 = load i8, i8* %67
%69 = sext i8 %68 to i32
%70 = icmp eq i32 %69, 36
br i1 %70, label %74, label %71
71: ; preds = %64
%72 = load i32, i32* %6
%73 = icmp eq i32 %72, 1
br i1 %73, label %74, label %132
74: ; preds = %71, %64
%75 = load i32, i32* %3
%76 = sext i32 %75 to i64
%77 = getelementptr inbounds [500 x i8], [500 x i8]* %9, i64 0, i64 %76
%78 = load i8, i8* %77
%79 = load i32, i32* %7
%80 = sext i32 %79 to i64
%81 = getelementptr inbounds [100 x i8], [100 x i8]* %10, i64 0, i64 %80
store i8 %78, i8* %81
%82 = load i32, i32* %7
%83 = add nsw i32 %82, 1
store i32 %83, i32* %7
%84 = load i32, i32* %6
%85 = icmp eq i32 %84, 0
br i1 %85, label %86, label %94
86: ; preds = %74
%87 = load i32, i32* %3
%88 = sext i32 %87 to i64
%89 = getelementptr inbounds [500 x i8], [500 x i8]* %9, i64 0, i64 %88
%90 = load i8, i8* %89
%91 = sext i8 %90 to i32
%92 = icmp eq i32 %91, 36
br i1 %92, label %93, label %94
93: ; preds = %86
store i32 1, i32* %6
br label %143
94: ; preds = %86, %74
%95 = load i32, i32* %6
%96 = icmp eq i32 %95, 1
br i1 %96, label %97, label %131
97: ; preds = %94
%98 = load i32, i32* %3
%99 = sext i32 %98 to i64
%100 = getelementptr inbounds [500 x i8], [500 x i8]* %9, i64 0, i64 %99
%101 = load i8, i8* %100
%102 = sext i8 %101 to i32
%103 = icmp eq i32 %102, 36
br i1 %103, label %104, label %131
104: ; preds = %97
store i32 0, i32* %6
%105 = load i32, i32* %7
%106 = sext i32 %105 to i64
%107 = getelementptr inbounds [100 x i8], [100 x i8]* %10, i64 0, i64 %106
store i8 0, i8* %107
%108 = getelementptr inbounds [100 x i8], [100 x i8]* %10, i64 0, i64 0
%109 = getelementptr inbounds [100 x i8], [100 x i8]* %10, i64 0, i64 0
%110 = call i32 @replaceVar(i8* %108, i8* %109)
store i32 0, i32* %7
br label %111
111: ; preds = %127, %104
%112 = load i32, i32* %7
%113 = getelementptr inbounds [100 x i8], [100 x i8]* %10, i64 0, i64 0
%114 = call i32 @strlen(i8* %113)
%115 = icmp slt i32 %112, %114
br i1 %115, label %116, label %130
116: ; preds = %111
%117 = load i32, i32* %7
%118 = sext i32 %117 to i64
%119 = getelementptr inbounds [100 x i8], [100 x i8]* %10, i64 0, i64 %118
%120 = load i8, i8* %119
%121 = load i8*, i8** %2
%122 = load i32, i32* %4
%123 = sext i32 %122 to i64
%124 = getelementptr inbounds i8, i8* %121, i64 %123
store i8 %120, i8* %124
%125 = load i32, i32* %4
%126 = add nsw i32 %125, 1
store i32 %126, i32* %4
br label %127
127: ; preds = %116
%128 = load i32, i32* %7
%129 = add nsw i32 %128, 1
store i32 %129, i32* %7
br label %111
130: ; preds = %111
store i32 0, i32* %7
br label %131
131: ; preds = %130, %97, %94
br label %143
132: ; preds = %71
%133 = load i32, i32* %3
%134 = sext i32 %133 to i64
%135 = getelementptr inbounds [500 x i8], [500 x i8]* %9, i64 0, i64 %134
%136 = load i8, i8* %135
%137 = load i8*, i8** %2
%138 = load i32, i32* %4
%139 = sext i32 %138 to i64
%140 = getelementptr inbounds i8, i8* %137, i64 %139
store i8 %136, i8* %140
%141 = load i32, i32* %4
%142 = add nsw i32 %141, 1
store i32 %142, i32* %4
store i32 1, i32* %5
br label %143
143: ; preds = %132, %131, %93, %57, %49
%144 = load i32, i32* %3
%145 = add nsw i32 %144, 1
store i32 %145, i32* %3
br label %27
146: ; preds = %27
%147 = load i32*, i32** %8
%148 = getelementptr inbounds [500 x i8], [500 x i8]* %9, i64 0, i64 0
%149 = call i32 @fscanf(i32* %147, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.3, i64 0, i64 0), i8* %148)
br label %21
150: ; preds = %21
%151 = load i32*, i32** %8
%152 = call i32 @fclose(i32* %151)
ret void
}

LLVM IR (-O2):
@.str = [13 x i8] c"monitor.html\00"
@.str.1 = [2 x i8] c"r\00"
@stderr = global i32 0
@.str.2 = [27 x i8] c"Error open the html source\00"
@.str.3 = [9 x i8] c"%[^\0A]%*c\00"
define void @createHTMLCode(i8* nocapture writeonly %0) {
%2 = alloca [500 x i8]
%3 = alloca [100 x i8]
%4 = getelementptr inbounds [500 x i8], [500 x i8]* %2, i64 0, i64 0
%5 = getelementptr inbounds [100 x i8], [100 x i8]* %3, i64 0, i64 0
%6 = tail call i32* @fopen(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
%7 = icmp eq i32* %6, null
br i1 %7, label %8, label %12
8: ; preds = %1
%9 = load i32, i32* @stderr
%10 = tail call i32 @fprintf(i32 %9, i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.2, i64 0, i64 0))
%11 = tail call i32 @exit(i32 1)
unreachable
12: ; preds = %1
%13 = call i32 @fscanf(i32* %6, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.3, i64 0, i64 0), i8* %4)
%14 = call i32 @feof(i32* %6)
%15 = icmp eq i32 %14, 0
br i1 %15, label %16, label %91
16: ; preds = %12, %86
%17 = phi i32 [ %87, %86 ], [ 0, %12 ]
%18 = call i32 @strlen(i8* %4)
%19 = icmp sgt i32 %18, 0
br i1 %19, label %20, label %86
20: ; preds = %16, %77
%21 = phi i64 [ %82, %77 ], [ 0, %16 ]
%22 = phi i32 [ %81, %77 ], [ 0, %16 ]
%23 = phi i32 [ %80, %77 ], [ 0, %16 ]
%24 = phi i32 [ %79, %77 ], [ 0, %16 ]
%25 = phi i32 [ %78, %77 ], [ %17, %16 ]
%26 = getelementptr inbounds [500 x i8], [500 x i8]* %2, i64 0, i64 %21
%27 = load i8, i8* %26
%28 = icmp eq i8 %27, 9
br i1 %28, label %77, label %29
29: ; preds = %20
%30 = icmp eq i8 %27, 32
%31 = icmp eq i32 %24, 0
%32 = select i1 %30, i1 %31, i1 false
br i1 %32, label %77, label %33
33: ; preds = %29
%34 = icmp eq i8 %27, 34
br i1 %34, label %35, label %39
35: ; preds = %33
%36 = sext i32 %25 to i64
%37 = getelementptr inbounds i8, i8* %0, i64 %36
store i8 34, i8* %37
%38 = add nsw i32 %25, 1
br label %77
39: ; preds = %33
%40 = icmp eq i8 %27, 36
%41 = icmp eq i32 %23, 1
%42 = select i1 %40, i1 true, i1 %41
br i1 %42, label %43, label %71
43: ; preds = %39
%44 = sext i32 %22 to i64
%45 = getelementptr inbounds [100 x i8], [100 x i8]* %3, i64 0, i64 %44
store i8 %27, i8* %45
%46 = add nsw i32 %22, 1
%47 = icmp eq i32 %23, 0
br i1 %47, label %48, label %50
48: ; preds = %43
%49 = zext i1 %40 to i32
br label %77
50: ; preds = %43
br i1 %41, label %51, label %77
51: ; preds = %50
br i1 %40, label %52, label %77
52: ; preds = %51
%53 = sext i32 %46 to i64
%54 = getelementptr inbounds [100 x i8], [100 x i8]* %3, i64 0, i64 %53
store i8 0, i8* %54
%55 = call i32 @replaceVar(i8* %5, i8* %5)
%56 = call i32 @strlen(i8* %5)
%57 = icmp sgt i32 %56, 0
br i1 %57, label %58, label %77
58: ; preds = %52
%59 = sext i32 %25 to i64
br label %60
60: ; preds = %58, %60
%61 = phi i64 [ %59, %58 ], [ %66, %60 ]
%62 = phi i64 [ 0, %58 ], [ %67, %60 ]
%63 = getelementptr inbounds [100 x i8], [100 x i8]* %3, i64 0, i64 %62
%64 = load i8, i8* %63
%65 = getelementptr inbounds i8, i8* %0, i64 %61
store i8 %64, i8* %65
%66 = add nsw i64 %61, 1
%67 = add nuw nsw i64 %62, 1
%68 = call i32 @strlen(i8* %5)
%69 = sext i32 %68 to i64
%70 = icmp slt i64 %67, %69
br i1 %70, label %60, label %75
71: ; preds = %39
%72 = sext i32 %25 to i64
%73 = getelementptr inbounds i8, i8* %0, i64 %72
store i8 %27, i8* %73
%74 = add nsw i32 %25, 1
br label %77
75: ; preds = %60
%76 = trunc i64 %66 to i32
br label %77
77: ; preds = %75, %52, %48, %50, %51, %20, %29, %71, %35
%78 = phi i32 [ %25, %20 ], [ %25, %29 ], [ %38, %35 ], [ %25, %51 ], [ %25, %50 ], [ %74, %71 ], [ %25, %48 ], [ %25, %52 ], [ %76, %75 ]
%79 = phi i32 [ %24, %20 ], [ 0, %29 ], [ %24, %35 ], [ %24, %51 ], [ %24, %50 ], [ 1, %71 ], [ %24, %48 ], [ %24, %52 ], [ %24, %75 ]
%80 = phi i32 [ %23, %20 ], [ %23, %29 ], [ %23, %35 ], [ 1, %51 ], [ 0, %50 ], [ 0, %71 ], [ %49, %48 ], [ 0, %52 ], [ 0, %75 ]
%81 = phi i32 [ %22, %20 ], [ %22, %29 ], [ %22, %35 ], [ %46, %51 ], [ %46, %50 ], [ %22, %71 ], [ %46, %48 ], [ 0, %52 ], [ 0, %75 ]
%82 = add nuw nsw i64 %21, 1
%83 = call i32 @strlen(i8* %4)
%84 = sext i32 %83 to i64
%85 = icmp slt i64 %82, %84
br i1 %85, label %20, label %86
86: ; preds = %77, %16
%87 = phi i32 [ %17, %16 ], [ %78, %77 ]
%88 = call i32 @fscanf(i32* %6, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.3, i64 0, i64 0), i8* %4)
%89 = call i32 @feof(i32* %6)
%90 = icmp eq i32 %89, 0
br i1 %90, label %16, label %91
91: ; preds = %86, %12
%92 = call i32 @fclose(i32* %6)
ret void
}