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

/* Variables and functions */
int /*<<< orphan*/ EXIT_FAILURE;
int *MAP_FAILED;
int /*<<< orphan*/ MAP_SHARED;
int O_CREAT;
int O_RDWR;
int O_TRUNC;
int PROT_READ;
int PROT_WRITE;
int /*<<< orphan*/ SEEK_SET;
int /*<<< orphan*/ close(int);
int /*<<< orphan*/ exit(int /*<<< orphan*/);
int lseek(int, int, int /*<<< orphan*/);
int *mmap(int /*<<< orphan*/, int, int, int /*<<< orphan*/, int,
          int /*<<< orphan*/);
int munmap(int *, int);
int open(char *, int, int /*<<< orphan*/);
int /*<<< orphan*/ perror(char *);
int /*<<< orphan*/ printf(char *, int, int);
int write(int, char *, int);
int main(int argc, char *argv[]) {
  int i;
  int fd;
  int result;
  int *map;
  fd = open("/home/george/Documents/C/mmapped.bin", O_RDWR | O_CREAT | O_TRUNC,
            (mode_t)0600);
  if (fd == -1) {
    perror("Error opening file for writing");
    exit(EXIT_FAILURE);
  }
  result = lseek(fd, ((10) * sizeof(int)) - 1, SEEK_SET);
  if (result == -1) {
    close(fd);
    perror("Error calling lseek() to 'stretch' the file");
    exit(EXIT_FAILURE);
  }
  result = write(fd, "", 1);
  if (result != 1) {
    close(fd);
    perror("Error writing last byte of the file");
    exit(EXIT_FAILURE);
  }
  map =
      mmap(0, ((10) * sizeof(int)), PROT_READ | PROT_WRITE, MAP_SHARED, fd, 0);
  if (map == MAP_FAILED) {
    close(fd);
    perror("Error mmapping the file");
    exit(EXIT_FAILURE);
  }
  for (i = 1; i <= (10); ++i) {
    map[i] = 2 * i;
  }
  map = mmap(0, ((10) * sizeof(int)), PROT_READ, MAP_SHARED, fd, 0);
  if (map == MAP_FAILED) {
    close(fd);
    perror("Error mmapping the file");
    exit(EXIT_FAILURE);
  }
  for (i = 1; i <= (10); ++i) {
    printf("%d: %d\n", i, map[i]);
  }
  if (munmap(map, ((10) * sizeof(int))) == -1) {
    perror("Error un-mmapping the file");
  }
  close(fd);
  return 0;
}


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)
mov    0x2e1b(%rip),%rax
mov    (%rax),%esi
mov    0x2e42(%rip),%rax
or     (%rax),%esi
mov    0x2e31(%rip),%rax
or     (%rax),%esi
lea    0xe38(%rip),%rdi
mov    $0x180,%edx
call   1090 <open@plt>
mov    %eax,-0x18(%rbp)
cmpl   $0xffffffff,-0x18(%rbp)
jne    11f9 <main+0x69>
lea    0xe3f(%rip),%rdi
call   10a0 <perror@plt>
mov    0x2dbe(%rip),%rax
mov    (%rax),%edi
call   10b0 <exit@plt>
mov    -0x18(%rbp),%edi
mov    0x2db5(%rip),%rax
mov    (%rax),%edx
mov    $0x27,%esi
call   1060 <lseek@plt>
mov    %eax,-0x1c(%rbp)
cmpl   $0xffffffff,-0x1c(%rbp)
jne    123e <main+0xae>
mov    -0x18(%rbp),%edi
call   1070 <close@plt>
lea    0xe19(%rip),%rdi
call   10a0 <perror@plt>
mov    0x2d79(%rip),%rax
mov    (%rax),%edi
call   10b0 <exit@plt>
mov    -0x18(%rbp),%edi
lea    0xe6b(%rip),%rsi
mov    $0x1,%edx
call   1030 <write@plt>
mov    %eax,-0x1c(%rbp)
cmpl   $0x1,-0x1c(%rbp)
je     1281 <main+0xf1>
mov    -0x18(%rbp),%edi
call   1070 <close@plt>
lea    0xe02(%rip),%rdi
call   10a0 <perror@plt>
mov    0x2d36(%rip),%rax
mov    (%rax),%edi
call   10b0 <exit@plt>
mov    0x2d60(%rip),%rax
mov    (%rax),%edx
mov    0x2d17(%rip),%rax
or     (%rax),%edx
mov    0x2d3e(%rip),%rax
mov    (%rax),%ecx
mov    -0x18(%rbp),%r8d
xor    %r9d,%r9d
mov    $0x28,%esi
mov    %r9d,%edi
call   1040 <mmap@plt>
mov    %rax,-0x28(%rbp)
mov    -0x28(%rbp),%rax
mov    0x2ce1(%rip),%rcx
cmp    (%rcx),%rax
jne    12ea <main+0x15a>
mov    -0x18(%rbp),%edi
call   1070 <close@plt>
lea    0xdbd(%rip),%rdi
call   10a0 <perror@plt>
mov    0x2ccd(%rip),%rax
mov    (%rax),%edi
call   10b0 <exit@plt>
movl   $0x1,-0x14(%rbp)
cmpl   $0xa,-0x14(%rbp)
jg     131a <main+0x18a>
mov    -0x14(%rbp),%edx
shl    $0x1,%edx
mov    -0x28(%rbp),%rax
movslq -0x14(%rbp),%rcx
mov    %edx,(%rax,%rcx,4)
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
jmp    12f1 <main+0x161>
mov    0x2cc7(%rip),%rax
mov    (%rax),%edx
mov    0x2cae(%rip),%rax
mov    (%rax),%ecx
mov    -0x18(%rbp),%r8d
xor    %r9d,%r9d
mov    $0x28,%esi
mov    %r9d,%edi
call   1040 <mmap@plt>
mov    %rax,-0x28(%rbp)
mov    -0x28(%rbp),%rax
mov    0x2c51(%rip),%rcx
cmp    (%rcx),%rax
jne    137a <main+0x1ea>
mov    -0x18(%rbp),%edi
call   1070 <close@plt>
lea    0xd2d(%rip),%rdi
call   10a0 <perror@plt>
mov    0x2c3d(%rip),%rax
mov    (%rax),%edi
call   10b0 <exit@plt>
movl   $0x1,-0x14(%rbp)
cmpl   $0xa,-0x14(%rbp)
jg     13b3 <main+0x223>
mov    -0x14(%rbp),%esi
mov    -0x28(%rbp),%rax
movslq -0x14(%rbp),%rcx
mov    (%rax,%rcx,4),%edx
lea    0xd0c(%rip),%rdi
call   1050 <printf@plt>
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
jmp    1381 <main+0x1f1>
mov    -0x28(%rbp),%rdi
mov    $0x28,%esi
call   1080 <munmap@plt>
cmp    $0xffffffff,%eax
jne    13d6 <main+0x246>
lea    0xce3(%rip),%rdi
call   10a0 <perror@plt>
mov    -0x18(%rbp),%edi
call   1070 <close@plt>
xor    %eax,%eax
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %rbx
push   %rax
mov    0x2e2a(%rip),%rax
mov    0x2e53(%rip),%rcx
mov    (%rcx),%esi
or     (%rax),%esi
mov    0x2e40(%rip),%rax
or     (%rax),%esi
lea    0xe67(%rip),%rdi
mov    $0x180,%edx
call   1090 <open@plt>
cmp    $0xffffffff,%eax
je     137f <main+0x1ef>
mov    %eax,%r14d
mov    0x2de2(%rip),%rax
mov    (%rax),%edx
mov    %r14d,%edi
mov    $0x27,%esi
call   1060 <lseek@plt>
cmp    $0xffffffff,%eax
je     1388 <main+0x1f8>
lea    0xede(%rip),%rsi
mov    %r14d,%edi
mov    $0x1,%edx
call   1030 <write@plt>
cmp    $0x1,%eax
jne    1399 <main+0x209>
mov    0x2dd6(%rip),%r15
mov    0x2d8f(%rip),%rax
mov    (%rax),%edx
or     (%r15),%edx
mov    0x2db3(%rip),%rbx
mov    (%rbx),%ecx
xor    %edi,%edi
mov    $0x28,%esi
mov    %r14d,%r8d
xor    %r9d,%r9d
call   1040 <mmap@plt>
mov    0x2d60(%rip),%rbp
cmp    0x0(%rbp),%rax
je     136e <main+0x1de>
movaps 0xdaf(%rip),%xmm0
movups %xmm0,0x4(%rax)
movaps 0xdb4(%rip),%xmm0
movups %xmm0,0x14(%rax)
movabs $0x1400000012,%rcx
mov    %rcx,0x24(%rax)
mov    (%r15),%edx
mov    (%rbx),%ecx
xor    %edi,%edi
mov    $0x28,%esi
mov    %r14d,%r8d
xor    %r9d,%r9d
call   1040 <mmap@plt>
cmp    0x0(%rbp),%rax
je     136e <main+0x1de>
mov    %rax,%rbx
mov    0x4(%rax),%edx
lea    0xe30(%rip),%rbp
mov    %rbp,%rdi
mov    $0x1,%esi
call   1050 <printf@plt>
mov    0x8(%rbx),%edx
mov    %rbp,%rdi
mov    $0x2,%esi
call   1050 <printf@plt>
mov    0xc(%rbx),%edx
mov    %rbp,%rdi
mov    $0x3,%esi
call   1050 <printf@plt>
mov    0x10(%rbx),%edx
mov    %rbp,%rdi
mov    $0x4,%esi
call   1050 <printf@plt>
mov    0x14(%rbx),%edx
mov    %rbp,%rdi
mov    $0x5,%esi
call   1050 <printf@plt>
mov    0x18(%rbx),%edx
mov    %rbp,%rdi
mov    $0x6,%esi
call   1050 <printf@plt>
mov    0x1c(%rbx),%edx
mov    %rbp,%rdi
mov    $0x7,%esi
call   1050 <printf@plt>
mov    0x20(%rbx),%edx
mov    %rbp,%rdi
mov    $0x8,%esi
call   1050 <printf@plt>
mov    0x24(%rbx),%edx
mov    %rbp,%rdi
mov    $0x9,%esi
call   1050 <printf@plt>
mov    0x28(%rbx),%edx
mov    %rbp,%rdi
mov    $0xa,%esi
call   1050 <printf@plt>
mov    %rbx,%rdi
mov    $0x28,%esi
call   1080 <munmap@plt>
cmp    $0xffffffff,%eax
je     1360 <main+0x1d0>
mov    %r14d,%edi
call   1070 <close@plt>
xor    %eax,%eax
add    $0x8,%rsp
pop    %rbx
pop    %r14
pop    %r15
pop    %rbp
ret
lea    0xd6d(%rip),%rdi
call   10a0 <perror@plt>
jmp    134b <main+0x1bb>
mov    %r14d,%edi
call   1070 <close@plt>
lea    0xd37(%rip),%rdi
jmp    13a8 <main+0x218>
lea    0xcbf(%rip),%rdi
jmp    13a8 <main+0x218>
mov    %r14d,%edi
call   1070 <close@plt>
lea    0xccd(%rip),%rdi
jmp    13a8 <main+0x218>
mov    %r14d,%edi
call   1070 <close@plt>
lea    0xce8(%rip),%rdi
call   10a0 <perror@plt>
mov    0x2bfc(%rip),%rax
mov    (%rax),%edi
call   10b0 <exit@plt>

