#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*/ A_BOLD;
int COLOR_BLACK;
int COLOR_BLUE;
int COLOR_GREEN;
int COLOR_RED;
int COLOR_YELLOW;
int /*<<< orphan*/ addstr(char *);
int /*<<< orphan*/ attrset(int /*<<< orphan*/);
int /*<<< orphan*/ chpos(int /*<<< orphan*/);
int /*<<< orphan*/ clear();
int /*<<< orphan*/ endwin();
int /*<<< orphan*/ *fopen(char *, char *);
int /*<<< orphan*/ fprintf(int /*<<< orphan*/ *, char *);
int fscanf(int /*<<< orphan*/ *, char *, ...);
int getdirect(char *);
int /*<<< orphan*/ init_pair(int, int, int);
int /*<<< orphan*/ initscr();
int /*<<< orphan*/ mkdir(char *, int);
int /*<<< orphan*/ move(int /*<<< orphan*/, int /*<<< orphan*/);
int /*<<< orphan*/ printtab();
int /*<<< orphan*/ start_color();
int main() {
  FILE *dirf;
  FILE *colors;
  char path[100];
  int prov, p311, p312, p411, p412, p511, p512, p611, p612, p711, p712, p811,
      p812;
  initscr();
  start_color();
  colors = fopen("./sys/colors.sys", "r");
  if (colors != NULL) {
    prov = fscanf(colors, "%d.%d.%d.%d.%d.%d.%d.%d.%d.%d.%d.%d", &p311, &p312,
                  &p411, &p412, &p511, &p512, &p611, &p612, &p711, &p712, &p811,
                  &p812);
    if (prov == 12) {
      init_pair(3, p311, p312);
      init_pair(4, p411, p412);
      init_pair(5, p511, p512);
      init_pair(6, p611, p612);
      init_pair(7, p711, p712);
      init_pair(8, p811, p812);
    }
  } else {
    init_pair(3, COLOR_GREEN, COLOR_BLACK);
    init_pair(4, COLOR_GREEN, COLOR_YELLOW);
    init_pair(5, COLOR_YELLOW, COLOR_BLACK);
    init_pair(6, COLOR_RED, COLOR_YELLOW);
    init_pair(7, COLOR_BLUE, COLOR_BLACK);
    init_pair(8, COLOR_BLUE, COLOR_YELLOW);
  }
  init_pair(9, COLOR_RED, COLOR_BLACK);
  attrset(A_BOLD);
  move(0, 0);
  addstr("Pleer 0.1.  (c)2007      * - to quit");
  dirf = fopen("./sys/path.sys", "r");
  if (dirf != NULL) {
    fscanf(dirf, "%s", path);
  } else {
    mkdir("./sys", 0644);
    dirf = fopen("./sys/path.sys", "wt");
    fprintf(dirf, "./");
  }
  if (getdirect(path) == -1) {
    getdirect("./");
  }
  printtab();
  chpos(0);
  clear();
  endwin();
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x108,%rsp
movl   $0x0,-0x2c(%rbp)
mov    $0x0,%al
call   1060 <initscr@plt>
mov    $0x0,%al
call   1070 <start_color@plt>
lea    0xde0(%rip),%rdi
lea    0xdea(%rip),%rsi
call   10e0 <fopen@plt>
mov    %rax,-0x40(%rbp)
cmpq   $0x0,-0x40(%rbp)
je     1364 <main+0x174>
mov    -0x40(%rbp),%rdi
lea    0xdcd(%rip),%rsi
lea    -0xb8(%rbp),%rdx
lea    -0xbc(%rbp),%rcx
lea    -0xc0(%rbp),%r8
lea    -0xc4(%rbp),%r9
lea    -0xc8(%rbp),%r13
lea    -0xcc(%rbp),%r12
lea    -0xd0(%rbp),%r15
lea    -0xd4(%rbp),%r14
lea    -0xd8(%rbp),%rbx
lea    -0xdc(%rbp),%r11
lea    -0xe0(%rbp),%r10
lea    -0xe4(%rbp),%rax
mov    %r13,(%rsp)
mov    %r12,0x8(%rsp)
mov    %r15,0x10(%rsp)
mov    %r14,0x18(%rsp)
mov    %rbx,0x20(%rsp)
mov    %r11,0x28(%rsp)
mov    %r10,0x30(%rsp)
mov    %rax,0x38(%rsp)
mov    $0x0,%al
call   1080 <fscanf@plt>
mov    %eax,-0xb4(%rbp)
cmpl   $0xc,-0xb4(%rbp)
jne    135f <main+0x16f>
mov    -0xb8(%rbp),%esi
mov    -0xbc(%rbp),%edx
mov    $0x3,%edi
call   1050 <init_pair@plt>
mov    -0xc0(%rbp),%esi
mov    -0xc4(%rbp),%edx
mov    $0x4,%edi
call   1050 <init_pair@plt>
mov    -0xc8(%rbp),%esi
mov    -0xcc(%rbp),%edx
mov    $0x5,%edi
call   1050 <init_pair@plt>
mov    -0xd0(%rbp),%esi
mov    -0xd4(%rbp),%edx
mov    $0x6,%edi
call   1050 <init_pair@plt>
mov    -0xd8(%rbp),%esi
mov    -0xdc(%rbp),%edx
mov    $0x7,%edi
call   1050 <init_pair@plt>
mov    -0xe0(%rbp),%esi
mov    -0xe4(%rbp),%edx
mov    $0x8,%edi
call   1050 <init_pair@plt>
jmp    140c <main+0x21c>
mov    0x2c75(%rip),%rax
mov    (%rax),%esi
mov    0x2c74(%rip),%rax
mov    (%rax),%edx
mov    $0x3,%edi
call   1050 <init_pair@plt>
mov    0x2c59(%rip),%rax
mov    (%rax),%esi
mov    0x2c40(%rip),%rax
mov    (%rax),%edx
mov    $0x4,%edi
call   1050 <init_pair@plt>
mov    0x2c2d(%rip),%rax
mov    (%rax),%esi
mov    0x2c3c(%rip),%rax
mov    (%rax),%edx
mov    $0x5,%edi
call   1050 <init_pair@plt>
mov    0x2bf9(%rip),%rax
mov    (%rax),%esi
mov    0x2c08(%rip),%rax
mov    (%rax),%edx
mov    $0x6,%edi
call   1050 <init_pair@plt>
mov    0x2bed(%rip),%rax
mov    (%rax),%esi
mov    0x2c04(%rip),%rax
mov    (%rax),%edx
mov    $0x7,%edi
call   1050 <init_pair@plt>
mov    0x2bd1(%rip),%rax
mov    (%rax),%esi
mov    0x2bd0(%rip),%rax
mov    (%rax),%edx
mov    $0x8,%edi
call   1050 <init_pair@plt>
mov    0x2ba5(%rip),%rax
mov    (%rax),%esi
mov    0x2bcc(%rip),%rax
mov    (%rax),%edx
mov    $0x9,%edi
call   1050 <init_pair@plt>
mov    0x2b91(%rip),%rax
mov    (%rax),%edi
call   10c0 <attrset@plt>
xor    %esi,%esi
mov    %esi,%edi
call   1110 <move@plt>
lea    0xbf1(%rip),%rdi
call   10f0 <addstr@plt>
lea    0xc0a(%rip),%rdi
lea    0xbb8(%rip),%rsi
call   10e0 <fopen@plt>
mov    %rax,-0x38(%rbp)
cmpq   $0x0,-0x38(%rbp)
je     148b <main+0x29b>
mov    -0x38(%rbp),%rdi
lea    -0xb0(%rbp),%rdx
lea    0xbec(%rip),%rsi
mov    $0x0,%al
call   1080 <fscanf@plt>
jmp    14c3 <main+0x2d3>
lea    0xbdc(%rip),%rdi
mov    $0x1a4,%esi
call   1030 <mkdir@plt>
lea    0xbb9(%rip),%rdi
lea    0xbca(%rip),%rsi
call   10e0 <fopen@plt>
mov    %rax,-0x38(%rbp)
mov    -0x38(%rbp),%rdi
lea    0xbb9(%rip),%rsi
call   1090 <fprintf@plt>
lea    -0xb0(%rbp),%rdi
call   10d0 <getdirect@plt>
cmp    $0xffffffff,%eax
jne    14e4 <main+0x2f4>
lea    0xb98(%rip),%rdi
call   10d0 <getdirect@plt>
mov    $0x0,%al
call   1040 <printtab@plt>
xor    %edi,%edi
call   10a0 <chpos@plt>
mov    $0x0,%al
call   1100 <clear@plt>
mov    $0x0,%al
call   10b0 <endwin@plt>
mov    -0x2c(%rbp),%eax
add    $0x108,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x98,%rsp
xor    %eax,%eax
call   1060 <initscr@plt>
xor    %eax,%eax
call   1070 <start_color@plt>
lea    0xdea(%rip),%rdi
lea    0xdf4(%rip),%rsi
call   10d0 <fopen@plt>
test   %rax,%rax
je     12f7 <main+0x107>
mov    %rsp,%rbx
lea    0x4(%rsp),%r10
lea    0x8(%rsp),%r11
lea    0xc(%rsp),%r14
lea    0x10(%rsp),%r15
lea    0x14(%rsp),%r12
lea    0x18(%rsp),%r13
lea    0x1c(%rsp),%rbp
lea    0xdbb(%rip),%rsi
lea    0x2c(%rsp),%rdx
lea    0x28(%rsp),%rcx
lea    0x24(%rsp),%r8
lea    0x20(%rsp),%r9
mov    %rax,%rdi
mov    $0x0,%eax
push   %rbx
push   %r10
push   %r11
push   %r14
push   %r15
push   %r12
push   %r13
push   %rbp
call   1080 <fscanf@plt>
add    $0x40,%rsp
cmp    $0xc,%eax
jne    1373 <main+0x183>
mov    0x2c(%rsp),%esi
mov    0x28(%rsp),%edx
mov    $0x3,%edi
call   1050 <init_pair@plt>
mov    0x24(%rsp),%esi
mov    0x20(%rsp),%edx
mov    $0x4,%edi
call   1050 <init_pair@plt>
mov    0x1c(%rsp),%esi
mov    0x18(%rsp),%edx
mov    $0x5,%edi
call   1050 <init_pair@plt>
mov    0x14(%rsp),%esi
mov    0x10(%rsp),%edx
mov    $0x6,%edi
call   1050 <init_pair@plt>
mov    0xc(%rsp),%esi
mov    0x8(%rsp),%edx
mov    $0x7,%edi
call   1050 <init_pair@plt>
mov    0x4(%rsp),%esi
mov    (%rsp),%edx
jmp    1369 <main+0x179>
mov    0x2ce2(%rip),%rbx
mov    (%rbx),%esi
mov    0x2ce1(%rip),%r14
mov    (%r14),%edx
mov    $0x3,%edi
call   1050 <init_pair@plt>
mov    (%rbx),%esi
mov    0x2cb3(%rip),%rbx
mov    (%rbx),%edx
mov    $0x4,%edi
call   1050 <init_pair@plt>
mov    (%rbx),%esi
mov    (%r14),%edx
mov    $0x5,%edi
call   1050 <init_pair@plt>
mov    0x2c79(%rip),%rax
mov    (%rax),%esi
mov    (%rbx),%edx
mov    $0x6,%edi
call   1050 <init_pair@plt>
mov    0x2c74(%rip),%rbp
mov    0x0(%rbp),%esi
mov    (%r14),%edx
mov    $0x7,%edi
call   1050 <init_pair@plt>
mov    0x0(%rbp),%esi
mov    (%rbx),%edx
mov    $0x8,%edi
call   1050 <init_pair@plt>
mov    0x2c3e(%rip),%rax
mov    (%rax),%esi
mov    0x2c65(%rip),%rax
mov    (%rax),%edx
mov    $0x9,%edi
call   1050 <init_pair@plt>
mov    0x2c2a(%rip),%rax
mov    (%rax),%edi
call   10b0 <attrset@plt>
xor    %edi,%edi
xor    %esi,%esi
call   1110 <move@plt>
lea    0xc8a(%rip),%rdi
call   10f0 <addstr@plt>
lea    0xca3(%rip),%rdi
lea    0xc51(%rip),%rsi
call   10d0 <fopen@plt>
test   %rax,%rax
je     13e2 <main+0x1f2>
lea    0xc9a(%rip),%rsi
lea    0x30(%rsp),%rdx
mov    %rax,%rdi
xor    %eax,%eax
call   1080 <fscanf@plt>
jmp    141f <main+0x22f>
lea    0xc85(%rip),%rdi
mov    $0x1a4,%esi
call   1030 <mkdir@plt>
lea    0xc62(%rip),%rdi
lea    0xc73(%rip),%rsi
call   10d0 <fopen@plt>
lea    0xc6a(%rip),%rdi
mov    $0x2,%esi
mov    $0x1,%edx
mov    %rax,%rcx
call   10e0 <fwrite@plt>
lea    0x30(%rsp),%rdi
call   10c0 <getdirect@plt>
cmp    $0xffffffff,%eax
jne    143a <main+0x24a>
lea    0xc42(%rip),%rdi
call   10c0 <getdirect@plt>
xor    %eax,%eax
call   1040 <printtab@plt>
xor    %edi,%edi
call   1090 <chpos@plt>
xor    %eax,%eax
call   1100 <clear@plt>
xor    %eax,%eax
call   10a0 <endwin@plt>
xor    %eax,%eax
add    $0x98,%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"r\00"
@.str.2 = [36 x i8] c"%d.%d.%d.%d.%d.%d.%d.%d.%d.%d.%d.%d\00"
@COLOR_GREEN = global i32 0
@COLOR_BLACK = global i32 0
@COLOR_YELLOW = global i32 0
@COLOR_RED = global i32 0
@COLOR_BLUE = global i32 0
@A_BOLD = global i32 0
@.str.3 = [37 x i8] c"Pleer 0.1. (c)2007 * - to quit\00"
@.str.4 = [15 x i8] c"./sys/path.sys\00"
@.str.5 = [3 x i8] c"%s\00"
@.str.6 = [6 x i8] c"./sys\00"
@.str.7 = [3 x i8] c"wt\00"
@.str.8 = [3 x i8] c"./\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32*
%3 = alloca i32*
%4 = alloca [100 x i8]
%5 = alloca i32
%6 = alloca i32
%7 = alloca i32
%8 = alloca i32
%9 = alloca i32
%10 = alloca i32
%11 = alloca i32
%12 = alloca i32
%13 = alloca i32
%14 = alloca i32
%15 = alloca i32
%16 = alloca i32
%17 = alloca i32
store i32 0, i32* %1
%18 = call i32 (...) @initscr()
%19 = call i32 (...) @start_color()
%20 = 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* %20, i32** %3
%21 = load i32*, i32** %3
%22 = icmp ne i32* %21, null
br i1 %22, label %23, label %48
23: ; preds = %0
%24 = load i32*, i32** %3
%25 = call i32 (i32*, i8*, ...) @fscanf(i32* %24, i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.2, i64 0, i64 0), i32* %6, i32* %7, i32* %8, i32* %9, i32* %10, i32* %11, i32* %12, i32* %13, i32* %14, i32* %15, i32* %16, i32* %17)
store i32 %25, i32* %5
%26 = load i32, i32* %5
%27 = icmp eq i32 %26, 12
br i1 %27, label %28, label %47
28: ; preds = %23
%29 = load i32, i32* %6
%30 = load i32, i32* %7
%31 = call i32 @init_pair(i32 3, i32 %29, i32 %30)
%32 = load i32, i32* %8
%33 = load i32, i32* %9
%34 = call i32 @init_pair(i32 4, i32 %32, i32 %33)
%35 = load i32, i32* %10
%36 = load i32, i32* %11
%37 = call i32 @init_pair(i32 5, i32 %35, i32 %36)
%38 = load i32, i32* %12
%39 = load i32, i32* %13
%40 = call i32 @init_pair(i32 6, i32 %38, i32 %39)
%41 = load i32, i32* %14
%42 = load i32, i32* %15
%43 = call i32 @init_pair(i32 7, i32 %41, i32 %42)
%44 = load i32, i32* %16
%45 = load i32, i32* %17
%46 = call i32 @init_pair(i32 8, i32 %44, i32 %45)
br label %47
47: ; preds = %28, %23
br label %67
48: ; preds = %0
%49 = load i32, i32* @COLOR_GREEN
%50 = load i32, i32* @COLOR_BLACK
%51 = call i32 @init_pair(i32 3, i32 %49, i32 %50)
%52 = load i32, i32* @COLOR_GREEN
%53 = load i32, i32* @COLOR_YELLOW
%54 = call i32 @init_pair(i32 4, i32 %52, i32 %53)
%55 = load i32, i32* @COLOR_YELLOW
%56 = load i32, i32* @COLOR_BLACK
%57 = call i32 @init_pair(i32 5, i32 %55, i32 %56)
%58 = load i32, i32* @COLOR_RED
%59 = load i32, i32* @COLOR_YELLOW
%60 = call i32 @init_pair(i32 6, i32 %58, i32 %59)
%61 = load i32, i32* @COLOR_BLUE
%62 = load i32, i32* @COLOR_BLACK
%63 = call i32 @init_pair(i32 7, i32 %61, i32 %62)
%64 = load i32, i32* @COLOR_BLUE
%65 = load i32, i32* @COLOR_YELLOW
%66 = call i32 @init_pair(i32 8, i32 %64, i32 %65)
br label %67
67: ; preds = %48, %47
%68 = load i32, i32* @COLOR_RED
%69 = load i32, i32* @COLOR_BLACK
%70 = call i32 @init_pair(i32 9, i32 %68, i32 %69)
%71 = load i32, i32* @A_BOLD
%72 = call i32 @attrset(i32 %71)
%73 = call i32 @move(i32 0, i32 0)
%74 = call i32 @addstr(i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.3, i64 0, i64 0))
%75 = call i32* @fopen(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
store i32* %75, i32** %2
%76 = load i32*, i32** %2
%77 = icmp ne i32* %76, null
br i1 %77, label %78, label %82
78: ; preds = %67
%79 = load i32*, i32** %2
%80 = getelementptr inbounds [100 x i8], [100 x i8]* %4, i64 0, i64 0
%81 = call i32 (i32*, i8*, ...) @fscanf(i32* %79, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.5, i64 0, i64 0), i8* %80)
br label %87
82: ; preds = %67
%83 = call i32 @mkdir(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.6, i64 0, i64 0), i32 420)
%84 = call i32* @fopen(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.7, i64 0, i64 0))
store i32* %84, i32** %2
%85 = load i32*, i32** %2
%86 = call i32 @fprintf(i32* %85, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.8, i64 0, i64 0))
br label %87
87: ; preds = %82, %78
%88 = getelementptr inbounds [100 x i8], [100 x i8]* %4, i64 0, i64 0
%89 = call i32 @getdirect(i8* %88)
%90 = icmp eq i32 %89, -1
br i1 %90, label %91, label %93
91: ; preds = %87
%92 = call i32 @getdirect(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.8, i64 0, i64 0))
br label %93
93: ; preds = %91, %87
%94 = call i32 (...) @printtab()
%95 = call i32 @chpos(i32 0)
%96 = call i32 (...) @clear()
%97 = call i32 (...) @endwin()
%98 = load i32, i32* %1
ret i32 %98
}

