#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*/ cfag12864b_clear();
int /*<<< orphan*/ cfag12864b_fill();
int /*<<< orphan*/ cfag12864b_format(unsigned char *);
int /*<<< orphan*/ cfag12864b_not(unsigned short, unsigned short);
int /*<<< orphan*/ cfag12864b_set(unsigned short, unsigned short);
int /*<<< orphan*/ cfag12864b_unset(unsigned short, unsigned short);
int /*<<< orphan*/ memset(unsigned char *, int /*<<< orphan*/, int);
int /*<<< orphan*/ printf(char *, ...);
int /*<<< orphan*/ puts(char *);
void example(unsigned char n) {
  unsigned short i, j;
  unsigned char matrix[(128) * (64)];
  if (n > 6) {
    return;
  }
  printf("Example %i/%i - ", n, 6);
  switch (n) {
  case 1:
    printf("Draw points setting bits");
    cfag12864b_clear();
    for (i = 0; i < (128); i += 2)
      for (j = 0; j < (64); j += 2) {
        cfag12864b_set(i, j);
      }
    break;
  case 2:
    printf("Clear the LCD");
    cfag12864b_clear();
    break;
  case 3:
    printf("Draw rows formatting a [128*64] matrix");
    memset(matrix, 0, (128) * (64));
    for (i = 0; i < (128); i++)
      for (j = 0; j < (64); j += 2) {
        matrix[j * (128) + i] = 1;
      }
    cfag12864b_format(matrix);
    break;
  case 4:
    printf("Fill the lcd");
    cfag12864b_fill();
    break;
  case 5:
    printf("Draw columns unsetting bits");
    for (i = 0; i < (128); i += 2)
      for (j = 0; j < (64); j++) {
        cfag12864b_unset(i, j);
      }
    break;
  case 6:
    printf("Do negative not-ing all bits");
    for (i = 0; i < (128); i++)
      for (j = 0; j < (64); j++) {
        cfag12864b_not(i, j);
      }
    break;
  }
  puts(" - [Press Enter]");
}