LLVM IR (-O0):
@.str = [37 x i8] c"/home/george/Documents/C/mmapped.bin\00"
@O_RDWR = global i32 0
@O_CREAT = global i32 0
@O_TRUNC = global i32 0
@.str.1 = [31 x i8] c"Error opening file for writing\00"
@EXIT_FAILURE = global i32 0
@SEEK_SET = global i32 0
@.str.2 = [44 x i8] c"Error calling lseek() to 'stretch' the file\00"
@.str.3 = [1 x i8] zeroinitializer
@.str.4 = [36 x i8] c"Error writing last byte of the file\00"
@PROT_READ = global i32 0
@PROT_WRITE = global i32 0
@MAP_SHARED = global i32 0
@MAP_FAILED = global i32* null
@.str.5 = [24 x i8] c"Error mmapping the file\00"
@.str.6 = [8 x i8] c"%d: %d\0A\00"
@.str.7 = [27 x i8] c"Error un-mmapping the file\00"
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*
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
%10 = load i32, i32* @O_RDWR
%11 = load i32, i32* @O_CREAT
%12 = or i32 %10, %11
%13 = load i32, i32* @O_TRUNC
%14 = or i32 %12, %13
%15 = call i32 @open(i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str, i64 0, i64 0), i32 %14, i32 384)
store i32 %15, i32* %7
%16 = load i32, i32* %7
%17 = icmp eq i32 %16, -1
br i1 %17, label %18, label %22
18: ; preds = %2
%19 = call i32 @perror(i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str.1, i64 0, i64 0))
%20 = load i32, i32* @EXIT_FAILURE
%21 = call i32 @exit(i32 %20)
unreachable
22: ; preds = %2
%23 = load i32, i32* %7
%24 = load i32, i32* @SEEK_SET
%25 = call i32 @lseek(i32 %23, i32 39, i32 %24)
store i32 %25, i32* %8
%26 = load i32, i32* %8
%27 = icmp eq i32 %26, -1
br i1 %27, label %28, label %34
28: ; preds = %22
%29 = load i32, i32* %7
%30 = call i32 @close(i32 %29)
%31 = call i32 @perror(i8* getelementptr inbounds ([44 x i8], [44 x i8]* @.str.2, i64 0, i64 0))
%32 = load i32, i32* @EXIT_FAILURE
%33 = call i32 @exit(i32 %32)
unreachable
34: ; preds = %22
%35 = load i32, i32* %7
%36 = call i32 @write(i32 %35, i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.3, i64 0, i64 0), i32 1)
store i32 %36, i32* %8
%37 = load i32, i32* %8
%38 = icmp ne i32 %37, 1
br i1 %38, label %39, label %45
39: ; preds = %34
%40 = load i32, i32* %7
%41 = call i32 @close(i32 %40)
%42 = call i32 @perror(i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.4, i64 0, i64 0))
%43 = load i32, i32* @EXIT_FAILURE
%44 = call i32 @exit(i32 %43)
unreachable
45: ; preds = %34
%46 = load i32, i32* @PROT_READ
%47 = load i32, i32* @PROT_WRITE
%48 = or i32 %46, %47
%49 = load i32, i32* @MAP_SHARED
%50 = load i32, i32* %7
%51 = call i32* @mmap(i32 0, i32 40, i32 %48, i32 %49, i32 %50, i32 0)
store i32* %51, i32** %9
%52 = load i32*, i32** %9
%53 = load i32*, i32** @MAP_FAILED
%54 = icmp eq i32* %52, %53
br i1 %54, label %55, label %61
55: ; preds = %45
%56 = load i32, i32* %7
%57 = call i32 @close(i32 %56)
%58 = call i32 @perror(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.5, i64 0, i64 0))
%59 = load i32, i32* @EXIT_FAILURE
%60 = call i32 @exit(i32 %59)
unreachable
61: ; preds = %45
store i32 1, i32* %6
br label %62
62: ; preds = %72, %61
%63 = load i32, i32* %6
%64 = icmp sle i32 %63, 10
br i1 %64, label %65, label %75
65: ; preds = %62
%66 = load i32, i32* %6
%67 = mul nsw i32 2, %66
%68 = load i32*, i32** %9
%69 = load i32, i32* %6
%70 = sext i32 %69 to i64
%71 = getelementptr inbounds i32, i32* %68, i64 %70
store i32 %67, i32* %71
br label %72
72: ; preds = %65
%73 = load i32, i32* %6
%74 = add nsw i32 %73, 1
store i32 %74, i32* %6
br label %62
75: ; preds = %62
%76 = load i32, i32* @PROT_READ
%77 = load i32, i32* @MAP_SHARED
%78 = load i32, i32* %7
%79 = call i32* @mmap(i32 0, i32 40, i32 %76, i32 %77, i32 %78, i32 0)
store i32* %79, i32** %9
%80 = load i32*, i32** %9
%81 = load i32*, i32** @MAP_FAILED
%82 = icmp eq i32* %80, %81
br i1 %82, label %83, label %89
83: ; preds = %75
%84 = load i32, i32* %7
%85 = call i32 @close(i32 %84)
%86 = call i32 @perror(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.5, i64 0, i64 0))
%87 = load i32, i32* @EXIT_FAILURE
%88 = call i32 @exit(i32 %87)
unreachable
89: ; preds = %75
store i32 1, i32* %6
br label %90
90: ; preds = %101, %89
%91 = load i32, i32* %6
%92 = icmp sle i32 %91, 10
br i1 %92, label %93, label %104
93: ; preds = %90
%94 = load i32, i32* %6
%95 = load i32*, i32** %9
%96 = load i32, i32* %6
%97 = sext i32 %96 to i64
%98 = getelementptr inbounds i32, i32* %95, i64 %97
%99 = load i32, i32* %98
%100 = call i32 @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.6, i64 0, i64 0), i32 %94, i32 %99)
br label %101
101: ; preds = %93
%102 = load i32, i32* %6
%103 = add nsw i32 %102, 1
store i32 %103, i32* %6
br label %90
104: ; preds = %90
%105 = load i32*, i32** %9
%106 = call i32 @munmap(i32* %105, i32 40)
%107 = icmp eq i32 %106, -1
br i1 %107, label %108, label %110
108: ; preds = %104
%109 = call i32 @perror(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.7, i64 0, i64 0))
br label %110
110: ; preds = %108, %104
%111 = load i32, i32* %7
%112 = call i32 @close(i32 %111)
ret i32 0
}

