#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 pow(float, int);
int /*<<< orphan*/ printf(char *, float);
int /*<<< orphan*/ scanf(char *, float *, float *);
int main() {
  float h1, d1, r1;
  float h2, d2, r2;
  float V1, V2;
  float pi = 3.14;
  scanf("%f %f", &h1, &d1);
  scanf("%f %f", &h2, &d2);
  r1 = d1 / 2.0;
  r2 = d2 / 2.0;
  V1 = ((pow(r1, 2) * pi) * h1) / 100;
  V2 = ((pow(r2, 2) * pi) * h2) / 100;
  if (V1 == 0) {
    printf("U drugu casu stane manje soka. (V=%.2f dl)", V2);
  } else if (V2 == 0) {
    printf("U prvu casu stane manje soka. (V=%.2f dl)", V1);
  } else if (V2 > V1) {
    printf("U prvu casu stane manje soka. (V=%.2f dl)", V1);
  } else if (V2 == V1) {
    printf("U obje case stane jednako soka. (V=%.2f dl)", V2);
  } else if (V2 < V1) {
    printf("U drugu casu stane manje soka. (V=%.2f dl)", V2);
  } else {
    return 0;
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
movl   $0x0,-0x4(%rbp)
movss  0xebd(%rip),%xmm0
movss  %xmm0,-0x28(%rbp)
lea    0xebd(%rip),%rdi
lea    -0x8(%rbp),%rsi
lea    -0xc(%rbp),%rdx
call   1040 <scanf@plt>
lea    0xea9(%rip),%rdi
lea    -0x14(%rbp),%rsi
lea    -0x18(%rbp),%rdx
call   1040 <scanf@plt>
movss  -0xc(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
movsd  0xe83(%rip),%xmm1
divsd  %xmm1,%xmm0
cvtsd2ss %xmm0,%xmm0
movss  %xmm0,-0x10(%rbp)
movss  -0x18(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
movsd  0xe65(%rip),%xmm1
divsd  %xmm1,%xmm0
cvtsd2ss %xmm0,%xmm0
movss  %xmm0,-0x1c(%rbp)
movss  -0x10(%rbp),%xmm0
mov    $0x2,%edi
call   1050 <pow@plt>
mulss  -0x28(%rbp),%xmm0
mulss  -0x8(%rbp),%xmm0
movss  0xe2f(%rip),%xmm1
divss  %xmm1,%xmm0
movss  %xmm0,-0x20(%rbp)
movss  -0x1c(%rbp),%xmm0
mov    $0x2,%edi
call   1050 <pow@plt>
mulss  -0x28(%rbp),%xmm0
mulss  -0x14(%rbp),%xmm0
movss  0xe05(%rip),%xmm1
divss  %xmm1,%xmm0
movss  %xmm0,-0x24(%rbp)
movss  -0x20(%rbp),%xmm0
xorps  %xmm1,%xmm1
ucomiss %xmm1,%xmm0
jne    1231 <main+0x101>
jp     1231 <main+0x101>
movss  -0x24(%rbp),%xmm0
lea    0xdef(%rip),%rdi
call   1030 <printf@plt>
jmp    12f7 <main+0x1c7>
movss  -0x24(%rbp),%xmm0
xorps  %xmm1,%xmm1
ucomiss %xmm1,%xmm0
jne    125e <main+0x12e>
jp     125e <main+0x12e>
movss  -0x20(%rbp),%xmm0
lea    0xded(%rip),%rdi
call   1030 <printf@plt>
jmp    12f2 <main+0x1c2>
movss  -0x24(%rbp),%xmm0
ucomiss -0x20(%rbp),%xmm0
jbe    1283 <main+0x153>
movss  -0x20(%rbp),%xmm0
lea    0xdc8(%rip),%rdi
call   1030 <printf@plt>
jmp    12ed <main+0x1bd>
movss  -0x24(%rbp),%xmm0
ucomiss -0x20(%rbp),%xmm0
jne    12ae <main+0x17e>
jp     12ae <main+0x17e>
movss  -0x24(%rbp),%xmm0
lea    0xdc7(%rip),%rdi
call   1030 <printf@plt>
jmp    12e8 <main+0x1b8>
movss  -0x24(%rbp),%xmm1
movss  -0x20(%rbp),%xmm0
ucomiss %xmm1,%xmm0
jbe    12d7 <main+0x1a7>
movss  -0x24(%rbp),%xmm0
lea    0xd49(%rip),%rdi
call   1030 <printf@plt>
jmp    12e3 <main+0x1b3>
movl   $0x0,-0x4(%rbp)
jmp    12fe <main+0x1ce>
jmp    12e8 <main+0x1b8>
jmp    12ed <main+0x1bd>
jmp    12f2 <main+0x1c2>
jmp    12f7 <main+0x1c7>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbx
sub    $0x20,%rsp
lea    0xed0(%rip),%rbx
lea    0x1c(%rsp),%rsi
lea    0x18(%rsp),%rdx
mov    %rbx,%rdi
call   1040 <scanf@plt>
lea    0x14(%rsp),%rsi
lea    0x10(%rsp),%rdx
mov    %rbx,%rdi
call   1040 <scanf@plt>
movss  0xe98(%rip),%xmm1
movss  0x18(%rsp),%xmm0
mulss  %xmm1,%xmm0
mulss  0x10(%rsp),%xmm1
movss  %xmm1,0xc(%rsp)
mov    $0x2,%edi
call   1050 <pow@plt>
mulss  0xe74(%rip),%xmm0
mulss  0x1c(%rsp),%xmm0
divss  0xe6a(%rip),%xmm0
movss  %xmm0,0x8(%rsp)
movss  0xc(%rsp),%xmm0
mov    $0x2,%edi
call   1050 <pow@plt>
movss  0x8(%rsp),%xmm2
mulss  0xe42(%rip),%xmm0
mulss  0x14(%rsp),%xmm0
divss  0xe38(%rip),%xmm0
xorps  %xmm1,%xmm1
ucomiss %xmm1,%xmm2
jne    11e3 <main+0xb3>
jp     11e3 <main+0xb3>
lea    0xe31(%rip),%rdi
jmp    11f9 <main+0xc9>
ucomiss %xmm1,%xmm0
jne    11ea <main+0xba>
jnp    11ef <main+0xbf>
ucomiss %xmm2,%xmm0
jbe    1206 <main+0xd6>
lea    0xe47(%rip),%rdi
movaps %xmm2,%xmm0
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x20,%rsp
pop    %rbx
ret
jne    1213 <main+0xe3>
jp     1213 <main+0xe3>
lea    0xe56(%rip),%rdi
jmp    11f9 <main+0xc9>
ucomiss %xmm0,%xmm2
ja     11da <main+0xaa>
jmp    11fe <main+0xce>

LLVM IR (-O0):
@.str = [6 x i8] c"%f %f\00"
@.str.1 = [43 x i8] c"U drugu casu stane manje soka. (V=%.2f dl)\00"
@.str.2 = [42 x i8] c"U prvu casu stane manje soka. (V=%.2f dl)\00"
@.str.3 = [44 x i8] c"U obje case stane jednako soka. (V=%.2f dl)\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca float
%3 = alloca float
%4 = alloca float
%5 = alloca float
%6 = alloca float
%7 = alloca float
%8 = alloca float
%9 = alloca float
%10 = alloca float
store i32 0, i32* %1
store float 0x40091EB860000000, float* %10
%11 = call i32 @scanf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0), float* %2, float* %3)
%12 = call i32 @scanf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0), float* %5, float* %6)
%13 = load float, float* %3
%14 = fpext float %13 to double
%15 = fdiv double %14, 2.000000e+00
%16 = fptrunc double %15 to float
store float %16, float* %4
%17 = load float, float* %6
%18 = fpext float %17 to double
%19 = fdiv double %18, 2.000000e+00
%20 = fptrunc double %19 to float
store float %20, float* %7
%21 = load float, float* %4
%22 = call float @pow(float %21, i32 2)
%23 = load float, float* %10
%24 = fmul float %22, %23
%25 = load float, float* %2
%26 = fmul float %24, %25
%27 = fdiv float %26, 1.000000e+02
store float %27, float* %8
%28 = load float, float* %7
%29 = call float @pow(float %28, i32 2)
%30 = load float, float* %10
%31 = fmul float %29, %30
%32 = load float, float* %5
%33 = fmul float %31, %32
%34 = fdiv float %33, 1.000000e+02
store float %34, float* %9
%35 = load float, float* %8
%36 = fcmp oeq float %35, 0.000000e+00
br i1 %36, label %37, label %40
37: ; preds = %0
%38 = load float, float* %9
%39 = call i32 @printf(i8* getelementptr inbounds ([43 x i8], [43 x i8]* @.str.1, i64 0, i64 0), float %38)
br label %72
40: ; preds = %0
%41 = load float, float* %9
%42 = fcmp oeq float %41, 0.000000e+00
br i1 %42, label %43, label %46
43: ; preds = %40
%44 = load float, float* %8
%45 = call i32 @printf(i8* getelementptr inbounds ([42 x i8], [42 x i8]* @.str.2, i64 0, i64 0), float %44)
br label %71
46: ; preds = %40
%47 = load float, float* %9
%48 = load float, float* %8
%49 = fcmp ogt float %47, %48
br i1 %49, label %50, label %53
50: ; preds = %46
%51 = load float, float* %8
%52 = call i32 @printf(i8* getelementptr inbounds ([42 x i8], [42 x i8]* @.str.2, i64 0, i64 0), float %51)
br label %70
53: ; preds = %46
%54 = load float, float* %9
%55 = load float, float* %8
%56 = fcmp oeq float %54, %55
br i1 %56, label %57, label %60
57: ; preds = %53
%58 = load float, float* %9
%59 = call i32 @printf(i8* getelementptr inbounds ([44 x i8], [44 x i8]* @.str.3, i64 0, i64 0), float %58)
br label %69
60: ; preds = %53
%61 = load float, float* %9
%62 = load float, float* %8
%63 = fcmp olt float %61, %62
br i1 %63, label %64, label %67
64: ; preds = %60
%65 = load float, float* %9
%66 = call i32 @printf(i8* getelementptr inbounds ([43 x i8], [43 x i8]* @.str.1, i64 0, i64 0), float %65)
br label %68
67: ; preds = %60
store i32 0, i32* %1
br label %73
68: ; preds = %64
br label %69
69: ; preds = %68, %57
br label %70
70: ; preds = %69, %50
br label %71
71: ; preds = %70, %43
br label %72
72: ; preds = %71, %37
store i32 0, i32* %1
br label %73
73: ; preds = %72, %67
%74 = load i32, i32* %1
ret i32 %74
}

