#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 */
unsigned char *MAP_FAILED;
int /*<<< orphan*/ MAP_SHARED;
int /*<<< orphan*/ O_RDWR;
int PROT_READ;
int PROT_WRITE;
int /*<<< orphan*/ close(int);
int /*<<< orphan*/ exit(int /*<<< orphan*/);
int /*<<< orphan*/ memset(unsigned char *, int /*<<< orphan*/, unsigned long);
unsigned char *mmap(int /*<<< orphan*/ *, unsigned long, int,
                    int /*<<< orphan*/, int, int /*<<< orphan*/);
int open(char *, int /*<<< orphan*/);
int /*<<< orphan*/ printf(char *);
int /*<<< orphan*/ sleep(int);
int main() {
  int fd, ret;
  int i;
  FILE *fpVideoImg;
  unsigned char *pVideoBuffer;
  unsigned long uVideoSize;
  fd = open("/dev/fb0", O_RDWR);
  if (fd == -1) {
    printf("Cannot open fb0!\n");
    return -1;
  }
  uVideoSize = 320 * 240 * 2;
  pVideoBuffer =
      mmap(NULL, uVideoSize, PROT_READ | PROT_WRITE, MAP_SHARED, fd, 0);
  if (pVideoBuffer == MAP_FAILED) {
    printf("mmap() failed\n");
    exit(0);
  }
  for (i = 0; i < 320 * 240; i++) {
    *(unsigned short *)(pVideoBuffer + i * 2) = 0xF800;
  }
  sleep(2);
  for (i = 0; i < 320 * 240; i++) {
    *(unsigned short *)(pVideoBuffer + i * 2) = 0x07E0;
  }
  sleep(2);
  for (i = 0; i < 320 * 240; i++) {
    *(unsigned short *)(pVideoBuffer + i * 2) = 0x001F;
  }
  sleep(2);
  memset(pVideoBuffer, 0, uVideoSize);
  close(fd);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
movl   $0x0,-0x4(%rbp)
mov    0x2e52(%rip),%rax
mov    (%rax),%esi
lea    0xe71(%rip),%rdi
call   1070 <open@plt>
mov    %eax,-0x8(%rbp)
cmpl   $0xffffffff,-0x8(%rbp)
jne    11b9 <main+0x49>
lea    0xe61(%rip),%rdi
call   1040 <printf@plt>
movl   $0xffffffff,-0x4(%rbp)
jmp    12f6 <main+0x186>
movq   $0x25800,-0x28(%rbp)
mov    -0x28(%rbp),%rsi
mov    0x2e2c(%rip),%rax
mov    (%rax),%edx
mov    0x2df3(%rip),%rax
or     (%rax),%edx
mov    0x2e0a(%rip),%rax
mov    (%rax),%ecx
mov    -0x8(%rbp),%r8d
xor    %eax,%eax
mov    %eax,%edi
xor    %r9d,%r9d
call   1030 <mmap@plt>
mov    %rax,-0x20(%rbp)
mov    -0x20(%rbp),%rax
mov    0x2dc1(%rip),%rcx
cmp    (%rcx),%rax
jne    121b <main+0xab>
lea    0xe0c(%rip),%rdi
call   1040 <printf@plt>
xor    %edi,%edi
call   1080 <exit@plt>
movl   $0x0,-0x10(%rbp)
cmpl   $0x12c00,-0x10(%rbp)
jge    1250 <main+0xe0>
mov    -0x20(%rbp),%rax
mov    -0x10(%rbp),%ecx
shl    $0x1,%ecx
movslq %ecx,%rcx
movw   $0xf800,(%rax,%rcx,1)
mov    -0x10(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x10(%rbp)
jmp    1222 <main+0xb2>
mov    $0x2,%edi
call   1090 <sleep@plt>
movl   $0x0,-0x10(%rbp)
cmpl   $0x12c00,-0x10(%rbp)
jge    128f <main+0x11f>
mov    -0x20(%rbp),%rax
mov    -0x10(%rbp),%ecx
shl    $0x1,%ecx
movslq %ecx,%rcx
movw   $0x7e0,(%rax,%rcx,1)
mov    -0x10(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x10(%rbp)
jmp    1261 <main+0xf1>
mov    $0x2,%edi
call   1090 <sleep@plt>
movl   $0x0,-0x10(%rbp)
cmpl   $0x12c00,-0x10(%rbp)
jge    12ce <main+0x15e>
mov    -0x20(%rbp),%rax
mov    -0x10(%rbp),%ecx
shl    $0x1,%ecx
movslq %ecx,%rcx
movw   $0x1f,(%rax,%rcx,1)
mov    -0x10(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x10(%rbp)
jmp    12a0 <main+0x130>
mov    $0x2,%edi
call   1090 <sleep@plt>
mov    -0x20(%rbp),%rdi
mov    -0x28(%rbp),%rdx
xor    %esi,%esi
call   1050 <memset@plt>
mov    -0x8(%rbp),%edi
call   1060 <close@plt>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r14
push   %rbx
mov    0x2e5d(%rip),%rax
mov    (%rax),%esi
lea    0xeac(%rip),%rdi
call   1070 <open@plt>
cmp    $0xffffffff,%eax
je     1345 <main+0x1d5>
mov    %eax,%r14d
mov    0x2e5c(%rip),%rax
mov    0x2e25(%rip),%rcx
mov    (%rcx),%edx
or     (%rax),%edx
mov    0x2e3a(%rip),%rax
mov    (%rax),%ecx
mov    $0x25800,%esi
xor    %edi,%edi
mov    %r14d,%r8d
xor    %r9d,%r9d
call   1040 <mmap@plt>
mov    %rax,%rbx
mov    0x2df4(%rip),%rax
cmp    (%rax),%rbx
je     135d <main+0x1ed>
mov    $0x58,%eax
movaps 0xe1f(%rip),%xmm0
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
movups %xmm0,-0xb0(%rbx,%rax,2)
ff
movups %xmm0,-0xa0(%rbx,%rax,2)
ff
movups %xmm0,-0x90(%rbx,%rax,2)
ff
movups %xmm0,-0x80(%rbx,%rax,2)
movups %xmm0,-0x70(%rbx,%rax,2)
movups %xmm0,-0x60(%rbx,%rax,2)
movups %xmm0,-0x50(%rbx,%rax,2)
movups %xmm0,-0x40(%rbx,%rax,2)
movups %xmm0,-0x30(%rbx,%rax,2)
movups %xmm0,-0x20(%rbx,%rax,2)
movups %xmm0,-0x10(%rbx,%rax,2)
movups %xmm0,(%rbx,%rax,2)
add    $0x60,%rax
cmp    $0x12c58,%rax
jne    11f0 <main+0x80>
mov    $0x2,%edi
call   1090 <sleep@plt>
mov    $0x58,%eax
movaps 0xdba(%rip),%xmm0
cs nopw 0x0(%rax,%rax,1)
movups %xmm0,-0xb0(%rbx,%rax,2)
ff
movups %xmm0,-0xa0(%rbx,%rax,2)
ff
movups %xmm0,-0x90(%rbx,%rax,2)
ff
movups %xmm0,-0x80(%rbx,%rax,2)
movups %xmm0,-0x70(%rbx,%rax,2)
movups %xmm0,-0x60(%rbx,%rax,2)
movups %xmm0,-0x50(%rbx,%rax,2)
movups %xmm0,-0x40(%rbx,%rax,2)
movups %xmm0,-0x30(%rbx,%rax,2)
movups %xmm0,-0x20(%rbx,%rax,2)
movups %xmm0,-0x10(%rbx,%rax,2)
movups %xmm0,(%rbx,%rax,2)
add    $0x60,%rax
cmp    $0x12c58,%rax
jne    1260 <main+0xf0>
mov    $0x2,%edi
call   1090 <sleep@plt>
mov    $0x58,%eax
movaps 0xd5a(%rip),%xmm0
cs nopw 0x0(%rax,%rax,1)
movups %xmm0,-0xb0(%rbx,%rax,2)
ff
movups %xmm0,-0xa0(%rbx,%rax,2)
ff
movups %xmm0,-0x90(%rbx,%rax,2)
ff
movups %xmm0,-0x80(%rbx,%rax,2)
movups %xmm0,-0x70(%rbx,%rax,2)
movups %xmm0,-0x60(%rbx,%rax,2)
movups %xmm0,-0x50(%rbx,%rax,2)
movups %xmm0,-0x40(%rbx,%rax,2)
movups %xmm0,-0x30(%rbx,%rax,2)
movups %xmm0,-0x20(%rbx,%rax,2)
movups %xmm0,-0x10(%rbx,%rax,2)
movups %xmm0,(%rbx,%rax,2)
add    $0x60,%rax
cmp    $0x12c58,%rax
jne    12d0 <main+0x160>
mov    $0x2,%edi
call   1090 <sleep@plt>
xor    %ebp,%ebp
mov    $0x25800,%edx
mov    %rbx,%rdi
xor    %esi,%esi
call   1050 <memset@plt>
mov    %r14d,%edi
call   1060 <close@plt>
jmp    1356 <main+0x1e6>
lea    0xcfb(%rip),%rdi
call   1030 <puts@plt>
mov    $0xffffffff,%ebp
mov    %ebp,%eax
pop    %rbx
pop    %r14
pop    %rbp
ret
lea    0xcd5(%rip),%rdi
call   1030 <puts@plt>
xor    %edi,%edi
call   1080 <exit@plt>

LLVM IR (-O0):
@.str = [9 x i8] c"/dev/fb0\00"
@O_RDWR = global i32 0
@.str.1 = [18 x i8] c"Cannot open fb0!\0A\00"
@PROT_READ = global i32 0
@PROT_WRITE = global i32 0
@MAP_SHARED = global i32 0
@MAP_FAILED = global i8* null
@.str.2 = [15 x i8] c"mmap() failed\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
%4 = alloca i32
%5 = alloca i32*
%6 = alloca i8*
%7 = alloca i64
store i32 0, i32* %1
%8 = load i32, i32* @O_RDWR
%9 = call i32 @open(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0), i32 %8)
store i32 %9, i32* %2
%10 = load i32, i32* %2
%11 = icmp eq i32 %10, -1
br i1 %11, label %12, label %14
12: ; preds = %0
%13 = call i32 @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.1, i64 0, i64 0))
store i32 -1, i32* %1
br label %79
14: ; preds = %0
store i64 153600, i64* %7
%15 = load i64, i64* %7
%16 = load i32, i32* @PROT_READ
%17 = load i32, i32* @PROT_WRITE
%18 = or i32 %16, %17
%19 = load i32, i32* @MAP_SHARED
%20 = load i32, i32* %2
%21 = call i8* @mmap(i32* null, i64 %15, i32 %18, i32 %19, i32 %20, i32 0)
store i8* %21, i8** %6
%22 = load i8*, i8** %6
%23 = load i8*, i8** @MAP_FAILED
%24 = icmp eq i8* %22, %23
br i1 %24, label %25, label %28
25: ; preds = %14
%26 = call i32 @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.2, i64 0, i64 0))
%27 = call i32 @exit(i32 0)
unreachable
28: ; preds = %14
store i32 0, i32* %4
br label %29
29: ; preds = %39, %28
%30 = load i32, i32* %4
%31 = icmp slt i32 %30, 76800
br i1 %31, label %32, label %42
32: ; preds = %29
%33 = load i8*, i8** %6
%34 = load i32, i32* %4
%35 = mul nsw i32 %34, 2
%36 = sext i32 %35 to i64
%37 = getelementptr inbounds i8, i8* %33, i64 %36
%38 = bitcast i8* %37 to i16*
store i16 -2048, i16* %38
br label %39
39: ; preds = %32
%40 = load i32, i32* %4
%41 = add nsw i32 %40, 1
store i32 %41, i32* %4
br label %29
42: ; preds = %29
%43 = call i32 @sleep(i32 2)
store i32 0, i32* %4
br label %44
44: ; preds = %54, %42
%45 = load i32, i32* %4
%46 = icmp slt i32 %45, 76800
br i1 %46, label %47, label %57
47: ; preds = %44
%48 = load i8*, i8** %6
%49 = load i32, i32* %4
%50 = mul nsw i32 %49, 2
%51 = sext i32 %50 to i64
%52 = getelementptr inbounds i8, i8* %48, i64 %51
%53 = bitcast i8* %52 to i16*
store i16 2016, i16* %53
br label %54
54: ; preds = %47
%55 = load i32, i32* %4
%56 = add nsw i32 %55, 1
store i32 %56, i32* %4
br label %44
57: ; preds = %44
%58 = call i32 @sleep(i32 2)
store i32 0, i32* %4
br label %59
59: ; preds = %69, %57
%60 = load i32, i32* %4
%61 = icmp slt i32 %60, 76800
br i1 %61, label %62, label %72
62: ; preds = %59
%63 = load i8*, i8** %6
%64 = load i32, i32* %4
%65 = mul nsw i32 %64, 2
%66 = sext i32 %65 to i64
%67 = getelementptr inbounds i8, i8* %63, i64 %66
%68 = bitcast i8* %67 to i16*
store i16 31, i16* %68
br label %69
69: ; preds = %62
%70 = load i32, i32* %4
%71 = add nsw i32 %70, 1
store i32 %71, i32* %4
br label %59
72: ; preds = %59
%73 = call i32 @sleep(i32 2)
%74 = load i8*, i8** %6
%75 = load i64, i64* %7
%76 = call i32 @memset(i8* %74, i32 0, i64 %75)
%77 = load i32, i32* %2
%78 = call i32 @close(i32 %77)
store i32 0, i32* %1
br label %79
79: ; preds = %72, %12
%80 = load i32, i32* %1
ret i32 %80
}

