#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*/ fclose(int /*<<< orphan*/ *);
int /*<<< orphan*/ *fopen(char *, char *);
int /*<<< orphan*/ fprintf(int /*<<< orphan*/ *, char *, ...);
int /*<<< orphan*/ printf(char *, ...);
int main(void) {
  FILE *arch;
  int r, g, b, h, l, i = 0;
  int G[4] = {0, 85, 170, 255};
  int RB[2] = {0, 255};
  arch = fopen("minimOSsys.gpl", "w");
  if (arch == NULL) {
    printf("*** CANNOT WRITE ***\n");
    return -1;
  }
  fprintf(arch, "GIMP Palette\nName: minimOS-system\nColumns: 16\n#\n");
  for (h = 0; h < 2; h++) {
    for (r = 0; r < 2; r++) {
      for (l = 0; l < 2; l++) {
        for (b = 0; b < 2; b++) {
          g = (h << 1) | l;
          fprintf(arch, "%d %d %d\tIndex %d\n", RB[r], G[g], RB[b], i++);
        }
      }
    }
  }
  printf("Created %d system colours\n", i);
  for (g = 15; g < 255; g += 15) {
    fprintf(arch, "%d %d %d\tIndex %d\n", g, g, g, i++);
  }
  fclose(arch);
  printf("Added system greyscale (total %d entries)\n", i);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x50,%rsp
movl   $0x0,-0x4(%rbp)
movl   $0x0,-0x28(%rbp)
mov    0xea3(%rip),%rax
mov    %rax,-0x40(%rbp)
mov    0xea0(%rip),%rax
mov    %rax,-0x38(%rbp)
mov    0xe9d(%rip),%rax
mov    %rax,-0x48(%rbp)
lea    0xe9a(%rip),%rdi
lea    0xea2(%rip),%rsi
call   1060 <fopen@plt>
mov    %rax,-0x10(%rbp)
cmpq   $0x0,-0x10(%rbp)
jne    11b3 <main+0x73>
lea    0xe89(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
movl   $0xffffffff,-0x4(%rbp)
jmp    1311 <main+0x1d1>
mov    -0x10(%rbp),%rdi
lea    0xe81(%rip),%rsi
mov    $0x0,%al
call   1050 <fprintf@plt>
movl   $0x0,-0x20(%rbp)
cmpl   $0x2,-0x20(%rbp)
jge    1294 <main+0x154>
movl   $0x0,-0x14(%rbp)
cmpl   $0x2,-0x14(%rbp)
jge    1281 <main+0x141>
movl   $0x0,-0x24(%rbp)
cmpl   $0x2,-0x24(%rbp)
jge    126e <main+0x12e>
movl   $0x0,-0x1c(%rbp)
cmpl   $0x2,-0x1c(%rbp)
jge    125b <main+0x11b>
mov    -0x20(%rbp),%eax
shl    $0x1,%eax
or     -0x24(%rbp),%eax
mov    %eax,-0x18(%rbp)
mov    -0x10(%rbp),%rdi
movslq -0x14(%rbp),%rax
mov    -0x48(%rbp,%rax,4),%edx
movslq -0x18(%rbp),%rax
mov    -0x40(%rbp,%rax,4),%ecx
movslq -0x1c(%rbp),%rax
mov    -0x48(%rbp,%rax,4),%r8d
mov    -0x28(%rbp),%r9d
mov    %r9d,%eax
add    $0x1,%eax
mov    %eax,-0x28(%rbp)
lea    0xe2a(%rip),%rsi
mov    $0x0,%al
call   1050 <fprintf@plt>
mov    -0x1c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x1c(%rbp)
jmp    11ff <main+0xbf>
jmp    1260 <main+0x120>
mov    -0x24(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x24(%rbp)
jmp    11ee <main+0xae>
jmp    1273 <main+0x133>
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
jmp    11dd <main+0x9d>
jmp    1286 <main+0x146>
mov    -0x20(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x20(%rbp)
jmp    11cc <main+0x8c>
mov    -0x28(%rbp),%esi
lea    0xde5(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
movl   $0xf,-0x18(%rbp)
cmpl   $0xff,-0x18(%rbp)
jge    12f0 <main+0x1b0>
mov    -0x10(%rbp),%rdi
mov    -0x18(%rbp),%edx
mov    -0x18(%rbp),%ecx
mov    -0x18(%rbp),%r8d
mov    -0x28(%rbp),%r9d
mov    %r9d,%eax
add    $0x1,%eax
mov    %eax,-0x28(%rbp)
lea    0xd95(%rip),%rsi
mov    $0x0,%al
call   1050 <fprintf@plt>
mov    -0x18(%rbp),%eax
add    $0xf,%eax
mov    %eax,-0x18(%rbp)
jmp    12ac <main+0x16c>
mov    -0x10(%rbp),%rdi
call   1030 <fclose@plt>
mov    -0x28(%rbp),%esi
lea    0xd9b(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x50,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r14
push   %rbx
lea    0xe95(%rip),%rdi
lea    0xe9d(%rip),%rsi
call   1070 <fopen@plt>
test   %rax,%rax
je     15f7 <main+0x497>
mov    %rax,%rbx
lea    0xe87(%rip),%rdi
mov    $0x30,%esi
mov    $0x1,%edx
mov    %rax,%rcx
call   1080 <fwrite@plt>
lea    0xe9f(%rip),%rbp
xor    %r14d,%r14d
mov    %rbx,%rdi
mov    %rbp,%rsi
xor    %edx,%edx
xor    %ecx,%ecx
xor    %r8d,%r8d
xor    %r9d,%r9d
xor    %eax,%eax
call   1060 <fprintf@plt>
mov    %rbx,%rdi
mov    %rbp,%rsi
xor    %edx,%edx
xor    %ecx,%ecx
mov    $0xff,%r8d
mov    $0x1,%r9d
xor    %eax,%eax
call   1060 <fprintf@plt>
mov    %rbx,%rdi
mov    %rbp,%rsi
xor    %edx,%edx
mov    $0x55,%ecx
xor    %r8d,%r8d
mov    $0x2,%r9d
xor    %eax,%eax
call   1060 <fprintf@plt>
mov    %rbx,%rdi
mov    %rbp,%rsi
xor    %edx,%edx
mov    $0x55,%ecx
mov    $0xff,%r8d
mov    $0x3,%r9d
xor    %eax,%eax
call   1060 <fprintf@plt>
mov    %rbx,%rdi
mov    %rbp,%rsi
mov    $0xff,%edx
xor    %ecx,%ecx
xor    %r8d,%r8d
mov    $0x4,%r9d
xor    %eax,%eax
call   1060 <fprintf@plt>
mov    %rbx,%rdi
mov    %rbp,%rsi
mov    $0xff,%edx
xor    %ecx,%ecx
mov    $0xff,%r8d
mov    $0x5,%r9d
xor    %eax,%eax
call   1060 <fprintf@plt>
mov    %rbx,%rdi
mov    %rbp,%rsi
mov    $0xff,%edx
mov    $0x55,%ecx
xor    %r8d,%r8d
mov    $0x6,%r9d
xor    %eax,%eax
call   1060 <fprintf@plt>
mov    %rbx,%rdi
mov    %rbp,%rsi
mov    $0xff,%edx
mov    $0x55,%ecx
mov    $0xff,%r8d
mov    $0x7,%r9d
xor    %eax,%eax
call   1060 <fprintf@plt>
mov    %rbx,%rdi
mov    %rbp,%rsi
xor    %edx,%edx
mov    $0xaa,%ecx
xor    %r8d,%r8d
mov    $0x8,%r9d
xor    %eax,%eax
call   1060 <fprintf@plt>
mov    %rbx,%rdi
mov    %rbp,%rsi
xor    %edx,%edx
mov    $0xaa,%ecx
mov    $0xff,%r8d
mov    $0x9,%r9d
xor    %eax,%eax
call   1060 <fprintf@plt>
mov    %rbx,%rdi
mov    %rbp,%rsi
xor    %edx,%edx
mov    $0xff,%ecx
xor    %r8d,%r8d
mov    $0xa,%r9d
xor    %eax,%eax
call   1060 <fprintf@plt>
mov    %rbx,%rdi
mov    %rbp,%rsi
xor    %edx,%edx
mov    $0xff,%ecx
mov    $0xff,%r8d
mov    $0xb,%r9d
xor    %eax,%eax
call   1060 <fprintf@plt>
mov    %rbx,%rdi
mov    %rbp,%rsi
mov    $0xff,%edx
mov    $0xaa,%ecx
xor    %r8d,%r8d
mov    $0xc,%r9d
xor    %eax,%eax
call   1060 <fprintf@plt>
mov    %rbx,%rdi
mov    %rbp,%rsi
mov    $0xff,%edx
mov    $0xaa,%ecx
mov    $0xff,%r8d
mov    $0xd,%r9d
xor    %eax,%eax
call   1060 <fprintf@plt>
mov    %rbx,%rdi
mov    %rbp,%rsi
mov    $0xff,%edx
mov    $0xff,%ecx
xor    %r8d,%r8d
mov    $0xe,%r9d
xor    %eax,%eax
call   1060 <fprintf@plt>
mov    %rbx,%rdi
mov    %rbp,%rsi
mov    $0xff,%edx
mov    $0xff,%ecx
mov    $0xff,%r8d
mov    $0xf,%r9d
xor    %eax,%eax
call   1060 <fprintf@plt>
lea    0xcb7(%rip),%rdi
mov    $0x10,%esi
xor    %eax,%eax
call   1050 <printf@plt>
mov    %rbx,%rdi
mov    %rbp,%rsi
mov    $0xf,%edx
mov    $0xf,%ecx
mov    $0xf,%r8d
mov    $0x10,%r9d
xor    %eax,%eax
call   1060 <fprintf@plt>
mov    %rbx,%rdi
mov    %rbp,%rsi
mov    $0x1e,%edx
mov    $0x1e,%ecx
mov    $0x1e,%r8d
mov    $0x11,%r9d
xor    %eax,%eax
call   1060 <fprintf@plt>
mov    %rbx,%rdi
mov    %rbp,%rsi
mov    $0x2d,%edx
mov    $0x2d,%ecx
mov    $0x2d,%r8d
mov    $0x12,%r9d
xor    %eax,%eax
call   1060 <fprintf@plt>
mov    %rbx,%rdi
mov    %rbp,%rsi
mov    $0x3c,%edx
mov    $0x3c,%ecx
mov    $0x3c,%r8d
mov    $0x13,%r9d
xor    %eax,%eax
call   1060 <fprintf@plt>
mov    %rbx,%rdi
mov    %rbp,%rsi
mov    $0x4b,%edx
mov    $0x4b,%ecx
mov    $0x4b,%r8d
mov    $0x14,%r9d
xor    %eax,%eax
call   1060 <fprintf@plt>
mov    %rbx,%rdi
mov    %rbp,%rsi
mov    $0x5a,%edx
mov    $0x5a,%ecx
mov    $0x5a,%r8d
mov    $0x15,%r9d
xor    %eax,%eax
call   1060 <fprintf@plt>
mov    %rbx,%rdi
mov    %rbp,%rsi
mov    $0x69,%edx
mov    $0x69,%ecx
mov    $0x69,%r8d
mov    $0x16,%r9d
xor    %eax,%eax
call   1060 <fprintf@plt>
mov    %rbx,%rdi
mov    %rbp,%rsi
mov    $0x78,%edx
mov    $0x78,%ecx
mov    $0x78,%r8d
mov    $0x17,%r9d
xor    %eax,%eax
call   1060 <fprintf@plt>
mov    %rbx,%rdi
mov    %rbp,%rsi
mov    $0x87,%edx
mov    $0x87,%ecx
mov    $0x87,%r8d
mov    $0x18,%r9d
xor    %eax,%eax
call   1060 <fprintf@plt>
mov    %rbx,%rdi
mov    %rbp,%rsi
mov    $0x96,%edx
mov    $0x96,%ecx
mov    $0x96,%r8d
mov    $0x19,%r9d
xor    %eax,%eax
call   1060 <fprintf@plt>
mov    %rbx,%rdi
mov    %rbp,%rsi
mov    $0xa5,%edx
mov    $0xa5,%ecx
mov    $0xa5,%r8d
mov    $0x1a,%r9d
xor    %eax,%eax
call   1060 <fprintf@plt>
mov    %rbx,%rdi
mov    %rbp,%rsi
mov    $0xb4,%edx
mov    $0xb4,%ecx
mov    $0xb4,%r8d
mov    $0x1b,%r9d
xor    %eax,%eax
call   1060 <fprintf@plt>
mov    %rbx,%rdi
mov    %rbp,%rsi
mov    $0xc3,%edx
mov    $0xc3,%ecx
mov    $0xc3,%r8d
mov    $0x1c,%r9d
xor    %eax,%eax
call   1060 <fprintf@plt>
mov    %rbx,%rdi
mov    %rbp,%rsi
mov    $0xd2,%edx
mov    $0xd2,%ecx
mov    $0xd2,%r8d
mov    $0x1d,%r9d
xor    %eax,%eax
call   1060 <fprintf@plt>
mov    %rbx,%rdi
mov    %rbp,%rsi
mov    $0xe1,%edx
mov    $0xe1,%ecx
mov    $0xe1,%r8d
mov    $0x1e,%r9d
xor    %eax,%eax
call   1060 <fprintf@plt>
mov    %rbx,%rdi
mov    %rbp,%rsi
mov    $0xf0,%edx
mov    $0xf0,%ecx
mov    $0xf0,%r8d
mov    $0x1f,%r9d
xor    %eax,%eax
call   1060 <fprintf@plt>
mov    %rbx,%rdi
call   1040 <fclose@plt>
lea    0xa87(%rip),%rdi
mov    $0x20,%esi
xor    %eax,%eax
call   1050 <printf@plt>
jmp    1609 <main+0x4a9>
lea    0xa9d(%rip),%rdi
call   1030 <puts@plt>
mov    $0xffffffff,%r14d
mov    %r14d,%eax
pop    %rbx
pop    %r14
pop    %rbp
ret

LLVM IR (-O0):
@__const.main.G = [4 x i32] [i32 0, i32 85, i32 170, i32 255]
@__const.main.RB = [2 x i32] [i32 0, i32 255]
@.str = [15 x i8] c"minimOSsys.gpl\00"
@.str.1 = [2 x i8] c"w\00"
@.str.2 = [22 x i8] c"*** CANNOT WRITE ***\0A\00"
@.str.3 = [49 x i8] c"GIMP Palette\0AName: minimOS-system\0AColumns: 16\0A#\0A\00"
@.str.4 = [19 x i8] c"%d %d %d\09Index %d\0A\00"
@.str.5 = [27 x i8] c"Created %d system colours\0A\00"
@.str.6 = [43 x i8] c"Added system greyscale (total %d entries)\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32*
%3 = alloca i32
%4 = alloca i32
%5 = alloca i32
%6 = alloca i32
%7 = alloca i32
%8 = alloca i32
%9 = alloca [4 x i32]
%10 = alloca [2 x i32]
store i32 0, i32* %1
store i32 0, i32* %8
%11 = bitcast [4 x i32]* %9 to i8*
%12 = bitcast [2 x i32]* %10 to i8*
%13 = call i32* @fopen(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
store i32* %13, i32** %2
%14 = load i32*, i32** %2
%15 = icmp eq i32* %14, null
br i1 %15, label %16, label %18
16: ; preds = %0
%17 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.2, i64 0, i64 0))
store i32 -1, i32* %1
br label %94
18: ; preds = %0
%19 = load i32*, i32** %2
%20 = call i32 (i32*, i8*, ...) @fprintf(i32* %19, i8* getelementptr inbounds ([49 x i8], [49 x i8]* @.str.3, i64 0, i64 0))
store i32 0, i32* %6
br label %21
21: ; preds = %69, %18
%22 = load i32, i32* %6
%23 = icmp slt i32 %22, 2
br i1 %23, label %24, label %72
24: ; preds = %21
store i32 0, i32* %3
br label %25
25: ; preds = %65, %24
%26 = load i32, i32* %3
%27 = icmp slt i32 %26, 2
br i1 %27, label %28, label %68
28: ; preds = %25
store i32 0, i32* %7
br label %29
29: ; preds = %61, %28
%30 = load i32, i32* %7
%31 = icmp slt i32 %30, 2
br i1 %31, label %32, label %64
32: ; preds = %29
store i32 0, i32* %5
br label %33
33: ; preds = %57, %32
%34 = load i32, i32* %5
%35 = icmp slt i32 %34, 2
br i1 %35, label %36, label %60
36: ; preds = %33
%37 = load i32, i32* %6
%38 = shl i32 %37, 1
%39 = load i32, i32* %7
%40 = or i32 %38, %39
store i32 %40, i32* %4
%41 = load i32*, i32** %2
%42 = load i32, i32* %3
%43 = sext i32 %42 to i64
%44 = getelementptr inbounds [2 x i32], [2 x i32]* %10, i64 0, i64 %43
%45 = load i32, i32* %44
%46 = load i32, i32* %4
%47 = sext i32 %46 to i64
%48 = getelementptr inbounds [4 x i32], [4 x i32]* %9, i64 0, i64 %47
%49 = load i32, i32* %48
%50 = load i32, i32* %5
%51 = sext i32 %50 to i64
%52 = getelementptr inbounds [2 x i32], [2 x i32]* %10, i64 0, i64 %51
%53 = load i32, i32* %52
%54 = load i32, i32* %8
%55 = add nsw i32 %54, 1
store i32 %55, i32* %8
%56 = call i32 (i32*, i8*, ...) @fprintf(i32* %41, i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.4, i64 0, i64 0), i32 %45, i32 %49, i32 %53, i32 %54)
br label %57
57: ; preds = %36
%58 = load i32, i32* %5
%59 = add nsw i32 %58, 1
store i32 %59, i32* %5
br label %33
60: ; preds = %33
br label %61
61: ; preds = %60
%62 = load i32, i32* %7
%63 = add nsw i32 %62, 1
store i32 %63, i32* %7
br label %29
64: ; preds = %29
br label %65
65: ; preds = %64
%66 = load i32, i32* %3
%67 = add nsw i32 %66, 1
store i32 %67, i32* %3
br label %25
68: ; preds = %25
br label %69
69: ; preds = %68
%70 = load i32, i32* %6
%71 = add nsw i32 %70, 1
store i32 %71, i32* %6
br label %21
72: ; preds = %21
%73 = load i32, i32* %8
%74 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.5, i64 0, i64 0), i32 %73)
store i32 15, i32* %4
br label %75
75: ; preds = %86, %72
%76 = load i32, i32* %4
%77 = icmp slt i32 %76, 255
br i1 %77, label %78, label %89
78: ; preds = %75
%79 = load i32*, i32** %2
%80 = load i32, i32* %4
%81 = load i32, i32* %4
%82 = load i32, i32* %4
%83 = load i32, i32* %8
%84 = add nsw i32 %83, 1
store i32 %84, i32* %8
%85 = call i32 (i32*, i8*, ...) @fprintf(i32* %79, i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.4, i64 0, i64 0), i32 %80, i32 %81, i32 %82, i32 %83)
br label %86
86: ; preds = %78
%87 = load i32, i32* %4
%88 = add nsw i32 %87, 15
store i32 %88, i32* %4
br label %75
89: ; preds = %75
%90 = load i32*, i32** %2
%91 = call i32 @fclose(i32* %90)
%92 = load i32, i32* %8
%93 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([43 x i8], [43 x i8]* @.str.6, i64 0, i64 0), i32 %92)
store i32 0, i32* %1
br label %94
94: ; preds = %89, %16
%95 = load i32, i32* %1
ret i32 %95
}