LLVM IR (-O2):
@.str = [37 x i8] c"/home/george/Documents/C/mmapped.bin\00"
@O_RDWR = global i32 0
@O_CREAT = global i32 0
@O_TRUNC = global i32 0
@.str.1 = [31 x i8] c"Error opening file for writing\00"
@EXIT_FAILURE = global i32 0
@SEEK_SET = global i32 0
@.str.2 = [44 x i8] c"Error calling lseek() to 'stretch' the file\00"
@.str.3 = [1 x i8] zeroinitializer
@.str.4 = [36 x i8] c"Error writing last byte of the file\00"
@PROT_READ = global i32 0
@PROT_WRITE = global i32 0
@MAP_SHARED = global i32 0
@MAP_FAILED = global i32* null
@.str.5 = [24 x i8] c"Error mmapping the file\00"
@.str.6 = [8 x i8] c"%d: %d\0A\00"
@.str.7 = [27 x i8] c"Error un-mmapping the file\00"
define i32 @main(i32 %0, i8** nocapture readnone %1) {
%3 = load i32, i32* @O_RDWR
%4 = load i32, i32* @O_CREAT
%5 = or i32 %4, %3
%6 = load i32, i32* @O_TRUNC
%7 = or i32 %5, %6
%8 = tail call i32 @open(i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str, i64 0, i64 0), i32 %7, i32 384)
%9 = icmp eq i32 %8, -1
br i1 %9, label %10, label %14
10: ; preds = %2
%11 = tail call i32 @perror(i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str.1, i64 0, i64 0))
%12 = load i32, i32* @EXIT_FAILURE
%13 = tail call i32 @exit(i32 %12)
unreachable
14: ; preds = %2
%15 = load i32, i32* @SEEK_SET
%16 = tail call i32 @lseek(i32 %8, i32 39, i32 %15)
%17 = icmp eq i32 %16, -1
br i1 %17, label %18, label %23
18: ; preds = %14
%19 = tail call i32 @close(i32 %8)
%20 = tail call i32 @perror(i8* getelementptr inbounds ([44 x i8], [44 x i8]* @.str.2, i64 0, i64 0))
%21 = load i32, i32* @EXIT_FAILURE
%22 = tail call i32 @exit(i32 %21)
unreachable
23: ; preds = %14
%24 = tail call i32 @write(i32 %8, i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.3, i64 0, i64 0), i32 1)
%25 = icmp eq i32 %24, 1
br i1 %25, label %31, label %26
26: ; preds = %23
%27 = tail call i32 @close(i32 %8)
%28 = tail call i32 @perror(i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.4, i64 0, i64 0))
%29 = load i32, i32* @EXIT_FAILURE
%30 = tail call i32 @exit(i32 %29)
unreachable
31: ; preds = %23
%32 = load i32, i32* @PROT_READ
%33 = load i32, i32* @PROT_WRITE
%34 = or i32 %33, %32
%35 = load i32, i32* @MAP_SHARED
%36 = tail call i32* @mmap(i32 0, i32 40, i32 %34, i32 %35, i32 %8, i32 0)
%37 = load i32*, i32** @MAP_FAILED
%38 = icmp eq i32* %36, %37
br i1 %38, label %51, label %39
39: ; preds = %31
%40 = getelementptr inbounds i32, i32* %36, i64 1
%41 = bitcast i32* %40 to <4 x i32>*
store <4 x i32> <i32 2, i32 4, i32 6, i32 8>, <4 x i32>* %41
%42 = getelementptr inbounds i32, i32* %36, i64 5
%43 = bitcast i32* %42 to <4 x i32>*
store <4 x i32> <i32 10, i32 12, i32 14, i32 16>, <4 x i32>* %43
%44 = getelementptr inbounds i32, i32* %36, i64 9
store i32 18, i32* %44
%45 = getelementptr inbounds i32, i32* %36, i64 10
store i32 20, i32* %45
%46 = load i32, i32* @PROT_READ
%47 = load i32, i32* @MAP_SHARED
%48 = tail call i32* @mmap(i32 0, i32 40, i32 %46, i32 %47, i32 %8, i32 0)
%49 = load i32*, i32** @MAP_FAILED
%50 = icmp eq i32* %48, %49
br i1 %50, label %89, label %56
51: ; preds = %31
%52 = tail call i32 @close(i32 %8)
%53 = tail call i32 @perror(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.5, i64 0, i64 0))
%54 = load i32, i32* @EXIT_FAILURE
%55 = tail call i32 @exit(i32 %54)
unreachable
56: ; preds = %39
%57 = getelementptr inbounds i32, i32* %48, i64 1
%58 = load i32, i32* %57
%59 = tail call i32 @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.6, i64 0, i64 0), i32 1, i32 %58)
%60 = getelementptr inbounds i32, i32* %48, i64 2
%61 = load i32, i32* %60
%62 = tail call i32 @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.6, i64 0, i64 0), i32 2, i32 %61)
%63 = getelementptr inbounds i32, i32* %48, i64 3
%64 = load i32, i32* %63
%65 = tail call i32 @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.6, i64 0, i64 0), i32 3, i32 %64)
%66 = getelementptr inbounds i32, i32* %48, i64 4
%67 = load i32, i32* %66
%68 = tail call i32 @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.6, i64 0, i64 0), i32 4, i32 %67)
%69 = getelementptr inbounds i32, i32* %48, i64 5
%70 = load i32, i32* %69
%71 = tail call i32 @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.6, i64 0, i64 0), i32 5, i32 %70)
%72 = getelementptr inbounds i32, i32* %48, i64 6
%73 = load i32, i32* %72
%74 = tail call i32 @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.6, i64 0, i64 0), i32 6, i32 %73)
%75 = getelementptr inbounds i32, i32* %48, i64 7
%76 = load i32, i32* %75
%77 = tail call i32 @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.6, i64 0, i64 0), i32 7, i32 %76)
%78 = getelementptr inbounds i32, i32* %48, i64 8
%79 = load i32, i32* %78
%80 = tail call i32 @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.6, i64 0, i64 0), i32 8, i32 %79)
%81 = getelementptr inbounds i32, i32* %48, i64 9
%82 = load i32, i32* %81
%83 = tail call i32 @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.6, i64 0, i64 0), i32 9, i32 %82)
%84 = getelementptr inbounds i32, i32* %48, i64 10
%85 = load i32, i32* %84
%86 = tail call i32 @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.6, i64 0, i64 0), i32 10, i32 %85)
%87 = tail call i32 @munmap(i32* %48, i32 40)
%88 = icmp eq i32 %87, -1
br i1 %88, label %94, label %96
89: ; preds = %39
%90 = tail call i32 @close(i32 %8)
%91 = tail call i32 @perror(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.5, i64 0, i64 0))
%92 = load i32, i32* @EXIT_FAILURE
%93 = tail call i32 @exit(i32 %92)
unreachable
94: ; preds = %56
%95 = tail call i32 @perror(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.7, i64 0, i64 0))
br label %96
96: ; preds = %94, %56
%97 = tail call i32 @close(i32 %8)
ret i32 0
}