#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 conv(char *);
int /*<<< orphan*/ fclose(int /*<<< orphan*/ *);
int /*<<< orphan*/ *fopen(char *, char *);
int /*<<< orphan*/ fprintf(int /*<<< orphan*/ *, char *, int, int);
int /*<<< orphan*/ printf(char *);
int /*<<< orphan*/ scanf(char *, char *, char *);
int main() {
  char stroka1[10], stroka2[10];
  int res1 = -1, res2 = -1;
  FILE *f;
  f = fopen("./sys/colors.sys", "w");
  while ((res1 == -1) && (res2 == -1)) {
    printf("File:");
    scanf("%s %s", stroka1, stroka2);
    res1 = conv(stroka1);
    res2 = conv(stroka2);
  }
  fprintf(f, "%d.%d.", res1, res2);
  res1 = -1;
  res2 = -1;
  while ((res1 == -1) && (res2 == -1)) {
    printf("File highlite:");
    scanf("%s %s", stroka1, stroka2);
    res1 = conv(stroka1);
    res2 = conv(stroka2);
  }
  fprintf(f, "%d.%d.", res1, res2);
  res1 = -1;
  res2 = -1;
  while ((res1 == -1) && (res2 == -1)) {
    printf("File in tab:");
    scanf("%s %s", stroka1, stroka2);
    res1 = conv(stroka1);
    res2 = conv(stroka2);
  }
  fprintf(f, "%d.%d.", res1, res2);
  res1 = -1;
  res2 = -1;
  while ((res1 == -1) && (res2 == -1)) {
    printf("File in tab highlite:");
    scanf("%s %s", stroka1, stroka2);
    res1 = conv(stroka1);
    res2 = conv(stroka2);
  }
  fprintf(f, "%d.%d.", res1, res2);
  res1 = -1;
  res2 = -1;
  while ((res1 == -1) && (res2 == -1)) {
    printf("Directory:");
    scanf("%s %s", stroka1, stroka2);
    res1 = conv(stroka1);
    res2 = conv(stroka2);
  }
  fprintf(f, "%d.%d.", res1, res2);
  res1 = -1;
  res2 = -1;
  while ((res1 == -1) && (res2 == -1)) {
    printf("Directory higlite:");
    scanf("%s %s", stroka1, stroka2);
    res1 = conv(stroka1);
    res2 = conv(stroka2);
  }
  fprintf(f, "%d.%d.", res1, res2);
  res1 = -1;
  res2 = -1;
  fclose(f);
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
movl   $0x0,-0x4(%rbp)
movl   $0xffffffff,-0x1c(%rbp)
movl   $0xffffffff,-0x20(%rbp)
lea    0xe7c(%rip),%rdi
lea    0xe86(%rip),%rsi
call   1080 <fopen@plt>
mov    %rax,-0x28(%rbp)
xor    %eax,%eax
cmpl   $0xffffffff,-0x1c(%rbp)
mov    %al,-0x29(%rbp)
jne    11ad <main+0x4d>
cmpl   $0xffffffff,-0x20(%rbp)
sete   %al
mov    %al,-0x29(%rbp)
mov    -0x29(%rbp),%al
test   $0x1,%al
jne    11bd <main+0x5d>
jmp    11fa <main+0x9a>
lea    0xe4f(%rip),%rdi
call   1050 <printf@plt>
lea    -0xe(%rbp),%rsi
lea    -0x18(%rbp),%rdx
lea    0xe41(%rip),%rdi
call   1070 <scanf@plt>
lea    -0xe(%rbp),%rdi
call   1040 <conv@plt>
mov    %eax,-0x1c(%rbp)
lea    -0x18(%rbp),%rdi
call   1040 <conv@plt>
mov    %eax,-0x20(%rbp)
jmp    1194 <main+0x34>
mov    -0x28(%rbp),%rdi
mov    -0x1c(%rbp),%edx
mov    -0x20(%rbp),%ecx
lea    0xe14(%rip),%rsi
call   1060 <fprintf@plt>
movl   $0xffffffff,-0x1c(%rbp)
movl   $0xffffffff,-0x20(%rbp)
xor    %eax,%eax
cmpl   $0xffffffff,-0x1c(%rbp)
mov    %al,-0x2a(%rbp)
jne    1237 <main+0xd7>
cmpl   $0xffffffff,-0x20(%rbp)
sete   %al
mov    %al,-0x2a(%rbp)
mov    -0x2a(%rbp),%al
test   $0x1,%al
jne    1247 <main+0xe7>
jmp    1284 <main+0x124>
lea    0xdd8(%rip),%rdi
call   1050 <printf@plt>
lea    -0xe(%rbp),%rsi
lea    -0x18(%rbp),%rdx
lea    0xdb7(%rip),%rdi
call   1070 <scanf@plt>
lea    -0xe(%rbp),%rdi
call   1040 <conv@plt>
mov    %eax,-0x1c(%rbp)
lea    -0x18(%rbp),%rdi
call   1040 <conv@plt>
mov    %eax,-0x20(%rbp)
jmp    121e <main+0xbe>
mov    -0x28(%rbp),%rdi
mov    -0x1c(%rbp),%edx
mov    -0x20(%rbp),%ecx
lea    0xd8a(%rip),%rsi
call   1060 <fprintf@plt>
movl   $0xffffffff,-0x1c(%rbp)
movl   $0xffffffff,-0x20(%rbp)
xor    %eax,%eax
cmpl   $0xffffffff,-0x1c(%rbp)
mov    %al,-0x2b(%rbp)
jne    12c1 <main+0x161>
cmpl   $0xffffffff,-0x20(%rbp)
sete   %al
mov    %al,-0x2b(%rbp)
mov    -0x2b(%rbp),%al
test   $0x1,%al
jne    12d1 <main+0x171>
jmp    130e <main+0x1ae>
lea    0xd5d(%rip),%rdi
call   1050 <printf@plt>
lea    -0xe(%rbp),%rsi
lea    -0x18(%rbp),%rdx
lea    0xd2d(%rip),%rdi
call   1070 <scanf@plt>
lea    -0xe(%rbp),%rdi
call   1040 <conv@plt>
mov    %eax,-0x1c(%rbp)
lea    -0x18(%rbp),%rdi
call   1040 <conv@plt>
mov    %eax,-0x20(%rbp)
jmp    12a8 <main+0x148>
mov    -0x28(%rbp),%rdi
mov    -0x1c(%rbp),%edx
mov    -0x20(%rbp),%ecx
lea    0xd00(%rip),%rsi
call   1060 <fprintf@plt>
movl   $0xffffffff,-0x1c(%rbp)
movl   $0xffffffff,-0x20(%rbp)
xor    %eax,%eax
cmpl   $0xffffffff,-0x1c(%rbp)
mov    %al,-0x2c(%rbp)
jne    134b <main+0x1eb>
cmpl   $0xffffffff,-0x20(%rbp)
sete   %al
mov    %al,-0x2c(%rbp)
mov    -0x2c(%rbp),%al
test   $0x1,%al
jne    135b <main+0x1fb>
jmp    1398 <main+0x238>
lea    0xce0(%rip),%rdi
call   1050 <printf@plt>
lea    -0xe(%rbp),%rsi
lea    -0x18(%rbp),%rdx
lea    0xca3(%rip),%rdi
call   1070 <scanf@plt>
lea    -0xe(%rbp),%rdi
call   1040 <conv@plt>
mov    %eax,-0x1c(%rbp)
lea    -0x18(%rbp),%rdi
call   1040 <conv@plt>
mov    %eax,-0x20(%rbp)
jmp    1332 <main+0x1d2>
mov    -0x28(%rbp),%rdi
mov    -0x1c(%rbp),%edx
mov    -0x20(%rbp),%ecx
lea    0xc76(%rip),%rsi
call   1060 <fprintf@plt>
movl   $0xffffffff,-0x1c(%rbp)
movl   $0xffffffff,-0x20(%rbp)
xor    %eax,%eax
cmpl   $0xffffffff,-0x1c(%rbp)
mov    %al,-0x2d(%rbp)
jne    13d5 <main+0x275>
cmpl   $0xffffffff,-0x20(%rbp)
sete   %al
mov    %al,-0x2d(%rbp)
mov    -0x2d(%rbp),%al
test   $0x1,%al
jne    13e5 <main+0x285>
jmp    1422 <main+0x2c2>
lea    0xc6c(%rip),%rdi
call   1050 <printf@plt>
lea    -0xe(%rbp),%rsi
lea    -0x18(%rbp),%rdx
lea    0xc19(%rip),%rdi
call   1070 <scanf@plt>
lea    -0xe(%rbp),%rdi
call   1040 <conv@plt>
mov    %eax,-0x1c(%rbp)
lea    -0x18(%rbp),%rdi
call   1040 <conv@plt>
mov    %eax,-0x20(%rbp)
jmp    13bc <main+0x25c>
mov    -0x28(%rbp),%rdi
mov    -0x1c(%rbp),%edx
mov    -0x20(%rbp),%ecx
lea    0xbec(%rip),%rsi
call   1060 <fprintf@plt>
movl   $0xffffffff,-0x1c(%rbp)
movl   $0xffffffff,-0x20(%rbp)
xor    %eax,%eax
cmpl   $0xffffffff,-0x1c(%rbp)
mov    %al,-0x2e(%rbp)
jne    145f <main+0x2ff>
cmpl   $0xffffffff,-0x20(%rbp)
sete   %al
mov    %al,-0x2e(%rbp)
mov    -0x2e(%rbp),%al
test   $0x1,%al
jne    146f <main+0x30f>
jmp    14ac <main+0x34c>
lea    0xbed(%rip),%rdi
call   1050 <printf@plt>
lea    -0xe(%rbp),%rsi
lea    -0x18(%rbp),%rdx
lea    0xb8f(%rip),%rdi
call   1070 <scanf@plt>
lea    -0xe(%rbp),%rdi
call   1040 <conv@plt>
mov    %eax,-0x1c(%rbp)
lea    -0x18(%rbp),%rdi
call   1040 <conv@plt>
mov    %eax,-0x20(%rbp)
jmp    1446 <main+0x2e6>
mov    -0x28(%rbp),%rdi
mov    -0x1c(%rbp),%edx
mov    -0x20(%rbp),%ecx
lea    0xb62(%rip),%rsi
call   1060 <fprintf@plt>
movl   $0xffffffff,-0x1c(%rbp)
movl   $0xffffffff,-0x20(%rbp)
mov    -0x28(%rbp),%rdi
call   1030 <fclose@plt>
mov    -0x4(%rbp),%eax
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x18,%rsp
lea    0xe8b(%rip),%rdi
lea    0xe95(%rip),%rsi
call   1080 <fopen@plt>
mov    %rax,%r14
lea    0xe88(%rip),%r15
lea    0xe87(%rip),%r12
lea    0xe(%rsp),%r13
lea    0x4(%rsp),%rbx
nopl   0x0(%rax)
mov    %r15,%rdi
call   1050 <printf@plt>
mov    %r12,%rdi
mov    %r13,%rsi
mov    %rbx,%rdx
call   1070 <scanf@plt>
mov    %r13,%rdi
call   1040 <conv@plt>
mov    %eax,%ebp
mov    %rbx,%rdi
call   1040 <conv@plt>
cmp    $0xffffffff,%ebp
jne    11d2 <main+0x72>
cmp    $0xffffffff,%eax
je     11a0 <main+0x40>
lea    0xe46(%rip),%rsi
mov    %r14,%rdi
mov    %ebp,%edx
mov    %eax,%ecx
call   1060 <fprintf@plt>
lea    0xe3a(%rip),%r15
lea    0xe26(%rip),%r12
lea    0xe(%rsp),%r13
lea    0x4(%rsp),%rbx
nopl   (%rax)
mov    %r15,%rdi
call   1050 <printf@plt>
mov    %r12,%rdi
mov    %r13,%rsi
mov    %rbx,%rdx
call   1070 <scanf@plt>
mov    %r13,%rdi
call   1040 <conv@plt>
mov    %eax,%ebp
mov    %rbx,%rdi
call   1040 <conv@plt>
cmp    $0xffffffff,%ebp
jne    1232 <main+0xd2>
cmp    $0xffffffff,%eax
je     1200 <main+0xa0>
lea    0xde6(%rip),%rsi
mov    %r14,%rdi
mov    %ebp,%edx
mov    %eax,%ecx
call   1060 <fprintf@plt>
lea    0xde9(%rip),%r15
lea    0xdc6(%rip),%r12
lea    0xe(%rsp),%r13
lea    0x4(%rsp),%rbx
nopl   (%rax)
mov    %r15,%rdi
call   1050 <printf@plt>
mov    %r12,%rdi
mov    %r13,%rsi
mov    %rbx,%rdx
call   1070 <scanf@plt>
mov    %r13,%rdi
call   1040 <conv@plt>
mov    %eax,%ebp
mov    %rbx,%rdi
call   1040 <conv@plt>
cmp    $0xffffffff,%ebp
jne    1292 <main+0x132>
cmp    $0xffffffff,%eax
je     1260 <main+0x100>
lea    0xd86(%rip),%rsi
mov    %r14,%rdi
mov    %ebp,%edx
mov    %eax,%ecx
call   1060 <fprintf@plt>
lea    0xd96(%rip),%r15
lea    0xd66(%rip),%r12
lea    0xe(%rsp),%r13
lea    0x4(%rsp),%rbx
nopl   (%rax)
mov    %r15,%rdi
call   1050 <printf@plt>
mov    %r12,%rdi
mov    %r13,%rsi
mov    %rbx,%rdx
call   1070 <scanf@plt>
mov    %r13,%rdi
call   1040 <conv@plt>
mov    %eax,%ebp
mov    %rbx,%rdi
call   1040 <conv@plt>
cmp    $0xffffffff,%ebp
jne    12f2 <main+0x192>
cmp    $0xffffffff,%eax
je     12c0 <main+0x160>
lea    0xd26(%rip),%rsi
mov    %r14,%rdi
mov    %ebp,%edx
mov    %eax,%ecx
call   1060 <fprintf@plt>
lea    0xd4c(%rip),%r15
lea    0xd06(%rip),%r12
lea    0xe(%rsp),%r13
lea    0x4(%rsp),%rbx
nopl   (%rax)
mov    %r15,%rdi
call   1050 <printf@plt>
mov    %r12,%rdi
mov    %r13,%rsi
mov    %rbx,%rdx
call   1070 <scanf@plt>
mov    %r13,%rdi
call   1040 <conv@plt>
mov    %eax,%ebp
mov    %rbx,%rdi
call   1040 <conv@plt>
cmp    $0xffffffff,%ebp
jne    1352 <main+0x1f2>
cmp    $0xffffffff,%eax
je     1320 <main+0x1c0>
lea    0xcc6(%rip),%rsi
mov    %r14,%rdi
mov    %ebp,%edx
mov    %eax,%ecx
call   1060 <fprintf@plt>
lea    0xcf7(%rip),%r15
lea    0xca6(%rip),%r12
lea    0xe(%rsp),%r13
lea    0x4(%rsp),%rbx
nopl   (%rax)
mov    %r15,%rdi
call   1050 <printf@plt>
mov    %r12,%rdi
mov    %r13,%rsi
mov    %rbx,%rdx
call   1070 <scanf@plt>
mov    %r13,%rdi
call   1040 <conv@plt>
mov    %eax,%ebp
mov    %rbx,%rdi
call   1040 <conv@plt>
cmp    $0xffffffff,%ebp
jne    13b2 <main+0x252>
cmp    $0xffffffff,%eax
je     1380 <main+0x220>
lea    0xc66(%rip),%rsi
mov    %r14,%rdi
mov    %ebp,%edx
mov    %eax,%ecx
call   1060 <fprintf@plt>
mov    %r14,%rdi
call   1030 <fclose@plt>
xor    %eax,%eax
add    $0x18,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [17 x i8] c"./sys/colors.sys\00"
@.str.1 = [2 x i8] c"w\00"
@.str.2 = [6 x i8] c"File:\00"
@.str.3 = [6 x i8] c"%s %s\00"
@.str.4 = [7 x i8] c"%d.%d.\00"
@.str.5 = [15 x i8] c"File highlite:\00"
@.str.6 = [13 x i8] c"File in tab:\00"
@.str.7 = [22 x i8] c"File in tab highlite:\00"
@.str.8 = [11 x i8] c"Directory:\00"
@.str.9 = [19 x i8] c"Directory higlite:\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca [10 x i8]
%3 = alloca [10 x i8]
%4 = alloca i32
%5 = alloca i32
%6 = alloca i32*
store i32 0, i32* %1
store i32 -1, i32* %4
store i32 -1, i32* %5
%7 = call i32* @fopen(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
store i32* %7, i32** %6
br label %8
8: ; preds = %16, %0
%9 = load i32, i32* %4
%10 = icmp eq i32 %9, -1
br i1 %10, label %11, label %14
11: ; preds = %8
%12 = load i32, i32* %5
%13 = icmp eq i32 %12, -1
br label %14
14: ; preds = %11, %8
%15 = phi i1 [ false, %8 ], [ %13, %11 ]
br i1 %15, label %16, label %25
16: ; preds = %14
%17 = call i32 @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.2, i64 0, i64 0))
%18 = getelementptr inbounds [10 x i8], [10 x i8]* %2, i64 0, i64 0
%19 = getelementptr inbounds [10 x i8], [10 x i8]* %3, i64 0, i64 0
%20 = call i32 @scanf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.3, i64 0, i64 0), i8* %18, i8* %19)
%21 = getelementptr inbounds [10 x i8], [10 x i8]* %2, i64 0, i64 0
%22 = call i32 @conv(i8* %21)
store i32 %22, i32* %4
%23 = getelementptr inbounds [10 x i8], [10 x i8]* %3, i64 0, i64 0
%24 = call i32 @conv(i8* %23)
store i32 %24, i32* %5
br label %8
25: ; preds = %14
%26 = load i32*, i32** %6
%27 = load i32, i32* %4
%28 = load i32, i32* %5
%29 = call i32 @fprintf(i32* %26, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.4, i64 0, i64 0), i32 %27, i32 %28)
store i32 -1, i32* %4
store i32 -1, i32* %5
br label %30
30: ; preds = %38, %25
%31 = load i32, i32* %4
%32 = icmp eq i32 %31, -1
br i1 %32, label %33, label %36
33: ; preds = %30
%34 = load i32, i32* %5
%35 = icmp eq i32 %34, -1
br label %36
36: ; preds = %33, %30
%37 = phi i1 [ false, %30 ], [ %35, %33 ]
br i1 %37, label %38, label %47
38: ; preds = %36
%39 = call i32 @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.5, i64 0, i64 0))
%40 = getelementptr inbounds [10 x i8], [10 x i8]* %2, i64 0, i64 0
%41 = getelementptr inbounds [10 x i8], [10 x i8]* %3, i64 0, i64 0
%42 = call i32 @scanf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.3, i64 0, i64 0), i8* %40, i8* %41)
%43 = getelementptr inbounds [10 x i8], [10 x i8]* %2, i64 0, i64 0
%44 = call i32 @conv(i8* %43)
store i32 %44, i32* %4
%45 = getelementptr inbounds [10 x i8], [10 x i8]* %3, i64 0, i64 0
%46 = call i32 @conv(i8* %45)
store i32 %46, i32* %5
br label %30
47: ; preds = %36
%48 = load i32*, i32** %6
%49 = load i32, i32* %4
%50 = load i32, i32* %5
%51 = call i32 @fprintf(i32* %48, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.4, i64 0, i64 0), i32 %49, i32 %50)
store i32 -1, i32* %4
store i32 -1, i32* %5
br label %52
52: ; preds = %60, %47
%53 = load i32, i32* %4
%54 = icmp eq i32 %53, -1
br i1 %54, label %55, label %58
55: ; preds = %52
%56 = load i32, i32* %5
%57 = icmp eq i32 %56, -1
br label %58
58: ; preds = %55, %52
%59 = phi i1 [ false, %52 ], [ %57, %55 ]
br i1 %59, label %60, label %69
60: ; preds = %58
%61 = call i32 @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.6, i64 0, i64 0))
%62 = getelementptr inbounds [10 x i8], [10 x i8]* %2, i64 0, i64 0
%63 = getelementptr inbounds [10 x i8], [10 x i8]* %3, i64 0, i64 0
%64 = call i32 @scanf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.3, i64 0, i64 0), i8* %62, i8* %63)
%65 = getelementptr inbounds [10 x i8], [10 x i8]* %2, i64 0, i64 0
%66 = call i32 @conv(i8* %65)
store i32 %66, i32* %4
%67 = getelementptr inbounds [10 x i8], [10 x i8]* %3, i64 0, i64 0
%68 = call i32 @conv(i8* %67)
store i32 %68, i32* %5
br label %52
69: ; preds = %58
%70 = load i32*, i32** %6
%71 = load i32, i32* %4
%72 = load i32, i32* %5
%73 = call i32 @fprintf(i32* %70, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.4, i64 0, i64 0), i32 %71, i32 %72)
store i32 -1, i32* %4
store i32 -1, i32* %5
br label %74
74: ; preds = %82, %69
%75 = load i32, i32* %4
%76 = icmp eq i32 %75, -1
br i1 %76, label %77, label %80
77: ; preds = %74
%78 = load i32, i32* %5
%79 = icmp eq i32 %78, -1
br label %80
80: ; preds = %77, %74
%81 = phi i1 [ false, %74 ], [ %79, %77 ]
br i1 %81, label %82, label %91
82: ; preds = %80
%83 = call i32 @printf(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.7, i64 0, i64 0))
%84 = getelementptr inbounds [10 x i8], [10 x i8]* %2, i64 0, i64 0
%85 = getelementptr inbounds [10 x i8], [10 x i8]* %3, i64 0, i64 0
%86 = call i32 @scanf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.3, i64 0, i64 0), i8* %84, i8* %85)
%87 = getelementptr inbounds [10 x i8], [10 x i8]* %2, i64 0, i64 0
%88 = call i32 @conv(i8* %87)
store i32 %88, i32* %4
%89 = getelementptr inbounds [10 x i8], [10 x i8]* %3, i64 0, i64 0
%90 = call i32 @conv(i8* %89)
store i32 %90, i32* %5
br label %74
91: ; preds = %80
%92 = load i32*, i32** %6
%93 = load i32, i32* %4
%94 = load i32, i32* %5
%95 = call i32 @fprintf(i32* %92, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.4, i64 0, i64 0), i32 %93, i32 %94)
store i32 -1, i32* %4
store i32 -1, i32* %5
br label %96
96: ; preds = %104, %91
%97 = load i32, i32* %4
%98 = icmp eq i32 %97, -1
br i1 %98, label %99, label %102
99: ; preds = %96
%100 = load i32, i32* %5
%101 = icmp eq i32 %100, -1
br label %102
102: ; preds = %99, %96
%103 = phi i1 [ false, %96 ], [ %101, %99 ]
br i1 %103, label %104, label %113
104: ; preds = %102
%105 = call i32 @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.8, i64 0, i64 0))
%106 = getelementptr inbounds [10 x i8], [10 x i8]* %2, i64 0, i64 0
%107 = getelementptr inbounds [10 x i8], [10 x i8]* %3, i64 0, i64 0
%108 = call i32 @scanf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.3, i64 0, i64 0), i8* %106, i8* %107)
%109 = getelementptr inbounds [10 x i8], [10 x i8]* %2, i64 0, i64 0
%110 = call i32 @conv(i8* %109)
store i32 %110, i32* %4
%111 = getelementptr inbounds [10 x i8], [10 x i8]* %3, i64 0, i64 0
%112 = call i32 @conv(i8* %111)
store i32 %112, i32* %5
br label %96
113: ; preds = %102
%114 = load i32*, i32** %6
%115 = load i32, i32* %4
%116 = load i32, i32* %5
%117 = call i32 @fprintf(i32* %114, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.4, i64 0, i64 0), i32 %115, i32 %116)
store i32 -1, i32* %4
store i32 -1, i32* %5
br label %118
118: ; preds = %126, %113
%119 = load i32, i32* %4
%120 = icmp eq i32 %119, -1
br i1 %120, label %121, label %124
121: ; preds = %118
%122 = load i32, i32* %5
%123 = icmp eq i32 %122, -1
br label %124
124: ; preds = %121, %118
%125 = phi i1 [ false, %118 ], [ %123, %121 ]
br i1 %125, label %126, label %135
126: ; preds = %124
%127 = call i32 @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.9, i64 0, i64 0))
%128 = getelementptr inbounds [10 x i8], [10 x i8]* %2, i64 0, i64 0
%129 = getelementptr inbounds [10 x i8], [10 x i8]* %3, i64 0, i64 0
%130 = call i32 @scanf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.3, i64 0, i64 0), i8* %128, i8* %129)
%131 = getelementptr inbounds [10 x i8], [10 x i8]* %2, i64 0, i64 0
%132 = call i32 @conv(i8* %131)
store i32 %132, i32* %4
%133 = getelementptr inbounds [10 x i8], [10 x i8]* %3, i64 0, i64 0
%134 = call i32 @conv(i8* %133)
store i32 %134, i32* %5
br label %118
135: ; preds = %124
%136 = load i32*, i32** %6
%137 = load i32, i32* %4
%138 = load i32, i32* %5
%139 = call i32 @fprintf(i32* %136, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.4, i64 0, i64 0), i32 %137, i32 %138)
store i32 -1, i32* %4
store i32 -1, i32* %5
%140 = load i32*, i32** %6
%141 = call i32 @fclose(i32* %140)
%142 = load i32, i32* %1
ret i32 %142
}

