#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, float, float);
int /*<<< orphan*/ stdout;
void vertex_scaled3(int type, float x, float y, float scale) {
  x -= 0.5;
  y -= 0.5;
  scale *= 1.5;
  x *= scale;
  y *= scale;
  x += 0.5;
  y += 0.5;
  y -= 0.5;
  fprintf(stdout, "%c %f %f\n", type, x, y);
}


x86 assembly (clang, -O0):
<vertex_scaled3>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
movss  %xmm0,-0x8(%rbp)
movss  %xmm1,-0xc(%rbp)
movss  %xmm2,-0x10(%rbp)
movss  -0x8(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
movsd  0xec5(%rip),%xmm1
subsd  %xmm1,%xmm0
cvtsd2ss %xmm0,%xmm0
movss  %xmm0,-0x8(%rbp)
movss  -0xc(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
movsd  0xea7(%rip),%xmm1
subsd  %xmm1,%xmm0
cvtsd2ss %xmm0,%xmm0
movss  %xmm0,-0xc(%rbp)
movss  -0x10(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
movsd  0xe91(%rip),%xmm1
mulsd  %xmm1,%xmm0
cvtsd2ss %xmm0,%xmm0
movss  %xmm0,-0x10(%rbp)
movss  -0x10(%rbp),%xmm0
mulss  -0x8(%rbp),%xmm0
movss  %xmm0,-0x8(%rbp)
movss  -0x10(%rbp),%xmm0
mulss  -0xc(%rbp),%xmm0
movss  %xmm0,-0xc(%rbp)
movss  -0x8(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
movsd  0xe4d(%rip),%xmm1
addsd  %xmm1,%xmm0
cvtsd2ss %xmm0,%xmm0
movss  %xmm0,-0x8(%rbp)
movss  -0xc(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
movsd  0xe2f(%rip),%xmm1
addsd  %xmm1,%xmm0
cvtsd2ss %xmm0,%xmm0
movss  %xmm0,-0xc(%rbp)
movss  -0xc(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
movsd  0xe11(%rip),%xmm1
subsd  %xmm1,%xmm0
cvtsd2ss %xmm0,%xmm0
movss  %xmm0,-0xc(%rbp)
mov    0x2ddd(%rip),%rax
mov    (%rax),%edi
mov    -0x4(%rbp),%edx
movss  -0x8(%rbp),%xmm0
movss  -0xc(%rbp),%xmm1
lea    0xdf7(%rip),%rsi
call   1030 <fprintf@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<vertex_scaled3>:
mov    %edi,%edx
movss  0xee6(%rip),%xmm3
addss  %xmm3,%xmm0
addss  %xmm3,%xmm1
mulss  0xeda(%rip),%xmm2
mulss  %xmm2,%xmm0
mulss  %xmm2,%xmm1
movss  0xece(%rip),%xmm2
addss  %xmm2,%xmm0
addss  %xmm2,%xmm1
addss  %xmm3,%xmm1
mov    0x2e93(%rip),%rax
mov    (%rax),%edi
lea    0xeb6(%rip),%rsi
jmp    1030 <fprintf@plt>

LLVM IR (-O0):
@stdout = global i32 0
@.str = [10 x i8] c"%c %f %f\0A\00"
define void @vertex_scaled3(i32 %0, float %1, float %2, float %3) {
%5 = alloca i32
%6 = alloca float
%7 = alloca float
%8 = alloca float
store i32 %0, i32* %5
store float %1, float* %6
store float %2, float* %7
store float %3, float* %8
%9 = load float, float* %6
%10 = fpext float %9 to double
%11 = fsub double %10, 5.000000e-01
%12 = fptrunc double %11 to float
store float %12, float* %6
%13 = load float, float* %7
%14 = fpext float %13 to double
%15 = fsub double %14, 5.000000e-01
%16 = fptrunc double %15 to float
store float %16, float* %7
%17 = load float, float* %8
%18 = fpext float %17 to double
%19 = fmul double %18, 1.500000e+00
%20 = fptrunc double %19 to float
store float %20, float* %8
%21 = load float, float* %8
%22 = load float, float* %6
%23 = fmul float %22, %21
store float %23, float* %6
%24 = load float, float* %8
%25 = load float, float* %7
%26 = fmul float %25, %24
store float %26, float* %7
%27 = load float, float* %6
%28 = fpext float %27 to double
%29 = fadd double %28, 5.000000e-01
%30 = fptrunc double %29 to float
store float %30, float* %6
%31 = load float, float* %7
%32 = fpext float %31 to double
%33 = fadd double %32, 5.000000e-01
%34 = fptrunc double %33 to float
store float %34, float* %7
%35 = load float, float* %7
%36 = fpext float %35 to double
%37 = fsub double %36, 5.000000e-01
%38 = fptrunc double %37 to float
store float %38, float* %7
%39 = load i32, i32* @stdout
%40 = load i32, i32* %5
%41 = load float, float* %6
%42 = load float, float* %7
%43 = call i32 @fprintf(i32 %39, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str, i64 0, i64 0), i32 %40, float %41, float %42)
ret void
}

LLVM IR (-O2):
@stdout = global i32 0
@.str = [10 x i8] c"%c %f %f\0A\00"
define void @vertex_scaled3(i32 %0, float %1, float %2, float %3) {
%5 = fadd float %1, -5.000000e-01
%6 = fadd float %2, -5.000000e-01
%7 = fmul float %3, 1.500000e+00
%8 = fmul float %5, %7
%9 = fmul float %6, %7
%10 = fadd float %8, 5.000000e-01
%11 = fadd float %9, 5.000000e-01
%12 = fadd float %11, -5.000000e-01
%13 = load i32, i32* @stdout
%14 = tail call i32 @fprintf(i32 %13, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str, i64 0, i64 0), i32 %0, float %10, float %12)
ret void
}