#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*/ malloc(int);
int main(void) {
  malloc(8000);
  malloc(120);
  malloc(96);
  malloc(8);
  malloc(8);
  malloc(8);
  malloc(8);
  malloc(8);
  malloc(8);
  malloc(8);
  malloc(8);
  malloc(8);
  malloc(8);
  malloc(8);
  malloc(8);
  malloc(8);
  malloc(8);
  malloc(8);
  malloc(8);
  malloc(8);
  malloc(8);
  malloc(8);
  malloc(8);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
mov    $0x1f40,%edi
call   1030 <malloc@plt>
mov    $0x78,%edi
call   1030 <malloc@plt>
mov    $0x60,%edi
call   1030 <malloc@plt>
mov    $0x8,%edi
call   1030 <malloc@plt>
mov    $0x8,%edi
call   1030 <malloc@plt>
mov    $0x8,%edi
call   1030 <malloc@plt>
mov    $0x8,%edi
call   1030 <malloc@plt>
mov    $0x8,%edi
call   1030 <malloc@plt>
mov    $0x8,%edi
call   1030 <malloc@plt>
mov    $0x8,%edi
call   1030 <malloc@plt>
mov    $0x8,%edi
call   1030 <malloc@plt>
mov    $0x8,%edi
call   1030 <malloc@plt>
mov    $0x8,%edi
call   1030 <malloc@plt>
mov    $0x8,%edi
call   1030 <malloc@plt>
mov    $0x8,%edi
call   1030 <malloc@plt>
mov    $0x8,%edi
call   1030 <malloc@plt>
mov    $0x8,%edi
call   1030 <malloc@plt>
mov    $0x8,%edi
call   1030 <malloc@plt>
mov    $0x8,%edi
call   1030 <malloc@plt>
mov    $0x8,%edi
call   1030 <malloc@plt>
mov    $0x8,%edi
call   1030 <malloc@plt>
mov    $0x8,%edi
call   1030 <malloc@plt>
mov    $0x8,%edi
call   1030 <malloc@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
mov    $0x1f40,%edi
call   1030 <malloc@plt>
mov    $0x78,%edi
call   1030 <malloc@plt>
mov    $0x60,%edi
call   1030 <malloc@plt>
mov    $0x8,%edi
call   1030 <malloc@plt>
mov    $0x8,%edi
call   1030 <malloc@plt>
mov    $0x8,%edi
call   1030 <malloc@plt>
mov    $0x8,%edi
call   1030 <malloc@plt>
mov    $0x8,%edi
call   1030 <malloc@plt>
mov    $0x8,%edi
call   1030 <malloc@plt>
mov    $0x8,%edi
call   1030 <malloc@plt>
mov    $0x8,%edi
call   1030 <malloc@plt>
mov    $0x8,%edi
call   1030 <malloc@plt>
mov    $0x8,%edi
call   1030 <malloc@plt>
mov    $0x8,%edi
call   1030 <malloc@plt>
mov    $0x8,%edi
call   1030 <malloc@plt>
mov    $0x8,%edi
call   1030 <malloc@plt>
mov    $0x8,%edi
call   1030 <malloc@plt>
mov    $0x8,%edi
call   1030 <malloc@plt>
mov    $0x8,%edi
call   1030 <malloc@plt>
mov    $0x8,%edi
call   1030 <malloc@plt>
mov    $0x8,%edi
call   1030 <malloc@plt>
mov    $0x8,%edi
call   1030 <malloc@plt>
mov    $0x8,%edi
call   1030 <malloc@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
define i32 @main() {
%1 = alloca i32
store i32 0, i32* %1
%2 = call i32 @malloc(i32 8000)
%3 = call i32 @malloc(i32 120)
%4 = call i32 @malloc(i32 96)
%5 = call i32 @malloc(i32 8)
%6 = call i32 @malloc(i32 8)
%7 = call i32 @malloc(i32 8)
%8 = call i32 @malloc(i32 8)
%9 = call i32 @malloc(i32 8)
%10 = call i32 @malloc(i32 8)
%11 = call i32 @malloc(i32 8)
%12 = call i32 @malloc(i32 8)
%13 = call i32 @malloc(i32 8)
%14 = call i32 @malloc(i32 8)
%15 = call i32 @malloc(i32 8)
%16 = call i32 @malloc(i32 8)
%17 = call i32 @malloc(i32 8)
%18 = call i32 @malloc(i32 8)
%19 = call i32 @malloc(i32 8)
%20 = call i32 @malloc(i32 8)
%21 = call i32 @malloc(i32 8)
%22 = call i32 @malloc(i32 8)
%23 = call i32 @malloc(i32 8)
%24 = call i32 @malloc(i32 8)
ret i32 0
}

LLVM IR (-O2):
define i32 @main() {
%1 = tail call i32 @malloc(i32 8000)
%2 = tail call i32 @malloc(i32 120)
%3 = tail call i32 @malloc(i32 96)
%4 = tail call i32 @malloc(i32 8)
%5 = tail call i32 @malloc(i32 8)
%6 = tail call i32 @malloc(i32 8)
%7 = tail call i32 @malloc(i32 8)
%8 = tail call i32 @malloc(i32 8)
%9 = tail call i32 @malloc(i32 8)
%10 = tail call i32 @malloc(i32 8)
%11 = tail call i32 @malloc(i32 8)
%12 = tail call i32 @malloc(i32 8)
%13 = tail call i32 @malloc(i32 8)
%14 = tail call i32 @malloc(i32 8)
%15 = tail call i32 @malloc(i32 8)
%16 = tail call i32 @malloc(i32 8)
%17 = tail call i32 @malloc(i32 8)
%18 = tail call i32 @malloc(i32 8)
%19 = tail call i32 @malloc(i32 8)
%20 = tail call i32 @malloc(i32 8)
%21 = tail call i32 @malloc(i32 8)
%22 = tail call i32 @malloc(i32 8)
%23 = tail call i32 @malloc(i32 8)
ret i32 0
}