#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*/ MADV_HWPOISON;
int /*<<< orphan*/ MADV_SOFT_OFFLINE;
int atoi(int /*<<< orphan*/);
int /*<<< orphan*/ clear_mergeable(void *, unsigned long);
int /*<<< orphan*/ exit(int);
int getopt(int, char **, char *);
unsigned long getpagesize();
int madvise(void *, unsigned long, int /*<<< orphan*/);
int /*<<< orphan*/ memset(void *, char, unsigned long);
void *mmap_memory(unsigned long);
int /*<<< orphan*/ optarg;
int /*<<< orphan*/ perror(char *);
int /*<<< orphan*/ printf(char *, ...);
int /*<<< orphan*/ set_mergeable(void *, unsigned long);
int main(int argc, char *argv[]) {
  int c;
  int touch = 0;
  int nr_pages = 0;
  int hardoffline = 0;
  int softoffline = 0;
  unsigned long size;
  unsigned long pagesize = getpagesize();
  void *map1;
  void *map2;
  if (argc < 2) {
    printf("Usage : <./poison> -n <nr_pages> -t -h[hardoffline or -s for "
           "softofflining]\n");
    exit(-1);
  }
  while ((c = getopt(argc, argv, "n:ths")) != -1) {
    switch (c) {
    case 'n':
      nr_pages = atoi(optarg);
      break;
    case 't':
      touch = 1;
      break;
    case 'h':
      hardoffline = 1;
      break;
    case 's':
      softoffline = 1;
      break;
    }
  }
  size = nr_pages * pagesize;
  map1 = mmap_memory(size);
  printf("Mapped at %p\n", map1);
  map2 = mmap_memory(size);
  printf("Mapped at %p\n", map2);
  printf("Set MADV_MERGEABLE flag for the mapped memory\n");
  set_mergeable(map1, size);
  set_mergeable(map2, size);
  memset(map1, 'x', size);
  memset(map2, 'x', size);
  printf("Poison the Pages\n");
  if (hardoffline || softoffline) {
    if ((madvise(map1, size,
                 hardoffline ? MADV_HWPOISON : MADV_SOFT_OFFLINE)) == -1) {
      perror("madvise poison\n");
      exit(-1);
    }
  }
  if (touch) {
    printf("Write into Affected Pages\n");
    memset(map1, 'x', size);
  }
  printf("Clear MADV_MERGEABLE flag for the mapped memory\n");
  clear_mergeable(map1, size);
  clear_mergeable(map2, size);
  printf("Test passed !!!\n");
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x70,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
movl   $0x0,-0x18(%rbp)
movl   $0x0,-0x1c(%rbp)
movl   $0x0,-0x20(%rbp)
movl   $0x0,-0x24(%rbp)
mov    $0x0,%al
call   10c0 <getpagesize@plt>
mov    %rax,-0x38(%rbp)
cmpl   $0x2,-0x8(%rbp)
jge    120f <main+0x5f>
lea    0xe36(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    $0xffffffff,%edi
call   10d0 <exit@plt>
jmp    1214 <main+0x64>
mov    -0x8(%rbp),%edi
mov    -0x10(%rbp),%rsi
lea    0xe5f(%rip),%rdx
call   10a0 <getopt@plt>
mov    %eax,-0x14(%rbp)
cmp    $0xffffffff,%eax
je     1296 <main+0xe6>
mov    -0x14(%rbp),%eax
add    $0xffffff98,%eax
mov    %eax,%ecx
mov    %rcx,-0x50(%rbp)
sub    $0xc,%eax
ja     1291 <main+0xe1>
mov    -0x50(%rbp),%rax
lea    0xdad(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
jmp    *%rax
mov    0x2d95(%rip),%rax
mov    (%rax),%edi
call   10b0 <atoi@plt>
mov    %eax,-0x1c(%rbp)
jmp    1291 <main+0xe1>
movl   $0x1,-0x18(%rbp)
jmp    1291 <main+0xe1>
movl   $0x1,-0x20(%rbp)
jmp    1291 <main+0xe1>
movl   $0x1,-0x24(%rbp)
jmp    1214 <main+0x64>
movslq -0x1c(%rbp),%rax
imul   -0x38(%rbp),%rax
mov    %rax,-0x30(%rbp)
mov    -0x30(%rbp),%rdi
call   1070 <mmap_memory@plt>
mov    %rax,-0x40(%rbp)
mov    -0x40(%rbp),%rsi
lea    0xdcc(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x30(%rbp),%rdi
call   1070 <mmap_memory@plt>
mov    %rax,-0x48(%rbp)
mov    -0x48(%rbp),%rsi
lea    0xdad(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xdad(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x40(%rbp),%rdi
mov    -0x30(%rbp),%rsi
call   1030 <set_mergeable@plt>
mov    -0x48(%rbp),%rdi
mov    -0x30(%rbp),%rsi
call   1030 <set_mergeable@plt>
mov    -0x40(%rbp),%rdi
mov    -0x30(%rbp),%rdx
mov    $0x78,%esi
call   1060 <memset@plt>
mov    -0x48(%rbp),%rdi
mov    -0x30(%rbp),%rdx
mov    $0x78,%esi
call   1060 <memset@plt>
lea    0xd90(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
cmpl   $0x0,-0x20(%rbp)
jne    134f <main+0x19f>
cmpl   $0x0,-0x24(%rbp)
je     13ba <main+0x20a>
mov    -0x40(%rbp),%rax
mov    %rax,-0x60(%rbp)
mov    -0x30(%rbp),%rax
mov    %rax,-0x58(%rbp)
cmpl   $0x0,-0x20(%rbp)
je     137a <main+0x1ca>
mov    0x2c70(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x64(%rbp)
jmp    1386 <main+0x1d6>
mov    0x2c4f(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0x64(%rbp)
mov    -0x58(%rbp),%rsi
mov    -0x60(%rbp),%rdi
mov    -0x64(%rbp),%edx
call   1080 <madvise@plt>
cmp    $0xffffffff,%eax
jne    13b5 <main+0x205>
lea    0xd30(%rip),%rdi
call   1090 <perror@plt>
mov    $0xffffffff,%edi
call   10d0 <exit@plt>
jmp    13ba <main+0x20a>
cmpl   $0x0,-0x18(%rbp)
je     13e4 <main+0x234>
lea    0xd1b(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x40(%rbp),%rdi
mov    -0x30(%rbp),%rdx
mov    $0x78,%esi
call   1060 <memset@plt>
lea    0xd16(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x40(%rbp),%rdi
mov    -0x30(%rbp),%rsi
call   1050 <clear_mergeable@plt>
mov    -0x48(%rbp),%rdi
mov    -0x30(%rbp),%rsi
call   1050 <clear_mergeable@plt>
lea    0xd1f(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
xor    %eax,%eax
add    $0x70,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x18,%rsp
mov    %rsi,%rbx
mov    %edi,%ebp
xor    %eax,%eax
call   10d0 <getpagesize@plt>
cmp    $0x2,%ebp
jl     139b <main+0x1db>
mov    %rax,%r12
movl   $0x0,0x14(%rsp)
lea    0xe3f(%rip),%r14
lea    0xe04(%rip),%r13
movl   $0x0,0x10(%rsp)
movl   $0x0,0xc(%rsp)
xor    %r15d,%r15d
jmp    1225 <main+0x65>
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
cmp    $0xffffffff,%eax
je     1273 <main+0xb3>
mov    %ebp,%edi
mov    %rbx,%rsi
mov    %r14,%rdx
call   10b0 <getopt@plt>
lea    -0x68(%rax),%ecx
cmp    $0xc,%ecx
ja     1220 <main+0x60>
movslq 0x0(%r13,%rcx,4),%rax
add    %r13,%rax
jmp    *%rax
movl   $0x1,0x10(%rsp)
jmp    1225 <main+0x65>
mov    0x2da3(%rip),%rax
mov    (%rax),%edi
call   10c0 <atoi@plt>
mov    %eax,%r15d
jmp    1225 <main+0x65>
mov    $0x1,%al
mov    %eax,0x14(%rsp)
jmp    1225 <main+0x65>
movl   $0x1,0xc(%rsp)
jmp    1225 <main+0x65>
movslq %r15d,%rax
imul   %rax,%r12
mov    %r12,%rdi
call   1080 <mmap_memory@plt>
mov    %rax,%r14
lea    0xdae(%rip),%rbx
mov    %rbx,%rdi
mov    %rax,%rsi
xor    %eax,%eax
call   1050 <printf@plt>
mov    %r12,%rdi
call   1080 <mmap_memory@plt>
mov    %rax,%r15
mov    %rbx,%rdi
mov    %rax,%rsi
xor    %eax,%eax
call   1050 <printf@plt>
lea    0xda0(%rip),%rdi
call   1030 <puts@plt>
mov    %r14,%rdi
mov    %r12,%rsi
call   1040 <set_mergeable@plt>
mov    %r15,%rdi
mov    %r12,%rsi
call   1040 <set_mergeable@plt>
mov    %r14,%rdi
mov    $0x78,%esi
mov    %r12,%rdx
call   1070 <memset@plt>
mov    %r15,%rdi
mov    $0x78,%esi
mov    %r12,%rdx
call   1070 <memset@plt>
lea    0xd8c(%rip),%rdi
call   1030 <puts@plt>
mov    0x10(%rsp),%edx
test   %edx,%edx
sete   %al
mov    0x14(%rsp),%ecx
xor    $0x1,%cl
test   %cl,%al
jne    1339 <main+0x179>
test   %edx,%edx
je     1320 <main+0x160>
mov    0x2cc2(%rip),%rax
jmp    1327 <main+0x167>
mov    0x2ca9(%rip),%rax
mov    (%rax),%edx
mov    %r14,%rdi
mov    %r12,%rsi
call   1090 <madvise@plt>
cmp    $0xffffffff,%eax
je     13b1 <main+0x1f1>
cmpl   $0x0,0xc(%rsp)
je     135c <main+0x19c>
lea    0xd90(%rip),%rdi
call   1030 <puts@plt>
mov    %r14,%rdi
mov    $0x78,%esi
mov    %r12,%rdx
call   1070 <memset@plt>
lea    0xd34(%rip),%rdi
call   1030 <puts@plt>
mov    %r14,%rdi
mov    %r12,%rsi
call   1060 <clear_mergeable@plt>
mov    %r15,%rdi
mov    %r12,%rsi
call   1060 <clear_mergeable@plt>
lea    0xd42(%rip),%rdi
call   1030 <puts@plt>
xor    %eax,%eax
add    $0x18,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret
lea    0xd4f(%rip),%rdi
call   1030 <puts@plt>
mov    $0xffffffff,%edi
call   10e0 <exit@plt>
lea    0xc90(%rip),%rdi
call   10a0 <perror@plt>
mov    $0xffffffff,%edi
call   10e0 <exit@plt>

LLVM IR (-O0):
@.str = [77 x i8] c"Usage : <./poison> -n <nr_pages> -t -h[hardoffline or -s for softofflining]\0A\00"
@.str.1 = [6 x i8] c"n:ths\00"
@optarg = global i32 0
@.str.2 = [14 x i8] c"Mapped at %p\0A\00"
@.str.3 = [47 x i8] c"Set MADV_MERGEABLE flag for the mapped memory\0A\00"
@.str.4 = [18 x i8] c"Poison the Pages\0A\00"
@MADV_HWPOISON = global i32 0
@MADV_SOFT_OFFLINE = global i32 0
@.str.5 = [16 x i8] c"madvise poison\0A\00"
@.str.6 = [27 x i8] c"Write into Affected Pages\0A\00"
@.str.7 = [49 x i8] c"Clear MADV_MERGEABLE flag for the mapped memory\0A\00"
@.str.8 = [17 x i8] c"Test passed !!!\0A\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
%10 = alloca i32
%11 = alloca i64
%12 = alloca i64
%13 = alloca i8*
%14 = alloca i8*
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
store i32 0, i32* %7
store i32 0, i32* %8
store i32 0, i32* %9
store i32 0, i32* %10
%15 = call i64 (...) @getpagesize()
store i64 %15, i64* %12
%16 = load i32, i32* %4
%17 = icmp slt i32 %16, 2
br i1 %17, label %18, label %21
18: ; preds = %2
%19 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([77 x i8], [77 x i8]* @.str, i64 0, i64 0))
%20 = call i32 @exit(i32 -1)
unreachable
21: ; preds = %2
br label %22
22: ; preds = %35, %21
%23 = load i32, i32* %4
%24 = load i8**, i8*** %5
%25 = call i32 @getopt(i32 %23, i8** %24, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0))
store i32 %25, i32* %6
%26 = icmp ne i32 %25, -1
br i1 %26, label %27, label %36
27: ; preds = %22
%28 = load i32, i32* %6
switch i32 %28, label %35 [
i32 110, label %29
i32 116, label %32
i32 104, label %33
i32 115, label %34
]
29: ; preds = %27
%30 = load i32, i32* @optarg
%31 = call i32 @atoi(i32 %30)
store i32 %31, i32* %8
br label %35
32: ; preds = %27
store i32 1, i32* %7
br label %35
33: ; preds = %27
store i32 1, i32* %9
br label %35
34: ; preds = %27
store i32 1, i32* %10
br label %35
35: ; preds = %27, %34, %33, %32, %29
br label %22
36: ; preds = %22
%37 = load i32, i32* %8
%38 = sext i32 %37 to i64
%39 = load i64, i64* %12
%40 = mul i64 %38, %39
store i64 %40, i64* %11
%41 = load i64, i64* %11
%42 = call i8* @mmap_memory(i64 %41)
store i8* %42, i8** %13
%43 = load i8*, i8** %13
%44 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.2, i64 0, i64 0), i8* %43)
%45 = load i64, i64* %11
%46 = call i8* @mmap_memory(i64 %45)
store i8* %46, i8** %14
%47 = load i8*, i8** %14
%48 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.2, i64 0, i64 0), i8* %47)
%49 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([47 x i8], [47 x i8]* @.str.3, i64 0, i64 0))
%50 = load i8*, i8** %13
%51 = load i64, i64* %11
%52 = call i32 @set_mergeable(i8* %50, i64 %51)
%53 = load i8*, i8** %14
%54 = load i64, i64* %11
%55 = call i32 @set_mergeable(i8* %53, i64 %54)
%56 = load i8*, i8** %13
%57 = load i64, i64* %11
%58 = call i32 @memset(i8* %56, i8 signext 120, i64 %57)
%59 = load i8*, i8** %14
%60 = load i64, i64* %11
%61 = call i32 @memset(i8* %59, i8 signext 120, i64 %60)
%62 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.4, i64 0, i64 0))
%63 = load i32, i32* %9
%64 = icmp ne i32 %63, 0
br i1 %64, label %68, label %65
65: ; preds = %36
%66 = load i32, i32* %10
%67 = icmp ne i32 %66, 0
br i1 %67, label %68, label %85
68: ; preds = %65, %36
%69 = load i8*, i8** %13
%70 = load i64, i64* %11
%71 = load i32, i32* %9
%72 = icmp ne i32 %71, 0
br i1 %72, label %73, label %75
73: ; preds = %68
%74 = load i32, i32* @MADV_HWPOISON
br label %77
75: ; preds = %68
%76 = load i32, i32* @MADV_SOFT_OFFLINE
br label %77
77: ; preds = %75, %73
%78 = phi i32 [ %74, %73 ], [ %76, %75 ]
%79 = call i32 @madvise(i8* %69, i64 %70, i32 %78)
%80 = icmp eq i32 %79, -1
br i1 %80, label %81, label %84
81: ; preds = %77
%82 = call i32 @perror(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.5, i64 0, i64 0))
%83 = call i32 @exit(i32 -1)
unreachable
84: ; preds = %77
br label %85
85: ; preds = %84, %65
%86 = load i32, i32* %7
%87 = icmp ne i32 %86, 0
br i1 %87, label %88, label %93
88: ; preds = %85
%89 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.6, i64 0, i64 0))
%90 = load i8*, i8** %13
%91 = load i64, i64* %11
%92 = call i32 @memset(i8* %90, i8 signext 120, i64 %91)
br label %93
93: ; preds = %88, %85
%94 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([49 x i8], [49 x i8]* @.str.7, i64 0, i64 0))
%95 = load i8*, i8** %13
%96 = load i64, i64* %11
%97 = call i32 @clear_mergeable(i8* %95, i64 %96)
%98 = load i8*, i8** %14
%99 = load i64, i64* %11
%100 = call i32 @clear_mergeable(i8* %98, i64 %99)
%101 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.8, i64 0, i64 0))
ret i32 0
}

