#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*/ EXIT_FAILURE;
int /*<<< orphan*/ EXIT_SUCCESS;
int O_CREAT;
int O_WRONLY;
int /*<<< orphan*/ close(int);
int /*<<< orphan*/ exit(int /*<<< orphan*/);
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *, char *);
char *malloc(int);
int open(char *, int, int);
int /*<<< orphan*/ perror(char *);
int sscanf(char *, char *, int *);
int /*<<< orphan*/ stderr;
int write(int, char *, int);
int main(int argc, char *argv[]) {
  int i;
  int fd;
  int taille_bloc;
  int nb_blocs;
  char *buffer;
  if ((argc != 4) || ((fd = open(argv[1], O_WRONLY | O_CREAT, 0644)) < 0) ||
      (sscanf(argv[2], "%d", &taille_bloc) != 1) ||
      (sscanf(argv[3], "%d", &nb_blocs) != 1)) {
    fprintf(stderr, "usage: %s <fichier> <taille_bloc> <nb_blocs>\n", argv[0]);
    exit(EXIT_FAILURE);
  }
  if ((buffer = malloc(taille_bloc)) == NULL) {
    perror("malloc");
    exit(EXIT_FAILURE);
  }
  for (i = 0; i < taille_bloc; i++)
    buffer[i] = i % 255;
  for (i = 0; i < nb_blocs; i++)
    if (write(fd, buffer, taille_bloc) != taille_bloc) {
      perror("write");
      exit(EXIT_FAILURE);
    }
  close(fd);
  exit(EXIT_SUCCESS);
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
cmpl   $0x4,-0x8(%rbp)
jne    1212 <main+0x92>
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rdi
mov    0x2e09(%rip),%rax
mov    (%rax),%esi
mov    0x2e40(%rip),%rax
or     (%rax),%esi
mov    $0x1a4,%edx
call   1080 <open@plt>
mov    %eax,-0x18(%rbp)
cmp    $0x0,%eax
jl     1212 <main+0x92>
mov    -0x10(%rbp),%rax
mov    0x10(%rax),%rdi
lea    0xe21(%rip),%rsi
lea    -0x1c(%rbp),%rdx
call   1070 <sscanf@plt>
cmp    $0x1,%eax
jne    1212 <main+0x92>
mov    -0x10(%rbp),%rax
mov    0x18(%rax),%rdi
lea    0xe00(%rip),%rsi
lea    -0x20(%rbp),%rdx
call   1070 <sscanf@plt>
cmp    $0x1,%eax
je     123c <main+0xbc>
mov    0x2dbf(%rip),%rax
mov    (%rax),%edi
mov    -0x10(%rbp),%rax
mov    (%rax),%rdx
lea    0xdda(%rip),%rsi
call   1050 <fprintf@plt>
mov    0x2d9b(%rip),%rax
mov    (%rax),%edi
call   10a0 <exit@plt>
mov    -0x1c(%rbp),%edi
call   1060 <malloc@plt>
mov    %rax,-0x28(%rbp)
cmp    $0x0,%rax
jne    126c <main+0xec>
lea    0xdd8(%rip),%rdi
call   1090 <perror@plt>
mov    0x2d6b(%rip),%rax
mov    (%rax),%edi
call   10a0 <exit@plt>
movl   $0x0,-0x14(%rbp)
mov    -0x14(%rbp),%eax
cmp    -0x1c(%rbp),%eax
jge    12a3 <main+0x123>
mov    -0x14(%rbp),%eax
mov    $0xff,%ecx
cltd
idiv   %ecx
mov    -0x28(%rbp),%rax
movslq -0x14(%rbp),%rcx
mov    %dl,(%rax,%rcx,1)
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
jmp    1273 <main+0xf3>
movl   $0x0,-0x14(%rbp)
mov    -0x14(%rbp),%eax
cmp    -0x20(%rbp),%eax
jge    12fb <main+0x17b>
mov    -0x18(%rbp),%edi
mov    -0x28(%rbp),%rsi
mov    -0x1c(%rbp),%edx
call   1030 <write@plt>
cmp    -0x1c(%rbp),%eax
je     12e8 <main+0x168>
lea    0xd63(%rip),%rdi
call   1090 <perror@plt>
mov    0x2cef(%rip),%rax
mov    (%rax),%edi
call   10a0 <exit@plt>
jmp    12ed <main+0x16d>
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
jmp    12aa <main+0x12a>
mov    -0x18(%rbp),%edi
call   1040 <close@plt>
mov    0x2cbe(%rip),%rax
mov    (%rax),%edi
call   10a0 <exit@plt>

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %rbx
push   %rax
mov    %rsi,%rbx
cmp    $0x4,%edi
jne    1204 <main+0x84>
mov    0x8(%rbx),%rdi
mov    0x2e1e(%rip),%rax
mov    0x2e57(%rip),%rcx
mov    (%rcx),%esi
or     (%rax),%esi
mov    $0x1a4,%edx
call   1080 <open@plt>
test   %eax,%eax
js     1204 <main+0x84>
mov    %eax,%r14d
mov    0x10(%rbx),%rdi
lea    0xebf(%rip),%rsi
lea    0x4(%rsp),%rdx
call   1070 <sscanf@plt>
cmp    $0x1,%eax
jne    1204 <main+0x84>
mov    0x18(%rbx),%rdi
lea    0xea5(%rip),%rsi
mov    %rsp,%rdx
call   1070 <sscanf@plt>
cmp    $0x1,%eax
jne    1204 <main+0x84>
mov    0x4(%rsp),%ebx
mov    %ebx,%edi
call   1060 <malloc@plt>
test   %rax,%rax
jne    122a <main+0xaa>
lea    0xeb2(%rip),%rdi
jmp    165a <main+0x4da>
mov    0x2dcd(%rip),%rax
mov    (%rax),%edi
mov    (%rbx),%rdx
lea    0xe6c(%rip),%rsi
call   1050 <fprintf@plt>
mov    0x2dad(%rip),%rax
mov    (%rax),%edi
call   10a0 <exit@plt>
mov    %rax,%r15
test   %ebx,%ebx
jle    160d <main+0x48d>
cmp    $0x10,%ebx
jae    1241 <main+0xc1>
xor    %eax,%eax
jmp    15d9 <main+0x459>
mov    %ebx,%eax
and    $0xfffffff0,%eax
lea    -0x10(%rax),%rdx
mov    %rdx,%rcx
shr    $0x4,%rcx
add    $0x1,%rcx
test   %rdx,%rdx
jne    1269 <main+0xe9>
movdqa 0xd9e(%rip),%xmm2
xor    %edx,%edx
jmp    15c9 <main+0x449>
mov    %rcx,%rsi
and    $0xfffffffffffffffe,%rsi
movdqa 0xd98(%rip),%xmm1
movdqa 0xda0(%rip),%xmm0
movdqa 0xda7(%rip),%xmm11
movdqa 0xdae(%rip),%xmm12
xor    %edx,%edx
movdqa 0xdb3(%rip),%xmm10
movdqa 0xdba(%rip),%xmm8
movdqa 0xdc1(%rip),%xmm9
nop
movdqa %xmm0,%xmm2
pmuludq %xmm10,%xmm2
pshufd $0xed,%xmm2,%xmm7
pshufd $0xf5,%xmm0,%xmm2
pmuludq %xmm10,%xmm2
pshufd $0xed,%xmm2,%xmm2
punpckldq %xmm2,%xmm7
psrld  $0x7,%xmm7
movdqa %xmm7,%xmm2
pslld  $0x8,%xmm2
psubd  %xmm2,%xmm7
paddd  %xmm0,%xmm7
movdqa %xmm1,%xmm2
pmuludq %xmm10,%xmm2
pshufd $0xed,%xmm2,%xmm2
pshufd $0xf5,%xmm1,%xmm3
pmuludq %xmm10,%xmm3
pshufd $0xed,%xmm3,%xmm3
punpckldq %xmm3,%xmm2
psrld  $0x7,%xmm2
movdqa %xmm2,%xmm3
pslld  $0x8,%xmm3
psubd  %xmm3,%xmm2
paddd  %xmm1,%xmm2
packuswb %xmm2,%xmm7
movdqa %xmm12,%xmm2
pmuludq %xmm10,%xmm2
pshufd $0xed,%xmm2,%xmm2
pshufd $0xf5,%xmm12,%xmm3
pmuludq %xmm10,%xmm3
pshufd $0xed,%xmm3,%xmm3
punpckldq %xmm3,%xmm2
psrld  $0x7,%xmm2
movdqa %xmm2,%xmm3
pslld  $0x8,%xmm3
psubd  %xmm3,%xmm2
paddd  %xmm12,%xmm2
movdqa %xmm11,%xmm3
pmuludq %xmm10,%xmm3
pshufd $0xed,%xmm3,%xmm3
pshufd $0xf5,%xmm11,%xmm5
pmuludq %xmm10,%xmm5
pshufd $0xed,%xmm5,%xmm5
punpckldq %xmm5,%xmm3
psrld  $0x7,%xmm3
movdqa %xmm3,%xmm5
pslld  $0x8,%xmm5
psubd  %xmm5,%xmm3
paddd  %xmm11,%xmm3
packuswb %xmm3,%xmm2
packuswb %xmm7,%xmm2
movdqu %xmm2,(%r15,%rdx,1)
movdqa %xmm11,%xmm7
paddd  %xmm8,%xmm7
movdqa %xmm12,%xmm2
paddd  %xmm8,%xmm2
movdqa %xmm1,%xmm3
paddd  %xmm8,%xmm3
movdqa %xmm0,%xmm4
paddd  %xmm8,%xmm4
movdqa %xmm4,%xmm5
pmuludq %xmm10,%xmm5
pshufd $0xed,%xmm5,%xmm5
pshufd $0xf5,%xmm4,%xmm6
pmuludq %xmm10,%xmm6
pshufd $0xed,%xmm6,%xmm6
punpckldq %xmm6,%xmm5
psrld  $0x7,%xmm5
movdqa %xmm5,%xmm6
pslld  $0x8,%xmm6
psubd  %xmm6,%xmm5
paddd  %xmm4,%xmm5
movdqa %xmm3,%xmm4
pmuludq %xmm10,%xmm4
pshufd $0xed,%xmm4,%xmm4
pshufd $0xf5,%xmm3,%xmm6
pmuludq %xmm10,%xmm6
pshufd $0xed,%xmm6,%xmm6
punpckldq %xmm6,%xmm4
psrld  $0x7,%xmm4
movdqa %xmm4,%xmm6
pslld  $0x8,%xmm6
psubd  %xmm6,%xmm4
paddd  %xmm3,%xmm4
packuswb %xmm4,%xmm5
movdqa %xmm2,%xmm3
pmuludq %xmm10,%xmm3
pshufd $0xed,%xmm3,%xmm3
pshufd $0xf5,%xmm2,%xmm4
pmuludq %xmm10,%xmm4
pshufd $0xed,%xmm4,%xmm4
punpckldq %xmm4,%xmm3
psrld  $0x7,%xmm3
movdqa %xmm3,%xmm4
pslld  $0x8,%xmm4
psubd  %xmm4,%xmm3
paddd  %xmm2,%xmm3
movdqa %xmm7,%xmm2
pmuludq %xmm10,%xmm2
pshufd $0xed,%xmm2,%xmm2
pshufd $0xf5,%xmm7,%xmm4
pmuludq %xmm10,%xmm4
pshufd $0xed,%xmm4,%xmm4
punpckldq %xmm4,%xmm2
psrld  $0x7,%xmm2
movdqa %xmm2,%xmm4
pslld  $0x8,%xmm4
psubd  %xmm4,%xmm2
paddd  %xmm7,%xmm2
packuswb %xmm2,%xmm3
packuswb %xmm5,%xmm3
movdqu %xmm3,0x10(%r15,%rdx,1)
add    $0x20,%rdx
paddd  %xmm9,%xmm12
paddd  %xmm9,%xmm11
paddd  %xmm9,%xmm0
paddd  %xmm9,%xmm1
add    $0xfffffffffffffffe,%rsi
jne    12b0 <main+0x130>
movdqa %xmm0,%xmm2
pmuludq %xmm10,%xmm2
pshufd $0xed,%xmm2,%xmm5
pshufd $0xf5,%xmm0,%xmm2
pmuludq %xmm10,%xmm2
pshufd $0xed,%xmm2,%xmm2
punpckldq %xmm2,%xmm5
psrld  $0x7,%xmm5
movdqa %xmm5,%xmm2
pslld  $0x8,%xmm2
psubd  %xmm2,%xmm5
paddd  %xmm0,%xmm5
movdqa %xmm1,%xmm0
pmuludq %xmm10,%xmm0
pshufd $0xed,%xmm0,%xmm0
pshufd $0xf5,%xmm1,%xmm2
pmuludq %xmm10,%xmm2
pshufd $0xed,%xmm2,%xmm2
punpckldq %xmm2,%xmm0
psrld  $0x7,%xmm0
movdqa %xmm0,%xmm2
pslld  $0x8,%xmm2
psubd  %xmm2,%xmm0
paddd  %xmm1,%xmm0
packuswb %xmm0,%xmm5
movdqa %xmm12,%xmm0
pmuludq %xmm10,%xmm0
pshufd $0xed,%xmm0,%xmm2
pshufd $0xf5,%xmm12,%xmm0
pmuludq %xmm10,%xmm0
pshufd $0xed,%xmm0,%xmm0
punpckldq %xmm0,%xmm2
psrld  $0x7,%xmm2
movdqa %xmm2,%xmm0
pslld  $0x8,%xmm0
psubd  %xmm0,%xmm2
paddd  %xmm12,%xmm2
movdqa %xmm11,%xmm0
pmuludq %xmm10,%xmm0
pshufd $0xed,%xmm0,%xmm0
pshufd $0xf5,%xmm11,%xmm1
pmuludq %xmm10,%xmm1
pshufd $0xed,%xmm1,%xmm1
punpckldq %xmm1,%xmm0
psrld  $0x7,%xmm0
movdqa %xmm0,%xmm1
pslld  $0x8,%xmm1
psubd  %xmm1,%xmm0
paddd  %xmm11,%xmm0
packuswb %xmm0,%xmm2
packuswb %xmm5,%xmm2
test   $0x1,%cl
je     15d4 <main+0x454>
movdqu %xmm2,(%r15,%rdx,1)
cmp    %rbx,%rax
je     160d <main+0x48d>
mov    $0x80808081,%ecx
mov    %rax,%rdx
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
mov    %eax,%esi
imul   %rcx,%rsi
shr    $0x27,%rsi
add    %al,%sil
mov    %sil,(%r15,%rdx,1)
add    $0x1,%rdx
add    $0x1,%eax
cmp    %rdx,%rbx
jne    15f0 <main+0x470>
cmpl   $0x0,(%rsp)
jle    163d <main+0x4bd>
xor    %ebp,%ebp
cs nopw 0x0(%rax,%rax,1)
nop
mov    %r14d,%edi
mov    %r15,%rsi
mov    %ebx,%edx
call   1030 <write@plt>
cmp    0x4(%rsp),%eax
jne    1653 <main+0x4d3>
mov    %eax,%ebx
add    $0x1,%ebp
cmp    (%rsp),%ebp
jl     1620 <main+0x4a0>
mov    %r14d,%edi
call   1040 <close@plt>
mov    0x297c(%rip),%rax
mov    (%rax),%edi
call   10a0 <exit@plt>
lea    0xa5e(%rip),%rdi
call   1090 <perror@plt>
jmp    121c <main+0x9c>

LLVM IR (-O0):
@O_WRONLY = global i32 0
@O_CREAT = global i32 0
@.str = [3 x i8] c"%d\00"
@stderr = global i32 0
@.str.1 = [46 x i8] c"usage: %s <fichier> <taille_bloc> <nb_blocs>\0A\00"
@EXIT_FAILURE = global i32 0
@.str.2 = [7 x i8] c"malloc\00"
@.str.3 = [6 x i8] c"write\00"
@EXIT_SUCCESS = global i32 0
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca i32
%7 = alloca i32
%8 = alloca i32
%9 = alloca i32
%10 = alloca i8*
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
%11 = load i32, i32* %4
%12 = icmp ne i32 %11, 4
br i1 %12, label %34, label %13
13: ; preds = %2
%14 = load i8**, i8*** %5
%15 = getelementptr inbounds i8*, i8** %14, i64 1
%16 = load i8*, i8** %15
%17 = load i32, i32* @O_WRONLY
%18 = load i32, i32* @O_CREAT
%19 = or i32 %17, %18
%20 = call i32 @open(i8* %16, i32 %19, i32 420)
store i32 %20, i32* %7
%21 = icmp slt i32 %20, 0
br i1 %21, label %34, label %22
22: ; preds = %13
%23 = load i8**, i8*** %5
%24 = getelementptr inbounds i8*, i8** %23, i64 2
%25 = load i8*, i8** %24
%26 = call i32 @sscanf(i8* %25, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32* %8)
%27 = icmp ne i32 %26, 1
br i1 %27, label %34, label %28
28: ; preds = %22
%29 = load i8**, i8*** %5
%30 = getelementptr inbounds i8*, i8** %29, i64 3
%31 = load i8*, i8** %30
%32 = call i32 @sscanf(i8* %31, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32* %9)
%33 = icmp ne i32 %32, 1
br i1 %33, label %34, label %42
34: ; preds = %28, %22, %13, %2
%35 = load i32, i32* @stderr
%36 = load i8**, i8*** %5
%37 = getelementptr inbounds i8*, i8** %36, i64 0
%38 = load i8*, i8** %37
%39 = call i32 @fprintf(i32 %35, i8* getelementptr inbounds ([46 x i8], [46 x i8]* @.str.1, i64 0, i64 0), i8* %38)
%40 = load i32, i32* @EXIT_FAILURE
%41 = call i32 @exit(i32 %40)
unreachable
42: ; preds = %28
%43 = load i32, i32* %8
%44 = call i8* @malloc(i32 %43)
store i8* %44, i8** %10
%45 = icmp eq i8* %44, null
br i1 %45, label %46, label %50
46: ; preds = %42
%47 = call i32 @perror(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.2, i64 0, i64 0))
%48 = load i32, i32* @EXIT_FAILURE
%49 = call i32 @exit(i32 %48)
unreachable
50: ; preds = %42
store i32 0, i32* %6
br label %51
51: ; preds = %63, %50
%52 = load i32, i32* %6
%53 = load i32, i32* %8
%54 = icmp slt i32 %52, %53
br i1 %54, label %55, label %66
55: ; preds = %51
%56 = load i32, i32* %6
%57 = srem i32 %56, 255
%58 = trunc i32 %57 to i8
%59 = load i8*, i8** %10
%60 = load i32, i32* %6
%61 = sext i32 %60 to i64
%62 = getelementptr inbounds i8, i8* %59, i64 %61
store i8 %58, i8* %62
br label %63
63: ; preds = %55
%64 = load i32, i32* %6
%65 = add nsw i32 %64, 1
store i32 %65, i32* %6
br label %51
66: ; preds = %51
store i32 0, i32* %6
br label %67
67: ; preds = %83, %66
%68 = load i32, i32* %6
%69 = load i32, i32* %9
%70 = icmp slt i32 %68, %69
br i1 %70, label %71, label %86
71: ; preds = %67
%72 = load i32, i32* %7
%73 = load i8*, i8** %10
%74 = load i32, i32* %8
%75 = call i32 @write(i32 %72, i8* %73, i32 %74)
%76 = load i32, i32* %8
%77 = icmp ne i32 %75, %76
br i1 %77, label %78, label %82
78: ; preds = %71
%79 = call i32 @perror(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.3, i64 0, i64 0))
%80 = load i32, i32* @EXIT_FAILURE
%81 = call i32 @exit(i32 %80)
unreachable
82: ; preds = %71
br label %83
83: ; preds = %82
%84 = load i32, i32* %6
%85 = add nsw i32 %84, 1
store i32 %85, i32* %6
br label %67
86: ; preds = %67
%87 = load i32, i32* %7
%88 = call i32 @close(i32 %87)
%89 = load i32, i32* @EXIT_SUCCESS
%90 = call i32 @exit(i32 %89)
unreachable
}

