#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*/ printf(char *, double);
int /*<<< orphan*/ scanf(char *, double *, double *);
int main() {
  double w, h;
  while (1) {
    scanf("%lf %lf", &w, &h);
    if (w <= 0 || h <= 0) {
      break;
    }
    h /= 100;
    printf("%.2f\n", w / (h * h));
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movl   $0x0,-0x4(%rbp)
lea    0xed2(%rip),%rdi
lea    -0x10(%rbp),%rsi
lea    -0x18(%rbp),%rdx
call   1040 <scanf@plt>
xorps  %xmm0,%xmm0
ucomisd -0x10(%rbp),%xmm0
jae    115f <main+0x3f>
xorps  %xmm0,%xmm0
ucomisd -0x18(%rbp),%xmm0
jb     1164 <main+0x44>
jmp    119e <main+0x7e>
movsd  -0x18(%rbp),%xmm0
movsd  0xe8f(%rip),%xmm1
divsd  %xmm1,%xmm0
movsd  %xmm0,-0x18(%rbp)
movsd  -0x10(%rbp),%xmm0
movsd  -0x18(%rbp),%xmm1
mulsd  -0x18(%rbp),%xmm1
divsd  %xmm1,%xmm0
lea    0xe7c(%rip),%rdi
call   1030 <printf@plt>
jmp    112f <main+0xf>
xor    %eax,%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %r15
push   %r14
push   %r12
push   %rbx
sub    $0x18,%rsp
lea    0xed6(%rip),%rdi
lea    0x10(%rsp),%rsi
lea    0x8(%rsp),%rdx
call   1040 <scanf@plt>
movsd  0x10(%rsp),%xmm0
xorpd  %xmm2,%xmm2
ucomisd %xmm0,%xmm2
jae    11c8 <main+0xa8>
movsd  0x8(%rsp),%xmm1
ucomisd %xmm1,%xmm2
jae    11c8 <main+0xa8>
lea    0xeac(%rip),%r14
lea    0xe9d(%rip),%r15
lea    0x10(%rsp),%r12
lea    0x8(%rsp),%rbx
cs nopw 0x0(%rax,%rax,1)
nop
divsd  0xe78(%rip),%xmm1
movsd  %xmm1,0x8(%rsp)
mulsd  %xmm1,%xmm1
divsd  %xmm1,%xmm0
mov    %r14,%rdi
call   1030 <printf@plt>
mov    %r15,%rdi
mov    %r12,%rsi
mov    %rbx,%rdx
call   1040 <scanf@plt>
xorpd  %xmm2,%xmm2
movsd  0x10(%rsp),%xmm0
ucomisd %xmm0,%xmm2
jae    11c8 <main+0xa8>
movsd  0x8(%rsp),%xmm1
ucomisd %xmm1,%xmm2
jb     1180 <main+0x60>
xor    %eax,%eax
add    $0x18,%rsp
pop    %rbx
pop    %r12
pop    %r14
pop    %r15
ret

LLVM IR (-O0):
@.str = [8 x i8] c"%lf %lf\00"
@.str.1 = [6 x i8] c"%.2f\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca double
%3 = alloca double
store i32 0, i32* %1
br label %4
4: ; preds = %0, %12
%5 = call i32 @scanf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str, i64 0, i64 0), double* %2, double* %3)
%6 = load double, double* %2
%7 = fcmp ole double %6, 0.000000e+00
br i1 %7, label %11, label %8
8: ; preds = %4
%9 = load double, double* %3
%10 = fcmp ole double %9, 0.000000e+00
br i1 %10, label %11, label %12
11: ; preds = %8, %4
br label %21
12: ; preds = %8
%13 = load double, double* %3
%14 = fdiv double %13, 1.000000e+02
store double %14, double* %3
%15 = load double, double* %2
%16 = load double, double* %3
%17 = load double, double* %3
%18 = fmul double %16, %17
%19 = fdiv double %15, %18
%20 = call i32 @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0), double %19)
br label %4
21: ; preds = %11
ret i32 0
}

LLVM IR (-O2):
@.str = [8 x i8] c"%lf %lf\00"
@.str.1 = [6 x i8] c"%.2f\0A\00"
define i32 @main() {
%1 = alloca double
%2 = alloca double
%3 = bitcast double* %1 to i8*
%4 = bitcast double* %2 to i8*
%5 = call i32 @scanf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str, i64 0, i64 0), double* %1, double* %2)
%6 = load double, double* %1
%7 = fcmp ole double %6, 0.000000e+00
%8 = load double, double* %2
%9 = fcmp ole double %8, 0.000000e+00
%10 = select i1 %7, i1 true, i1 %9
br i1 %10, label %24, label %11
11: ; preds = %0, %11
%12 = phi double [ %21, %11 ], [ %8, %0 ]
%13 = phi double [ %19, %11 ], [ %6, %0 ]
%14 = fdiv double %12, 1.000000e+02
store double %14, double* %2
%15 = fmul double %14, %14
%16 = fdiv double %13, %15
%17 = call i32 @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0), double %16)
%18 = call i32 @scanf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str, i64 0, i64 0), double* %1, double* %2)
%19 = load double, double* %1
%20 = fcmp ole double %19, 0.000000e+00
%21 = load double, double* %2
%22 = fcmp ole double %21, 0.000000e+00
%23 = select i1 %20, i1 true, i1 %22
br i1 %23, label %24, label %11
24: ; preds = %11, %0
ret i32 0
}