LLVM IR (-O2):
@.str = [15 x i8] c"minimOSsys.gpl\00"
@.str.1 = [2 x i8] c"w\00"
@.str.3 = [49 x i8] c"GIMP Palette\0AName: minimOS-system\0AColumns: 16\0A#\0A\00"
@.str.4 = [19 x i8] c"%d %d %d\09Index %d\0A\00"
@.str.5 = [27 x i8] c"Created %d system colours\0A\00"
@.str.6 = [43 x i8] c"Added system greyscale (total %d entries)\0A\00"
@str = [21 x i8] c"*** CANNOT WRITE ***\00"
define i32 @main() {
%1 = tail call i32* @fopen(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
%2 = icmp eq i32* %1, null
br i1 %2, label %3, label %5
3: ; preds = %0
%4 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([21 x i8], [21 x i8]* @str, i64 0, i64 0))
br label %42
5: ; preds = %0
%6 = tail call i64 @fwrite(i8* getelementptr inbounds ([49 x i8], [49 x i8]* @.str.3, i64 0, i64 0), i64 48, i64 1, i32* %1)
%7 = tail call i32 (i32*, i8*, ...) @fprintf(i32* %1, i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.4, i64 0, i64 0), i32 0, i32 0, i32 0, i32 0)
%8 = tail call i32 (i32*, i8*, ...) @fprintf(i32* %1, i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.4, i64 0, i64 0), i32 0, i32 0, i32 255, i32 1)
%9 = tail call i32 (i32*, i8*, ...) @fprintf(i32* %1, i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.4, i64 0, i64 0), i32 0, i32 85, i32 0, i32 2)
%10 = tail call i32 (i32*, i8*, ...) @fprintf(i32* %1, i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.4, i64 0, i64 0), i32 0, i32 85, i32 255, i32 3)
%11 = tail call i32 (i32*, i8*, ...) @fprintf(i32* %1, i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.4, i64 0, i64 0), i32 255, i32 0, i32 0, i32 4)
%12 = tail call i32 (i32*, i8*, ...) @fprintf(i32* %1, i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.4, i64 0, i64 0), i32 255, i32 0, i32 255, i32 5)
%13 = tail call i32 (i32*, i8*, ...) @fprintf(i32* %1, i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.4, i64 0, i64 0), i32 255, i32 85, i32 0, i32 6)
%14 = tail call i32 (i32*, i8*, ...) @fprintf(i32* %1, i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.4, i64 0, i64 0), i32 255, i32 85, i32 255, i32 7)
%15 = tail call i32 (i32*, i8*, ...) @fprintf(i32* %1, i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.4, i64 0, i64 0), i32 0, i32 170, i32 0, i32 8)
%16 = tail call i32 (i32*, i8*, ...) @fprintf(i32* %1, i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.4, i64 0, i64 0), i32 0, i32 170, i32 255, i32 9)
%17 = tail call i32 (i32*, i8*, ...) @fprintf(i32* %1, i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.4, i64 0, i64 0), i32 0, i32 255, i32 0, i32 10)
%18 = tail call i32 (i32*, i8*, ...) @fprintf(i32* %1, i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.4, i64 0, i64 0), i32 0, i32 255, i32 255, i32 11)
%19 = tail call i32 (i32*, i8*, ...) @fprintf(i32* %1, i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.4, i64 0, i64 0), i32 255, i32 170, i32 0, i32 12)
%20 = tail call i32 (i32*, i8*, ...) @fprintf(i32* %1, i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.4, i64 0, i64 0), i32 255, i32 170, i32 255, i32 13)
%21 = tail call i32 (i32*, i8*, ...) @fprintf(i32* %1, i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.4, i64 0, i64 0), i32 255, i32 255, i32 0, i32 14)
%22 = tail call i32 (i32*, i8*, ...) @fprintf(i32* %1, i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.4, i64 0, i64 0), i32 255, i32 255, i32 255, i32 15)
%23 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([27 x i8], [27 x i8]* @.str.5, i64 0, i64 0), i32 16)
%24 = tail call i32 (i32*, i8*, ...) @fprintf(i32* %1, i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.4, i64 0, i64 0), i32 15, i32 15, i32 15, i32 16)
%25 = tail call i32 (i32*, i8*, ...) @fprintf(i32* %1, i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.4, i64 0, i64 0), i32 30, i32 30, i32 30, i32 17)
%26 = tail call i32 (i32*, i8*, ...) @fprintf(i32* %1, i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.4, i64 0, i64 0), i32 45, i32 45, i32 45, i32 18)
%27 = tail call i32 (i32*, i8*, ...) @fprintf(i32* %1, i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.4, i64 0, i64 0), i32 60, i32 60, i32 60, i32 19)
%28 = tail call i32 (i32*, i8*, ...) @fprintf(i32* %1, i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.4, i64 0, i64 0), i32 75, i32 75, i32 75, i32 20)
%29 = tail call i32 (i32*, i8*, ...) @fprintf(i32* %1, i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.4, i64 0, i64 0), i32 90, i32 90, i32 90, i32 21)
%30 = tail call i32 (i32*, i8*, ...) @fprintf(i32* %1, i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.4, i64 0, i64 0), i32 105, i32 105, i32 105, i32 22)
%31 = tail call i32 (i32*, i8*, ...) @fprintf(i32* %1, i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.4, i64 0, i64 0), i32 120, i32 120, i32 120, i32 23)
%32 = tail call i32 (i32*, i8*, ...) @fprintf(i32* %1, i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.4, i64 0, i64 0), i32 135, i32 135, i32 135, i32 24)
%33 = tail call i32 (i32*, i8*, ...) @fprintf(i32* %1, i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.4, i64 0, i64 0), i32 150, i32 150, i32 150, i32 25)
%34 = tail call i32 (i32*, i8*, ...) @fprintf(i32* %1, i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.4, i64 0, i64 0), i32 165, i32 165, i32 165, i32 26)
%35 = tail call i32 (i32*, i8*, ...) @fprintf(i32* %1, i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.4, i64 0, i64 0), i32 180, i32 180, i32 180, i32 27)
%36 = tail call i32 (i32*, i8*, ...) @fprintf(i32* %1, i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.4, i64 0, i64 0), i32 195, i32 195, i32 195, i32 28)
%37 = tail call i32 (i32*, i8*, ...) @fprintf(i32* %1, i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.4, i64 0, i64 0), i32 210, i32 210, i32 210, i32 29)
%38 = tail call i32 (i32*, i8*, ...) @fprintf(i32* %1, i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.4, i64 0, i64 0), i32 225, i32 225, i32 225, i32 30)
%39 = tail call i32 (i32*, i8*, ...) @fprintf(i32* %1, i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.4, i64 0, i64 0), i32 240, i32 240, i32 240, i32 31)
%40 = tail call i32 @fclose(i32* %1)
%41 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([43 x i8], [43 x i8]* @.str.6, i64 0, i64 0), i32 32)
br label %42
42: ; preds = %5, %3
%43 = phi i32 [ -1, %3 ], [ 0, %5 ]
ret i32 %43
}