#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 */
float plotAxis(float, float, float, float);
int /*<<< orphan*/ plotFunction(float, float, float, float, float, float,
                                float);
int /*<<< orphan*/ sysClear();
int /*<<< orphan*/ sysPrintFloat(float, int /*<<< orphan*/, int, int);
int /*<<< orphan*/ sysPrintString(char *, int /*<<< orphan*/, int, int);
void plotWrapper(float x_l, float x_r, float y_d, float y_u, float a, float b,
                 float c) {
  sysClear();
  float scale = plotAxis(x_l, x_r, y_d, y_u);
  plotFunction(x_l, x_r, y_d, y_u, a, b, c);
  sysPrintString("Scale = ", 0, 255, 255);
  sysPrintFloat(scale, 0, 255, 255);
}


x86 assembly (clang, -O0):
<plotWrapper>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movss  %xmm0,-0x4(%rbp)
movss  %xmm1,-0x8(%rbp)
movss  %xmm2,-0xc(%rbp)
movss  %xmm3,-0x10(%rbp)
movss  %xmm4,-0x14(%rbp)
movss  %xmm5,-0x18(%rbp)
movss  %xmm6,-0x1c(%rbp)
mov    $0x0,%al
call   1070 <sysClear@plt>
movss  -0x4(%rbp),%xmm0
movss  -0x8(%rbp),%xmm1
movss  -0xc(%rbp),%xmm2
movss  -0x10(%rbp),%xmm3
call   1060 <plotAxis@plt>
movss  %xmm0,-0x20(%rbp)
movss  -0x4(%rbp),%xmm0
movss  -0x8(%rbp),%xmm1
movss  -0xc(%rbp),%xmm2
movss  -0x10(%rbp),%xmm3
movss  -0x14(%rbp),%xmm4
movss  -0x18(%rbp),%xmm5
movss  -0x1c(%rbp),%xmm6
call   1030 <plotFunction@plt>
lea    0xe31(%rip),%rdi
xor    %esi,%esi
mov    $0xff,%ecx
mov    %ecx,%edx
call   1040 <sysPrintString@plt>
movss  -0x20(%rbp),%xmm0
xor    %edi,%edi
mov    $0xff,%edx
mov    %edx,%esi
call   1050 <sysPrintFloat@plt>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<plotWrapper>:
sub    $0x28,%rsp
movss  %xmm6,0x24(%rsp)
movss  %xmm5,0x20(%rsp)
movss  %xmm4,0x1c(%rsp)
movss  %xmm3,0x14(%rsp)
movss  %xmm2,0x10(%rsp)
movss  %xmm1,0xc(%rsp)
movss  %xmm0,0x8(%rsp)
xor    %eax,%eax
call   1070 <sysClear@plt>
movss  0x8(%rsp),%xmm0
movss  0xc(%rsp),%xmm1
movss  0x10(%rsp),%xmm2
movss  0x14(%rsp),%xmm3
call   1060 <plotAxis@plt>
movss  %xmm0,0x18(%rsp)
movss  0x8(%rsp),%xmm0
movss  0xc(%rsp),%xmm1
movss  0x10(%rsp),%xmm2
movss  0x14(%rsp),%xmm3
movss  0x1c(%rsp),%xmm4
movss  0x20(%rsp),%xmm5
movss  0x24(%rsp),%xmm6
call   1030 <plotFunction@plt>
lea    0xe22(%rip),%rdi
xor    %esi,%esi
mov    $0xff,%edx
mov    $0xff,%ecx
call   1040 <sysPrintString@plt>
movss  0x18(%rsp),%xmm0
xor    %edi,%edi
mov    $0xff,%esi
mov    $0xff,%edx
add    $0x28,%rsp
jmp    1050 <sysPrintFloat@plt>

LLVM IR (-O0):
@.str = [9 x i8] c"Scale = \00"
define void @plotWrapper(float %0, float %1, float %2, float %3, float %4, float %5, float %6) {
%8 = alloca float
%9 = alloca float
%10 = alloca float
%11 = alloca float
%12 = alloca float
%13 = alloca float
%14 = alloca float
%15 = alloca float
store float %0, float* %8
store float %1, float* %9
store float %2, float* %10
store float %3, float* %11
store float %4, float* %12
store float %5, float* %13
store float %6, float* %14
%16 = call i32 (...) @sysClear()
%17 = load float, float* %8
%18 = load float, float* %9
%19 = load float, float* %10
%20 = load float, float* %11
%21 = call float @plotAxis(float %17, float %18, float %19, float %20)
store float %21, float* %15
%22 = load float, float* %8
%23 = load float, float* %9
%24 = load float, float* %10
%25 = load float, float* %11
%26 = load float, float* %12
%27 = load float, float* %13
%28 = load float, float* %14
%29 = call i32 @plotFunction(float %22, float %23, float %24, float %25, float %26, float %27, float %28)
%30 = call i32 @sysPrintString(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0), i32 0, i32 255, i32 255)
%31 = load float, float* %15
%32 = call i32 @sysPrintFloat(float %31, i32 0, i32 255, i32 255)
ret void
}

LLVM IR (-O2):
@.str = [9 x i8] c"Scale = \00"
define void @plotWrapper(float %0, float %1, float %2, float %3, float %4, float %5, float %6) {
%8 = tail call i32 (...) @sysClear()
%9 = tail call float @plotAxis(float %0, float %1, float %2, float %3)
%10 = tail call i32 @plotFunction(float %0, float %1, float %2, float %3, float %4, float %5, float %6)
%11 = tail call i32 @sysPrintString(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0), i32 0, i32 255, i32 255)
%12 = tail call i32 @sysPrintFloat(float %9, i32 0, i32 255, i32 255)
ret void
}