#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 *, float, int);
int /*<<< orphan*/ scanf(char *, float *, float *);
int main() {
  float v_via, v_veiculo, diferenca;
  float multa = 0;
  int pontos = 0;
  scanf("%f%f", &v_via, &v_veiculo);
  diferenca = v_veiculo / v_via;
  if (diferenca > 1) {
    if (diferenca <= 1.2) {
      multa = 85.13;
      pontos = 4;
    } else if (diferenca <= 1.5) {
      multa = 127.69;
      pontos = 5;
    } else {
      multa = 574.62;
      pontos = 7;
    }
  }
  printf("%.2f\n%d\n", multa, pontos);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movl   $0x0,-0x4(%rbp)
xorps  %xmm0,%xmm0
movss  %xmm0,-0x14(%rbp)
movl   $0x0,-0x18(%rbp)
lea    0xedb(%rip),%rdi
lea    -0x8(%rbp),%rsi
lea    -0xc(%rbp),%rdx
call   1040 <scanf@plt>
movss  -0xc(%rbp),%xmm0
divss  -0x8(%rbp),%xmm0
movss  %xmm0,-0x10(%rbp)
movss  -0x10(%rbp),%xmm0
movss  0xe92(%rip),%xmm1
ucomiss %xmm1,%xmm0
jbe    11fd <main+0xdd>
movss  -0x10(%rbp),%xmm0
cvtss2sd %xmm0,%xmm1
movsd  0xe88(%rip),%xmm0
ucomisd %xmm1,%xmm0
jb     11ab <main+0x8b>
movss  0xe72(%rip),%xmm0
movss  %xmm0,-0x14(%rbp)
movl   $0x4,-0x18(%rbp)
jmp    11f8 <main+0xd8>
movss  -0x10(%rbp),%xmm0
cvtss2sd %xmm0,%xmm1
movsd  0xe5c(%rip),%xmm0
ucomisd %xmm1,%xmm0
jb     11df <main+0xbf>
movss  0xe3a(%rip),%xmm0
movss  %xmm0,-0x14(%rbp)
movl   $0x5,-0x18(%rbp)
jmp    11f3 <main+0xd3>
movss  0xe1d(%rip),%xmm0
movss  %xmm0,-0x14(%rbp)
movl   $0x7,-0x18(%rbp)
jmp    11f8 <main+0xd8>
jmp    11fd <main+0xdd>
movss  -0x14(%rbp),%xmm0
mov    -0x18(%rbp),%esi
lea    0xe19(%rip),%rdi
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
lea    0xef8(%rip),%rdi
lea    0x4(%rsp),%rsi
mov    %rsp,%rdx
call   1040 <scanf@plt>
movss  (%rsp),%xmm0
divss  0x4(%rsp),%xmm0
ucomiss 0xeb9(%rip),%xmm0
jbe    117f <main+0x5f>
cvtss2sd %xmm0,%xmm1
movsd  0xebb(%rip),%xmm2
ucomisd %xmm1,%xmm2
jae    1186 <main+0x66>
movss  0xea5(%rip),%xmm1
xor    %eax,%eax
ucomiss %xmm0,%xmm1
setb   %al
lea    0xea6(%rip),%rcx
movss  (%rcx,%rax,4),%xmm0
lea    (%rax,%rax,1),%esi
add    $0x5,%esi
jmp    1193 <main+0x73>
xor    %esi,%esi
xorps  %xmm0,%xmm0
jmp    1193 <main+0x73>
mov    $0x4,%esi
movss  0xe71(%rip),%xmm0
lea    0xe8b(%rip),%rdi
call   1030 <printf@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
@.str = [5 x i8] c"%f%f\00"
@.str.1 = [9 x i8] c"%.2f\0A%d\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca float
%3 = alloca float
%4 = alloca float
%5 = alloca float
%6 = alloca i32
store i32 0, i32* %1
store float 0.000000e+00, float* %5
store i32 0, i32* %6
%7 = call i32 @scanf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0), float* %2, float* %3)
%8 = load float, float* %3
%9 = load float, float* %2
%10 = fdiv float %8, %9
store float %10, float* %4
%11 = load float, float* %4
%12 = fcmp ogt float %11, 1.000000e+00
br i1 %12, label %13, label %26
13: ; preds = %0
%14 = load float, float* %4
%15 = fpext float %14 to double
%16 = fcmp ole double %15, 1.200000e+00
br i1 %16, label %17, label %18
17: ; preds = %13
store float 0x40554851E0000000, float* %5
store i32 4, i32* %6
br label %25
18: ; preds = %13
%19 = load float, float* %4
%20 = fpext float %19 to double
%21 = fcmp ole double %20, 1.500000e+00
br i1 %21, label %22, label %23
22: ; preds = %18
store float 0x405FEC2900000000, float* %5
store i32 5, i32* %6
br label %24
23: ; preds = %18
store float 0x4081F4F5C0000000, float* %5
store i32 7, i32* %6
br label %24
24: ; preds = %23, %22
br label %25
25: ; preds = %24, %17
br label %26
26: ; preds = %25, %0
%27 = load float, float* %5
%28 = load i32, i32* %6
%29 = call i32 @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.1, i64 0, i64 0), float %27, i32 %28)
ret i32 0
}

LLVM IR (-O2):
@.str = [5 x i8] c"%f%f\00"
@.str.1 = [9 x i8] c"%.2f\0A%d\0A\00"
define i32 @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 ([5 x i8], [5 x i8]* @.str, i64 0, i64 0), float* %1, float* %2)
%6 = load float, float* %2
%7 = load float, float* %1
%8 = fdiv float %6, %7
%9 = fcmp ogt float %8, 1.000000e+00
br i1 %9, label %10, label %17
10: ; preds = %0
%11 = fpext float %8 to double
%12 = fcmp ugt double %11, 1.200000e+00
br i1 %12, label %13, label %17
13: ; preds = %10
%14 = fcmp ugt float %8, 1.500000e+00
%15 = select i1 %14, float 0x4081F4F5C0000000, float 0x405FEC2900000000
%16 = select i1 %14, i32 7, i32 5
br label %17
17: ; preds = %13, %10, %0
%18 = phi float [ 0.000000e+00, %0 ], [ 0x40554851E0000000, %10 ], [ %15, %13 ]
%19 = phi i32 [ 0, %0 ], [ 4, %10 ], [ %16, %13 ]
%20 = call i32 @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.1, i64 0, i64 0), float %18, i32 %19)
ret i32 0
}