LLVM IR (-O2):
@O_WRONLY = global i32 0
@O_CREAT = global i32 0
@.str = [3 x i8] c"%d\00"
@stderr = global i32 0
@.str.1 = [46 x i8] c"usage: %s <fichier> <taille_bloc> <nb_blocs>\0A\00"
@EXIT_FAILURE = global i32 0
@.str.2 = [7 x i8] c"malloc\00"
@.str.3 = [6 x i8] c"write\00"
@EXIT_SUCCESS = global i32 0
define i32 @main(i32 %0, i8** nocapture %1) {
%3 = alloca i32
%4 = alloca i32
%5 = bitcast i32* %3 to i8*
%6 = bitcast i32* %4 to i8*
%7 = icmp eq i32 %0, 4
br i1 %7, label %8, label %26
8: ; preds = %2
%9 = getelementptr inbounds i8*, i8** %1, i64 1
%10 = load i8*, i8** %9
%11 = load i32, i32* @O_WRONLY
%12 = load i32, i32* @O_CREAT
%13 = or i32 %12, %11
%14 = tail call i32 @open(i8* %10, i32 %13, i32 420)
%15 = icmp slt i32 %14, 0
br i1 %15, label %26, label %16
16: ; preds = %8
%17 = getelementptr inbounds i8*, i8** %1, i64 2
%18 = load i8*, i8** %17
%19 = call i32 @sscanf(i8* %18, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32* %3)
%20 = icmp eq i32 %19, 1
br i1 %20, label %21, label %26
21: ; preds = %16
%22 = getelementptr inbounds i8*, i8** %1, i64 3
%23 = load i8*, i8** %22
%24 = call i32 @sscanf(i8* %23, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32* %4)
%25 = icmp eq i32 %24, 1
br i1 %25, label %32, label %26
26: ; preds = %21, %16, %8, %2
%27 = load i32, i32* @stderr
%28 = load i8*, i8** %1
%29 = call i32 @fprintf(i32 %27, i8* getelementptr inbounds ([46 x i8], [46 x i8]* @.str.1, i64 0, i64 0), i8* %28)
%30 = load i32, i32* @EXIT_FAILURE
%31 = call i32 @exit(i32 %30)
unreachable
32: ; preds = %21
%33 = load i32, i32* %3
%34 = call i8* @malloc(i32 %33)
%35 = icmp eq i8* %34, null
br i1 %35, label %82, label %36
36: ; preds = %32
%37 = icmp sgt i32 %33, 0
br i1 %37, label %38, label %86
38: ; preds = %36
%39 = zext i32 %33 to i64
%40 = icmp ult i32 %33, 16
br i1 %40, label %80, label %41
41: ; preds = %38
%42 = and i64 %39, 4294967280
%43 = add nsw i64 %42, -16
%44 = lshr exact i64 %43, 4
%45 = add nuw nsw i64 %44, 1
%46 = and i64 %45, 1
%47 = icmp eq i64 %43, 0
br i1 %47, label %71, label %48
48: ; preds = %41
%49 = and i64 %45, 2305843009213693950
br label %50
50: ; preds = %50, %48
%51 = phi i64 [ 0, %48 ], [ %64, %50 ]
%52 = phi <16 x i32> [ <i32 0, i32 1, i32 2, i32 3, i32 4, i32 5, i32 6, i32 7, i32 8, i32 9, i32 10, i32 11, i32 12, i32 13, i32 14, i32 15>, %48 ], [ %65, %50 ]
%53 = phi i64 [ 0, %48 ], [ %66, %50 ]
%54 = urem <16 x i32> %52, <i32 255, i32 255, i32 255, i32 255, i32 255, i32 255, i32 255, i32 255, i32 255, i32 255, i32 255, i32 255, i32 255, i32 255, i32 255, i32 255>
%55 = trunc <16 x i32> %54 to <16 x i8>
%56 = getelementptr inbounds i8, i8* %34, i64 %51
%57 = bitcast i8* %56 to <16 x i8>*
store <16 x i8> %55, <16 x i8>* %57
%58 = or i64 %51, 16
%59 = add <16 x i32> %52, <i32 16, i32 16, i32 16, i32 16, i32 16, i32 16, i32 16, i32 16, i32 16, i32 16, i32 16, i32 16, i32 16, i32 16, i32 16, i32 16>
%60 = urem <16 x i32> %59, <i32 255, i32 255, i32 255, i32 255, i32 255, i32 255, i32 255, i32 255, i32 255, i32 255, i32 255, i32 255, i32 255, i32 255, i32 255, i32 255>
%61 = trunc <16 x i32> %60 to <16 x i8>
%62 = getelementptr inbounds i8, i8* %34, i64 %58
%63 = bitcast i8* %62 to <16 x i8>*
store <16 x i8> %61, <16 x i8>* %63
%64 = add nuw i64 %51, 32
%65 = add <16 x i32> %52, <i32 32, i32 32, i32 32, i32 32, i32 32, i32 32, i32 32, i32 32, i32 32, i32 32, i32 32, i32 32, i32 32, i32 32, i32 32, i32 32>
%66 = add i64 %53, 2
%67 = icmp eq i64 %66, %49
br i1 %67, label %68, label %50
68: ; preds = %50
%69 = urem <16 x i32> %65, <i32 255, i32 255, i32 255, i32 255, i32 255, i32 255, i32 255, i32 255, i32 255, i32 255, i32 255, i32 255, i32 255, i32 255, i32 255, i32 255>
%70 = trunc <16 x i32> %69 to <16 x i8>
br label %71
71: ; preds = %68, %41
%72 = phi i64 [ 0, %41 ], [ %64, %68 ]
%73 = phi <16 x i8> [ <i8 0, i8 1, i8 2, i8 3, i8 4, i8 5, i8 6, i8 7, i8 8, i8 9, i8 10, i8 11, i8 12, i8 13, i8 14, i8 15>, %41 ], [ %70, %68 ]
%74 = icmp eq i64 %46, 0
br i1 %74, label %78, label %75
75: ; preds = %71
%76 = getelementptr inbounds i8, i8* %34, i64 %72
%77 = bitcast i8* %76 to <16 x i8>*
store <16 x i8> %73, <16 x i8>* %77
br label %78
78: ; preds = %71, %75
%79 = icmp eq i64 %42, %39
br i1 %79, label %86, label %80
80: ; preds = %38, %78
%81 = phi i64 [ 0, %38 ], [ %42, %78 ]
br label %89
82: ; preds = %32
%83 = call i32 @perror(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.2, i64 0, i64 0))
%84 = load i32, i32* @EXIT_FAILURE
%85 = call i32 @exit(i32 %84)
unreachable
86: ; preds = %89, %78, %36
%87 = load i32, i32* %4
%88 = icmp sgt i32 %87, 0
br i1 %88, label %100, label %111
89: ; preds = %80, %89
%90 = phi i64 [ %95, %89 ], [ %81, %80 ]
%91 = trunc i64 %90 to i32
%92 = urem i32 %91, 255
%93 = trunc i32 %92 to i8
%94 = getelementptr inbounds i8, i8* %34, i64 %90
store i8 %93, i8* %94
%95 = add nuw nsw i64 %90, 1
%96 = icmp eq i64 %95, %39
br i1 %96, label %86, label %89
97: ; preds = %100
%98 = load i32, i32* %4
%99 = icmp slt i32 %106, %98
br i1 %99, label %100, label %111
100: ; preds = %86, %97
%101 = phi i32 [ %103, %97 ], [ %33, %86 ]
%102 = phi i32 [ %106, %97 ], [ 0, %86 ]
%103 = call i32 @write(i32 %14, i8* %34, i32 %101)
%104 = load i32, i32* %3
%105 = icmp eq i32 %103, %104
%106 = add nuw nsw i32 %102, 1
br i1 %105, label %97, label %107
107: ; preds = %100
%108 = call i32 @perror(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.3, i64 0, i64 0))
%109 = load i32, i32* @EXIT_FAILURE
%110 = call i32 @exit(i32 %109)
unreachable
111: ; preds = %97, %86
%112 = call i32 @close(i32 %14)
%113 = load i32, i32* @EXIT_SUCCESS
%114 = call i32 @exit(i32 %113)
unreachable
}