#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*/ handle(float, float, float, float, float, float, float,
                          float, float *, float *);
int /*<<< orphan*/ printf(char *, float, float);
int scanf(char *, float *, float *, float *, float *, float *, float *, float *,
          float *);
int main(int argc, const char *argv[]) {
  float L, W, x, y, R, a, v, s, rex, rey;
  while (scanf("%f %f %f %f %f %f %f %f", &L, &W, &x, &y, &R, &a, &v, &s),
         L != 0) {
    handle(L, W, x, y, R, a, v, s, &rex, &rey);
    printf("%.2f %.2f\n", rex, rey);
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x50,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
lea    0xeb3(%rip),%rdi
lea    -0x14(%rbp),%rsi
lea    -0x18(%rbp),%rdx
lea    -0x1c(%rbp),%rcx
lea    -0x20(%rbp),%r8
lea    -0x24(%rbp),%r9
lea    -0x28(%rbp),%r11
lea    -0x2c(%rbp),%r10
lea    -0x30(%rbp),%rax
mov    %r11,(%rsp)
mov    %r10,0x8(%rsp)
mov    %rax,0x10(%rsp)
call   1050 <scanf@plt>
movss  -0x14(%rbp),%xmm0
xorps  %xmm1,%xmm1
ucomiss %xmm1,%xmm0
jne    119c <main+0x6c>
jp     119c <main+0x6c>
jmp    11ec <main+0xbc>
movss  -0x14(%rbp),%xmm0
movss  -0x18(%rbp),%xmm1
movss  -0x1c(%rbp),%xmm2
movss  -0x20(%rbp),%xmm3
movss  -0x24(%rbp),%xmm4
movss  -0x28(%rbp),%xmm5
movss  -0x2c(%rbp),%xmm6
movss  -0x30(%rbp),%xmm7
lea    -0x34(%rbp),%rdi
lea    -0x38(%rbp),%rsi
call   1040 <handle@plt>
movss  -0x34(%rbp),%xmm0
movss  -0x38(%rbp),%xmm1
lea    0xe36(%rip),%rdi
call   1030 <printf@plt>
jmp    1146 <main+0x16>
xor    %eax,%eax
add    $0x50,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x28,%rsp
sub    $0x8,%rsp
lea    0xc(%rsp),%rax
lea    0x10(%rsp),%rbp
lea    0x14(%rsp),%rbx
lea    0xea8(%rip),%rdi
lea    0x8(%rsp),%rsi
lea    0x24(%rsp),%rdx
lea    0x20(%rsp),%rcx
lea    0x1c(%rsp),%r8
lea    0x18(%rsp),%r9
push   %rax
push   %rbp
push   %rbx
call   1050 <scanf@plt>
add    $0x20,%rsp
movss  (%rsp),%xmm0
xorps  %xmm1,%xmm1
ucomiss %xmm1,%xmm0
jne    1190 <main+0x60>
jnp    1249 <main+0x119>
lea    0xe69(%rip),%r13
mov    %rsp,%rbx
lea    0x1c(%rsp),%rbp
lea    0x18(%rsp),%r14
lea    0x14(%rsp),%r15
lea    0x10(%rsp),%r12
xchg   %ax,%ax
movss  0x1c(%rsp),%xmm1
movss  0x18(%rsp),%xmm2
movss  0x14(%rsp),%xmm3
movss  0x10(%rsp),%xmm4
movss  0xc(%rsp),%xmm5
movss  0x8(%rsp),%xmm6
movss  0x4(%rsp),%xmm7
lea    0x24(%rsp),%rdi
lea    0x20(%rsp),%rsi
call   1040 <handle@plt>
movss  0x24(%rsp),%xmm0
movss  0x20(%rsp),%xmm1
lea    0xe1c(%rip),%rdi
call   1030 <printf@plt>
sub    $0x8,%rsp
mov    %r13,%rdi
mov    %rbx,%rsi
mov    %rbp,%rdx
mov    %r14,%rcx
mov    %r15,%r8
mov    %r12,%r9
lea    0xc(%rsp),%rax
push   %rax
lea    0x18(%rsp),%rax
push   %rax
lea    0x24(%rsp),%rax
push   %rax
call   1050 <scanf@plt>
xorps  %xmm1,%xmm1
add    $0x20,%rsp
movss  (%rsp),%xmm0
ucomiss %xmm1,%xmm0
jne    11b0 <main+0x80>
jp     11b0 <main+0x80>
xor    %eax,%eax
add    $0x28,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [24 x i8] c"%f %f %f %f %f %f %f %f\00"
@.str.1 = [11 x i8] c"%.2f %.2f\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
%12 = alloca float
%13 = alloca float
%14 = alloca float
%15 = alloca float
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
br label %16
16: ; preds = %20, %2
%17 = call i32 @scanf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str, i64 0, i64 0), float* %6, float* %7, float* %8, float* %9, float* %10, float* %11, float* %12, float* %13)
%18 = load float, float* %6
%19 = fcmp une float %18, 0.000000e+00
br i1 %19, label %20, label %33
20: ; preds = %16
%21 = load float, float* %6
%22 = load float, float* %7
%23 = load float, float* %8
%24 = load float, float* %9
%25 = load float, float* %10
%26 = load float, float* %11
%27 = load float, float* %12
%28 = load float, float* %13
%29 = call i32 @handle(float %21, float %22, float %23, float %24, float %25, float %26, float %27, float %28, float* %14, float* %15)
%30 = load float, float* %14
%31 = load float, float* %15
%32 = call i32 @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.1, i64 0, i64 0), float %30, float %31)
br label %16
33: ; preds = %16
ret i32 0
}

