#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 /*<<< orphan*/ lotka_volterra(float, int /*<<< orphan*/, float,
                                  int /*<<< orphan*/, int /*<<< orphan*/, float,
                                  float, float *, float *, double, int);
int /*<<< orphan*/ stderr;
int main(int argc, char **argv) {
  float Presa, Cazador;
  float P0 = 1000.0, C0 = 100.0;
  float a = 100.3;
  float d = 0.3;
  fprintf(stderr, "3.1: b = e = f = 0\n");
  lotka_volterra(a, 0, d, 0, 0, P0, C0, &Presa, &Cazador, 0.01, 100);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
movss  0xed6(%rip),%xmm0
movss  %xmm0,-0x1c(%rbp)
movss  0xec5(%rip),%xmm0
movss  %xmm0,-0x20(%rbp)
movss  0xeb4(%rip),%xmm0
movss  %xmm0,-0x24(%rbp)
movss  0xea3(%rip),%xmm0
movss  %xmm0,-0x28(%rbp)
mov    0x2e6f(%rip),%rax
mov    (%rax),%edi
lea    0xe9e(%rip),%rsi
call   1030 <fprintf@plt>
movss  -0x24(%rbp),%xmm0
movss  -0x28(%rbp),%xmm1
movss  -0x1c(%rbp),%xmm2
movss  -0x20(%rbp),%xmm3
xor    %edx,%edx
lea    -0x14(%rbp),%rcx
lea    -0x18(%rbp),%r8
movsd  0xe5b(%rip),%xmm4
mov    $0x64,%r9d
mov    %edx,%edi
mov    %edx,%esi
call   1040 <lotka_volterra@plt>
xor    %eax,%eax
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
mov    0x2eb8(%rip),%rax
mov    (%rax),%edi
lea    0xee7(%rip),%rsi
call   1030 <fprintf@plt>
movss  0xec2(%rip),%xmm0
movss  0xebe(%rip),%xmm1
movss  0xeba(%rip),%xmm2
movss  0xeb6(%rip),%xmm3
lea    0x4(%rsp),%rcx
mov    %rsp,%r8
movsd  0xeaa(%rip),%xmm4
xor    %edi,%edi
xor    %esi,%esi
xor    %edx,%edx
mov    $0x64,%r9d
call   1040 <lotka_volterra@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
@stderr = global i32 0
@.str = [20 x i8] c"3.1: b = e = f = 0\0A\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca float
%7 = alloca float
%8 = alloca float
%9 = alloca float
%10 = alloca float
%11 = alloca float
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
store float 1.000000e+03, float* %8
store float 1.000000e+02, float* %9
store float 0x4059133340000000, float* %10
store float 0x3FD3333340000000, float* %11
%12 = load i32, i32* @stderr
%13 = call i32 @fprintf(i32 %12, i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str, i64 0, i64 0))
%14 = load float, float* %10
%15 = load float, float* %11
%16 = load float, float* %8
%17 = load float, float* %9
%18 = call i32 @lotka_volterra(float %14, i32 0, float %15, i32 0, i32 0, float %16, float %17, float* %6, float* %7, double 1.000000e-02, i32 100)
ret i32 0
}

LLVM IR (-O2):
@stderr = global i32 0
@.str = [20 x i8] c"3.1: b = e = f = 0\0A\00"
define i32 @main(i32 %0, i8** nocapture readnone %1) {
%3 = alloca float
%4 = alloca float
%5 = bitcast float* %3 to i8*
%6 = bitcast float* %4 to i8*
%7 = load i32, i32* @stderr
%8 = tail call i32 @fprintf(i32 %7, i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str, i64 0, i64 0))
%9 = call i32 @lotka_volterra(float 0x4059133340000000, i32 0, float 0x3FD3333340000000, i32 0, i32 0, float 1.000000e+03, float 1.000000e+02, float* %3, float* %4, double 1.000000e-02, i32 100)
ret i32 0
}