#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__ area(float);
int /*<<< orphan*/ printf(char *);
int /*<<< orphan*/ scanf(char *, float *, float *);
int main(int argc, char const *argv[]) {
  float a, b;
  scanf("%f %f", &a, &b);
  if (area(a) > area(b)) {
    printf("Primeiro circulo");
  } else if (area(a) < area(b)) {
    printf("Segundo circulo");
  } else {
    printf("Iguais");
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%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
call   1050 <scanf@plt>
movss  -0x14(%rbp),%xmm0
call   1040 <area@plt>
mov    %rax,-0x20(%rbp)
movss  -0x18(%rbp),%xmm0
call   1040 <area@plt>
mov    %rax,%rcx
mov    -0x20(%rbp),%rax
cmp    %rcx,%rax
jle    1193 <main+0x63>
lea    0xe7d(%rip),%rdi
call   1030 <printf@plt>
jmp    11dd <main+0xad>
movss  -0x14(%rbp),%xmm0
call   1040 <area@plt>
mov    %rax,-0x28(%rbp)
movss  -0x18(%rbp),%xmm0
call   1040 <area@plt>
mov    %rax,%rcx
mov    -0x28(%rbp),%rax
cmp    %rcx,%rax
jge    11cc <main+0x9c>
lea    0xe55(%rip),%rdi
call   1030 <printf@plt>
jmp    11d8 <main+0xa8>
lea    0xe54(%rip),%rdi
call   1030 <printf@plt>
jmp    11dd <main+0xad>
xor    %eax,%eax
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbx
sub    $0x10,%rsp
lea    0xec4(%rip),%rdi
lea    0xc(%rsp),%rsi
lea    0x8(%rsp),%rdx
call   1050 <scanf@plt>
movss  0xc(%rsp),%xmm0
call   1040 <area@plt>
mov    %rax,%rbx
movss  0x8(%rsp),%xmm0
call   1040 <area@plt>
cmp    %rax,%rbx
jle    1172 <main+0x42>
lea    0xe96(%rip),%rdi
jmp    11a0 <main+0x70>
movss  0xc(%rsp),%xmm0
call   1040 <area@plt>
mov    %rax,%rbx
movss  0x8(%rsp),%xmm0
call   1040 <area@plt>
cmp    %rax,%rbx
lea    0xe82(%rip),%rax
lea    0xe8b(%rip),%rdi
cmovl  %rax,%rdi
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbx
ret

LLVM IR (-O0):
@.str = [6 x i8] c"%f %f\00"
@.str.1 = [17 x i8] c"Primeiro circulo\00"
@.str.2 = [16 x i8] c"Segundo circulo\00"
@.str.3 = [7 x i8] c"Iguais\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca float
%7 = alloca float
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
%8 = call i32 @scanf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0), float* %6, float* %7)
%9 = load float, float* %6
%10 = call i64 @area(float %9)
%11 = load float, float* %7
%12 = call i64 @area(float %11)
%13 = icmp sgt i64 %10, %12
br i1 %13, label %14, label %16
14: ; preds = %2
%15 = call i32 @printf(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.1, i64 0, i64 0))
br label %27
16: ; preds = %2
%17 = load float, float* %6
%18 = call i64 @area(float %17)
%19 = load float, float* %7
%20 = call i64 @area(float %19)
%21 = icmp slt i64 %18, %20
br i1 %21, label %22, label %24
22: ; preds = %16
%23 = call i32 @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.2, i64 0, i64 0))
br label %26
24: ; preds = %16
%25 = call i32 @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.3, i64 0, i64 0))
br label %26
26: ; preds = %24, %22
br label %27
27: ; preds = %26, %14
ret i32 0
}

LLVM IR (-O2):
@.str = [6 x i8] c"%f %f\00"
@.str.1 = [17 x i8] c"Primeiro circulo\00"
@.str.2 = [16 x i8] c"Segundo circulo\00"
@.str.3 = [7 x i8] c"Iguais\00"
define i32 @main(i32 %0, i8** nocapture readnone %1) {
%3 = alloca float
%4 = alloca float
%5 = bitcast float* %3 to i8*
%6 = bitcast float* %4 to i8*
%7 = call i32 @scanf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0), float* %3, float* %4)
%8 = load float, float* %3
%9 = call i64 @area(float %8)
%10 = load float, float* %4
%11 = call i64 @area(float %10)
%12 = icmp sgt i64 %9, %11
br i1 %12, label %20, label %13
13: ; preds = %2
%14 = load float, float* %3
%15 = call i64 @area(float %14)
%16 = load float, float* %4
%17 = call i64 @area(float %16)
%18 = icmp slt i64 %15, %17
%19 = select i1 %18, i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.3, i64 0, i64 0)
br label %20
20: ; preds = %13, %2
%21 = phi i8* [ getelementptr inbounds ([17 x i8], [17 x i8]* @.str.1, i64 0, i64 0), %2 ], [ %19, %13 ]
%22 = call i32 @printf(i8* dereferenceable(1) %21)
ret i32 0
}