#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 */

/* Variables and functions */
int /*<<< orphan*/ cng_clear_screen();
int /*<<< orphan*/ cng_current_color_index(int);
int /*<<< orphan*/ cng_delay(int);
int /*<<< orphan*/ cng_line(int /*<<< orphan*/, int, int, int);
int /*<<< orphan*/ cng_palette(unsigned char **);
int /*<<< orphan*/ cng_refresh_window();
int /*<<< orphan*/ menu();
int palette_feu() {
  unsigned char feu[256][3];
  int i, r, v, b;
  cng_clear_screen();
  for (i = 0; i < 256; i++) {
    feu[i][0] = 0;
    feu[i][1] = 0;
    feu[i][2] = 0;
  }
  for (i = 0; i < 64; i++) {
    feu[i][0] = 255;
    feu[i][1] = 255;
    feu[i][2] = 255 - (i * 4);
  }
  for (i = 0; i < 64; i++) {
    feu[i + 64][0] = 255;
    feu[i + 64][1] = 255 - (i * 2);
    feu[i + 64][2] = 0;
  }
  for (i = 0; i < 64; i++) {
    feu[i + 128][0] = 255;
    feu[i + 128][1] = 128 - (i * 2);
    feu[i + 128][2] = 0;
  }
  for (i = 0; i < 64; i++) {
    feu[i + 192][0] = 255 - (i * 4);
    feu[i + 192][1] = 0;
    feu[i + 192][2] = 0;
  }
  cng_palette(feu);
  cng_current_color_index(0);
  cng_clear_screen();
  for (i = 0; i < 256; i++) {
    cng_current_color_index(i);
    cng_line(0, i, 640, i);
  }
  cng_refresh_window();
  cng_delay(2000);
  menu();
}


