#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*/ end_memory();
void *get_memory(int);
int /*<<< orphan*/ grow_memory(int, void *);
int /*<<< orphan*/ pregrow_memory(int, void *);
int /*<<< orphan*/ print_memory();
int /*<<< orphan*/ printf(char *, ...);
int /*<<< orphan*/ release_memory(void *);
int /*<<< orphan*/ scanf(char *, ...);
scalar_t__ start_memory(int);
scalar_t__ strcmp(char *, char *);
int main() {
  int start = 0;
  printf("start_memory: ");
  scanf("%i", &start);
  if (start_memory(start) == 0) {
    printf("Start Memory Error\n");
    return 1;
  }
  print_memory();
  int number;
  char command[10];
  void *pointer = NULL;
  while (1) {
    printf("> ");
    scanf("%s", command);
    if (strcmp(command, "get") == 0) {
      scanf("%d", &number);
      void *newPointer = get_memory(number);
      if (newPointer == NULL) {
        printf("Not enough Memory Space\n");
      } else {
        print_memory();
        printf("Placed new memory partition successful\nAddress: %p\n",
               newPointer);
      }
    } else if (strcmp(command, "release") == 0) {
      scanf("%p", &pointer);
      release_memory(pointer);
      print_memory();
    } else if (strcmp(command, "grow") == 0) {
      scanf("%d", &number);
      scanf("%p", &pointer);
      grow_memory(number, pointer);
      print_memory();
    } else if (strcmp(command, "pregrow") == 0) {
      scanf("%d", &number);
      scanf("%p", &pointer);
      pregrow_memory(number, pointer);
      print_memory();
    } else if (strcmp(command, "end") == 0) {
      end_memory();
      break;
    } else {
      printf("Invalid Command\n");
    }
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
movl   $0x0,-0x4(%rbp)
movl   $0x0,-0x8(%rbp)
lea    0xe43(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
lea    0xe44(%rip),%rdi
lea    -0x8(%rbp),%rsi
mov    $0x0,%al
call   10b0 <scanf@plt>
mov    -0x8(%rbp),%edi
call   1040 <start_memory@plt>
cmp    $0x0,%rax
jne    1202 <main+0x62>
lea    0xe23(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
movl   $0x1,-0x4(%rbp)
jmp    13e6 <main+0x246>
mov    $0x0,%al
call   10c0 <print_memory@plt>
movq   $0x0,-0x20(%rbp)
lea    0xe0e(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
lea    -0x16(%rbp),%rsi
lea    0xdff(%rip),%rdi
mov    $0x0,%al
call   10b0 <scanf@plt>
lea    -0x16(%rbp),%rdi
lea    0xdf0(%rip),%rsi
call   1070 <strcmp@plt>
cmp    $0x0,%rax
jne    12a5 <main+0x105>
lea    0xdde(%rip),%rdi
lea    -0xc(%rbp),%rsi
mov    $0x0,%al
call   10b0 <scanf@plt>
mov    -0xc(%rbp),%edi
call   1080 <get_memory@plt>
mov    %rax,-0x28(%rbp)
cmpq   $0x0,-0x28(%rbp)
jne    1287 <main+0xe7>
lea    0xdb8(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
jmp    12a0 <main+0x100>
mov    $0x0,%al
call   10c0 <print_memory@plt>
mov    -0x28(%rbp),%rsi
lea    0xdb3(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
jmp    13da <main+0x23a>
lea    -0x16(%rbp),%rdi
lea    0xdd0(%rip),%rsi
call   1070 <strcmp@plt>
cmp    $0x0,%rax
jne    12e6 <main+0x146>
lea    0xdc2(%rip),%rdi
lea    -0x20(%rbp),%rsi
mov    $0x0,%al
call   10b0 <scanf@plt>
mov    -0x20(%rbp),%rdi
call   1090 <release_memory@plt>
mov    $0x0,%al
call   10c0 <print_memory@plt>
jmp    13d5 <main+0x235>
lea    -0x16(%rbp),%rdi
lea    0xd9d(%rip),%rsi
call   1070 <strcmp@plt>
cmp    $0x0,%rax
jne    133c <main+0x19c>
lea    0xd29(%rip),%rdi
lea    -0xc(%rbp),%rsi
mov    $0x0,%al
call   10b0 <scanf@plt>
lea    0xd6f(%rip),%rdi
lea    -0x20(%rbp),%rsi
mov    $0x0,%al
call   10b0 <scanf@plt>
mov    -0xc(%rbp),%edi
mov    -0x20(%rbp),%rsi
call   10a0 <grow_memory@plt>
mov    $0x0,%al
call   10c0 <print_memory@plt>
jmp    13d0 <main+0x230>
lea    -0x16(%rbp),%rdi
lea    0xd44(%rip),%rsi
call   1070 <strcmp@plt>
cmp    $0x0,%rax
jne    1392 <main+0x1f2>
lea    0xcd3(%rip),%rdi
lea    -0xc(%rbp),%rsi
mov    $0x0,%al
call   10b0 <scanf@plt>
lea    0xd19(%rip),%rdi
lea    -0x20(%rbp),%rsi
mov    $0x0,%al
call   10b0 <scanf@plt>
mov    -0xc(%rbp),%edi
mov    -0x20(%rbp),%rsi
call   1030 <pregrow_memory@plt>
mov    $0x0,%al
call   10c0 <print_memory@plt>
jmp    13cb <main+0x22b>
lea    -0x16(%rbp),%rdi
lea    0xcf6(%rip),%rsi
call   1070 <strcmp@plt>
cmp    $0x0,%rax
jne    13b8 <main+0x218>
mov    $0x0,%al
call   1060 <end_memory@plt>
jmp    13df <main+0x23f>
lea    0xcd8(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
jmp    13cb <main+0x22b>
jmp    13d0 <main+0x230>
jmp    13d5 <main+0x235>
jmp    13da <main+0x23a>
jmp    1211 <main+0x71>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x28,%rsp
movl   $0x0,0x18(%rsp)
lea    0xe33(%rip),%rdi
xor    %eax,%eax
call   1060 <printf@plt>
lea    0xe34(%rip),%rdi
lea    0x18(%rsp),%rsi
xor    %eax,%eax
call   10c0 <scanf@plt>
mov    0x18(%rsp),%edi
call   1050 <start_memory@plt>
test   %rax,%rax
je     13bf <main+0x20f>
xor    %eax,%eax
call   10d0 <print_memory@plt>
movq   $0x0,0x10(%rsp)
lea    0xe02(%rip),%r14
lea    0xdfe(%rip),%r15
lea    0x1e(%rsp),%rbx
lea    0xdf5(%rip),%r12
lea    0xe29(%rip),%r13
jmp    1254 <main+0xa4>
nopl   0x0(%rax)
lea    0xe24(%rip),%rdi
lea    0x10(%rsp),%rsi
xor    %eax,%eax
call   10c0 <scanf@plt>
mov    0x10(%rsp),%rdi
call   10a0 <release_memory@plt>
xor    %eax,%eax
call   10d0 <print_memory@plt>
mov    %r14,%rdi
xor    %eax,%eax
call   1060 <printf@plt>
mov    %r15,%rdi
mov    %rbx,%rsi
xor    %eax,%eax
call   10c0 <scanf@plt>
mov    %rbx,%rdi
mov    %r12,%rsi
call   1080 <strcmp@plt>
test   %rax,%rax
je     12f0 <main+0x140>
mov    %rbx,%rdi
mov    %r13,%rsi
call   1080 <strcmp@plt>
test   %rax,%rax
je     1230 <main+0x80>
mov    %rbx,%rdi
lea    0xdcc(%rip),%rsi
call   1080 <strcmp@plt>
test   %rax,%rax
je     1331 <main+0x181>
mov    %rbx,%rdi
lea    0xdb1(%rip),%rsi
call   1080 <strcmp@plt>
test   %rax,%rax
je     137b <main+0x1cb>
mov    %rbx,%rdi
lea    0xda1(%rip),%rsi
call   1080 <strcmp@plt>
test   %rax,%rax
je     13b4 <main+0x204>
lea    0xd90(%rip),%rdi
call   1040 <puts@plt>
jmp    1254 <main+0xa4>
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
lea    0xd25(%rip),%rdi
lea    0xc(%rsp),%rsi
xor    %eax,%eax
call   10c0 <scanf@plt>
mov    0xc(%rsp),%edi
call   1090 <get_memory@plt>
test   %rax,%rax
je     136a <main+0x1ba>
mov    %rax,%rbp
xor    %eax,%eax
call   10d0 <print_memory@plt>
lea    0xcfd(%rip),%rdi
mov    %rbp,%rsi
xor    %eax,%eax
call   1060 <printf@plt>
jmp    1254 <main+0xa4>
lea    0xce4(%rip),%rdi
lea    0xc(%rsp),%rsi
xor    %eax,%eax
call   10c0 <scanf@plt>
lea    0xd10(%rip),%rdi
lea    0x10(%rsp),%rsi
xor    %eax,%eax
call   10c0 <scanf@plt>
mov    0xc(%rsp),%edi
mov    0x10(%rsp),%rsi
call   10b0 <grow_memory@plt>
jmp    124d <main+0x9d>
lea    0xd09(%rip),%rdi
call   1040 <puts@plt>
jmp    1254 <main+0xa4>
lea    0xc9a(%rip),%rdi
lea    0xc(%rsp),%rsi
xor    %eax,%eax
call   10c0 <scanf@plt>
lea    0xcc6(%rip),%rdi
lea    0x10(%rsp),%rsi
xor    %eax,%eax
call   10c0 <scanf@plt>
mov    0xc(%rsp),%edi
mov    0x10(%rsp),%rsi
call   1030 <pregrow_memory@plt>
jmp    124d <main+0x9d>
xor    %ebx,%ebx
xor    %eax,%eax
call   1070 <end_memory@plt>
jmp    13d0 <main+0x220>
lea    0xccc(%rip),%rdi
call   1040 <puts@plt>
mov    $0x1,%ebx
mov    %ebx,%eax
add    $0x28,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [15 x i8] c"start_memory: \00"
@.str.1 = [3 x i8] c"%i\00"
@.str.2 = [20 x i8] c"Start Memory Error\0A\00"
@.str.3 = [3 x i8] c"> \00"
@.str.4 = [3 x i8] c"%s\00"
@.str.5 = [4 x i8] c"get\00"
@.str.6 = [3 x i8] c"%d\00"
@.str.7 = [25 x i8] c"Not enough Memory Space\0A\00"
@.str.8 = [52 x i8] c"Placed new memory partition successful\0AAddress: %p\0A\00"
@.str.9 = [8 x i8] c"release\00"
@.str.10 = [3 x i8] c"%p\00"
@.str.11 = [5 x i8] c"grow\00"
@.str.12 = [8 x i8] c"pregrow\00"
@.str.13 = [4 x i8] c"end\00"
@.str.14 = [17 x i8] c"Invalid Command\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
%4 = alloca [10 x i8]
%5 = alloca i8*
%6 = alloca i8*
store i32 0, i32* %1
store i32 0, i32* %2
%7 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str, i64 0, i64 0))
%8 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %2)
%9 = load i32, i32* %2
%10 = call i64 @start_memory(i32 %9)
%11 = icmp eq i64 %10, 0
br i1 %11, label %12, label %14
12: ; preds = %0
%13 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.2, i64 0, i64 0))
store i32 1, i32* %1
br label %81
14: ; preds = %0
%15 = call i32 (...) @print_memory()
store i8* null, i8** %5
br label %16
16: ; preds = %14, %79
%17 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i64 0, i64 0))
%18 = getelementptr inbounds [10 x i8], [10 x i8]* %4, i64 0, i64 0
%19 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.4, i64 0, i64 0), i8* %18)
%20 = getelementptr inbounds [10 x i8], [10 x i8]* %4, i64 0, i64 0
%21 = call i64 @strcmp(i8* %20, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.5, i64 0, i64 0))
%22 = icmp eq i64 %21, 0
br i1 %22, label %23, label %36
23: ; preds = %16
%24 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.6, i64 0, i64 0), i32* %3)
%25 = load i32, i32* %3
%26 = call i8* @get_memory(i32 %25)
store i8* %26, i8** %6
%27 = load i8*, i8** %6
%28 = icmp eq i8* %27, null
br i1 %28, label %29, label %31
29: ; preds = %23
%30 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.7, i64 0, i64 0))
br label %35
31: ; preds = %23
%32 = call i32 (...) @print_memory()
%33 = load i8*, i8** %6
%34 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([52 x i8], [52 x i8]* @.str.8, i64 0, i64 0), i8* %33)
br label %35
35: ; preds = %31, %29
br label %79
36: ; preds = %16
%37 = getelementptr inbounds [10 x i8], [10 x i8]* %4, i64 0, i64 0
%38 = call i64 @strcmp(i8* %37, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.9, i64 0, i64 0))
%39 = icmp eq i64 %38, 0
br i1 %39, label %40, label %45
40: ; preds = %36
%41 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.10, i64 0, i64 0), i8** %5)
%42 = load i8*, i8** %5
%43 = call i32 @release_memory(i8* %42)
%44 = call i32 (...) @print_memory()
br label %78
45: ; preds = %36
%46 = getelementptr inbounds [10 x i8], [10 x i8]* %4, i64 0, i64 0
%47 = call i64 @strcmp(i8* %46, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.11, i64 0, i64 0))
%48 = icmp eq i64 %47, 0
br i1 %48, label %49, label %56
49: ; preds = %45
%50 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.6, i64 0, i64 0), i32* %3)
%51 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.10, i64 0, i64 0), i8** %5)
%52 = load i32, i32* %3
%53 = load i8*, i8** %5
%54 = call i32 @grow_memory(i32 %52, i8* %53)
%55 = call i32 (...) @print_memory()
br label %77
56: ; preds = %45
%57 = getelementptr inbounds [10 x i8], [10 x i8]* %4, i64 0, i64 0
%58 = call i64 @strcmp(i8* %57, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.12, i64 0, i64 0))
%59 = icmp eq i64 %58, 0
br i1 %59, label %60, label %67
60: ; preds = %56
%61 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.6, i64 0, i64 0), i32* %3)
%62 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.10, i64 0, i64 0), i8** %5)
%63 = load i32, i32* %3
%64 = load i8*, i8** %5
%65 = call i32 @pregrow_memory(i32 %63, i8* %64)
%66 = call i32 (...) @print_memory()
br label %76
67: ; preds = %56
%68 = getelementptr inbounds [10 x i8], [10 x i8]* %4, i64 0, i64 0
%69 = call i64 @strcmp(i8* %68, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.13, i64 0, i64 0))
%70 = icmp eq i64 %69, 0
br i1 %70, label %71, label %73
71: ; preds = %67
%72 = call i32 (...) @end_memory()
br label %80
73: ; preds = %67
%74 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.14, i64 0, i64 0))
br label %75
75: ; preds = %73
br label %76
76: ; preds = %75, %60
br label %77
77: ; preds = %76, %49
br label %78
78: ; preds = %77, %40
br label %79
79: ; preds = %78, %35
br label %16
80: ; preds = %71
store i32 0, i32* %1
br label %81
81: ; preds = %80, %12
%82 = load i32, i32* %1
ret i32 %82
}