LLVM IR (-O2):
@.str = [6 x i8] c"%f %f\00"
@.str.1 = [43 x i8] c"U drugu casu stane manje soka. (V=%.2f dl)\00"
@.str.2 = [42 x i8] c"U prvu casu stane manje soka. (V=%.2f dl)\00"
@.str.3 = [44 x i8] c"U obje case stane jednako soka. (V=%.2f dl)\00"
define i32 @main() {
%1 = alloca float
%2 = alloca float
%3 = alloca float
%4 = alloca float
%5 = bitcast float* %1 to i8*
%6 = bitcast float* %2 to i8*
%7 = bitcast float* %3 to i8*
%8 = bitcast float* %4 to i8*
%9 = call i32 @scanf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0), float* %1, float* %2)
%10 = call i32 @scanf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0), float* %3, float* %4)
%11 = load float, float* %2
%12 = fmul float %11, 5.000000e-01
%13 = load float, float* %4
%14 = fmul float %13, 5.000000e-01
%15 = call float @pow(float %12, i32 2)
%16 = fmul float %15, 0x40091EB860000000
%17 = load float, float* %1
%18 = fmul float %16, %17
%19 = fdiv float %18, 1.000000e+02
%20 = call float @pow(float %14, i32 2)
%21 = fmul float %20, 0x40091EB860000000
%22 = load float, float* %3
%23 = fmul float %21, %22
%24 = fdiv float %23, 1.000000e+02
%25 = fcmp oeq float %19, 0.000000e+00
br i1 %25, label %26, label %28
26: ; preds = %0
%27 = call i32 @printf(i8* getelementptr inbounds ([43 x i8], [43 x i8]* @.str.1, i64 0, i64 0), float %24)
br label %44
28: ; preds = %0
%29 = fcmp oeq float %24, 0.000000e+00
br i1 %29, label %30, label %32
30: ; preds = %28
%31 = call i32 @printf(i8* getelementptr inbounds ([42 x i8], [42 x i8]* @.str.2, i64 0, i64 0), float %19)
br label %44
32: ; preds = %28
%33 = fcmp ogt float %24, %19
br i1 %33, label %34, label %36
34: ; preds = %32
%35 = call i32 @printf(i8* getelementptr inbounds ([42 x i8], [42 x i8]* @.str.2, i64 0, i64 0), float %19)
br label %44
36: ; preds = %32
%37 = fcmp oeq float %24, %19
br i1 %37, label %38, label %40
38: ; preds = %36
%39 = call i32 @printf(i8* getelementptr inbounds ([44 x i8], [44 x i8]* @.str.3, i64 0, i64 0), float %24)
br label %44
40: ; preds = %36
%41 = fcmp olt float %24, %19
br i1 %41, label %42, label %44
42: ; preds = %40
%43 = call i32 @printf(i8* getelementptr inbounds ([43 x i8], [43 x i8]* @.str.1, i64 0, i64 0), float %24)
br label %44
44: ; preds = %26, %34, %42, %38, %30, %40
ret i32 0
}