#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 */
scalar_t__ ENOMEM;
int /*<<< orphan*/ _SC_PAGESIZE;
int /*<<< orphan*/ assert(int);
scalar_t__ errno;
int /*<<< orphan*/ free(void *);
scalar_t__ malloc_usable_size(void *);
void *pvalloc(size_t);
scalar_t__ round_up_to(size_t, size_t);
int /*<<< orphan*/ strcmp(char *, char *);
size_t sysconf(int /*<<< orphan*/);
void *valloc(size_t);
int main(int argc, char **argv) {
  void *p = NULL;
  size_t size, page_size;
  assert(argc == 2);
  page_size = sysconf(_SC_PAGESIZE);
  assert((page_size & (page_size - 1)) == 0);
  if (!strcmp(argv[1], "valid")) {
    for (int i = (sizeof(void *) == 4) ? 3 : 4; i < 21; i++) {
      size = 1U << i;
      p = valloc(size - (2 * sizeof(void *)));
      assert(p);
      assert(((uintptr_t)p & (page_size - 1)) == 0);
      free(p);
      p = pvalloc(size - (2 * sizeof(void *)));
      assert(p);
      assert(((uintptr_t)p & (page_size - 1)) == 0);
      assert(malloc_usable_size(p) >= round_up_to(size, page_size));
      free(p);
      p = valloc(size);
      assert(p);
      assert(((uintptr_t)p & (page_size - 1)) == 0);
      free(p);
      p = pvalloc(size);
      assert(p);
      assert(((uintptr_t)p & (page_size - 1)) == 0);
      assert(malloc_usable_size(p) >= round_up_to(size, page_size));
      free(p);
    }
  }
  if (!strcmp(argv[1], "invalid")) {
    p = pvalloc((size_t)-1);
    assert(!p);
    assert(errno == ENOMEM);
    errno = 0;
    p = pvalloc((size_t)-page_size);
    assert(!p);
    assert(errno == ENOMEM);
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x40,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
movq   $0x0,-0x18(%rbp)
cmpl   $0x2,-0x8(%rbp)
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   1060 <assert@plt>
mov    0x2e32(%rip),%rax
mov    (%rax),%edi
call   1090 <sysconf@plt>
mov    %rax,-0x28(%rbp)
mov    -0x28(%rbp),%rax
mov    -0x28(%rbp),%rcx
sub    $0x1,%rcx
and    %rcx,%rax
cmp    $0x0,%rax
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   1060 <assert@plt>
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rdi
lea    0xe12(%rip),%rsi
call   1050 <strcmp@plt>
cmp    $0x0,%eax
jne    13a0 <main+0x220>
movl   $0x4,-0x2c(%rbp)
cmpl   $0x15,-0x2c(%rbp)
jge    139b <main+0x21b>
mov    -0x2c(%rbp),%ecx
mov    $0x1,%eax
shl    %cl,%eax
mov    %eax,%eax
mov    %rax,-0x20(%rbp)
mov    -0x20(%rbp),%rdi
sub    $0x10,%rdi
call   1070 <valloc@plt>
mov    %rax,-0x18(%rbp)
mov    -0x18(%rbp),%rax
mov    %eax,%edi
call   1060 <assert@plt>
mov    -0x18(%rbp),%rax
mov    -0x28(%rbp),%rcx
sub    $0x1,%rcx
and    %rcx,%rax
cmp    $0x0,%rax
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   1060 <assert@plt>
mov    -0x18(%rbp),%rdi
call   1030 <free@plt>
mov    -0x20(%rbp),%rdi
sub    $0x10,%rdi
call   10a0 <pvalloc@plt>
mov    %rax,-0x18(%rbp)
mov    -0x18(%rbp),%rax
mov    %eax,%edi
call   1060 <assert@plt>
mov    -0x18(%rbp),%rax
mov    -0x28(%rbp),%rcx
sub    $0x1,%rcx
and    %rcx,%rax
cmp    $0x0,%rax
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   1060 <assert@plt>
mov    -0x18(%rbp),%rdi
call   1040 <malloc_usable_size@plt>
mov    %rax,-0x40(%rbp)
mov    -0x20(%rbp),%rdi
mov    -0x28(%rbp),%rsi
call   1080 <round_up_to@plt>
mov    %rax,%rcx
mov    -0x40(%rbp),%rax
cmp    %rcx,%rax
setge  %al
and    $0x1,%al
movzbl %al,%edi
call   1060 <assert@plt>
mov    -0x18(%rbp),%rdi
call   1030 <free@plt>
mov    -0x20(%rbp),%rdi
call   1070 <valloc@plt>
mov    %rax,-0x18(%rbp)
mov    -0x18(%rbp),%rax
mov    %eax,%edi
call   1060 <assert@plt>
mov    -0x18(%rbp),%rax
mov    -0x28(%rbp),%rcx
sub    $0x1,%rcx
and    %rcx,%rax
cmp    $0x0,%rax
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   1060 <assert@plt>
mov    -0x18(%rbp),%rdi
call   1030 <free@plt>
mov    -0x20(%rbp),%rdi
call   10a0 <pvalloc@plt>
mov    %rax,-0x18(%rbp)
mov    -0x18(%rbp),%rax
mov    %eax,%edi
call   1060 <assert@plt>
mov    -0x18(%rbp),%rax
mov    -0x28(%rbp),%rcx
sub    $0x1,%rcx
and    %rcx,%rax
cmp    $0x0,%rax
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   1060 <assert@plt>
mov    -0x18(%rbp),%rdi
call   1040 <malloc_usable_size@plt>
mov    %rax,-0x38(%rbp)
mov    -0x20(%rbp),%rdi
mov    -0x28(%rbp),%rsi
call   1080 <round_up_to@plt>
mov    %rax,%rcx
mov    -0x38(%rbp),%rax
cmp    %rcx,%rax
setge  %al
and    $0x1,%al
movzbl %al,%edi
call   1060 <assert@plt>
mov    -0x18(%rbp),%rdi
call   1030 <free@plt>
mov    -0x2c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x2c(%rbp)
jmp    1205 <main+0x85>
jmp    13a0 <main+0x220>
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rdi
lea    0xc51(%rip),%rsi
call   1050 <strcmp@plt>
cmp    $0x0,%eax
jne    1456 <main+0x2d6>
mov    $0xffffffffffffffff,%rdi
call   10a0 <pvalloc@plt>
mov    %rax,-0x18(%rbp)
cmpq   $0x0,-0x18(%rbp)
setne  %al
xor    $0xff,%al
and    $0x1,%al
movzbl %al,%edi
call   1060 <assert@plt>
mov    0x2be8(%rip),%rax
mov    (%rax),%rax
mov    0x2be6(%rip),%rcx
cmp    (%rcx),%rax
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   1060 <assert@plt>
mov    0x2bc7(%rip),%rax
movq   $0x0,(%rax)
xor    %eax,%eax
mov    %eax,%edi
sub    -0x28(%rbp),%rdi
call   10a0 <pvalloc@plt>
mov    %rax,-0x18(%rbp)
cmpq   $0x0,-0x18(%rbp)
setne  %al
xor    $0xff,%al
and    $0x1,%al
movzbl %al,%edi
call   1060 <assert@plt>
mov    0x2b94(%rip),%rax
mov    (%rax),%rax
mov    0x2b92(%rip),%rcx
cmp    (%rcx),%rax
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   1060 <assert@plt>
xor    %eax,%eax
add    $0x40,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
push   %rax
mov    %rsi,%rbp
xor    %eax,%eax
cmp    $0x2,%edi
sete   %al
mov    %eax,%edi
call   1060 <assert@plt>
mov    0x2e44(%rip),%rax
mov    (%rax),%edi
call   1090 <sysconf@plt>
mov    %rax,%r15
lea    -0x1(%rax),%r14
xor    %edi,%edi
test   %r14,%rax
sete   %dil
call   1060 <assert@plt>
mov    0x8(%rbp),%rbx
lea    0xe37(%rip),%rsi
mov    %rbx,%rdi
call   1050 <strcmp@plt>
test   %eax,%eax
jne    12fe <main+0x17e>
mov    %rbp,(%rsp)
mov    $0x4,%r12d
cs nopw 0x0(%rax,%rax,1)
nop
mov    $0x1,%r13d
mov    %r12d,%ecx
shl    %cl,%r13d
lea    -0x10(%r13),%rbp
mov    %rbp,%rdi
call   1070 <valloc@plt>
mov    %rax,%rbx
mov    %ebx,%edi
call   1060 <assert@plt>
xor    %edi,%edi
test   %rbx,%r14
sete   %dil
call   1060 <assert@plt>
mov    %rbx,%rdi
call   1030 <free@plt>
mov    %rbp,%rdi
call   10a0 <pvalloc@plt>
mov    %rax,%rbp
mov    %ebp,%edi
call   1060 <assert@plt>
xor    %edi,%edi
test   %rbp,%r14
sete   %dil
call   1060 <assert@plt>
mov    %rbp,%rdi
call   1040 <malloc_usable_size@plt>
mov    %rax,%rbx
mov    %r13,%rdi
mov    %r15,%rsi
call   1080 <round_up_to@plt>
xor    %edi,%edi
cmp    %rax,%rbx
setge  %dil
call   1060 <assert@plt>
mov    %rbp,%rdi
call   1030 <free@plt>
mov    %r13,%rdi
call   1070 <valloc@plt>
mov    %rax,%rbx
mov    %ebx,%edi
call   1060 <assert@plt>
xor    %edi,%edi
test   %rbx,%r14
sete   %dil
call   1060 <assert@plt>
mov    %rbx,%rdi
call   1030 <free@plt>
mov    %r13,%rdi
call   10a0 <pvalloc@plt>
mov    %rax,%rbp
mov    %ebp,%edi
call   1060 <assert@plt>
xor    %edi,%edi
test   %rbp,%r14
sete   %dil
call   1060 <assert@plt>
mov    %rbp,%rdi
call   1040 <malloc_usable_size@plt>
mov    %rax,%rbx
mov    %r13,%rdi
mov    %r15,%rsi
call   1080 <round_up_to@plt>
xor    %edi,%edi
cmp    %rax,%rbx
setge  %dil
call   1060 <assert@plt>
mov    %rbp,%rdi
call   1030 <free@plt>
add    $0x1,%r12d
cmp    $0x15,%r12d
jne    11f0 <main+0x70>
mov    (%rsp),%rax
mov    0x8(%rax),%rbx
lea    0xcfb(%rip),%rsi
mov    %rbx,%rdi
call   1050 <strcmp@plt>
test   %eax,%eax
jne    137d <main+0x1fd>
mov    $0xffffffffffffffff,%rdi
call   10a0 <pvalloc@plt>
xor    %edi,%edi
test   %rax,%rax
sete   %dil
call   1060 <assert@plt>
mov    0x2c9e(%rip),%rbx
mov    (%rbx),%rax
mov    0x2c9c(%rip),%rbp
xor    %edi,%edi
cmp    0x0(%rbp),%rax
sete   %dil
call   1060 <assert@plt>
movq   $0x0,(%rbx)
neg    %r15
mov    %r15,%rdi
call   10a0 <pvalloc@plt>
xor    %edi,%edi
test   %rax,%rax
sete   %dil
call   1060 <assert@plt>
mov    (%rbx),%rax
xor    %edi,%edi
cmp    0x0(%rbp),%rax
sete   %dil
call   1060 <assert@plt>
xor    %eax,%eax
add    $0x8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@_SC_PAGESIZE = global i32 0
@.str = [6 x i8] c"valid\00"
@.str.1 = [8 x i8] c"invalid\00"
@errno = global i64 0
@ENOMEM = global i64 0
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca i8*
%7 = alloca i64
%8 = alloca i64
%9 = alloca i32
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
store i8* null, i8** %6
%10 = load i32, i32* %4
%11 = icmp eq i32 %10, 2
%12 = zext i1 %11 to i32
%13 = call i32 @assert(i32 %12)
%14 = load i32, i32* @_SC_PAGESIZE
%15 = call i64 @sysconf(i32 %14)
store i64 %15, i64* %8
%16 = load i64, i64* %8
%17 = load i64, i64* %8
%18 = sub i64 %17, 1
%19 = and i64 %16, %18
%20 = icmp eq i64 %19, 0
%21 = zext i1 %20 to i32
%22 = call i32 @assert(i32 %21)
%23 = load i8**, i8*** %5
%24 = getelementptr inbounds i8*, i8** %23, i64 1
%25 = load i8*, i8** %24
%26 = call i32 @strcmp(i8* %25, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0))
%27 = icmp ne i32 %26, 0
br i1 %27, label %118, label %28
28: ; preds = %2
store i32 4, i32* %9
br label %29
29: ; preds = %114, %28
%30 = load i32, i32* %9
%31 = icmp slt i32 %30, 21
br i1 %31, label %32, label %117
32: ; preds = %29
%33 = load i32, i32* %9
%34 = shl i32 1, %33
%35 = zext i32 %34 to i64
store i64 %35, i64* %7
%36 = load i64, i64* %7
%37 = sub i64 %36, 16
%38 = call i8* @valloc(i64 %37)
store i8* %38, i8** %6
%39 = load i8*, i8** %6
%40 = ptrtoint i8* %39 to i32
%41 = call i32 @assert(i32 %40)
%42 = load i8*, i8** %6
%43 = ptrtoint i8* %42 to i64
%44 = load i64, i64* %8
%45 = sub i64 %44, 1
%46 = and i64 %43, %45
%47 = icmp eq i64 %46, 0
%48 = zext i1 %47 to i32
%49 = call i32 @assert(i32 %48)
%50 = load i8*, i8** %6
%51 = call i32 @free(i8* %50)
%52 = load i64, i64* %7
%53 = sub i64 %52, 16
%54 = call i8* @pvalloc(i64 %53)
store i8* %54, i8** %6
%55 = load i8*, i8** %6
%56 = ptrtoint i8* %55 to i32
%57 = call i32 @assert(i32 %56)
%58 = load i8*, i8** %6
%59 = ptrtoint i8* %58 to i64
%60 = load i64, i64* %8
%61 = sub i64 %60, 1
%62 = and i64 %59, %61
%63 = icmp eq i64 %62, 0
%64 = zext i1 %63 to i32
%65 = call i32 @assert(i32 %64)
%66 = load i8*, i8** %6
%67 = call i64 @malloc_usable_size(i8* %66)
%68 = load i64, i64* %7
%69 = load i64, i64* %8
%70 = call i64 @round_up_to(i64 %68, i64 %69)
%71 = icmp sge i64 %67, %70
%72 = zext i1 %71 to i32
%73 = call i32 @assert(i32 %72)
%74 = load i8*, i8** %6
%75 = call i32 @free(i8* %74)
%76 = load i64, i64* %7
%77 = call i8* @valloc(i64 %76)
store i8* %77, i8** %6
%78 = load i8*, i8** %6
%79 = ptrtoint i8* %78 to i32
%80 = call i32 @assert(i32 %79)
%81 = load i8*, i8** %6
%82 = ptrtoint i8* %81 to i64
%83 = load i64, i64* %8
%84 = sub i64 %83, 1
%85 = and i64 %82, %84
%86 = icmp eq i64 %85, 0
%87 = zext i1 %86 to i32
%88 = call i32 @assert(i32 %87)
%89 = load i8*, i8** %6
%90 = call i32 @free(i8* %89)
%91 = load i64, i64* %7
%92 = call i8* @pvalloc(i64 %91)
store i8* %92, i8** %6
%93 = load i8*, i8** %6
%94 = ptrtoint i8* %93 to i32
%95 = call i32 @assert(i32 %94)
%96 = load i8*, i8** %6
%97 = ptrtoint i8* %96 to i64
%98 = load i64, i64* %8
%99 = sub i64 %98, 1
%100 = and i64 %97, %99
%101 = icmp eq i64 %100, 0
%102 = zext i1 %101 to i32
%103 = call i32 @assert(i32 %102)
%104 = load i8*, i8** %6
%105 = call i64 @malloc_usable_size(i8* %104)
%106 = load i64, i64* %7
%107 = load i64, i64* %8
%108 = call i64 @round_up_to(i64 %106, i64 %107)
%109 = icmp sge i64 %105, %108
%110 = zext i1 %109 to i32
%111 = call i32 @assert(i32 %110)
%112 = load i8*, i8** %6
%113 = call i32 @free(i8* %112)
br label %114
114: ; preds = %32
%115 = load i32, i32* %9
%116 = add nsw i32 %115, 1
store i32 %116, i32* %9
br label %29
117: ; preds = %29
br label %118
118: ; preds = %117, %2
%119 = load i8**, i8*** %5
%120 = getelementptr inbounds i8*, i8** %119, i64 1
%121 = load i8*, i8** %120
%122 = call i32 @strcmp(i8* %121, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.1, i64 0, i64 0))
%123 = icmp ne i32 %122, 0
br i1 %123, label %149, label %124
124: ; preds = %118
%125 = call i8* @pvalloc(i64 -1)
store i8* %125, i8** %6
%126 = load i8*, i8** %6
%127 = icmp ne i8* %126, null
%128 = xor i1 %127, true
%129 = zext i1 %128 to i32
%130 = call i32 @assert(i32 %129)
%131 = load i64, i64* @errno
%132 = load i64, i64* @ENOMEM
%133 = icmp eq i64 %131, %132
%134 = zext i1 %133 to i32
%135 = call i32 @assert(i32 %134)
store i64 0, i64* @errno
%136 = load i64, i64* %8
%137 = sub i64 0, %136
%138 = call i8* @pvalloc(i64 %137)
store i8* %138, i8** %6
%139 = load i8*, i8** %6
%140 = icmp ne i8* %139, null
%141 = xor i1 %140, true
%142 = zext i1 %141 to i32
%143 = call i32 @assert(i32 %142)
%144 = load i64, i64* @errno
%145 = load i64, i64* @ENOMEM
%146 = icmp eq i64 %144, %145
%147 = zext i1 %146 to i32
%148 = call i32 @assert(i32 %147)
br label %149
149: ; preds = %124, %118
ret i32 0
}

