#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*/ fprintf(int /*<<< orphan*/, char *, int);
int /*<<< orphan*/ stderr;
void stats(int nfcn, int nstep, int naccpt, int nrejct) {
  fprintf(stderr, "  Number of function evaluations = %d.\n", nfcn);
  fprintf(stderr, "  Number of computed steps = %d.\n", nstep);
  fprintf(stderr, "  Number of accepted steps = %d.\n", naccpt);
  fprintf(stderr, "  Number of rejected steps = %d.\n", nrejct);
}


x86 assembly (clang, -O0):
<stats>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
mov    %edx,-0xc(%rbp)
mov    %ecx,-0x10(%rbp)
mov    0x2eb5(%rip),%rax
mov    (%rax),%edi
mov    -0x4(%rbp),%edx
lea    0xec9(%rip),%rsi
call   1030 <fprintf@plt>
mov    0x2e9d(%rip),%rax
mov    (%rax),%edi
mov    -0x8(%rbp),%edx
lea    0xed9(%rip),%rsi
call   1030 <fprintf@plt>
mov    0x2e85(%rip),%rax
mov    (%rax),%edi
mov    -0xc(%rbp),%edx
lea    0xee3(%rip),%rsi
call   1030 <fprintf@plt>
mov    0x2e6d(%rip),%rax
mov    (%rax),%edi
mov    -0x10(%rbp),%edx
lea    0xeed(%rip),%rsi
call   1030 <fprintf@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<stats>:
push   %rbp
push   %r15
push   %r14
push   %rbx
push   %rax
mov    %ecx,%r14d
mov    %edx,%r15d
mov    %esi,%ebx
mov    %edi,%edx
mov    0x2eb8(%rip),%rbp
mov    0x0(%rbp),%edi
lea    0xece(%rip),%rsi
call   1030 <fprintf@plt>
mov    0x0(%rbp),%edi
lea    0xee7(%rip),%rsi
mov    %ebx,%edx
call   1030 <fprintf@plt>
mov    0x0(%rbp),%edi
lea    0xef8(%rip),%rsi
mov    %r15d,%edx
call   1030 <fprintf@plt>
mov    0x0(%rbp),%edi
lea    0xf08(%rip),%rsi
mov    %r14d,%edx
add    $0x8,%rsp
pop    %rbx
pop    %r14
pop    %r15
pop    %rbp
jmp    1030 <fprintf@plt>

LLVM IR (-O0):
@stderr = global i32 0
@.str = [40 x i8] c" Number of function evaluations = %d.\0A\00"
@.str.1 = [34 x i8] c" Number of computed steps = %d.\0A\00"
@.str.2 = [34 x i8] c" Number of accepted steps = %d.\0A\00"
@.str.3 = [34 x i8] c" Number of rejected steps = %d.\0A\00"
define void @stats(i32 %0, i32 %1, i32 %2, i32 %3) {
%5 = alloca i32
%6 = alloca i32
%7 = alloca i32
%8 = alloca i32
store i32 %0, i32* %5
store i32 %1, i32* %6
store i32 %2, i32* %7
store i32 %3, i32* %8
%9 = load i32, i32* @stderr
%10 = load i32, i32* %5
%11 = call i32 @fprintf(i32 %9, i8* getelementptr inbounds ([40 x i8], [40 x i8]* @.str, i64 0, i64 0), i32 %10)
%12 = load i32, i32* @stderr
%13 = load i32, i32* %6
%14 = call i32 @fprintf(i32 %12, i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.1, i64 0, i64 0), i32 %13)
%15 = load i32, i32* @stderr
%16 = load i32, i32* %7
%17 = call i32 @fprintf(i32 %15, i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.2, i64 0, i64 0), i32 %16)
%18 = load i32, i32* @stderr
%19 = load i32, i32* %8
%20 = call i32 @fprintf(i32 %18, i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.3, i64 0, i64 0), i32 %19)
ret void
}

LLVM IR (-O2):
@stderr = global i32 0
@.str = [40 x i8] c" Number of function evaluations = %d.\0A\00"
@.str.1 = [34 x i8] c" Number of computed steps = %d.\0A\00"
@.str.2 = [34 x i8] c" Number of accepted steps = %d.\0A\00"
@.str.3 = [34 x i8] c" Number of rejected steps = %d.\0A\00"
define void @stats(i32 %0, i32 %1, i32 %2, i32 %3) {
%5 = load i32, i32* @stderr
%6 = tail call i32 @fprintf(i32 %5, i8* getelementptr inbounds ([40 x i8], [40 x i8]* @.str, i64 0, i64 0), i32 %0)
%7 = load i32, i32* @stderr
%8 = tail call i32 @fprintf(i32 %7, i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.1, i64 0, i64 0), i32 %1)
%9 = load i32, i32* @stderr
%10 = tail call i32 @fprintf(i32 %9, i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.2, i64 0, i64 0), i32 %2)
%11 = load i32, i32* @stderr
%12 = tail call i32 @fprintf(i32 %11, i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.3, i64 0, i64 0), i32 %3)
ret void
}