#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 */
scalar_t__ EOF;
int /*<<< orphan*/ printf(char *, int);
scalar_t__ scanf(char *, int *, float *, float *);
int main(void) {
  int num[100], i, j;
  float weight, height, bmi[100];
  while (scanf("%d,%f,%f", &num[i], &weight, &height) != EOF) {
    bmi[i] = weight / (height * height);
    i++;
  }
  for (j = 0; j < i; j++) {
    if (bmi[j] >= 25)
      printf("%d\n", num[j]);
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x340,%rsp
movl   $0x0,-0x4(%rbp)
movslq -0x1a4(%rbp),%rax
lea    -0x1a0(%rbp),%rsi
shl    $0x2,%rax
add    %rax,%rsi
lea    0xeb6(%rip),%rdi
lea    -0x1ac(%rbp),%rdx
lea    -0x1b0(%rbp),%rcx
call   1040 <scanf@plt>
mov    0x2e80(%rip),%rcx
cmp    (%rcx),%rax
je     11b1 <main+0x91>
movss  -0x1ac(%rbp),%xmm0
ff
movss  -0x1b0(%rbp),%xmm1
ff
mulss  -0x1b0(%rbp),%xmm1
ff
divss  %xmm1,%xmm0
movslq -0x1a4(%rbp),%rax
movss  %xmm0,-0x340(%rbp,%rax,4)
ff ff
mov    -0x1a4(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x1a4(%rbp)
jmp    1132 <main+0x12>
movl   $0x0,-0x1a8(%rbp)
mov    -0x1a8(%rbp),%eax
cmp    -0x1a4(%rbp),%eax
jge    1221 <main+0x101>
movslq -0x1a8(%rbp),%rax
movss  -0x340(%rbp,%rax,4),%xmm0
ff ff
movss  0xe1b(%rip),%xmm1
ucomiss %xmm1,%xmm0
jb     1208 <main+0xe8>
movslq -0x1a8(%rbp),%rax
mov    -0x1a0(%rbp,%rax,4),%esi
lea    0xe0a(%rip),%rdi
call   1030 <printf@plt>
jmp    120d <main+0xed>
mov    -0x1a8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x1a8(%rbp)
jmp    11bb <main+0x9b>
xor    %eax,%eax
add    $0x340,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x338,%rsp
lea    0xecc(%rip),%rdi
lea    0x10(%rsp),%rsi
lea    0xc(%rsp),%rdx
lea    0x8(%rsp),%rcx
call   1040 <scanf@plt>
mov    0x2e95(%rip),%rbp
cmp    0x0(%rbp),%rax
je     120d <main+0xed>
lea    0x14(%rsp),%rbx
xor    %r13d,%r13d
lea    0xe98(%rip),%r14
lea    0xc(%rsp),%r15
lea    0x8(%rsp),%r12
cs nopw 0x0(%rax,%rax,1)
movss  0xc(%rsp),%xmm0
movss  0x8(%rsp),%xmm1
mulss  %xmm1,%xmm1
divss  %xmm1,%xmm0
movss  %xmm0,0x1a0(%rsp,%r13,4)
add    $0x1,%r13
mov    %r14,%rdi
mov    %rbx,%rsi
mov    %r15,%rdx
mov    %r12,%rcx
call   1040 <scanf@plt>
add    $0x4,%rbx
cmp    0x0(%rbp),%rax
jne    1180 <main+0x60>
test   %r13d,%r13d
jle    120d <main+0xed>
mov    %r13d,%ebp
xor    %ebx,%ebx
movss  0xe31(%rip),%xmm1
lea    0xe37(%rip),%r14
jmp    11e9 <main+0xc9>
nopl   0x0(%rax,%rax,1)
add    $0x1,%rbx
cmp    %rbx,%rbp
je     120d <main+0xed>
movss  0x1a0(%rsp,%rbx,4),%xmm0
ucomiss %xmm1,%xmm0
jb     11e0 <main+0xc0>
mov    0x10(%rsp,%rbx,4),%esi
mov    %r14,%rdi
call   1030 <printf@plt>
movss  0xdf5(%rip),%xmm1
jmp    11e0 <main+0xc0>
xor    %eax,%eax
add    $0x338,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [9 x i8] c"%d,%f,%f\00"
@EOF = global i64 0
@.str.1 = [4 x i8] c"%d\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca [100 x i32]
%3 = alloca i32
%4 = alloca i32
%5 = alloca float
%6 = alloca float
%7 = alloca [100 x float]
store i32 0, i32* %1
br label %8
8: ; preds = %15, %0
%9 = load i32, i32* %3
%10 = sext i32 %9 to i64
%11 = getelementptr inbounds [100 x i32], [100 x i32]* %2, i64 0, i64 %10
%12 = call i64 @scanf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0), i32* %11, float* %5, float* %6)
%13 = load i64, i64* @EOF
%14 = icmp ne i64 %12, %13
br i1 %14, label %15, label %26
15: ; preds = %8
%16 = load float, float* %5
%17 = load float, float* %6
%18 = load float, float* %6
%19 = fmul float %17, %18
%20 = fdiv float %16, %19
%21 = load i32, i32* %3
%22 = sext i32 %21 to i64
%23 = getelementptr inbounds [100 x float], [100 x float]* %7, i64 0, i64 %22
store float %20, float* %23
%24 = load i32, i32* %3
%25 = add nsw i32 %24, 1
store i32 %25, i32* %3
br label %8
26: ; preds = %8
store i32 0, i32* %4
br label %27
27: ; preds = %44, %26
%28 = load i32, i32* %4
%29 = load i32, i32* %3
%30 = icmp slt i32 %28, %29
br i1 %30, label %31, label %47
31: ; preds = %27
%32 = load i32, i32* %4
%33 = sext i32 %32 to i64
%34 = getelementptr inbounds [100 x float], [100 x float]* %7, i64 0, i64 %33
%35 = load float, float* %34
%36 = fcmp oge float %35, 2.500000e+01
br i1 %36, label %37, label %43
37: ; preds = %31
%38 = load i32, i32* %4
%39 = sext i32 %38 to i64
%40 = getelementptr inbounds [100 x i32], [100 x i32]* %2, i64 0, i64 %39
%41 = load i32, i32* %40
%42 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i32 %41)
br label %43
43: ; preds = %37, %31
br label %44
44: ; preds = %43
%45 = load i32, i32* %4
%46 = add nsw i32 %45, 1
store i32 %46, i32* %4
br label %27
47: ; preds = %27
ret i32 0
}