LLVM IR (-O2):
@.str = [15 x i8] c"start_memory: \00"
@.str.1 = [3 x i8] c"%i\00"
@.str.3 = [3 x i8] c"> \00"
@.str.4 = [3 x i8] c"%s\00"
@.str.5 = [4 x i8] c"get\00"
@.str.6 = [3 x i8] c"%d\00"
@.str.8 = [52 x i8] c"Placed new memory partition successful\0AAddress: %p\0A\00"
@.str.9 = [8 x i8] c"release\00"
@.str.10 = [3 x i8] c"%p\00"
@.str.11 = [5 x i8] c"grow\00"
@.str.12 = [8 x i8] c"pregrow\00"
@.str.13 = [4 x i8] c"end\00"
@str = [16 x i8] c"Invalid Command\00"
@str.15 = [24 x i8] c"Not enough Memory Space\00"
@str.16 = [19 x i8] c"Start Memory Error\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca [10 x i8]
%4 = alloca i8*
%5 = bitcast i32* %1 to i8*
store i32 0, i32* %1
%6 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([15 x i8], [15 x i8]* @.str, i64 0, i64 0))
%7 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %1)
%8 = load i32, i32* %1
%9 = call i64 @start_memory(i32 %8)
%10 = icmp eq i64 %9, 0
br i1 %10, label %11, label %13
11: ; preds = %0
%12 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([19 x i8], [19 x i8]* @str.16, i64 0, i64 0))
br label %69
13: ; preds = %0
%14 = call i32 (...) @print_memory()
%15 = bitcast i32* %2 to i8*
%16 = getelementptr inbounds [10 x i8], [10 x i8]* %3, i64 0, i64 0
%17 = bitcast i8** %4 to i8*
store i8* null, i8** %4
br label %18
18: ; preds = %30, %13
%19 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i64 0, i64 0))
%20 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.4, i64 0, i64 0), i8* %16)
%21 = call i64 @strcmp(i8* %16, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.5, i64 0, i64 0))
%22 = icmp eq i64 %21, 0
br i1 %22, label %23, label %34
23: ; preds = %18
%24 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.6, i64 0, i64 0), i32* %2)
%25 = load i32, i32* %2
%26 = call i8* @get_memory(i32 %25)
%27 = icmp eq i8* %26, null
br i1 %27, label %28, label %31
28: ; preds = %23
%29 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([24 x i8], [24 x i8]* @str.15, i64 0, i64 0))
br label %30
30: ; preds = %28, %31, %37, %55, %67, %45
br label %18
31: ; preds = %23
%32 = call i32 (...) @print_memory()
%33 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([52 x i8], [52 x i8]* @.str.8, i64 0, i64 0), i8* %26)
br label %30
34: ; preds = %18
%35 = call i64 @strcmp(i8* %16, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.9, i64 0, i64 0))
%36 = icmp eq i64 %35, 0
br i1 %36, label %37, label %42
37: ; preds = %34
%38 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.10, i64 0, i64 0), i8** %4)
%39 = load i8*, i8** %4
%40 = call i32 @release_memory(i8* %39)
%41 = call i32 (...) @print_memory()
br label %30
42: ; preds = %34
%43 = call i64 @strcmp(i8* %16, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.11, i64 0, i64 0))
%44 = icmp eq i64 %43, 0
br i1 %44, label %45, label %52
45: ; preds = %42
%46 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.6, i64 0, i64 0), i32* %2)
%47 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.10, i64 0, i64 0), i8** %4)
%48 = load i32, i32* %2
%49 = load i8*, i8** %4
%50 = call i32 @grow_memory(i32 %48, i8* %49)
%51 = call i32 (...) @print_memory()
br label %30
52: ; preds = %42
%53 = call i64 @strcmp(i8* %16, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.12, i64 0, i64 0))
%54 = icmp eq i64 %53, 0
br i1 %54, label %55, label %62
55: ; preds = %52
%56 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.6, i64 0, i64 0), i32* %2)
%57 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.10, i64 0, i64 0), i8** %4)
%58 = load i32, i32* %2
%59 = load i8*, i8** %4
%60 = call i32 @pregrow_memory(i32 %58, i8* %59)
%61 = call i32 (...) @print_memory()
br label %30
62: ; preds = %52
%63 = call i64 @strcmp(i8* %16, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.13, i64 0, i64 0))
%64 = icmp eq i64 %63, 0
br i1 %64, label %65, label %67
65: ; preds = %62
%66 = call i32 (...) @end_memory()
br label %69
67: ; preds = %62
%68 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([16 x i8], [16 x i8]* @str, i64 0, i64 0))
br label %30
69: ; preds = %65, %11
%70 = phi i32 [ 1, %11 ], [ 0, %65 ]
ret i32 %70
}