LLVM IR (-O2):
@.str.1 = [6 x i8] c"n:ths\00"
@optarg = global i32 0
@.str.2 = [14 x i8] c"Mapped at %p\0A\00"
@MADV_HWPOISON = global i32 0
@MADV_SOFT_OFFLINE = global i32 0
@.str.5 = [16 x i8] c"madvise poison\0A\00"
@str = [46 x i8] c"Set MADV_MERGEABLE flag for the mapped memory\00"
@str.9 = [17 x i8] c"Poison the Pages\00"
@str.10 = [48 x i8] c"Clear MADV_MERGEABLE flag for the mapped memory\00"
@str.11 = [16 x i8] c"Test passed !!!\00"
@str.12 = [26 x i8] c"Write into Affected Pages\00"
@str.13 = [76 x i8] c"Usage : <./poison> -n <nr_pages> -t -h[hardoffline or -s for softofflining]\00"
define i32 @main(i32 %0, i8** %1) {
%3 = tail call i64 (...) @getpagesize()
%4 = icmp slt i32 %0, 2
br i1 %4, label %5, label %22
5: ; preds = %2
%6 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([76 x i8], [76 x i8]* @str.13, i64 0, i64 0))
%7 = tail call i32 @exit(i32 -1)
unreachable
8: ; preds = %16, %8
%9 = tail call i32 @getopt(i32 %0, i8** %1, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0))
switch i32 %9, label %8 [
i32 -1, label %27
i32 110, label %10
i32 116, label %16
i32 104, label %18
i32 115, label %22
]
10: ; preds = %8
%11 = load i32, i32* @optarg
%12 = tail call i32 @atoi(i32 %11)
br label %13
13: ; preds = %18, %10
%14 = phi i32 [ %20, %18 ], [ %12, %10 ]
%15 = phi i32 [ %21, %18 ], [ %17, %10 ]
br label %16
16: ; preds = %8, %13
%17 = phi i32 [ %15, %13 ], [ 1, %8 ]
br label %8
18: ; preds = %8, %22
%19 = phi i32 [ %24, %22 ], [ 1, %8 ]
%20 = phi i32 [ %25, %22 ], [ %14, %8 ]
%21 = phi i32 [ %26, %22 ], [ %17, %8 ]
br label %13
22: ; preds = %8, %2
%23 = phi i1 [ false, %2 ], [ true, %8 ]
%24 = phi i32 [ 0, %2 ], [ %19, %8 ]
%25 = phi i32 [ 0, %2 ], [ %14, %8 ]
%26 = phi i32 [ 0, %2 ], [ %17, %8 ]
br label %18
27: ; preds = %8
%28 = sext i32 %14 to i64
%29 = mul i64 %3, %28
%30 = tail call i8* @mmap_memory(i64 %29)
%31 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([14 x i8], [14 x i8]* @.str.2, i64 0, i64 0), i8* %30)
%32 = tail call i8* @mmap_memory(i64 %29)
%33 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([14 x i8], [14 x i8]* @.str.2, i64 0, i64 0), i8* %32)
%34 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([46 x i8], [46 x i8]* @str, i64 0, i64 0))
%35 = tail call i32 @set_mergeable(i8* %30, i64 %29)
%36 = tail call i32 @set_mergeable(i8* %32, i64 %29)
%37 = tail call i32 @memset(i8* %30, i8 signext 120, i64 %29)
%38 = tail call i32 @memset(i8* %32, i8 signext 120, i64 %29)
%39 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([17 x i8], [17 x i8]* @str.9, i64 0, i64 0))
%40 = icmp ne i32 %19, 0
%41 = or i1 %40, %23
br i1 %41, label %42, label %51
42: ; preds = %27
%43 = load i32, i32* @MADV_HWPOISON
%44 = load i32, i32* @MADV_SOFT_OFFLINE
%45 = select i1 %40, i32 %43, i32 %44
%46 = tail call i32 @madvise(i8* %30, i64 %29, i32 %45)
%47 = icmp eq i32 %46, -1
br i1 %47, label %48, label %51
48: ; preds = %42
%49 = tail call i32 @perror(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.5, i64 0, i64 0))
%50 = tail call i32 @exit(i32 -1)
unreachable
51: ; preds = %42, %27
%52 = icmp eq i32 %17, 0
br i1 %52, label %56, label %53
53: ; preds = %51
%54 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([26 x i8], [26 x i8]* @str.12, i64 0, i64 0))
%55 = tail call i32 @memset(i8* %30, i8 signext 120, i64 %29)
br label %56
56: ; preds = %53, %51
%57 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([48 x i8], [48 x i8]* @str.10, i64 0, i64 0))
%58 = tail call i32 @clear_mergeable(i8* %30, i64 %29)
%59 = tail call i32 @clear_mergeable(i8* %32, i64 %29)
%60 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([16 x i8], [16 x i8]* @str.11, i64 0, i64 0))
ret i32 0
}