LLVM IR (-O2):
@.str = [17 x i8] c"./sys/colors.sys\00"
@.str.1 = [2 x i8] c"w\00"
@.str.2 = [6 x i8] c"File:\00"
@.str.3 = [6 x i8] c"%s %s\00"
@.str.4 = [7 x i8] c"%d.%d.\00"
@.str.5 = [15 x i8] c"File highlite:\00"
@.str.6 = [13 x i8] c"File in tab:\00"
@.str.7 = [22 x i8] c"File in tab highlite:\00"
@.str.8 = [11 x i8] c"Directory:\00"
@.str.9 = [19 x i8] c"Directory higlite:\00"
define i32 @main() {
%1 = alloca [10 x i8]
%2 = alloca [10 x i8]
%3 = getelementptr inbounds [10 x i8], [10 x i8]* %1, i64 0, i64 0
%4 = getelementptr inbounds [10 x i8], [10 x i8]* %2, i64 0, i64 0
%5 = tail call i32* @fopen(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
br label %6
6: ; preds = %0, %6
%7 = call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @.str.2, i64 0, i64 0))
%8 = call i32 @scanf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.3, i64 0, i64 0), i8* %3, i8* %4)
%9 = call i32 @conv(i8* %3)
%10 = call i32 @conv(i8* %4)
%11 = icmp eq i32 %9, -1
%12 = icmp eq i32 %10, -1
%13 = select i1 %11, i1 %12, i1 false
br i1 %13, label %6, label %14
14: ; preds = %6
%15 = call i32 @fprintf(i32* %5, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.4, i64 0, i64 0), i32 %9, i32 %10)
br label %16
16: ; preds = %14, %16
%17 = call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([15 x i8], [15 x i8]* @.str.5, i64 0, i64 0))
%18 = call i32 @scanf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.3, i64 0, i64 0), i8* %3, i8* %4)
%19 = call i32 @conv(i8* %3)
%20 = call i32 @conv(i8* %4)
%21 = icmp eq i32 %19, -1
%22 = icmp eq i32 %20, -1
%23 = select i1 %21, i1 %22, i1 false
br i1 %23, label %16, label %24
24: ; preds = %16
%25 = call i32 @fprintf(i32* %5, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.4, i64 0, i64 0), i32 %19, i32 %20)
br label %26
26: ; preds = %24, %26
%27 = call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([13 x i8], [13 x i8]* @.str.6, i64 0, i64 0))
%28 = call i32 @scanf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.3, i64 0, i64 0), i8* %3, i8* %4)
%29 = call i32 @conv(i8* %3)
%30 = call i32 @conv(i8* %4)
%31 = icmp eq i32 %29, -1
%32 = icmp eq i32 %30, -1
%33 = select i1 %31, i1 %32, i1 false
br i1 %33, label %26, label %34
34: ; preds = %26
%35 = call i32 @fprintf(i32* %5, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.4, i64 0, i64 0), i32 %29, i32 %30)
br label %36
36: ; preds = %34, %36
%37 = call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([22 x i8], [22 x i8]* @.str.7, i64 0, i64 0))
%38 = call i32 @scanf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.3, i64 0, i64 0), i8* %3, i8* %4)
%39 = call i32 @conv(i8* %3)
%40 = call i32 @conv(i8* %4)
%41 = icmp eq i32 %39, -1
%42 = icmp eq i32 %40, -1
%43 = select i1 %41, i1 %42, i1 false
br i1 %43, label %36, label %44
44: ; preds = %36
%45 = call i32 @fprintf(i32* %5, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.4, i64 0, i64 0), i32 %39, i32 %40)
br label %46
46: ; preds = %44, %46
%47 = call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([11 x i8], [11 x i8]* @.str.8, i64 0, i64 0))
%48 = call i32 @scanf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.3, i64 0, i64 0), i8* %3, i8* %4)
%49 = call i32 @conv(i8* %3)
%50 = call i32 @conv(i8* %4)
%51 = icmp eq i32 %49, -1
%52 = icmp eq i32 %50, -1
%53 = select i1 %51, i1 %52, i1 false
br i1 %53, label %46, label %54
54: ; preds = %46
%55 = call i32 @fprintf(i32* %5, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.4, i64 0, i64 0), i32 %49, i32 %50)
br label %56
56: ; preds = %54, %56
%57 = call i32 @printf(i8* dereferenceable(1) getelementptr inbounds ([19 x i8], [19 x i8]* @.str.9, i64 0, i64 0))
%58 = call i32 @scanf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.3, i64 0, i64 0), i8* %3, i8* %4)
%59 = call i32 @conv(i8* %3)
%60 = call i32 @conv(i8* %4)
%61 = icmp eq i32 %59, -1
%62 = icmp eq i32 %60, -1
%63 = select i1 %61, i1 %62, i1 false
br i1 %63, label %56, label %64
64: ; preds = %56
%65 = call i32 @fprintf(i32* %5, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.4, i64 0, i64 0), i32 %59, i32 %60)
%66 = call i32 @fclose(i32* %5)
ret i32 0
}