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

/* Variables and functions */
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *, ...);
int /*<<< orphan*/ stderr;
void dump_mi(struct mallinfo *mi) {
  fprintf(stderr,
          "      "
          "arena"
          "\t= %d",
          mi->arena);
  ;
  fprintf(stderr,
          "      "
          "ordblks"
          "\t= %d",
          mi->ordblks);
  ;
  fprintf(stderr,
          "      "
          "smblks"
          "\t= %d",
          mi->smblks);
  ;
  fprintf(stderr, "\n");
  fprintf(stderr,
          "      "
          "hblks"
          "\t= %d",
          mi->hblks);
  ;
  fprintf(stderr,
          "      "
          "hblkhd"
          "\t= %d",
          mi->hblkhd);
  ;
  fprintf(stderr,
          "      "
          "usmblks"
          "\t= %d",
          mi->usmblks);
  ;
  fprintf(stderr, "\n");
  fprintf(stderr,
          "      "
          "fsmblks"
          "\t= %d",
          mi->fsmblks);
  ;
  fprintf(stderr,
          "      "
          "uordblks"
          "\t= %d",
          mi->uordblks);
  ;
  fprintf(stderr,
          "      "
          "keepcost"
          "\t= %d",
          mi->keepcost);
  ;
  fprintf(stderr, "\n");
}


