#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_SYNC;
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 | O_SYNC, 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    121b <main+0x9b>
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rdi
mov    0x2e01(%rip),%rax
mov    (%rax),%esi
mov    0x2e40(%rip),%rax
or     (%rax),%esi
mov    0x2e1f(%rip),%rax
or     (%rax),%esi
mov    $0x1a4,%edx
call   1080 <open@plt>
mov    %eax,-0x18(%rbp)
cmp    $0x0,%eax
jl     121b <main+0x9b>
mov    -0x10(%rbp),%rax
mov    0x10(%rax),%rdi
lea    0xe18(%rip),%rsi
lea    -0x1c(%rbp),%rdx
call   1070 <sscanf@plt>
cmp    $0x1,%eax
jne    121b <main+0x9b>
mov    -0x10(%rbp),%rax
mov    0x18(%rax),%rdi
lea    0xdf7(%rip),%rsi
lea    -0x20(%rbp),%rdx
call   1070 <sscanf@plt>
cmp    $0x1,%eax
je     1245 <main+0xc5>
mov    0x2dae(%rip),%rax
mov    (%rax),%edi
mov    -0x10(%rbp),%rax
mov    (%rax),%rdx
lea    0xdd1(%rip),%rsi
call   1050 <fprintf@plt>
mov    0x2d8a(%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    1275 <main+0xf5>
lea    0xdcf(%rip),%rdi
call   1090 <perror@plt>
mov    0x2d5a(%rip),%rax
mov    (%rax),%edi
call   10a0 <exit@plt>
movl   $0x0,-0x14(%rbp)
mov    -0x14(%rbp),%eax
cmp    -0x1c(%rbp),%eax
jge    12ac <main+0x12c>
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    127c <main+0xfc>
movl   $0x0,-0x14(%rbp)
mov    -0x14(%rbp),%eax
cmp    -0x20(%rbp),%eax
jge    1304 <main+0x184>
mov    -0x18(%rbp),%edi
mov    -0x28(%rbp),%rsi
mov    -0x1c(%rbp),%edx
call   1030 <write@plt>
cmp    -0x1c(%rbp),%eax
je     12f1 <main+0x171>
lea    0xd5a(%rip),%rdi
call   1090 <perror@plt>
mov    0x2cde(%rip),%rax
mov    (%rax),%edi
call   10a0 <exit@plt>
jmp    12f6 <main+0x176>
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
jmp    12b3 <main+0x133>
mov    -0x18(%rbp),%edi
call   1040 <close@plt>
mov    0x2cad(%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    120d <main+0x8d>
mov    0x2e1a(%rip),%rax
mov    0x2e5b(%rip),%rcx
mov    (%rcx),%esi
or     (%rax),%esi
mov    0x8(%rbx),%rdi
mov    0x2e34(%rip),%rax
or     (%rax),%esi
mov    $0x1a4,%edx
call   1080 <open@plt>
test   %eax,%eax
js     120d <main+0x8d>
mov    %eax,%r14d
mov    0x10(%rbx),%rdi
lea    0xeb6(%rip),%rsi
lea    0x4(%rsp),%rdx
call   1070 <sscanf@plt>
cmp    $0x1,%eax
jne    120d <main+0x8d>
mov    0x18(%rbx),%rdi
lea    0xe9c(%rip),%rsi
mov    %rsp,%rdx
call   1070 <sscanf@plt>
cmp    $0x1,%eax
jne    120d <main+0x8d>
mov    0x4(%rsp),%ebx
mov    %ebx,%edi
call   1060 <malloc@plt>
test   %rax,%rax
jne    1233 <main+0xb3>
lea    0xea9(%rip),%rdi
jmp    166a <main+0x4ea>
mov    0x2dbc(%rip),%rax
mov    (%rax),%edi
mov    (%rbx),%rdx
lea    0xe63(%rip),%rsi
call   1050 <fprintf@plt>
mov    0x2d9c(%rip),%rax
mov    (%rax),%edi
call   10a0 <exit@plt>
mov    %rax,%r15
test   %ebx,%ebx
jle    161d <main+0x49d>
cmp    $0x10,%ebx
jae    124a <main+0xca>
xor    %eax,%eax
jmp    15e9 <main+0x469>
mov    %ebx,%eax
and    $0xfffffff0,%eax
lea    -0x10(%rax),%rdx
mov    %rdx,%rcx
shr    $0x4,%rcx
add    $0x1,%rcx
test   %rdx,%rdx
jne    1272 <main+0xf2>
movdqa 0xd95(%rip),%xmm2
xor    %edx,%edx
jmp    15d9 <main+0x459>
mov    %rcx,%rsi
and    $0xfffffffffffffffe,%rsi
movdqa 0xd8f(%rip),%xmm1
movdqa 0xd97(%rip),%xmm0
movdqa 0xd9e(%rip),%xmm11
movdqa 0xda5(%rip),%xmm12
xor    %edx,%edx
movdqa 0xdaa(%rip),%xmm10
movdqa 0xdb1(%rip),%xmm8
movdqa 0xdb8(%rip),%xmm9
nopl   0x0(%rax,%rax,1)
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    12c0 <main+0x140>
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     15e4 <main+0x464>
movdqu %xmm2,(%r15,%rdx,1)
cmp    %rbx,%rax
je     161d <main+0x49d>
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    1600 <main+0x480>
cmpl   $0x0,(%rsp)
jle    164d <main+0x4cd>
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    1663 <main+0x4e3>
mov    %eax,%ebx
add    $0x1,%ebp
cmp    (%rsp),%ebp
jl     1630 <main+0x4b0>
mov    %r14d,%edi
call   1040 <close@plt>
mov    0x2964(%rip),%rax
mov    (%rax),%edi
call   10a0 <exit@plt>
lea    0xa4e(%rip),%rdi
call   1090 <perror@plt>
jmp    1225 <main+0xa5>

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

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