#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 *, ...);
int /*<<< orphan*/ scanf(char *, float *);
int /*<<< orphan*/ system(char *);
void main() {
  float y1, y2, max, x;
  int i, n;
  n = 3;
  scanf("%f", &max);
  for (i = 2; i <= n; i++) {
    scanf("%f", &x);
    if (x > max)
      max = x;
  };
  y1 = max;
  n = 2;
  scanf("%f", &max);
  for (i = 2; i <= n; i++) {
    scanf("%f", &x);
    if (x > max)
      max = x;
  };
  y2 = max;
  printf("%f", y1);
  printf("\n");
  printf("%f", y2);
  printf("\n");
  printf("\n");
  printf("CR%f", y1 * y2);
  printf("\n");
  system("pause");
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movl   $0x3,-0x18(%rbp)
lea    0xebe(%rip),%rdi
lea    -0xc(%rbp),%rsi
call   1050 <scanf@plt>
movl   $0x2,-0x14(%rbp)
mov    -0x14(%rbp),%eax
cmp    -0x18(%rbp),%eax
jg     119e <main+0x6e>
lea    0xe9b(%rip),%rdi
lea    -0x10(%rbp),%rsi
call   1050 <scanf@plt>
movss  -0x10(%rbp),%xmm0
ucomiss -0xc(%rbp),%xmm0
jbe    118b <main+0x5b>
movss  -0x10(%rbp),%xmm0
movss  %xmm0,-0xc(%rbp)
jmp    1190 <main+0x60>
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
jmp    1156 <main+0x26>
movss  -0xc(%rbp),%xmm0
movss  %xmm0,-0x4(%rbp)
movl   $0x2,-0x18(%rbp)
lea    0xe4e(%rip),%rdi
lea    -0xc(%rbp),%rsi
call   1050 <scanf@plt>
movl   $0x2,-0x14(%rbp)
mov    -0x14(%rbp),%eax
cmp    -0x18(%rbp),%eax
jg     120e <main+0xde>
lea    0xe2b(%rip),%rdi
lea    -0x10(%rbp),%rsi
call   1050 <scanf@plt>
movss  -0x10(%rbp),%xmm0
ucomiss -0xc(%rbp),%xmm0
jbe    11fb <main+0xcb>
movss  -0x10(%rbp),%xmm0
movss  %xmm0,-0xc(%rbp)
jmp    1200 <main+0xd0>
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
jmp    11c6 <main+0x96>
movss  -0xc(%rbp),%xmm0
movss  %xmm0,-0x8(%rbp)
movss  -0x4(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
lea    0xddc(%rip),%rdi
mov    $0x1,%al
call   1040 <printf@plt>
lea    0xdca(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
movss  -0x8(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
lea    0xdb7(%rip),%rdi
mov    $0x1,%al
call   1040 <printf@plt>
lea    0xda5(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xd97(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
movss  -0x4(%rbp),%xmm0
mulss  -0x8(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
lea    0xd7d(%rip),%rdi
mov    $0x1,%al
call   1040 <printf@plt>
lea    0xd6d(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xd66(%rip),%rdi
call   1030 <system@plt>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbx
sub    $0x10,%rsp
lea    0xeb6(%rip),%rbx
mov    %rsp,%rsi
mov    %rbx,%rdi
call   1060 <scanf@plt>
lea    0x4(%rsp),%rsi
mov    %rbx,%rdi
call   1060 <scanf@plt>
movss  0x4(%rsp),%xmm0
ucomiss (%rsp),%xmm0
jbe    1175 <main+0x35>
movss  %xmm0,(%rsp)
lea    0xe86(%rip),%rdi
lea    0x4(%rsp),%rsi
call   1060 <scanf@plt>
movss  0x4(%rsp),%xmm0
movss  (%rsp),%xmm1
movss  %xmm1,0x8(%rsp)
ucomiss %xmm1,%xmm0
jbe    11a7 <main+0x67>
movss  %xmm0,(%rsp)
movss  %xmm0,0x8(%rsp)
lea    0xe54(%rip),%rbx
mov    %rsp,%rsi
mov    %rbx,%rdi
call   1060 <scanf@plt>
lea    0x4(%rsp),%rsi
mov    %rbx,%rdi
call   1060 <scanf@plt>
movss  0x4(%rsp),%xmm0
movss  (%rsp),%xmm1
ucomiss %xmm1,%xmm0
jbe    11de <main+0x9e>
movss  %xmm0,(%rsp)
movaps %xmm0,%xmm1
movss  %xmm1,0xc(%rsp)
movss  0x8(%rsp),%xmm0
cvtss2sd %xmm0,%xmm0
lea    0xe0d(%rip),%rbx
mov    %rbx,%rdi
mov    $0x1,%al
call   1050 <printf@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
movss  0xc(%rsp),%xmm0
cvtss2sd %xmm0,%xmm0
mov    %rbx,%rdi
mov    $0x1,%al
call   1050 <printf@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
movss  0x8(%rsp),%xmm0
mulss  0xc(%rsp),%xmm0
cvtss2sd %xmm0,%xmm0
lea    0xdb8(%rip),%rdi
mov    $0x1,%al
call   1050 <printf@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
lea    0xda5(%rip),%rdi
call   1040 <system@plt>
add    $0x10,%rsp
pop    %rbx
ret

LLVM IR (-O0):
@.str = [3 x i8] c"%f\00"
@.str.1 = [2 x i8] c"\0A\00"
@.str.2 = [5 x i8] c"CR%f\00"
@.str.3 = [6 x i8] c"pause\00"
define void @main() {
%1 = alloca float
%2 = alloca float
%3 = alloca float
%4 = alloca float
%5 = alloca i32
%6 = alloca i32
store i32 3, i32* %6
%7 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), float* %3)
store i32 2, i32* %5
br label %8
8: ; preds = %20, %0
%9 = load i32, i32* %5
%10 = load i32, i32* %6
%11 = icmp sle i32 %9, %10
br i1 %11, label %12, label %23
12: ; preds = %8
%13 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), float* %4)
%14 = load float, float* %4
%15 = load float, float* %3
%16 = fcmp ogt float %14, %15
br i1 %16, label %17, label %19
17: ; preds = %12
%18 = load float, float* %4
store float %18, float* %3
br label %19
19: ; preds = %17, %12
br label %20
20: ; preds = %19
%21 = load i32, i32* %5
%22 = add nsw i32 %21, 1
store i32 %22, i32* %5
br label %8
23: ; preds = %8
%24 = load float, float* %3
store float %24, float* %1
store i32 2, i32* %6
%25 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), float* %3)
store i32 2, i32* %5
br label %26
26: ; preds = %38, %23
%27 = load i32, i32* %5
%28 = load i32, i32* %6
%29 = icmp sle i32 %27, %28
br i1 %29, label %30, label %41
30: ; preds = %26
%31 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), float* %4)
%32 = load float, float* %4
%33 = load float, float* %3
%34 = fcmp ogt float %32, %33
br i1 %34, label %35, label %37
35: ; preds = %30
%36 = load float, float* %4
store float %36, float* %3
br label %37
37: ; preds = %35, %30
br label %38
38: ; preds = %37
%39 = load i32, i32* %5
%40 = add nsw i32 %39, 1
store i32 %40, i32* %5
br label %26
41: ; preds = %26
%42 = load float, float* %3
store float %42, float* %2
%43 = load float, float* %1
%44 = fpext float %43 to double
%45 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), double %44)
%46 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
%47 = load float, float* %2
%48 = fpext float %47 to double
%49 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), double %48)
%50 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
%51 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
%52 = load float, float* %1
%53 = load float, float* %2
%54 = fmul float %52, %53
%55 = fpext float %54 to double
%56 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0), double %55)
%57 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.1, i64 0, i64 0))
%58 = call i32 @system(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.3, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@.str = [3 x i8] c"%f\00"
@.str.2 = [5 x i8] c"CR%f\00"
@.str.3 = [6 x i8] c"pause\00"
define void @main() {
%1 = alloca float
%2 = alloca float
%3 = bitcast float* %1 to i8*
%4 = bitcast float* %2 to i8*
%5 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), float* %1)
%6 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), float* %2)
%7 = load float, float* %2
%8 = load float, float* %1
%9 = fcmp ogt float %7, %8
br i1 %9, label %10, label %11
10: ; preds = %0
store float %7, float* %1
br label %11
11: ; preds = %0, %10
%12 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), float* %2)
%13 = load float, float* %2
%14 = load float, float* %1
%15 = fcmp ogt float %13, %14
br i1 %15, label %16, label %17
16: ; preds = %11
store float %13, float* %1
br label %17
17: ; preds = %16, %11
%18 = phi float [ %13, %16 ], [ %14, %11 ]
%19 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), float* %1)
%20 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), float* %2)
%21 = load float, float* %2
%22 = load float, float* %1
%23 = fcmp ogt float %21, %22
br i1 %23, label %24, label %25
24: ; preds = %17
store float %21, float* %1
br label %25
25: ; preds = %17, %24
%26 = phi float [ %22, %17 ], [ %21, %24 ]
%27 = fpext float %18 to double
%28 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), double %27)
%29 = call i32 @putchar(i32 10)
%30 = fpext float %26 to double
%31 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), double %30)
%32 = call i32 @putchar(i32 10)
%33 = call i32 @putchar(i32 10)
%34 = fmul float %18, %26
%35 = fpext float %34 to double
%36 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0), double %35)
%37 = call i32 @putchar(i32 10)
%38 = call i32 @system(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.3, i64 0, i64 0))
ret void
}