LLVM IR (-O2):
@_SC_PAGESIZE = global i32 0
@.str = [6 x i8] c"valid\00"
@.str.1 = [8 x i8] c"invalid\00"
@errno = global i64 0
@ENOMEM = global i64 0
define i32 @main(i32 %0, i8** nocapture %1) {
%3 = icmp eq i32 %0, 2
%4 = zext i1 %3 to i32
%5 = tail call i32 @assert(i32 %4)
%6 = load i32, i32* @_SC_PAGESIZE
%7 = tail call i64 @sysconf(i32 %6)
%8 = add i64 %7, -1
%9 = tail call i64 @llvm.ctpop.i64(i64 %7)
%10 = icmp ult i64 %9, 2
%11 = zext i1 %10 to i32
%12 = tail call i32 @assert(i32 %11)
%13 = getelementptr inbounds i8*, i8** %1, i64 1
%14 = load i8*, i8** %13
%15 = tail call i32 @strcmp(i8* dereferenceable(1) %14, i8* dereferenceable(6) getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0))
%16 = icmp eq i32 %15, 0
br i1 %16, label %17, label %72
17: ; preds = %2, %17
%18 = phi i32 [ %68, %17 ], [ 4, %2 ]
%19 = shl nuw nsw i32 1, %18
%20 = zext i32 %19 to i64
%21 = add nsw i64 %20, -16
%22 = tail call i8* @valloc(i64 %21)
%23 = ptrtoint i8* %22 to i64
%24 = trunc i64 %23 to i32
%25 = tail call i32 @assert(i32 %24)
%26 = and i64 %8, %23
%27 = icmp eq i64 %26, 0
%28 = zext i1 %27 to i32
%29 = tail call i32 @assert(i32 %28)
%30 = tail call i32 @free(i8* %22)
%31 = tail call i8* @pvalloc(i64 %21)
%32 = ptrtoint i8* %31 to i64
%33 = trunc i64 %32 to i32
%34 = tail call i32 @assert(i32 %33)
%35 = and i64 %8, %32
%36 = icmp eq i64 %35, 0
%37 = zext i1 %36 to i32
%38 = tail call i32 @assert(i32 %37)
%39 = tail call i64 @malloc_usable_size(i8* %31)
%40 = tail call i64 @round_up_to(i64 %20, i64 %7)
%41 = icmp sge i64 %39, %40
%42 = zext i1 %41 to i32
%43 = tail call i32 @assert(i32 %42)
%44 = tail call i32 @free(i8* %31)
%45 = tail call i8* @valloc(i64 %20)
%46 = ptrtoint i8* %45 to i64
%47 = trunc i64 %46 to i32
%48 = tail call i32 @assert(i32 %47)
%49 = and i64 %8, %46
%50 = icmp eq i64 %49, 0
%51 = zext i1 %50 to i32
%52 = tail call i32 @assert(i32 %51)
%53 = tail call i32 @free(i8* %45)
%54 = tail call i8* @pvalloc(i64 %20)
%55 = ptrtoint i8* %54 to i64
%56 = trunc i64 %55 to i32
%57 = tail call i32 @assert(i32 %56)
%58 = and i64 %8, %55
%59 = icmp eq i64 %58, 0
%60 = zext i1 %59 to i32
%61 = tail call i32 @assert(i32 %60)
%62 = tail call i64 @malloc_usable_size(i8* %54)
%63 = tail call i64 @round_up_to(i64 %20, i64 %7)
%64 = icmp sge i64 %62, %63
%65 = zext i1 %64 to i32
%66 = tail call i32 @assert(i32 %65)
%67 = tail call i32 @free(i8* %54)
%68 = add nuw nsw i32 %18, 1
%69 = icmp eq i32 %68, 21
br i1 %69, label %70, label %17
70: ; preds = %17
%71 = load i8*, i8** %13
br label %72
72: ; preds = %70, %2
%73 = phi i8* [ %71, %70 ], [ %14, %2 ]
%74 = tail call i32 @strcmp(i8* dereferenceable(1) %73, i8* dereferenceable(8) getelementptr inbounds ([8 x i8], [8 x i8]* @.str.1, i64 0, i64 0))
%75 = icmp eq i32 %74, 0
br i1 %75, label %76, label %96
76: ; preds = %72
%77 = tail call i8* @pvalloc(i64 -1)
%78 = icmp eq i8* %77, null
%79 = zext i1 %78 to i32
%80 = tail call i32 @assert(i32 %79)
%81 = load i64, i64* @errno
%82 = load i64, i64* @ENOMEM
%83 = icmp eq i64 %81, %82
%84 = zext i1 %83 to i32
%85 = tail call i32 @assert(i32 %84)
store i64 0, i64* @errno
%86 = sub i64 0, %7
%87 = tail call i8* @pvalloc(i64 %86)
%88 = icmp eq i8* %87, null
%89 = zext i1 %88 to i32
%90 = tail call i32 @assert(i32 %89)
%91 = load i64, i64* @errno
%92 = load i64, i64* @ENOMEM
%93 = icmp eq i64 %91, %92
%94 = zext i1 %93 to i32
%95 = tail call i32 @assert(i32 %94)
br label %96
96: ; preds = %76, %72
ret i32 0
}