LLVM IR (-O2):
@.str = [9 x i8] c"/dev/fb0\00"
@O_RDWR = global i32 0
@PROT_READ = global i32 0
@PROT_WRITE = global i32 0
@MAP_SHARED = global i32 0
@MAP_FAILED = global i8* null
@str = [14 x i8] c"mmap() failed\00"
@str.3 = [17 x i8] c"Cannot open fb0!\00"
define i32 @main() {
%1 = load i32, i32* @O_RDWR
%2 = tail call i32 @open(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0), i32 %1)
%3 = icmp eq i32 %2, -1
br i1 %3, label %4, label %6
4: ; preds = %0
%5 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([17 x i8], [17 x i8]* @str.3, i64 0, i64 0))
br label %142
6: ; preds = %0
%7 = load i32, i32* @PROT_READ
%8 = load i32, i32* @PROT_WRITE
%9 = or i32 %8, %7
%10 = load i32, i32* @MAP_SHARED
%11 = tail call i8* @mmap(i32* null, i64 153600, i32 %9, i32 %10, i32 %2, i32 0)
%12 = load i8*, i8** @MAP_FAILED
%13 = icmp eq i8* %11, %12
br i1 %13, label %53, label %14
14: ; preds = %6, %14
%15 = phi i64 [ %51, %14 ], [ 0, %6 ]
%16 = shl nuw nsw i64 %15, 1
%17 = getelementptr inbounds i8, i8* %11, i64 %16
%18 = bitcast i8* %17 to <8 x i16>*
store <8 x i16> <i16 -2048, i16 -2048, i16 -2048, i16 -2048, i16 -2048, i16 -2048, i16 -2048, i16 -2048>, <8 x i16>* %18
%19 = getelementptr inbounds i8, i8* %17, i64 16
%20 = bitcast i8* %19 to <8 x i16>*
store <8 x i16> <i16 -2048, i16 -2048, i16 -2048, i16 -2048, i16 -2048, i16 -2048, i16 -2048, i16 -2048>, <8 x i16>* %20
%21 = shl nuw i64 %15, 1
%22 = or i64 %21, 32
%23 = getelementptr inbounds i8, i8* %11, i64 %22
%24 = bitcast i8* %23 to <8 x i16>*
store <8 x i16> <i16 -2048, i16 -2048, i16 -2048, i16 -2048, i16 -2048, i16 -2048, i16 -2048, i16 -2048>, <8 x i16>* %24
%25 = getelementptr inbounds i8, i8* %23, i64 16
%26 = bitcast i8* %25 to <8 x i16>*
store <8 x i16> <i16 -2048, i16 -2048, i16 -2048, i16 -2048, i16 -2048, i16 -2048, i16 -2048, i16 -2048>, <8 x i16>* %26
%27 = shl nuw i64 %15, 1
%28 = add i64 %27, 64
%29 = getelementptr inbounds i8, i8* %11, i64 %28
%30 = bitcast i8* %29 to <8 x i16>*
store <8 x i16> <i16 -2048, i16 -2048, i16 -2048, i16 -2048, i16 -2048, i16 -2048, i16 -2048, i16 -2048>, <8 x i16>* %30
%31 = getelementptr inbounds i8, i8* %29, i64 16
%32 = bitcast i8* %31 to <8 x i16>*
store <8 x i16> <i16 -2048, i16 -2048, i16 -2048, i16 -2048, i16 -2048, i16 -2048, i16 -2048, i16 -2048>, <8 x i16>* %32
%33 = shl nuw i64 %15, 1
%34 = add i64 %33, 96
%35 = getelementptr inbounds i8, i8* %11, i64 %34
%36 = bitcast i8* %35 to <8 x i16>*
store <8 x i16> <i16 -2048, i16 -2048, i16 -2048, i16 -2048, i16 -2048, i16 -2048, i16 -2048, i16 -2048>, <8 x i16>* %36
%37 = getelementptr inbounds i8, i8* %35, i64 16
%38 = bitcast i8* %37 to <8 x i16>*
store <8 x i16> <i16 -2048, i16 -2048, i16 -2048, i16 -2048, i16 -2048, i16 -2048, i16 -2048, i16 -2048>, <8 x i16>* %38
%39 = shl nuw i64 %15, 1
%40 = add i64 %39, 128
%41 = getelementptr inbounds i8, i8* %11, i64 %40
%42 = bitcast i8* %41 to <8 x i16>*
store <8 x i16> <i16 -2048, i16 -2048, i16 -2048, i16 -2048, i16 -2048, i16 -2048, i16 -2048, i16 -2048>, <8 x i16>* %42
%43 = getelementptr inbounds i8, i8* %41, i64 16
%44 = bitcast i8* %43 to <8 x i16>*
store <8 x i16> <i16 -2048, i16 -2048, i16 -2048, i16 -2048, i16 -2048, i16 -2048, i16 -2048, i16 -2048>, <8 x i16>* %44
%45 = shl nuw i64 %15, 1
%46 = add i64 %45, 160
%47 = getelementptr inbounds i8, i8* %11, i64 %46
%48 = bitcast i8* %47 to <8 x i16>*
store <8 x i16> <i16 -2048, i16 -2048, i16 -2048, i16 -2048, i16 -2048, i16 -2048, i16 -2048, i16 -2048>, <8 x i16>* %48
%49 = getelementptr inbounds i8, i8* %47, i64 16
%50 = bitcast i8* %49 to <8 x i16>*
store <8 x i16> <i16 -2048, i16 -2048, i16 -2048, i16 -2048, i16 -2048, i16 -2048, i16 -2048, i16 -2048>, <8 x i16>* %50
%51 = add nuw nsw i64 %15, 96
%52 = icmp eq i64 %51, 76800
br i1 %52, label %56, label %14
53: ; preds = %6
%54 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([14 x i8], [14 x i8]* @str, i64 0, i64 0))
%55 = tail call i32 @exit(i32 0)
unreachable
56: ; preds = %14
%57 = tail call i32 @sleep(i32 2)
br label %58
58: ; preds = %58, %56
%59 = phi i64 [ 0, %56 ], [ %95, %58 ]
%60 = shl nuw nsw i64 %59, 1
%61 = getelementptr inbounds i8, i8* %11, i64 %60
%62 = bitcast i8* %61 to <8 x i16>*
store <8 x i16> <i16 2016, i16 2016, i16 2016, i16 2016, i16 2016, i16 2016, i16 2016, i16 2016>, <8 x i16>* %62
%63 = getelementptr inbounds i8, i8* %61, i64 16
%64 = bitcast i8* %63 to <8 x i16>*
store <8 x i16> <i16 2016, i16 2016, i16 2016, i16 2016, i16 2016, i16 2016, i16 2016, i16 2016>, <8 x i16>* %64
%65 = shl nuw i64 %59, 1
%66 = or i64 %65, 32
%67 = getelementptr inbounds i8, i8* %11, i64 %66
%68 = bitcast i8* %67 to <8 x i16>*
store <8 x i16> <i16 2016, i16 2016, i16 2016, i16 2016, i16 2016, i16 2016, i16 2016, i16 2016>, <8 x i16>* %68
%69 = getelementptr inbounds i8, i8* %67, i64 16
%70 = bitcast i8* %69 to <8 x i16>*
store <8 x i16> <i16 2016, i16 2016, i16 2016, i16 2016, i16 2016, i16 2016, i16 2016, i16 2016>, <8 x i16>* %70
%71 = shl nuw i64 %59, 1
%72 = add i64 %71, 64
%73 = getelementptr inbounds i8, i8* %11, i64 %72
%74 = bitcast i8* %73 to <8 x i16>*
store <8 x i16> <i16 2016, i16 2016, i16 2016, i16 2016, i16 2016, i16 2016, i16 2016, i16 2016>, <8 x i16>* %74
%75 = getelementptr inbounds i8, i8* %73, i64 16
%76 = bitcast i8* %75 to <8 x i16>*
store <8 x i16> <i16 2016, i16 2016, i16 2016, i16 2016, i16 2016, i16 2016, i16 2016, i16 2016>, <8 x i16>* %76
%77 = shl nuw i64 %59, 1
%78 = add i64 %77, 96
%79 = getelementptr inbounds i8, i8* %11, i64 %78
%80 = bitcast i8* %79 to <8 x i16>*
store <8 x i16> <i16 2016, i16 2016, i16 2016, i16 2016, i16 2016, i16 2016, i16 2016, i16 2016>, <8 x i16>* %80
%81 = getelementptr inbounds i8, i8* %79, i64 16
%82 = bitcast i8* %81 to <8 x i16>*
store <8 x i16> <i16 2016, i16 2016, i16 2016, i16 2016, i16 2016, i16 2016, i16 2016, i16 2016>, <8 x i16>* %82
%83 = shl nuw i64 %59, 1
%84 = add i64 %83, 128
%85 = getelementptr inbounds i8, i8* %11, i64 %84
%86 = bitcast i8* %85 to <8 x i16>*
store <8 x i16> <i16 2016, i16 2016, i16 2016, i16 2016, i16 2016, i16 2016, i16 2016, i16 2016>, <8 x i16>* %86
%87 = getelementptr inbounds i8, i8* %85, i64 16
%88 = bitcast i8* %87 to <8 x i16>*
store <8 x i16> <i16 2016, i16 2016, i16 2016, i16 2016, i16 2016, i16 2016, i16 2016, i16 2016>, <8 x i16>* %88
%89 = shl nuw i64 %59, 1
%90 = add i64 %89, 160
%91 = getelementptr inbounds i8, i8* %11, i64 %90
%92 = bitcast i8* %91 to <8 x i16>*
store <8 x i16> <i16 2016, i16 2016, i16 2016, i16 2016, i16 2016, i16 2016, i16 2016, i16 2016>, <8 x i16>* %92
%93 = getelementptr inbounds i8, i8* %91, i64 16
%94 = bitcast i8* %93 to <8 x i16>*
store <8 x i16> <i16 2016, i16 2016, i16 2016, i16 2016, i16 2016, i16 2016, i16 2016, i16 2016>, <8 x i16>* %94
%95 = add nuw nsw i64 %59, 96
%96 = icmp eq i64 %95, 76800
br i1 %96, label %97, label %58
97: ; preds = %58
%98 = tail call i32 @sleep(i32 2)
br label %99
99: ; preds = %99, %97
%100 = phi i64 [ 0, %97 ], [ %136, %99 ]
%101 = shl nuw nsw i64 %100, 1
%102 = getelementptr inbounds i8, i8* %11, i64 %101
%103 = bitcast i8* %102 to <8 x i16>*
store <8 x i16> <i16 31, i16 31, i16 31, i16 31, i16 31, i16 31, i16 31, i16 31>, <8 x i16>* %103
%104 = getelementptr inbounds i8, i8* %102, i64 16
%105 = bitcast i8* %104 to <8 x i16>*
store <8 x i16> <i16 31, i16 31, i16 31, i16 31, i16 31, i16 31, i16 31, i16 31>, <8 x i16>* %105
%106 = shl nuw i64 %100, 1
%107 = or i64 %106, 32
%108 = getelementptr inbounds i8, i8* %11, i64 %107
%109 = bitcast i8* %108 to <8 x i16>*
store <8 x i16> <i16 31, i16 31, i16 31, i16 31, i16 31, i16 31, i16 31, i16 31>, <8 x i16>* %109
%110 = getelementptr inbounds i8, i8* %108, i64 16
%111 = bitcast i8* %110 to <8 x i16>*
store <8 x i16> <i16 31, i16 31, i16 31, i16 31, i16 31, i16 31, i16 31, i16 31>, <8 x i16>* %111
%112 = shl nuw i64 %100, 1
%113 = add i64 %112, 64
%114 = getelementptr inbounds i8, i8* %11, i64 %113
%115 = bitcast i8* %114 to <8 x i16>*
store <8 x i16> <i16 31, i16 31, i16 31, i16 31, i16 31, i16 31, i16 31, i16 31>, <8 x i16>* %115
%116 = getelementptr inbounds i8, i8* %114, i64 16
%117 = bitcast i8* %116 to <8 x i16>*
store <8 x i16> <i16 31, i16 31, i16 31, i16 31, i16 31, i16 31, i16 31, i16 31>, <8 x i16>* %117
%118 = shl nuw i64 %100, 1
%119 = add i64 %118, 96
%120 = getelementptr inbounds i8, i8* %11, i64 %119
%121 = bitcast i8* %120 to <8 x i16>*
store <8 x i16> <i16 31, i16 31, i16 31, i16 31, i16 31, i16 31, i16 31, i16 31>, <8 x i16>* %121
%122 = getelementptr inbounds i8, i8* %120, i64 16
%123 = bitcast i8* %122 to <8 x i16>*
store <8 x i16> <i16 31, i16 31, i16 31, i16 31, i16 31, i16 31, i16 31, i16 31>, <8 x i16>* %123
%124 = shl nuw i64 %100, 1
%125 = add i64 %124, 128
%126 = getelementptr inbounds i8, i8* %11, i64 %125
%127 = bitcast i8* %126 to <8 x i16>*
store <8 x i16> <i16 31, i16 31, i16 31, i16 31, i16 31, i16 31, i16 31, i16 31>, <8 x i16>* %127
%128 = getelementptr inbounds i8, i8* %126, i64 16
%129 = bitcast i8* %128 to <8 x i16>*
store <8 x i16> <i16 31, i16 31, i16 31, i16 31, i16 31, i16 31, i16 31, i16 31>, <8 x i16>* %129
%130 = shl nuw i64 %100, 1
%131 = add i64 %130, 160
%132 = getelementptr inbounds i8, i8* %11, i64 %131
%133 = bitcast i8* %132 to <8 x i16>*
store <8 x i16> <i16 31, i16 31, i16 31, i16 31, i16 31, i16 31, i16 31, i16 31>, <8 x i16>* %133
%134 = getelementptr inbounds i8, i8* %132, i64 16
%135 = bitcast i8* %134 to <8 x i16>*
store <8 x i16> <i16 31, i16 31, i16 31, i16 31, i16 31, i16 31, i16 31, i16 31>, <8 x i16>* %135
%136 = add nuw nsw i64 %100, 96
%137 = icmp eq i64 %136, 76800
br i1 %137, label %138, label %99
138: ; preds = %99
%139 = tail call i32 @sleep(i32 2)
%140 = tail call i32 @memset(i8* %11, i32 0, i64 153600)
%141 = tail call i32 @close(i32 %2)
br label %142
142: ; preds = %138, %4
%143 = phi i32 [ -1, %4 ], [ 0, %138 ]
ret i32 %143
}