#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*/ uint64_t;
struct mallinfo {
  int /*<<< orphan*/ keepcost;
  int /*<<< orphan*/ fordblks;
  int /*<<< orphan*/ uordblks;
  int /*<<< orphan*/ fsmblks;
  int /*<<< orphan*/ usmblks;
  int /*<<< orphan*/ hblkhd;
  int /*<<< orphan*/ hblks;
  int /*<<< orphan*/ smblks;
  int /*<<< orphan*/ ordblks;
  int /*<<< orphan*/ arena;
};

/* Variables and functions */
struct mallinfo mallinfo();
int main(int argc, char **argv) {
  struct mallinfo mminfo = mallinfo();
  uint64_t arena = mminfo.arena;
  uint64_t ordblks = mminfo.ordblks;
  uint64_t smblks = mminfo.smblks;
  uint64_t hblks = mminfo.hblks;
  uint64_t hblkhd = mminfo.hblkhd;
  uint64_t usmblks = mminfo.usmblks;
  uint64_t fsmblks = mminfo.fsmblks;
  uint64_t uordblks = mminfo.uordblks;
  uint64_t fordblks = mminfo.fordblks;
  uint64_t keepcost = mminfo.keepcost;
  return (0);
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x60,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
lea    -0x38(%rbp),%rdi
mov    $0x0,%al
call   1030 <mallinfo@plt>
mov    -0x14(%rbp),%eax
mov    %eax,-0x3c(%rbp)
mov    -0x18(%rbp),%eax
mov    %eax,-0x40(%rbp)
mov    -0x1c(%rbp),%eax
mov    %eax,-0x44(%rbp)
mov    -0x20(%rbp),%eax
mov    %eax,-0x48(%rbp)
mov    -0x24(%rbp),%eax
mov    %eax,-0x4c(%rbp)
mov    -0x28(%rbp),%eax
mov    %eax,-0x50(%rbp)
mov    -0x2c(%rbp),%eax
mov    %eax,-0x54(%rbp)
mov    -0x30(%rbp),%eax
mov    %eax,-0x58(%rbp)
mov    -0x34(%rbp),%eax
mov    %eax,-0x5c(%rbp)
mov    -0x38(%rbp),%eax
mov    %eax,-0x60(%rbp)
xor    %eax,%eax
add    $0x60,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
sub    $0x28,%rsp
mov    %rsp,%rdi
xor    %eax,%eax
call   1030 <mallinfo@plt>
xor    %eax,%eax
add    $0x28,%rsp
ret

LLVM IR (-O0):
%struct.mallinfo = type { i32, i32, i32, i32, i32, i32, i32, i32, i32, i32 }
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca %struct.mallinfo
%7 = alloca i32
%8 = alloca i32
%9 = alloca i32
%10 = alloca i32
%11 = alloca i32
%12 = alloca i32
%13 = alloca i32
%14 = alloca i32
%15 = alloca i32
%16 = alloca i32
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
%17 = getelementptr inbounds %struct.mallinfo, %struct.mallinfo* %6, i32 0, i32 9
%18 = load i32, i32* %17
store i32 %18, i32* %7
%19 = getelementptr inbounds %struct.mallinfo, %struct.mallinfo* %6, i32 0, i32 8
%20 = load i32, i32* %19
store i32 %20, i32* %8
%21 = getelementptr inbounds %struct.mallinfo, %struct.mallinfo* %6, i32 0, i32 7
%22 = load i32, i32* %21
store i32 %22, i32* %9
%23 = getelementptr inbounds %struct.mallinfo, %struct.mallinfo* %6, i32 0, i32 6
%24 = load i32, i32* %23
store i32 %24, i32* %10
%25 = getelementptr inbounds %struct.mallinfo, %struct.mallinfo* %6, i32 0, i32 5
%26 = load i32, i32* %25
store i32 %26, i32* %11
%27 = getelementptr inbounds %struct.mallinfo, %struct.mallinfo* %6, i32 0, i32 4
%28 = load i32, i32* %27
store i32 %28, i32* %12
%29 = getelementptr inbounds %struct.mallinfo, %struct.mallinfo* %6, i32 0, i32 3
%30 = load i32, i32* %29
store i32 %30, i32* %13
%31 = getelementptr inbounds %struct.mallinfo, %struct.mallinfo* %6, i32 0, i32 2
%32 = load i32, i32* %31
store i32 %32, i32* %14
%33 = getelementptr inbounds %struct.mallinfo, %struct.mallinfo* %6, i32 0, i32 1
%34 = load i32, i32* %33
store i32 %34, i32* %15
%35 = getelementptr inbounds %struct.mallinfo, %struct.mallinfo* %6, i32 0, i32 0
%36 = load i32, i32* %35
store i32 %36, i32* %16
ret i32 0
}

LLVM IR (-O2):
%struct.mallinfo = type { i32, i32, i32, i32, i32, i32, i32, i32, i32, i32 }
define i32 @main(i32 %0, i8** nocapture readnone %1) {
%3 = alloca %struct.mallinfo
%4 = bitcast %struct.mallinfo* %3 to i8*
ret i32 0
}