x86 assembly (clang, -O0):
<example>:
push   %rbp
mov    %rsp,%rbp
sub    $0x2020,%rsp
mov    %dil,%al
mov    %al,-0x1(%rbp)
movzbl -0x1(%rbp),%eax
cmp    $0x6,%eax
jle    11b3 <example+0x23>
jmp    142b <example+0x29b>
movzbl -0x1(%rbp),%esi
lea    0xe5a(%rip),%rdi
xor    %eax,%eax
mov    $0x6,%edx
call   1050 <printf@plt>
movzbl -0x1(%rbp),%eax
add    $0xffffffff,%eax
mov    %eax,%ecx
mov    %rcx,-0x2018(%rbp)
sub    $0x5,%eax
ja     141f <example+0x28f>
mov    -0x2018(%rbp),%rax
lea    0xe0f(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
jmp    *%rax
lea    0xe28(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
mov    $0x0,%al
call   1090 <cfag12864b_clear@plt>
movw   $0x0,-0x4(%rbp)
movzwl -0x4(%rbp),%eax
cmp    $0x80,%eax
jge    126c <example+0xdc>
movw   $0x0,-0x6(%rbp)
movzwl -0x6(%rbp),%eax
cmp    $0x40,%eax
jge    1257 <example+0xc7>
mov    -0x4(%rbp),%ax
movzwl %ax,%edi
movzwl -0x6(%rbp),%esi
call   10b0 <cfag12864b_set@plt>
movzwl -0x6(%rbp),%eax
add    $0x2,%eax
mov    %ax,-0x6(%rbp)
jmp    122a <example+0x9a>
jmp    125c <example+0xcc>
movzwl -0x4(%rbp),%eax
add    $0x2,%eax
mov    %ax,-0x4(%rbp)
jmp    1215 <example+0x85>
jmp    141f <example+0x28f>
lea    0xdca(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
mov    $0x0,%al
call   1090 <cfag12864b_clear@plt>
jmp    141f <example+0x28f>
lea    0xdbe(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
lea    -0x2010(%rbp),%rdi
xor    %esi,%esi
mov    $0x2000,%edx
call   1060 <memset@plt>
movw   $0x0,-0x4(%rbp)
movzwl -0x4(%rbp),%eax
cmp    $0x80,%eax
jge    1311 <example+0x181>
movw   $0x0,-0x6(%rbp)
movzwl -0x6(%rbp),%eax
cmp    $0x40,%eax
jge    12fb <example+0x16b>
movzwl -0x6(%rbp),%eax
shl    $0x7,%eax
movzwl -0x4(%rbp),%ecx
add    %ecx,%eax
cltq
movb   $0x1,-0x2010(%rbp,%rax,1)
01
movzwl -0x6(%rbp),%eax
add    $0x2,%eax
mov    %ax,-0x6(%rbp)
jmp    12c7 <example+0x137>
jmp    1300 <example+0x170>
mov    -0x4(%rbp),%ax
add    $0x1,%ax
mov    %ax,-0x4(%rbp)
jmp    12b2 <example+0x122>
lea    -0x2010(%rbp),%rdi
call   1080 <cfag12864b_format@plt>
jmp    141f <example+0x28f>
lea    0xd4e(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
mov    $0x0,%al
call   10a0 <cfag12864b_fill@plt>
jmp    141f <example+0x28f>
lea    0xd41(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
movw   $0x0,-0x4(%rbp)
movzwl -0x4(%rbp),%eax
cmp    $0x80,%eax
jge    13a8 <example+0x218>
movw   $0x0,-0x6(%rbp)
movzwl -0x6(%rbp),%eax
cmp    $0x40,%eax
jge    1393 <example+0x203>
mov    -0x4(%rbp),%ax
movzwl %ax,%edi
movzwl -0x6(%rbp),%esi
call   1030 <cfag12864b_unset@plt>
mov    -0x6(%rbp),%ax
add    $0x1,%ax
mov    %ax,-0x6(%rbp)
jmp    1365 <example+0x1d5>
jmp    1398 <example+0x208>
movzwl -0x4(%rbp),%eax
add    $0x2,%eax
mov    %ax,-0x4(%rbp)
jmp    1350 <example+0x1c0>
jmp    141f <example+0x28f>
lea    0xcec(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
movw   $0x0,-0x4(%rbp)
movzwl -0x4(%rbp),%eax
cmp    $0x80,%eax
jge    141a <example+0x28a>
movw   $0x0,-0x6(%rbp)
movzwl -0x6(%rbp),%eax
cmp    $0x40,%eax
jge    1404 <example+0x274>
mov    -0x4(%rbp),%ax
movzwl %ax,%edi
movzwl -0x6(%rbp),%esi
call   1070 <cfag12864b_not@plt>
mov    -0x6(%rbp),%ax
add    $0x1,%ax
mov    %ax,-0x6(%rbp)
jmp    13d6 <example+0x246>
jmp    1409 <example+0x279>
mov    -0x4(%rbp),%ax
add    $0x1,%ax
mov    %ax,-0x4(%rbp)
jmp    13c1 <example+0x231>
jmp    141f <example+0x28f>
lea    0xc97(%rip),%rdi
call   1040 <puts@plt>
add    $0x2020,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<example>:
push   %rbp
push   %rbx
sub    $0x2008,%rsp
mov    %edi,%ebx
cmp    $0x6,%bl
ja     14ef <example+0x35f>
movzbl %bl,%esi
lea    0xe6a(%rip),%rdi
mov    $0x6,%edx
xor    %eax,%eax
call   1050 <printf@plt>
add    $0xff,%bl
cmp    $0x5,%bl
ja     14e3 <example+0x353>
movzbl %bl,%eax
lea    0xe30(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
jmp    *%rax
lea    0xe49(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
xor    %eax,%eax
call   1090 <cfag12864b_clear@plt>
mov    $0xfffe,%bp
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
add    $0x2,%ebp
movzwl %bp,%ebx
mov    %ebx,%edi
xor    %esi,%esi
call   10b0 <cfag12864b_set@plt>
mov    %ebx,%edi
mov    $0x2,%esi
call   10b0 <cfag12864b_set@plt>
mov    %ebx,%edi
mov    $0x4,%esi
call   10b0 <cfag12864b_set@plt>
mov    %ebx,%edi
mov    $0x6,%esi
call   10b0 <cfag12864b_set@plt>
mov    %ebx,%edi
mov    $0x8,%esi
call   10b0 <cfag12864b_set@plt>
mov    %ebx,%edi
mov    $0xa,%esi
call   10b0 <cfag12864b_set@plt>
mov    %ebx,%edi
mov    $0xc,%esi
call   10b0 <cfag12864b_set@plt>
mov    %ebx,%edi
mov    $0xe,%esi
call   10b0 <cfag12864b_set@plt>
mov    %ebx,%edi
mov    $0x10,%esi
call   10b0 <cfag12864b_set@plt>
mov    %ebx,%edi
mov    $0x12,%esi
call   10b0 <cfag12864b_set@plt>
mov    %ebx,%edi
mov    $0x14,%esi
call   10b0 <cfag12864b_set@plt>
mov    %ebx,%edi
mov    $0x16,%esi
call   10b0 <cfag12864b_set@plt>
mov    %ebx,%edi
mov    $0x18,%esi
call   10b0 <cfag12864b_set@plt>
mov    %ebx,%edi
mov    $0x1a,%esi
call   10b0 <cfag12864b_set@plt>
mov    %ebx,%edi
mov    $0x1c,%esi
call   10b0 <cfag12864b_set@plt>
mov    %ebx,%edi
mov    $0x1e,%esi
call   10b0 <cfag12864b_set@plt>
mov    %ebx,%edi
mov    $0x20,%esi
call   10b0 <cfag12864b_set@plt>
mov    %ebx,%edi
mov    $0x22,%esi
call   10b0 <cfag12864b_set@plt>
mov    %ebx,%edi
mov    $0x24,%esi
call   10b0 <cfag12864b_set@plt>
mov    %ebx,%edi
mov    $0x26,%esi
call   10b0 <cfag12864b_set@plt>
mov    %ebx,%edi
mov    $0x28,%esi
call   10b0 <cfag12864b_set@plt>
mov    %ebx,%edi
mov    $0x2a,%esi
call   10b0 <cfag12864b_set@plt>
mov    %ebx,%edi
mov    $0x2c,%esi
call   10b0 <cfag12864b_set@plt>
mov    %ebx,%edi
mov    $0x2e,%esi
call   10b0 <cfag12864b_set@plt>
mov    %ebx,%edi
mov    $0x30,%esi
call   10b0 <cfag12864b_set@plt>
mov    %ebx,%edi
mov    $0x32,%esi
call   10b0 <cfag12864b_set@plt>
mov    %ebx,%edi
mov    $0x34,%esi
call   10b0 <cfag12864b_set@plt>
mov    %ebx,%edi
mov    $0x36,%esi
call   10b0 <cfag12864b_set@plt>
mov    %ebx,%edi
mov    $0x38,%esi
call   10b0 <cfag12864b_set@plt>
mov    %ebx,%edi
mov    $0x3a,%esi
call   10b0 <cfag12864b_set@plt>
mov    %ebx,%edi
mov    $0x3c,%esi
call   10b0 <cfag12864b_set@plt>
mov    %ebx,%edi
mov    $0x3e,%esi
call   10b0 <cfag12864b_set@plt>
cmp    $0x7e,%bx
jb     1200 <example+0x70>
jmp    14e3 <example+0x353>
lea    0xca9(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
xor    %eax,%eax
call   1090 <cfag12864b_clear@plt>
jmp    14e3 <example+0x353>
lea    0xc9d(%rip),%rdi
xor    %ebx,%ebx
xor    %eax,%eax
call   1050 <printf@plt>
mov    %rsp,%rdi
xor    %esi,%esi
mov    $0x2000,%edx
call   1060 <memset@plt>
lea    0x300(%rsp),%rax
cs nopw 0x0(%rax,%rax,1)
nopl   (%rax)
mov    $0xfffffffe,%ecx
mov    %rax,%rdx
nopl   0x0(%rax,%rax,1)
movb   $0x1,-0x300(%rdx)
movb   $0x1,-0x200(%rdx)
movb   $0x1,-0x100(%rdx)
movb   $0x1,(%rdx)
add    $0x400,%rdx
add    $0x8,%ecx
cmp    $0x3e,%ecx
jb     13f0 <example+0x260>
add    $0x1,%ebx
add    $0x1,%rax
cmp    $0x80,%ebx
jne    13e0 <example+0x250>
mov    %rsp,%rdi
call   1080 <cfag12864b_format@plt>
jmp    14e3 <example+0x353>
lea    0xc3d(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
xor    %eax,%eax
call   10a0 <cfag12864b_fill@plt>
jmp    14e3 <example+0x353>
lea    0xc30(%rip),%rdi
xor    %ebp,%ebp
xor    %eax,%eax
call   1050 <printf@plt>
nopl   (%rax)
xor    %ebx,%ebx
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
movzwl %bp,%edi
movzwl %bx,%ebx
mov    %ebx,%esi
call   1030 <cfag12864b_unset@plt>
add    $0x1,%ebx
cmp    $0x40,%bx
jne    1470 <example+0x2e0>
lea    0x2(%rbp),%eax
cmp    $0x7e,%bp
mov    %eax,%ebp
jb     1460 <example+0x2d0>
jmp    14e3 <example+0x353>
lea    0xc06(%rip),%rdi
xor    %ebp,%ebp
xor    %eax,%eax
call   1050 <printf@plt>
cs nopw 0x0(%rax,%rax,1)
nopl   (%rax)
xor    %ebx,%ebx
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
movzwl %bp,%edi
movzwl %bx,%ebx
mov    %ebx,%esi
call   1070 <cfag12864b_not@plt>
add    $0x1,%ebx
cmp    $0x40,%bx
jne    14c0 <example+0x330>
add    $0x1,%ebp
movzwl %bp,%eax
cmp    $0x80,%eax
jne    14b0 <example+0x320>
lea    0xbd3(%rip),%rdi
call   1040 <puts@plt>
add    $0x2008,%rsp
pop    %rbx
pop    %rbp
ret

LLVM IR (-O0):
@.str = [17 x i8] c"Example %i/%i - \00"
@.str.1 = [25 x i8] c"Draw points setting bits\00"
@.str.2 = [14 x i8] c"Clear the LCD\00"
@.str.3 = [39 x i8] c"Draw rows formatting a [128*64] matrix\00"
@.str.4 = [13 x i8] c"Fill the lcd\00"
@.str.5 = [28 x i8] c"Draw columns unsetting bits\00"
@.str.6 = [29 x i8] c"Do negative not-ing all bits\00"
@.str.7 = [17 x i8] c" - [Press Enter]\00"
define void @example(i8 zeroext %0) {
%2 = alloca i8
%3 = alloca i16
%4 = alloca i16
%5 = alloca [8192 x i8]
store i8 %0, i8* %2
%6 = load i8, i8* %2
%7 = zext i8 %6 to i32
%8 = icmp sgt i32 %7, 6
br i1 %8, label %9, label %10
9: ; preds = %1
br label %134
10: ; preds = %1
%11 = load i8, i8* %2
%12 = zext i8 %11 to i32
%13 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str, i64 0, i64 0), i32 %12, i32 6)
%14 = load i8, i8* %2
%15 = zext i8 %14 to i32
switch i32 %15, label %132 [
i32 1, label %16
i32 2, label %44
i32 3, label %47
i32 4, label %81
i32 5, label %84
i32 6, label %109
]
16: ; preds = %10
%17 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.1, i64 0, i64 0))
%18 = call i32 (...) @cfag12864b_clear()
store i16 0, i16* %3
br label %19
19: ; preds = %38, %16
%20 = load i16, i16* %3
%21 = zext i16 %20 to i32
%22 = icmp slt i32 %21, 128
br i1 %22, label %23, label %43
23: ; preds = %19
store i16 0, i16* %4
br label %24
24: ; preds = %32, %23
%25 = load i16, i16* %4
%26 = zext i16 %25 to i32
%27 = icmp slt i32 %26, 64
br i1 %27, label %28, label %37
28: ; preds = %24
%29 = load i16, i16* %3
%30 = load i16, i16* %4
%31 = call i32 @cfag12864b_set(i16 zeroext %29, i16 zeroext %30)
br label %32
32: ; preds = %28
%33 = load i16, i16* %4
%34 = zext i16 %33 to i32
%35 = add nsw i32 %34, 2
%36 = trunc i32 %35 to i16
store i16 %36, i16* %4
br label %24
37: ; preds = %24
br label %38
38: ; preds = %37
%39 = load i16, i16* %3
%40 = zext i16 %39 to i32
%41 = add nsw i32 %40, 2
%42 = trunc i32 %41 to i16
store i16 %42, i16* %3
br label %19
43: ; preds = %19
br label %132
44: ; preds = %10
%45 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.2, i64 0, i64 0))
%46 = call i32 (...) @cfag12864b_clear()
br label %132
47: ; preds = %10
%48 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([39 x i8], [39 x i8]* @.str.3, i64 0, i64 0))
%49 = getelementptr inbounds [8192 x i8], [8192 x i8]* %5, i64 0, i64 0
%50 = call i32 @memset(i8* %49, i32 0, i32 8192)
store i16 0, i16* %3
br label %51
51: ; preds = %75, %47
%52 = load i16, i16* %3
%53 = zext i16 %52 to i32
%54 = icmp slt i32 %53, 128
br i1 %54, label %55, label %78
55: ; preds = %51
store i16 0, i16* %4
br label %56
56: ; preds = %69, %55
%57 = load i16, i16* %4
%58 = zext i16 %57 to i32
%59 = icmp slt i32 %58, 64
br i1 %59, label %60, label %74
60: ; preds = %56
%61 = load i16, i16* %4
%62 = zext i16 %61 to i32
%63 = mul nsw i32 %62, 128
%64 = load i16, i16* %3
%65 = zext i16 %64 to i32
%66 = add nsw i32 %63, %65
%67 = sext i32 %66 to i64
%68 = getelementptr inbounds [8192 x i8], [8192 x i8]* %5, i64 0, i64 %67
store i8 1, i8* %68
br label %69
69: ; preds = %60
%70 = load i16, i16* %4
%71 = zext i16 %70 to i32
%72 = add nsw i32 %71, 2
%73 = trunc i32 %72 to i16
store i16 %73, i16* %4
br label %56
74: ; preds = %56
br label %75
75: ; preds = %74
%76 = load i16, i16* %3
%77 = add i16 %76, 1
store i16 %77, i16* %3
br label %51
78: ; preds = %51
%79 = getelementptr inbounds [8192 x i8], [8192 x i8]* %5, i64 0, i64 0
%80 = call i32 @cfag12864b_format(i8* %79)
br label %132
81: ; preds = %10
%82 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.4, i64 0, i64 0))
%83 = call i32 (...) @cfag12864b_fill()
br label %132
84: ; preds = %10
%85 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.5, i64 0, i64 0))
store i16 0, i16* %3
br label %86
86: ; preds = %103, %84
%87 = load i16, i16* %3
%88 = zext i16 %87 to i32
%89 = icmp slt i32 %88, 128
br i1 %89, label %90, label %108
90: ; preds = %86
store i16 0, i16* %4
br label %91
91: ; preds = %99, %90
%92 = load i16, i16* %4
%93 = zext i16 %92 to i32
%94 = icmp slt i32 %93, 64
br i1 %94, label %95, label %102
95: ; preds = %91
%96 = load i16, i16* %3
%97 = load i16, i16* %4
%98 = call i32 @cfag12864b_unset(i16 zeroext %96, i16 zeroext %97)
br label %99
99: ; preds = %95
%100 = load i16, i16* %4
%101 = add i16 %100, 1
store i16 %101, i16* %4
br label %91
102: ; preds = %91
br label %103
103: ; preds = %102
%104 = load i16, i16* %3
%105 = zext i16 %104 to i32
%106 = add nsw i32 %105, 2
%107 = trunc i32 %106 to i16
store i16 %107, i16* %3
br label %86
108: ; preds = %86
br label %132
109: ; preds = %10
%110 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.6, i64 0, i64 0))
store i16 0, i16* %3
br label %111
111: ; preds = %128, %109
%112 = load i16, i16* %3
%113 = zext i16 %112 to i32
%114 = icmp slt i32 %113, 128
br i1 %114, label %115, label %131
115: ; preds = %111
store i16 0, i16* %4
br label %116
116: ; preds = %124, %115
%117 = load i16, i16* %4
%118 = zext i16 %117 to i32
%119 = icmp slt i32 %118, 64
br i1 %119, label %120, label %127
120: ; preds = %116
%121 = load i16, i16* %3
%122 = load i16, i16* %4
%123 = call i32 @cfag12864b_not(i16 zeroext %121, i16 zeroext %122)
br label %124
124: ; preds = %120
%125 = load i16, i16* %4
%126 = add i16 %125, 1
store i16 %126, i16* %4
br label %116
127: ; preds = %116
br label %128
128: ; preds = %127
%129 = load i16, i16* %3
%130 = add i16 %129, 1
store i16 %130, i16* %3
br label %111
131: ; preds = %111
br label %132
132: ; preds = %10, %131, %108, %81, %78, %44, %43
%133 = call i32 @puts(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.7, i64 0, i64 0))
br label %134
134: ; preds = %132, %9
ret void
}