x86 assembly (clang, -O0):
<palette_feu>:
push   %rbp
mov    %rsp,%rbp
sub    $0x320,%rsp
mov    $0x0,%al
call   1080 <cng_clear_screen@plt>
movl   $0x0,-0x314(%rbp)
cmpl   $0x100,-0x314(%rbp)
jge    11fa <palette_feu+0x8a>
movslq -0x314(%rbp),%rcx
lea    -0x310(%rbp),%rax
imul   $0x3,%rcx,%rcx
add    %rcx,%rax
movb   $0x0,(%rax)
movslq -0x314(%rbp),%rcx
lea    -0x310(%rbp),%rax
imul   $0x3,%rcx,%rcx
add    %rcx,%rax
movb   $0x0,0x1(%rax)
movslq -0x314(%rbp),%rcx
lea    -0x310(%rbp),%rax
imul   $0x3,%rcx,%rcx
add    %rcx,%rax
movb   $0x0,0x2(%rax)
mov    -0x314(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x314(%rbp)
jmp    118c <palette_feu+0x1c>
movl   $0x0,-0x314(%rbp)
cmpl   $0x40,-0x314(%rbp)
jge    1280 <palette_feu+0x110>
movslq -0x314(%rbp),%rcx
lea    -0x310(%rbp),%rax
imul   $0x3,%rcx,%rcx
add    %rcx,%rax
movb   $0xff,(%rax)
movslq -0x314(%rbp),%rcx
lea    -0x310(%rbp),%rax
imul   $0x3,%rcx,%rcx
add    %rcx,%rax
movb   $0xff,0x1(%rax)
mov    -0x314(%rbp),%ecx
shl    $0x2,%ecx
mov    $0xff,%eax
sub    %ecx,%eax
mov    %al,%cl
movslq -0x314(%rbp),%rdx
lea    -0x310(%rbp),%rax
imul   $0x3,%rdx,%rdx
add    %rdx,%rax
mov    %cl,0x2(%rax)
mov    -0x314(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x314(%rbp)
jmp    1204 <palette_feu+0x94>
movl   $0x0,-0x314(%rbp)
cmpl   $0x40,-0x314(%rbp)
jge    1315 <palette_feu+0x1a5>
mov    -0x314(%rbp),%eax
add    $0x40,%eax
movslq %eax,%rcx
lea    -0x310(%rbp),%rax
imul   $0x3,%rcx,%rcx
add    %rcx,%rax
movb   $0xff,(%rax)
mov    -0x314(%rbp),%ecx
shl    $0x1,%ecx
mov    $0xff,%eax
sub    %ecx,%eax
mov    %al,%cl
mov    -0x314(%rbp),%eax
add    $0x40,%eax
movslq %eax,%rdx
lea    -0x310(%rbp),%rax
imul   $0x3,%rdx,%rdx
add    %rdx,%rax
mov    %cl,0x1(%rax)
mov    -0x314(%rbp),%eax
add    $0x40,%eax
movslq %eax,%rcx
lea    -0x310(%rbp),%rax
imul   $0x3,%rcx,%rcx
add    %rcx,%rax
movb   $0x0,0x2(%rax)
mov    -0x314(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x314(%rbp)
jmp    128a <palette_feu+0x11a>
movl   $0x0,-0x314(%rbp)
cmpl   $0x40,-0x314(%rbp)
jge    13b0 <palette_feu+0x240>
mov    -0x314(%rbp),%eax
add    $0x80,%eax
movslq %eax,%rcx
lea    -0x310(%rbp),%rax
imul   $0x3,%rcx,%rcx
add    %rcx,%rax
movb   $0xff,(%rax)
mov    -0x314(%rbp),%ecx
shl    $0x1,%ecx
mov    $0x80,%eax
sub    %ecx,%eax
mov    %al,%cl
mov    -0x314(%rbp),%eax
add    $0x80,%eax
movslq %eax,%rdx
lea    -0x310(%rbp),%rax
imul   $0x3,%rdx,%rdx
add    %rdx,%rax
mov    %cl,0x1(%rax)
mov    -0x314(%rbp),%eax
add    $0x80,%eax
movslq %eax,%rcx
lea    -0x310(%rbp),%rax
imul   $0x3,%rcx,%rcx
add    %rcx,%rax
movb   $0x0,0x2(%rax)
mov    -0x314(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x314(%rbp)
jmp    131f <palette_feu+0x1af>
movl   $0x0,-0x314(%rbp)
cmpl   $0x40,-0x314(%rbp)
jge    144b <palette_feu+0x2db>
mov    -0x314(%rbp),%ecx
shl    $0x2,%ecx
mov    $0xff,%eax
sub    %ecx,%eax
mov    %al,%cl
mov    -0x314(%rbp),%eax
add    $0xc0,%eax
movslq %eax,%rdx
lea    -0x310(%rbp),%rax
imul   $0x3,%rdx,%rdx
add    %rdx,%rax
mov    %cl,(%rax)
mov    -0x314(%rbp),%eax
add    $0xc0,%eax
movslq %eax,%rcx
lea    -0x310(%rbp),%rax
imul   $0x3,%rcx,%rcx
add    %rcx,%rax
movb   $0x0,0x1(%rax)
mov    -0x314(%rbp),%eax
add    $0xc0,%eax
movslq %eax,%rcx
lea    -0x310(%rbp),%rax
imul   $0x3,%rcx,%rcx
add    %rcx,%rax
movb   $0x0,0x2(%rax)
mov    -0x314(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x314(%rbp)
jmp    13ba <palette_feu+0x24a>
lea    -0x310(%rbp),%rdi
call   1030 <cng_palette@plt>
xor    %edi,%edi
call   1060 <cng_current_color_index@plt>
mov    $0x0,%al
call   1080 <cng_clear_screen@plt>
movl   $0x0,-0x314(%rbp)
cmpl   $0x100,-0x314(%rbp)
jge    14b6 <palette_feu+0x346>
mov    -0x314(%rbp),%edi
call   1060 <cng_current_color_index@plt>
mov    -0x314(%rbp),%esi
mov    -0x314(%rbp),%ecx
xor    %edi,%edi
mov    $0x280,%edx
call   1050 <cng_line@plt>
mov    -0x314(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x314(%rbp)
jmp    146f <palette_feu+0x2ff>
mov    $0x0,%al
call   1070 <cng_refresh_window@plt>
mov    $0x7d0,%edi
call   1090 <cng_delay@plt>
mov    $0x0,%al
call   1040 <menu@plt>
mov    -0x4(%rbp),%eax
add    $0x320,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<palette_feu>:
push   %rbx
sub    $0x300,%rsp
xor    %eax,%eax
call   1090 <cng_clear_screen@plt>
mov    %rsp,%rdi
mov    $0x300,%edx
xor    %esi,%esi
call   1060 <memset@plt>
mov    $0x5,%eax
mov    $0xfb,%cl
cs nopw 0x0(%rax,%rax,1)
nop
movw   $0xffff,-0x5(%rsp,%rax,1)
lea    0x4(%rcx),%edx
mov    %dl,-0x3(%rsp,%rax,1)
movw   $0xffff,-0x2(%rsp,%rax,1)
mov    %cl,(%rsp,%rax,1)
add    $0x6,%rax
add    $0xf8,%cl
cmp    $0xc5,%rax
jne    11b0 <palette_feu+0x30>
mov    $0xfd,%al
xor    %ecx,%ecx
nopl   0x0(%rax,%rax,1)
movb   $0xff,0xc0(%rsp,%rcx,1)
ff
lea    0x2(%rax),%edx
mov    %dl,0xc1(%rsp,%rcx,1)
movw   $0xff00,0xc2(%rsp,%rcx,1)
mov    %al,0xc4(%rsp,%rcx,1)
movb   $0x0,0xc5(%rsp,%rcx,1)
add    $0x6,%rcx
add    $0xfc,%al
cmp    $0xc0,%rcx
jne    11e0 <palette_feu+0x60>
lea    0x185(%rsp),%rax
mov    $0x80,%ecx
nopw   0x0(%rax,%rax,1)
movb   $0xff,-0x5(%rax)
mov    %cl,-0x4(%rax)
movw   $0xff00,-0x3(%rax)
lea    -0x2(%rcx),%edx
mov    %dl,-0x1(%rax)
movb   $0x0,(%rax)
add    $0x6,%rax
add    $0xfffffffffffffffc,%rcx
jne    1230 <palette_feu+0xb0>
mov    $0xfb,%al
xor    %ecx,%ecx
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
lea    0x4(%rax),%edx
mov    %dl,0x240(%rsp,%rcx,1)
movw   $0x0,0x241(%rsp,%rcx,1)
mov    %al,0x243(%rsp,%rcx,1)
movw   $0x0,0x244(%rsp,%rcx,1)
add    $0x6,%rcx
add    $0xf8,%al
cmp    $0xc0,%rcx
jne    1260 <palette_feu+0xe0>
mov    %rsp,%rdi
call   1030 <cng_palette@plt>
xor    %ebx,%ebx
xor    %edi,%edi
call   1070 <cng_current_color_index@plt>
xor    %eax,%eax
call   1090 <cng_clear_screen@plt>
nopl   0x0(%rax)
mov    %ebx,%edi
call   1070 <cng_current_color_index@plt>
xor    %edi,%edi
mov    %ebx,%esi
mov    $0x280,%edx
mov    %ebx,%ecx
call   1050 <cng_line@plt>
add    $0x1,%ebx
cmp    $0x100,%ebx
jne    12b0 <palette_feu+0x130>
xor    %eax,%eax
call   1080 <cng_refresh_window@plt>
mov    $0x7d0,%edi
call   10a0 <cng_delay@plt>
xor    %eax,%eax
call   1040 <menu@plt>
add    $0x300,%rsp
pop    %rbx
ret

LLVM IR (-O0):
define i32 @palette_feu() {
%1 = alloca i32
%2 = alloca [256 x [3 x i8]]
%3 = alloca i32
%4 = alloca i32
%5 = alloca i32
%6 = alloca i32
%7 = call i32 (...) @cng_clear_screen()
store i32 0, i32* %3
br label %8
8: ; preds = %24, %0
%9 = load i32, i32* %3
%10 = icmp slt i32 %9, 256
br i1 %10, label %11, label %27
11: ; preds = %8
%12 = load i32, i32* %3
%13 = sext i32 %12 to i64
%14 = getelementptr inbounds [256 x [3 x i8]], [256 x [3 x i8]]* %2, i64 0, i64 %13
%15 = getelementptr inbounds [3 x i8], [3 x i8]* %14, i64 0, i64 0
store i8 0, i8* %15
%16 = load i32, i32* %3
%17 = sext i32 %16 to i64
%18 = getelementptr inbounds [256 x [3 x i8]], [256 x [3 x i8]]* %2, i64 0, i64 %17
%19 = getelementptr inbounds [3 x i8], [3 x i8]* %18, i64 0, i64 1
store i8 0, i8* %19
%20 = load i32, i32* %3
%21 = sext i32 %20 to i64
%22 = getelementptr inbounds [256 x [3 x i8]], [256 x [3 x i8]]* %2, i64 0, i64 %21
%23 = getelementptr inbounds [3 x i8], [3 x i8]* %22, i64 0, i64 2
store i8 0, i8* %23
br label %24
24: ; preds = %11
%25 = load i32, i32* %3
%26 = add nsw i32 %25, 1
store i32 %26, i32* %3
br label %8
27: ; preds = %8
store i32 0, i32* %3
br label %28
28: ; preds = %48, %27
%29 = load i32, i32* %3
%30 = icmp slt i32 %29, 64
br i1 %30, label %31, label %51
31: ; preds = %28
%32 = load i32, i32* %3
%33 = sext i32 %32 to i64
%34 = getelementptr inbounds [256 x [3 x i8]], [256 x [3 x i8]]* %2, i64 0, i64 %33
%35 = getelementptr inbounds [3 x i8], [3 x i8]* %34, i64 0, i64 0
store i8 -1, i8* %35
%36 = load i32, i32* %3
%37 = sext i32 %36 to i64
%38 = getelementptr inbounds [256 x [3 x i8]], [256 x [3 x i8]]* %2, i64 0, i64 %37
%39 = getelementptr inbounds [3 x i8], [3 x i8]* %38, i64 0, i64 1
store i8 -1, i8* %39
%40 = load i32, i32* %3
%41 = mul nsw i32 %40, 4
%42 = sub nsw i32 255, %41
%43 = trunc i32 %42 to i8
%44 = load i32, i32* %3
%45 = sext i32 %44 to i64
%46 = getelementptr inbounds [256 x [3 x i8]], [256 x [3 x i8]]* %2, i64 0, i64 %45
%47 = getelementptr inbounds [3 x i8], [3 x i8]* %46, i64 0, i64 2
store i8 %43, i8* %47
br label %48
48: ; preds = %31
%49 = load i32, i32* %3
%50 = add nsw i32 %49, 1
store i32 %50, i32* %3
br label %28
51: ; preds = %28
store i32 0, i32* %3
br label %52
52: ; preds = %75, %51
%53 = load i32, i32* %3
%54 = icmp slt i32 %53, 64
br i1 %54, label %55, label %78
55: ; preds = %52
%56 = load i32, i32* %3
%57 = add nsw i32 %56, 64
%58 = sext i32 %57 to i64
%59 = getelementptr inbounds [256 x [3 x i8]], [256 x [3 x i8]]* %2, i64 0, i64 %58
%60 = getelementptr inbounds [3 x i8], [3 x i8]* %59, i64 0, i64 0
store i8 -1, i8* %60
%61 = load i32, i32* %3
%62 = mul nsw i32 %61, 2
%63 = sub nsw i32 255, %62
%64 = trunc i32 %63 to i8
%65 = load i32, i32* %3
%66 = add nsw i32 %65, 64
%67 = sext i32 %66 to i64
%68 = getelementptr inbounds [256 x [3 x i8]], [256 x [3 x i8]]* %2, i64 0, i64 %67
%69 = getelementptr inbounds [3 x i8], [3 x i8]* %68, i64 0, i64 1
store i8 %64, i8* %69
%70 = load i32, i32* %3
%71 = add nsw i32 %70, 64
%72 = sext i32 %71 to i64
%73 = getelementptr inbounds [256 x [3 x i8]], [256 x [3 x i8]]* %2, i64 0, i64 %72
%74 = getelementptr inbounds [3 x i8], [3 x i8]* %73, i64 0, i64 2
store i8 0, i8* %74
br label %75
75: ; preds = %55
%76 = load i32, i32* %3
%77 = add nsw i32 %76, 1
store i32 %77, i32* %3
br label %52
78: ; preds = %52
store i32 0, i32* %3
br label %79
79: ; preds = %102, %78
%80 = load i32, i32* %3
%81 = icmp slt i32 %80, 64
br i1 %81, label %82, label %105
82: ; preds = %79
%83 = load i32, i32* %3
%84 = add nsw i32 %83, 128
%85 = sext i32 %84 to i64
%86 = getelementptr inbounds [256 x [3 x i8]], [256 x [3 x i8]]* %2, i64 0, i64 %85
%87 = getelementptr inbounds [3 x i8], [3 x i8]* %86, i64 0, i64 0
store i8 -1, i8* %87
%88 = load i32, i32* %3
%89 = mul nsw i32 %88, 2
%90 = sub nsw i32 128, %89
%91 = trunc i32 %90 to i8
%92 = load i32, i32* %3
%93 = add nsw i32 %92, 128
%94 = sext i32 %93 to i64
%95 = getelementptr inbounds [256 x [3 x i8]], [256 x [3 x i8]]* %2, i64 0, i64 %94
%96 = getelementptr inbounds [3 x i8], [3 x i8]* %95, i64 0, i64 1
store i8 %91, i8* %96
%97 = load i32, i32* %3
%98 = add nsw i32 %97, 128
%99 = sext i32 %98 to i64
%100 = getelementptr inbounds [256 x [3 x i8]], [256 x [3 x i8]]* %2, i64 0, i64 %99
%101 = getelementptr inbounds [3 x i8], [3 x i8]* %100, i64 0, i64 2
store i8 0, i8* %101
br label %102
102: ; preds = %82
%103 = load i32, i32* %3
%104 = add nsw i32 %103, 1
store i32 %104, i32* %3
br label %79
105: ; preds = %79
store i32 0, i32* %3
br label %106
106: ; preds = %129, %105
%107 = load i32, i32* %3
%108 = icmp slt i32 %107, 64
br i1 %108, label %109, label %132
109: ; preds = %106
%110 = load i32, i32* %3
%111 = mul nsw i32 %110, 4
%112 = sub nsw i32 255, %111
%113 = trunc i32 %112 to i8
%114 = load i32, i32* %3
%115 = add nsw i32 %114, 192
%116 = sext i32 %115 to i64
%117 = getelementptr inbounds [256 x [3 x i8]], [256 x [3 x i8]]* %2, i64 0, i64 %116
%118 = getelementptr inbounds [3 x i8], [3 x i8]* %117, i64 0, i64 0
store i8 %113, i8* %118
%119 = load i32, i32* %3
%120 = add nsw i32 %119, 192
%121 = sext i32 %120 to i64
%122 = getelementptr inbounds [256 x [3 x i8]], [256 x [3 x i8]]* %2, i64 0, i64 %121
%123 = getelementptr inbounds [3 x i8], [3 x i8]* %122, i64 0, i64 1
store i8 0, i8* %123
%124 = load i32, i32* %3
%125 = add nsw i32 %124, 192
%126 = sext i32 %125 to i64
%127 = getelementptr inbounds [256 x [3 x i8]], [256 x [3 x i8]]* %2, i64 0, i64 %126
%128 = getelementptr inbounds [3 x i8], [3 x i8]* %127, i64 0, i64 2
store i8 0, i8* %128
br label %129
129: ; preds = %109
%130 = load i32, i32* %3
%131 = add nsw i32 %130, 1
store i32 %131, i32* %3
br label %106
132: ; preds = %106
%133 = getelementptr inbounds [256 x [3 x i8]], [256 x [3 x i8]]* %2, i64 0, i64 0
%134 = bitcast [3 x i8]* %133 to i8**
%135 = call i32 @cng_palette(i8** %134)
%136 = call i32 @cng_current_color_index(i32 0)
%137 = call i32 (...) @cng_clear_screen()
store i32 0, i32* %3
br label %138
138: ; preds = %147, %132
%139 = load i32, i32* %3
%140 = icmp slt i32 %139, 256
br i1 %140, label %141, label %150
141: ; preds = %138
%142 = load i32, i32* %3
%143 = call i32 @cng_current_color_index(i32 %142)
%144 = load i32, i32* %3
%145 = load i32, i32* %3
%146 = call i32 @cng_line(i32 0, i32 %144, i32 640, i32 %145)
br label %147
147: ; preds = %141
%148 = load i32, i32* %3
%149 = add nsw i32 %148, 1
store i32 %149, i32* %3
br label %138
150: ; preds = %138
%151 = call i32 (...) @cng_refresh_window()
%152 = call i32 @cng_delay(i32 2000)
%153 = call i32 (...) @menu()
%154 = load i32, i32* %1
ret i32 %154
}

LLVM IR (-O2):
define i32 @palette_feu() {
%1 = alloca [256 x [3 x i8]]
%2 = getelementptr inbounds [256 x [3 x i8]], [256 x [3 x i8]]* %1, i64 0, i64 0, i64 0
%3 = getelementptr inbounds [256 x [3 x i8]], [256 x [3 x i8]]* %1, i64 0, i64 0, i64 0
%4 = tail call i32 (...) @cng_clear_screen()
br label %5
5: ; preds = %5, %0
%6 = phi i64 [ 0, %0 ], [ %21, %5 ]
%7 = getelementptr inbounds [256 x [3 x i8]], [256 x [3 x i8]]* %1, i64 0, i64 %6, i64 0
store i8 -1, i8* %7
%8 = getelementptr inbounds [256 x [3 x i8]], [256 x [3 x i8]]* %1, i64 0, i64 %6, i64 1
store i8 -1, i8* %8
%9 = trunc i64 %6 to i8
%10 = mul i8 %9, -4
%11 = add i8 %10, -1
%12 = getelementptr inbounds [256 x [3 x i8]], [256 x [3 x i8]]* %1, i64 0, i64 %6, i64 2
store i8 %11, i8* %12
%13 = or i64 %6, 1
%14 = getelementptr inbounds [256 x [3 x i8]], [256 x [3 x i8]]* %1, i64 0, i64 %13, i64 0
store i8 -1, i8* %14
%15 = getelementptr inbounds [256 x [3 x i8]], [256 x [3 x i8]]* %1, i64 0, i64 %13, i64 1
store i8 -1, i8* %15
%16 = trunc i64 %6 to i8
%17 = xor i8 %16, -1
%18 = shl i8 %17, 2
%19 = add nsw i8 %18, -1
%20 = getelementptr inbounds [256 x [3 x i8]], [256 x [3 x i8]]* %1, i64 0, i64 %13, i64 2
store i8 %19, i8* %20
%21 = add nuw nsw i64 %6, 2
%22 = icmp eq i64 %21, 64
br i1 %22, label %23, label %5
23: ; preds = %5, %23
%24 = phi i64 [ %40, %23 ], [ 0, %5 ]
%25 = add nuw nsw i64 %24, 64
%26 = getelementptr inbounds [256 x [3 x i8]], [256 x [3 x i8]]* %1, i64 0, i64 %25, i64 0
store i8 -1, i8* %26
%27 = trunc i64 %24 to i8
%28 = mul nsw i8 %27, -2
%29 = add nsw i8 %28, -1
%30 = getelementptr inbounds [256 x [3 x i8]], [256 x [3 x i8]]* %1, i64 0, i64 %25, i64 1
store i8 %29, i8* %30
%31 = getelementptr inbounds [256 x [3 x i8]], [256 x [3 x i8]]* %1, i64 0, i64 %25, i64 2
store i8 0, i8* %31
%32 = add nuw nsw i64 %24, 65
%33 = getelementptr inbounds [256 x [3 x i8]], [256 x [3 x i8]]* %1, i64 0, i64 %32, i64 0
store i8 -1, i8* %33
%34 = trunc i64 %24 to i8
%35 = xor i8 %34, -1
%36 = shl i8 %35, 1
%37 = add nsw i8 %36, -1
%38 = getelementptr inbounds [256 x [3 x i8]], [256 x [3 x i8]]* %1, i64 0, i64 %32, i64 1
store i8 %37, i8* %38
%39 = getelementptr inbounds [256 x [3 x i8]], [256 x [3 x i8]]* %1, i64 0, i64 %32, i64 2
store i8 0, i8* %39
%40 = add nuw nsw i64 %24, 2
%41 = icmp eq i64 %40, 64
br i1 %41, label %42, label %23
42: ; preds = %23, %42
%43 = phi i64 [ %59, %42 ], [ 0, %23 ]
%44 = add nuw nsw i64 %43, 128
%45 = getelementptr inbounds [256 x [3 x i8]], [256 x [3 x i8]]* %1, i64 0, i64 %44, i64 0
store i8 -1, i8* %45
%46 = trunc i64 %43 to i8
%47 = mul nsw i8 %46, -2
%48 = xor i8 %47, -128
%49 = getelementptr inbounds [256 x [3 x i8]], [256 x [3 x i8]]* %1, i64 0, i64 %44, i64 1
store i8 %48, i8* %49
%50 = getelementptr inbounds [256 x [3 x i8]], [256 x [3 x i8]]* %1, i64 0, i64 %44, i64 2
store i8 0, i8* %50
%51 = add nuw nsw i64 %43, 129
%52 = getelementptr inbounds [256 x [3 x i8]], [256 x [3 x i8]]* %1, i64 0, i64 %51, i64 0
store i8 -1, i8* %52
%53 = trunc i64 %43 to i8
%54 = xor i8 %53, -1
%55 = shl i8 %54, 1
%56 = xor i8 %55, -128
%57 = getelementptr inbounds [256 x [3 x i8]], [256 x [3 x i8]]* %1, i64 0, i64 %51, i64 1
store i8 %56, i8* %57
%58 = getelementptr inbounds [256 x [3 x i8]], [256 x [3 x i8]]* %1, i64 0, i64 %51, i64 2
store i8 0, i8* %58
%59 = add nuw nsw i64 %43, 2
%60 = icmp eq i64 %59, 64
br i1 %60, label %61, label %42
61: ; preds = %42, %61
%62 = phi i64 [ %78, %61 ], [ 0, %42 ]
%63 = trunc i64 %62 to i8
%64 = mul i8 %63, -4
%65 = add i8 %64, -1
%66 = add nuw nsw i64 %62, 192
%67 = getelementptr inbounds [256 x [3 x i8]], [256 x [3 x i8]]* %1, i64 0, i64 %66, i64 0
store i8 %65, i8* %67
%68 = getelementptr inbounds [256 x [3 x i8]], [256 x [3 x i8]]* %1, i64 0, i64 %66, i64 1
store i8 0, i8* %68
%69 = getelementptr inbounds [256 x [3 x i8]], [256 x [3 x i8]]* %1, i64 0, i64 %66, i64 2
store i8 0, i8* %69
%70 = trunc i64 %62 to i8
%71 = xor i8 %70, -1
%72 = shl i8 %71, 2
%73 = add nsw i8 %72, -1
%74 = add nuw nsw i64 %62, 193
%75 = getelementptr inbounds [256 x [3 x i8]], [256 x [3 x i8]]* %1, i64 0, i64 %74, i64 0
store i8 %73, i8* %75
%76 = getelementptr inbounds [256 x [3 x i8]], [256 x [3 x i8]]* %1, i64 0, i64 %74, i64 1
store i8 0, i8* %76
%77 = getelementptr inbounds [256 x [3 x i8]], [256 x [3 x i8]]* %1, i64 0, i64 %74, i64 2
store i8 0, i8* %77
%78 = add nuw nsw i64 %62, 2
%79 = icmp eq i64 %78, 64
br i1 %79, label %80, label %61
80: ; preds = %61
%81 = bitcast [256 x [3 x i8]]* %1 to i8**
%82 = call i32 @cng_palette(i8** %81)
%83 = call i32 @cng_current_color_index(i32 0)
%84 = call i32 (...) @cng_clear_screen()
br label %85
85: ; preds = %80, %85
%86 = phi i32 [ 0, %80 ], [ %89, %85 ]
%87 = call i32 @cng_current_color_index(i32 %86)
%88 = call i32 @cng_line(i32 0, i32 %86, i32 640, i32 %86)
%89 = add nuw nsw i32 %86, 1
%90 = icmp eq i32 %89, 256
br i1 %90, label %91, label %85
91: ; preds = %85
%92 = call i32 (...) @cng_refresh_window()
%93 = call i32 @cng_delay(i32 2000)
%94 = call i32 (...) @menu()
ret i32 undef
}