LLVM IR (-O2):
@.str = [17 x i8] c"./sys/colors.sys\00"
@.str.1 = [2 x i8] c"r\00"
@.str.2 = [36 x i8] c"%d.%d.%d.%d.%d.%d.%d.%d.%d.%d.%d.%d\00"
@COLOR_GREEN = global i32 0
@COLOR_BLACK = global i32 0
@COLOR_YELLOW = global i32 0
@COLOR_RED = global i32 0
@COLOR_BLUE = global i32 0
@A_BOLD = global i32 0
@.str.3 = [37 x i8] c"Pleer 0.1. (c)2007 * - to quit\00"
@.str.4 = [15 x i8] c"./sys/path.sys\00"
@.str.5 = [3 x i8] c"%s\00"
@.str.6 = [6 x i8] c"./sys\00"
@.str.7 = [3 x i8] c"wt\00"
@.str.8 = [3 x i8] c"./\00"
define i32 @main() {
%1 = alloca [100 x i8]
%2 = alloca i32
%3 = alloca i32
%4 = alloca i32
%5 = alloca i32
%6 = alloca i32
%7 = alloca i32
%8 = alloca i32
%9 = alloca i32
%10 = alloca i32
%11 = alloca i32
%12 = alloca i32
%13 = alloca i32
%14 = getelementptr inbounds [100 x i8], [100 x i8]* %1, i64 0, i64 0
%15 = bitcast i32* %2 to i8*
%16 = bitcast i32* %3 to i8*
%17 = bitcast i32* %4 to i8*
%18 = bitcast i32* %5 to i8*
%19 = bitcast i32* %6 to i8*
%20 = bitcast i32* %7 to i8*
%21 = bitcast i32* %8 to i8*
%22 = bitcast i32* %9 to i8*
%23 = bitcast i32* %10 to i8*
%24 = bitcast i32* %11 to i8*
%25 = bitcast i32* %12 to i8*
%26 = bitcast i32* %13 to i8*
%27 = tail call i32 (...) @initscr()
%28 = tail call i32 (...) @start_color()
%29 = 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))
%30 = icmp eq i32* %29, null
br i1 %30, label %53, label %31
31: ; preds = %0
%32 = call i32 (i32*, i8*, ...) @fscanf(i32* %29, i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.2, i64 0, i64 0), i32* %2, i32* %3, i32* %4, i32* %5, i32* %6, i32* %7, i32* %8, i32* %9, i32* %10, i32* %11, i32* %12, i32* %13)
%33 = icmp eq i32 %32, 12
br i1 %33, label %34, label %72
34: ; preds = %31
%35 = load i32, i32* %2
%36 = load i32, i32* %3
%37 = call i32 @init_pair(i32 3, i32 %35, i32 %36)
%38 = load i32, i32* %4
%39 = load i32, i32* %5
%40 = call i32 @init_pair(i32 4, i32 %38, i32 %39)
%41 = load i32, i32* %6
%42 = load i32, i32* %7
%43 = call i32 @init_pair(i32 5, i32 %41, i32 %42)
%44 = load i32, i32* %8
%45 = load i32, i32* %9
%46 = call i32 @init_pair(i32 6, i32 %44, i32 %45)
%47 = load i32, i32* %10
%48 = load i32, i32* %11
%49 = call i32 @init_pair(i32 7, i32 %47, i32 %48)
%50 = load i32, i32* %12
%51 = load i32, i32* %13
%52 = call i32 @init_pair(i32 8, i32 %50, i32 %51)
br label %72
53: ; preds = %0
%54 = load i32, i32* @COLOR_GREEN
%55 = load i32, i32* @COLOR_BLACK
%56 = tail call i32 @init_pair(i32 3, i32 %54, i32 %55)
%57 = load i32, i32* @COLOR_GREEN
%58 = load i32, i32* @COLOR_YELLOW
%59 = tail call i32 @init_pair(i32 4, i32 %57, i32 %58)
%60 = load i32, i32* @COLOR_YELLOW
%61 = load i32, i32* @COLOR_BLACK
%62 = tail call i32 @init_pair(i32 5, i32 %60, i32 %61)
%63 = load i32, i32* @COLOR_RED
%64 = load i32, i32* @COLOR_YELLOW
%65 = tail call i32 @init_pair(i32 6, i32 %63, i32 %64)
%66 = load i32, i32* @COLOR_BLUE
%67 = load i32, i32* @COLOR_BLACK
%68 = tail call i32 @init_pair(i32 7, i32 %66, i32 %67)
%69 = load i32, i32* @COLOR_BLUE
%70 = load i32, i32* @COLOR_YELLOW
%71 = tail call i32 @init_pair(i32 8, i32 %69, i32 %70)
br label %72
72: ; preds = %31, %34, %53
%73 = load i32, i32* @COLOR_RED
%74 = load i32, i32* @COLOR_BLACK
%75 = call i32 @init_pair(i32 9, i32 %73, i32 %74)
%76 = load i32, i32* @A_BOLD
%77 = call i32 @attrset(i32 %76)
%78 = call i32 @move(i32 0, i32 0)
%79 = call i32 @addstr(i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.3, i64 0, i64 0))
%80 = call i32* @fopen(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
%81 = icmp eq i32* %80, null
br i1 %81, label %84, label %82
82: ; preds = %72
%83 = call i32 (i32*, i8*, ...) @fscanf(i32* %80, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.5, i64 0, i64 0), i8* %14)
br label %88
84: ; preds = %72
%85 = call i32 @mkdir(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.6, i64 0, i64 0), i32 420)
%86 = call i32* @fopen(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.7, i64 0, i64 0))
%87 = call i64 @fwrite(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.8, i64 0, i64 0), i64 2, i64 1, i32* %86)
br label %88
88: ; preds = %84, %82
%89 = call i32 @getdirect(i8* %14)
%90 = icmp eq i32 %89, -1
br i1 %90, label %91, label %93
91: ; preds = %88
%92 = call i32 @getdirect(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.8, i64 0, i64 0))
br label %93
93: ; preds = %91, %88
%94 = call i32 (...) @printtab()
%95 = call i32 @chpos(i32 0)
%96 = call i32 (...) @clear()
%97 = call i32 (...) @endwin()
ret i32 0
}