LLVM IR (-O2):
@.str = [9 x i8] c"%d,%f,%f\00"
@EOF = global i64 0
@.str.1 = [4 x i8] c"%d\0A\00"
define i32 @main() {
%1 = alloca [100 x i32]
%2 = alloca float
%3 = alloca float
%4 = alloca [100 x float]
%5 = bitcast [100 x i32]* %1 to i8*
%6 = bitcast float* %2 to i8*
%7 = bitcast float* %3 to i8*
%8 = bitcast [100 x float]* %4 to i8*
%9 = getelementptr inbounds [100 x i32], [100 x i32]* %1, i64 0, i64 0
%10 = call i64 @scanf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0), i32* %9, float* %2, float* %3)
%11 = load i64, i64* @EOF
%12 = icmp eq i64 %10, %11
br i1 %12, label %42, label %18
13: ; preds = %18
%14 = trunc i64 %25 to i32
%15 = icmp sgt i32 %14, 0
br i1 %15, label %16, label %42
16: ; preds = %13
%17 = and i64 %25, 4294967295
br label %30
18: ; preds = %0, %18
%19 = phi i64 [ %25, %18 ], [ 0, %0 ]
%20 = load float, float* %2
%21 = load float, float* %3
%22 = fmul float %21, %21
%23 = fdiv float %20, %22
%24 = getelementptr inbounds [100 x float], [100 x float]* %4, i64 0, i64 %19
store float %23, float* %24
%25 = add i64 %19, 1
%26 = getelementptr inbounds [100 x i32], [100 x i32]* %1, i64 0, i64 %25
%27 = call i64 @scanf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0), i32* %26, float* %2, float* %3)
%28 = load i64, i64* @EOF
%29 = icmp eq i64 %27, %28
br i1 %29, label %13, label %18
30: ; preds = %16, %39
%31 = phi i64 [ 0, %16 ], [ %40, %39 ]
%32 = getelementptr inbounds [100 x float], [100 x float]* %4, i64 0, i64 %31
%33 = load float, float* %32
%34 = fcmp ult float %33, 2.500000e+01
br i1 %34, label %39, label %35
35: ; preds = %30
%36 = getelementptr inbounds [100 x i32], [100 x i32]* %1, i64 0, i64 %31
%37 = load i32, i32* %36
%38 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i32 %37)
br label %39
39: ; preds = %30, %35
%40 = add nuw nsw i64 %31, 1
%41 = icmp eq i64 %40, %17
br i1 %41, label %42, label %30
42: ; preds = %39, %0, %13
ret i32 0
}