x86 assembly (clang, -O0):
<dump_mi>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    0x2ebd(%rip),%rax
mov    (%rax),%edi
mov    -0x8(%rbp),%rax
mov    (%rax),%edx
lea    0xece(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    0x2ea0(%rip),%rax
mov    (%rax),%edi
mov    -0x8(%rbp),%rax
mov    0x4(%rax),%edx
lea    0xec1(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    0x2e82(%rip),%rax
mov    (%rax),%edi
mov    -0x8(%rbp),%rax
mov    0x8(%rax),%edx
lea    0xeb6(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    0x2e64(%rip),%rax
mov    (%rax),%edi
lea    0xeb1(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    0x2e4d(%rip),%rax
mov    (%rax),%edi
mov    -0x8(%rbp),%rax
mov    0xc(%rax),%edx
lea    0xe95(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    0x2e2f(%rip),%rax
mov    (%rax),%edi
mov    -0x8(%rbp),%rax
mov    0x10(%rax),%edx
lea    0xe88(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    0x2e11(%rip),%rax
mov    (%rax),%edi
mov    -0x8(%rbp),%rax
mov    0x14(%rax),%edx
lea    0xe7c(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    0x2df3(%rip),%rax
mov    (%rax),%edi
lea    0xe40(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    0x2ddc(%rip),%rax
mov    (%rax),%edi
mov    -0x8(%rbp),%rax
mov    0x18(%rax),%edx
lea    0xe5a(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    0x2dbe(%rip),%rax
mov    (%rax),%edi
mov    -0x8(%rbp),%rax
mov    0x1c(%rax),%edx
lea    0xe4f(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    0x2da0(%rip),%rax
mov    (%rax),%edi
mov    -0x8(%rbp),%rax
mov    0x20(%rax),%edx
lea    0xe45(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    0x2d82(%rip),%rax
mov    (%rax),%edi
lea    0xdcf(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<dump_mi>:
push   %r15
push   %r14
push   %rbx
mov    %rdi,%rbx
mov    0x2ec1(%rip),%r15
mov    (%r15),%edi
mov    (%rbx),%edx
lea    0xed5(%rip),%rsi
xor    %eax,%eax
call   1030 <fprintf@plt>
mov    (%r15),%edi
mov    0x4(%rbx),%edx
lea    0xed2(%rip),%rsi
xor    %eax,%eax
call   1030 <fprintf@plt>
mov    (%r15),%edi
mov    0x8(%rbx),%edx
lea    0xed1(%rip),%rsi
xor    %eax,%eax
call   1030 <fprintf@plt>
mov    (%r15),%edi
lea    0xed2(%rip),%r14
mov    %r14,%rsi
xor    %eax,%eax
call   1030 <fprintf@plt>
mov    (%r15),%edi
mov    0xc(%rbx),%edx
lea    0xebd(%rip),%rsi
xor    %eax,%eax
call   1030 <fprintf@plt>
mov    (%r15),%edi
mov    0x10(%rbx),%edx
lea    0xeba(%rip),%rsi
xor    %eax,%eax
call   1030 <fprintf@plt>
mov    (%r15),%edi
mov    0x14(%rbx),%edx
lea    0xeb8(%rip),%rsi
xor    %eax,%eax
call   1030 <fprintf@plt>
mov    (%r15),%edi
mov    %r14,%rsi
xor    %eax,%eax
call   1030 <fprintf@plt>
mov    (%r15),%edi
mov    0x18(%rbx),%edx
lea    0xeaa(%rip),%rsi
xor    %eax,%eax
call   1030 <fprintf@plt>
mov    (%r15),%edi
mov    0x1c(%rbx),%edx
lea    0xea9(%rip),%rsi
xor    %eax,%eax
call   1030 <fprintf@plt>
mov    (%r15),%edi
mov    0x20(%rbx),%edx
lea    0xea9(%rip),%rsi
xor    %eax,%eax
call   1030 <fprintf@plt>
mov    (%r15),%edi
mov    %r14,%rsi
xor    %eax,%eax
pop    %rbx
pop    %r14
pop    %r15
jmp    1030 <fprintf@plt>

LLVM IR (-O0):
%struct.mallinfo = type { i32, i32, i32, i32, i32, i32, i32, i32, i32 }
@stderr = global i32 0
@.str = [17 x i8] c" arena\09= %d\00"
@.str.1 = [19 x i8] c" ordblks\09= %d\00"
@.str.2 = [18 x i8] c" smblks\09= %d\00"
@.str.3 = [2 x i8] c"\0A\00"
@.str.4 = [17 x i8] c" hblks\09= %d\00"
@.str.5 = [18 x i8] c" hblkhd\09= %d\00"
@.str.6 = [19 x i8] c" usmblks\09= %d\00"
@.str.7 = [19 x i8] c" fsmblks\09= %d\00"
@.str.8 = [20 x i8] c" uordblks\09= %d\00"
@.str.9 = [20 x i8] c" keepcost\09= %d\00"
define void @dump_mi(%struct.mallinfo* %0) {
%2 = alloca %struct.mallinfo*
store %struct.mallinfo* %0, %struct.mallinfo** %2
%3 = load i32, i32* @stderr
%4 = load %struct.mallinfo*, %struct.mallinfo** %2
%5 = getelementptr inbounds %struct.mallinfo, %struct.mallinfo* %4, i32 0, i32 0
%6 = load i32, i32* %5
%7 = call i32 (i32, i8*, ...) @fprintf(i32 %3, i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str, i64 0, i64 0), i32 %6)
%8 = load i32, i32* @stderr
%9 = load %struct.mallinfo*, %struct.mallinfo** %2
%10 = getelementptr inbounds %struct.mallinfo, %struct.mallinfo* %9, i32 0, i32 1
%11 = load i32, i32* %10
%12 = call i32 (i32, i8*, ...) @fprintf(i32 %8, i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.1, i64 0, i64 0), i32 %11)
%13 = load i32, i32* @stderr
%14 = load %struct.mallinfo*, %struct.mallinfo** %2
%15 = getelementptr inbounds %struct.mallinfo, %struct.mallinfo* %14, i32 0, i32 2
%16 = load i32, i32* %15
%17 = call i32 (i32, i8*, ...) @fprintf(i32 %13, i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.2, i64 0, i64 0), i32 %16)
%18 = load i32, i32* @stderr
%19 = call i32 (i32, i8*, ...) @fprintf(i32 %18, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.3, i64 0, i64 0))
%20 = load i32, i32* @stderr
%21 = load %struct.mallinfo*, %struct.mallinfo** %2
%22 = getelementptr inbounds %struct.mallinfo, %struct.mallinfo* %21, i32 0, i32 3
%23 = load i32, i32* %22
%24 = call i32 (i32, i8*, ...) @fprintf(i32 %20, i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.4, i64 0, i64 0), i32 %23)
%25 = load i32, i32* @stderr
%26 = load %struct.mallinfo*, %struct.mallinfo** %2
%27 = getelementptr inbounds %struct.mallinfo, %struct.mallinfo* %26, i32 0, i32 4
%28 = load i32, i32* %27
%29 = call i32 (i32, i8*, ...) @fprintf(i32 %25, i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.5, i64 0, i64 0), i32 %28)
%30 = load i32, i32* @stderr
%31 = load %struct.mallinfo*, %struct.mallinfo** %2
%32 = getelementptr inbounds %struct.mallinfo, %struct.mallinfo* %31, i32 0, i32 5
%33 = load i32, i32* %32
%34 = call i32 (i32, i8*, ...) @fprintf(i32 %30, i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.6, i64 0, i64 0), i32 %33)
%35 = load i32, i32* @stderr
%36 = call i32 (i32, i8*, ...) @fprintf(i32 %35, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.3, i64 0, i64 0))
%37 = load i32, i32* @stderr
%38 = load %struct.mallinfo*, %struct.mallinfo** %2
%39 = getelementptr inbounds %struct.mallinfo, %struct.mallinfo* %38, i32 0, i32 6
%40 = load i32, i32* %39
%41 = call i32 (i32, i8*, ...) @fprintf(i32 %37, i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.7, i64 0, i64 0), i32 %40)
%42 = load i32, i32* @stderr
%43 = load %struct.mallinfo*, %struct.mallinfo** %2
%44 = getelementptr inbounds %struct.mallinfo, %struct.mallinfo* %43, i32 0, i32 7
%45 = load i32, i32* %44
%46 = call i32 (i32, i8*, ...) @fprintf(i32 %42, i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.8, i64 0, i64 0), i32 %45)
%47 = load i32, i32* @stderr
%48 = load %struct.mallinfo*, %struct.mallinfo** %2
%49 = getelementptr inbounds %struct.mallinfo, %struct.mallinfo* %48, i32 0, i32 8
%50 = load i32, i32* %49
%51 = call i32 (i32, i8*, ...) @fprintf(i32 %47, i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.9, i64 0, i64 0), i32 %50)
%52 = load i32, i32* @stderr
%53 = call i32 (i32, i8*, ...) @fprintf(i32 %52, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.3, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
%struct.mallinfo = type { i32, i32, i32, i32, i32, i32, i32, i32, i32 }
@stderr = global i32 0
@.str = [17 x i8] c" arena\09= %d\00"
@.str.1 = [19 x i8] c" ordblks\09= %d\00"
@.str.2 = [18 x i8] c" smblks\09= %d\00"
@.str.3 = [2 x i8] c"\0A\00"
@.str.4 = [17 x i8] c" hblks\09= %d\00"
@.str.5 = [18 x i8] c" hblkhd\09= %d\00"
@.str.6 = [19 x i8] c" usmblks\09= %d\00"
@.str.7 = [19 x i8] c" fsmblks\09= %d\00"
@.str.8 = [20 x i8] c" uordblks\09= %d\00"
@.str.9 = [20 x i8] c" keepcost\09= %d\00"
define void @dump_mi(%struct.mallinfo* nocapture %0) {
%2 = load i32, i32* @stderr
%3 = getelementptr inbounds %struct.mallinfo, %struct.mallinfo* %0, i64 0, i32 0
%4 = load i32, i32* %3
%5 = tail call i32 (i32, i8*, ...) @fprintf(i32 %2, i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str, i64 0, i64 0), i32 %4)
%6 = load i32, i32* @stderr
%7 = getelementptr inbounds %struct.mallinfo, %struct.mallinfo* %0, i64 0, i32 1
%8 = load i32, i32* %7
%9 = tail call i32 (i32, i8*, ...) @fprintf(i32 %6, i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.1, i64 0, i64 0), i32 %8)
%10 = load i32, i32* @stderr
%11 = getelementptr inbounds %struct.mallinfo, %struct.mallinfo* %0, i64 0, i32 2
%12 = load i32, i32* %11
%13 = tail call i32 (i32, i8*, ...) @fprintf(i32 %10, i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.2, i64 0, i64 0), i32 %12)
%14 = load i32, i32* @stderr
%15 = tail call i32 (i32, i8*, ...) @fprintf(i32 %14, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.3, i64 0, i64 0))
%16 = load i32, i32* @stderr
%17 = getelementptr inbounds %struct.mallinfo, %struct.mallinfo* %0, i64 0, i32 3
%18 = load i32, i32* %17
%19 = tail call i32 (i32, i8*, ...) @fprintf(i32 %16, i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.4, i64 0, i64 0), i32 %18)
%20 = load i32, i32* @stderr
%21 = getelementptr inbounds %struct.mallinfo, %struct.mallinfo* %0, i64 0, i32 4
%22 = load i32, i32* %21
%23 = tail call i32 (i32, i8*, ...) @fprintf(i32 %20, i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.5, i64 0, i64 0), i32 %22)
%24 = load i32, i32* @stderr
%25 = getelementptr inbounds %struct.mallinfo, %struct.mallinfo* %0, i64 0, i32 5
%26 = load i32, i32* %25
%27 = tail call i32 (i32, i8*, ...) @fprintf(i32 %24, i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.6, i64 0, i64 0), i32 %26)
%28 = load i32, i32* @stderr
%29 = tail call i32 (i32, i8*, ...) @fprintf(i32 %28, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.3, i64 0, i64 0))
%30 = load i32, i32* @stderr
%31 = getelementptr inbounds %struct.mallinfo, %struct.mallinfo* %0, i64 0, i32 6
%32 = load i32, i32* %31
%33 = tail call i32 (i32, i8*, ...) @fprintf(i32 %30, i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.7, i64 0, i64 0), i32 %32)
%34 = load i32, i32* @stderr
%35 = getelementptr inbounds %struct.mallinfo, %struct.mallinfo* %0, i64 0, i32 7
%36 = load i32, i32* %35
%37 = tail call i32 (i32, i8*, ...) @fprintf(i32 %34, i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.8, i64 0, i64 0), i32 %36)
%38 = load i32, i32* @stderr
%39 = getelementptr inbounds %struct.mallinfo, %struct.mallinfo* %0, i64 0, i32 8
%40 = load i32, i32* %39
%41 = tail call i32 (i32, i8*, ...) @fprintf(i32 %38, i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.9, i64 0, i64 0), i32 %40)
%42 = load i32, i32* @stderr
%43 = tail call i32 (i32, i8*, ...) @fprintf(i32 %42, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.3, i64 0, i64 0))
ret void
}