LLVM IR (-O2):
@.str = [24 x i8] c"%f %f %f %f %f %f %f %f\00"
@.str.1 = [11 x i8] c"%.2f %.2f\0A\00"
define i32 @main(i32 %0, i8** nocapture readnone %1) {
%3 = alloca float
%4 = alloca float
%5 = alloca float
%6 = alloca float
%7 = alloca float
%8 = alloca float
%9 = alloca float
%10 = alloca float
%11 = alloca float
%12 = alloca float
%13 = bitcast float* %3 to i8*
%14 = bitcast float* %4 to i8*
%15 = bitcast float* %5 to i8*
%16 = bitcast float* %6 to i8*
%17 = bitcast float* %7 to i8*
%18 = bitcast float* %8 to i8*
%19 = bitcast float* %9 to i8*
%20 = bitcast float* %10 to i8*
%21 = bitcast float* %11 to i8*
%22 = bitcast float* %12 to i8*
%23 = call i32 @scanf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str, i64 0, i64 0), float* %3, float* %4, float* %5, float* %6, float* %7, float* %8, float* %9, float* %10)
%24 = load float, float* %3
%25 = fcmp une float %24, 0.000000e+00
br i1 %25, label %26, label %42
26: ; preds = %2, %26
%27 = phi float [ %40, %26 ], [ %24, %2 ]
%28 = load float, float* %4
%29 = load float, float* %5
%30 = load float, float* %6
%31 = load float, float* %7
%32 = load float, float* %8
%33 = load float, float* %9
%34 = load float, float* %10
%35 = call i32 @handle(float %27, float %28, float %29, float %30, float %31, float %32, float %33, float %34, float* %11, float* %12)
%36 = load float, float* %11
%37 = load float, float* %12
%38 = call i32 @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.1, i64 0, i64 0), float %36, float %37)
%39 = call i32 @scanf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str, i64 0, i64 0), float* %3, float* %4, float* %5, float* %6, float* %7, float* %8, float* %9, float* %10)
%40 = load float, float* %3
%41 = fcmp une float %40, 0.000000e+00
br i1 %41, label %26, label %42
42: ; preds = %26, %2
ret i32 0
}