LLVM IR (-O2):
@.str = [17 x i8] c"Example %i/%i - \00"
@.str.1 = [25 x i8] c"Draw points setting bits\00"
@.str.2 = [14 x i8] c"Clear the LCD\00"
@.str.3 = [39 x i8] c"Draw rows formatting a [128*64] matrix\00"
@.str.4 = [13 x i8] c"Fill the lcd\00"
@.str.5 = [28 x i8] c"Draw columns unsetting bits\00"
@.str.6 = [29 x i8] c"Do negative not-ing all bits\00"
@.str.7 = [17 x i8] c" - [Press Enter]\00"
define void @example(i8 zeroext %0) {
%2 = alloca [8192 x i8]
%3 = getelementptr inbounds [8192 x i8], [8192 x i8]* %2, i64 0, i64 0
%4 = icmp ugt i8 %0, 6
br i1 %4, label %112, label %5
5: ; preds = %1
%6 = zext i8 %0 to i32
%7 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([17 x i8], [17 x i8]* @.str, i64 0, i64 0), i32 %6, i32 6)
switch i8 %0, label %110 [
i8 1, label %8
i8 2, label %47
i8 3, label %50
i8 4, label %83
i8 5, label %86
i8 6, label %98
]
8: ; preds = %5
%9 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([25 x i8], [25 x i8]* @.str.1, i64 0, i64 0))
%10 = tail call i32 (...) @cfag12864b_clear()
br label %11
11: ; preds = %8, %11
%12 = phi i16 [ 0, %8 ], [ %45, %11 ]
%13 = tail call i32 @cfag12864b_set(i16 zeroext %12, i16 zeroext 0)
%14 = tail call i32 @cfag12864b_set(i16 zeroext %12, i16 zeroext 2)
%15 = tail call i32 @cfag12864b_set(i16 zeroext %12, i16 zeroext 4)
%16 = tail call i32 @cfag12864b_set(i16 zeroext %12, i16 zeroext 6)
%17 = tail call i32 @cfag12864b_set(i16 zeroext %12, i16 zeroext 8)
%18 = tail call i32 @cfag12864b_set(i16 zeroext %12, i16 zeroext 10)
%19 = tail call i32 @cfag12864b_set(i16 zeroext %12, i16 zeroext 12)
%20 = tail call i32 @cfag12864b_set(i16 zeroext %12, i16 zeroext 14)
%21 = tail call i32 @cfag12864b_set(i16 zeroext %12, i16 zeroext 16)
%22 = tail call i32 @cfag12864b_set(i16 zeroext %12, i16 zeroext 18)
%23 = tail call i32 @cfag12864b_set(i16 zeroext %12, i16 zeroext 20)
%24 = tail call i32 @cfag12864b_set(i16 zeroext %12, i16 zeroext 22)
%25 = tail call i32 @cfag12864b_set(i16 zeroext %12, i16 zeroext 24)
%26 = tail call i32 @cfag12864b_set(i16 zeroext %12, i16 zeroext 26)
%27 = tail call i32 @cfag12864b_set(i16 zeroext %12, i16 zeroext 28)
%28 = tail call i32 @cfag12864b_set(i16 zeroext %12, i16 zeroext 30)
%29 = tail call i32 @cfag12864b_set(i16 zeroext %12, i16 zeroext 32)
%30 = tail call i32 @cfag12864b_set(i16 zeroext %12, i16 zeroext 34)
%31 = tail call i32 @cfag12864b_set(i16 zeroext %12, i16 zeroext 36)
%32 = tail call i32 @cfag12864b_set(i16 zeroext %12, i16 zeroext 38)
%33 = tail call i32 @cfag12864b_set(i16 zeroext %12, i16 zeroext 40)
%34 = tail call i32 @cfag12864b_set(i16 zeroext %12, i16 zeroext 42)
%35 = tail call i32 @cfag12864b_set(i16 zeroext %12, i16 zeroext 44)
%36 = tail call i32 @cfag12864b_set(i16 zeroext %12, i16 zeroext 46)
%37 = tail call i32 @cfag12864b_set(i16 zeroext %12, i16 zeroext 48)
%38 = tail call i32 @cfag12864b_set(i16 zeroext %12, i16 zeroext 50)
%39 = tail call i32 @cfag12864b_set(i16 zeroext %12, i16 zeroext 52)
%40 = tail call i32 @cfag12864b_set(i16 zeroext %12, i16 zeroext 54)
%41 = tail call i32 @cfag12864b_set(i16 zeroext %12, i16 zeroext 56)
%42 = tail call i32 @cfag12864b_set(i16 zeroext %12, i16 zeroext 58)
%43 = tail call i32 @cfag12864b_set(i16 zeroext %12, i16 zeroext 60)
%44 = tail call i32 @cfag12864b_set(i16 zeroext %12, i16 zeroext 62)
%45 = add nuw nsw i16 %12, 2
%46 = icmp ult i16 %12, 126
br i1 %46, label %11, label %110
47: ; preds = %5
%48 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([14 x i8], [14 x i8]* @.str.2, i64 0, i64 0))
%49 = tail call i32 (...) @cfag12864b_clear()
br label %110
50: ; preds = %5
%51 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([39 x i8], [39 x i8]* @.str.3, i64 0, i64 0))
%52 = call i32 @memset(i8* %3, i32 0, i32 8192)
br label %53
53: ; preds = %50, %78
%54 = phi i32 [ 0, %50 ], [ %79, %78 ]
br label %55
55: ; preds = %55, %53
%56 = phi i32 [ 0, %53 ], [ %76, %55 ]
%57 = shl nuw nsw i32 %56, 7
%58 = add nuw nsw i32 %57, %54
%59 = zext i32 %58 to i64
%60 = getelementptr inbounds [8192 x i8], [8192 x i8]* %2, i64 0, i64 %59
store i8 1, i8* %60
%61 = shl i32 %56, 7
%62 = or i32 %61, 256
%63 = add nuw nsw i32 %62, %54
%64 = zext i32 %63 to i64
%65 = getelementptr inbounds [8192 x i8], [8192 x i8]* %2, i64 0, i64 %64
store i8 1, i8* %65
%66 = shl i32 %56, 7
%67 = or i32 %66, 512
%68 = add nuw nsw i32 %67, %54
%69 = zext i32 %68 to i64
%70 = getelementptr inbounds [8192 x i8], [8192 x i8]* %2, i64 0, i64 %69
store i8 1, i8* %70
%71 = or i32 %56, 6
%72 = shl nuw nsw i32 %71, 7
%73 = add nuw nsw i32 %72, %54
%74 = zext i32 %73 to i64
%75 = getelementptr inbounds [8192 x i8], [8192 x i8]* %2, i64 0, i64 %74
store i8 1, i8* %75
%76 = add nuw nsw i32 %56, 8
%77 = icmp ult i32 %71, 62
br i1 %77, label %55, label %78
78: ; preds = %55
%79 = add nuw nsw i32 %54, 1
%80 = icmp eq i32 %79, 128
br i1 %80, label %81, label %53
81: ; preds = %78
%82 = call i32 @cfag12864b_format(i8* %3)
br label %110
83: ; preds = %5
%84 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([13 x i8], [13 x i8]* @.str.4, i64 0, i64 0))
%85 = tail call i32 (...) @cfag12864b_fill()
br label %110
86: ; preds = %5
%87 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([28 x i8], [28 x i8]* @.str.5, i64 0, i64 0))
br label %88
88: ; preds = %86, %95
%89 = phi i16 [ 0, %86 ], [ %96, %95 ]
br label %90
90: ; preds = %88, %90
%91 = phi i16 [ 0, %88 ], [ %93, %90 ]
%92 = tail call i32 @cfag12864b_unset(i16 zeroext %89, i16 zeroext %91)
%93 = add nuw nsw i16 %91, 1
%94 = icmp eq i16 %93, 64
br i1 %94, label %95, label %90
95: ; preds = %90
%96 = add nuw nsw i16 %89, 2
%97 = icmp ult i16 %89, 126
br i1 %97, label %88, label %110
98: ; preds = %5
%99 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([29 x i8], [29 x i8]* @.str.6, i64 0, i64 0))
br label %100
100: ; preds = %98, %107
%101 = phi i16 [ 0, %98 ], [ %108, %107 ]
br label %102
102: ; preds = %100, %102
%103 = phi i16 [ 0, %100 ], [ %105, %102 ]
%104 = tail call i32 @cfag12864b_not(i16 zeroext %101, i16 zeroext %103)
%105 = add nuw nsw i16 %103, 1
%106 = icmp eq i16 %105, 64
br i1 %106, label %107, label %102
107: ; preds = %102
%108 = add nuw nsw i16 %101, 1
%109 = icmp eq i16 %108, 128
br i1 %109, label %110, label %100
110: ; preds = %107, %95, %11, %5, %83, %81, %47
%111 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([17 x i8], [17 x i8]* @.str.7, i64 0, i64 0))
br label %112
112: ; preds = %1, %110
ret void
}