#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);
int /*<<< orphan*/ scanf(char *, int *, float *);
int main(int argc, char *argv[]) {
  int a;
  float b;
  scanf("%i%f", &a, &b);
  b /= 10.0;
  a *= b;
  if (a % 10 < 5)
    a -= a % 10;
  else {
    a -= a % 10;
    a += 10;
  }
  printf("%i", a);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
lea    0xecb(%rip),%rdi
lea    -0x14(%rbp),%rsi
lea    -0x18(%rbp),%rdx
call   1040 <scanf@plt>
movss  -0x18(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
movsd  0xea5(%rip),%xmm1
divsd  %xmm1,%xmm0
cvtsd2ss %xmm0,%xmm0
movss  %xmm0,-0x18(%rbp)
movss  -0x18(%rbp),%xmm1
cvtsi2ssl -0x14(%rbp),%xmm0
mulss  %xmm1,%xmm0
cvttss2si %xmm0,%eax
mov    %eax,-0x14(%rbp)
mov    -0x14(%rbp),%eax
mov    $0xa,%ecx
cltd
idiv   %ecx
cmp    $0x5,%edx
jge    11a9 <main+0x89>
mov    -0x14(%rbp),%eax
mov    $0xa,%ecx
cltd
idiv   %ecx
mov    -0x14(%rbp),%eax
sub    %edx,%eax
mov    %eax,-0x14(%rbp)
jmp    11c5 <main+0xa5>
mov    -0x14(%rbp),%eax
mov    $0xa,%ecx
cltd
idiv   %ecx
mov    -0x14(%rbp),%eax
sub    %edx,%eax
mov    %eax,-0x14(%rbp)
mov    -0x14(%rbp),%eax
add    $0xa,%eax
mov    %eax,-0x14(%rbp)
mov    -0x14(%rbp),%esi
lea    0xe3e(%rip),%rdi
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
lea    0xedc(%rip),%rdi
lea    0x4(%rsp),%rsi
mov    %rsp,%rdx
call   1040 <scanf@plt>
movss  (%rsp),%xmm0
divss  0xebe(%rip),%xmm0
movss  %xmm0,(%rsp)
cvtsi2ssl 0x4(%rsp),%xmm1
mulss  %xmm0,%xmm1
cvttss2si %xmm1,%eax
cltq
imul   $0x66666667,%rax,%rcx
mov    %rcx,%rdx
shr    $0x3f,%rdx
sar    $0x22,%rcx
add    %edx,%ecx
add    %ecx,%ecx
lea    (%rcx,%rcx,4),%edx
sub    %edx,%eax
cmp    $0x5,%eax
lea    0xa(%rcx,%rcx,4),%esi
cmovl  %edx,%esi
mov    %esi,0x4(%rsp)
lea    0xe82(%rip),%rdi
call   1030 <printf@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
@.str = [5 x i8] c"%i%f\00"
@.str.1 = [3 x i8] c"%i\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca i32
%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 ([5 x i8], [5 x i8]* @.str, i64 0, i64 0), i32* %6, float* %7)
%9 = load float, float* %7
%10 = fpext float %9 to double
%11 = fdiv double %10, 1.000000e+01
%12 = fptrunc double %11 to float
store float %12, float* %7
%13 = load float, float* %7
%14 = load i32, i32* %6
%15 = sitofp i32 %14 to float
%16 = fmul float %15, %13
%17 = fptosi float %16 to i32
store i32 %17, i32* %6
%18 = load i32, i32* %6
%19 = srem i32 %18, 10
%20 = icmp slt i32 %19, 5
br i1 %20, label %21, label %26
21: ; preds = %2
%22 = load i32, i32* %6
%23 = srem i32 %22, 10
%24 = load i32, i32* %6
%25 = sub nsw i32 %24, %23
store i32 %25, i32* %6
br label %33
26: ; preds = %2
%27 = load i32, i32* %6
%28 = srem i32 %27, 10
%29 = load i32, i32* %6
%30 = sub nsw i32 %29, %28
store i32 %30, i32* %6
%31 = load i32, i32* %6
%32 = add nsw i32 %31, 10
store i32 %32, i32* %6
br label %33
33: ; preds = %26, %21
%34 = load i32, i32* %6
%35 = call i32 @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32 %34)
ret i32 0
}

LLVM IR (-O2):
@.str = [5 x i8] c"%i%f\00"
@.str.1 = [3 x i8] c"%i\00"
define i32 @main(i32 %0, i8** nocapture readnone %1) {
%3 = alloca i32
%4 = alloca float
%5 = bitcast i32* %3 to i8*
%6 = bitcast float* %4 to i8*
%7 = call i32 @scanf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0), i32* %3, float* %4)
%8 = load float, float* %4
%9 = fdiv float %8, 1.000000e+01
store float %9, float* %4
%10 = load i32, i32* %3
%11 = sitofp i32 %10 to float
%12 = fmul float %9, %11
%13 = fptosi float %12 to i32
%14 = srem i32 %13, 10
%15 = icmp slt i32 %14, 5
%16 = sub nsw i32 %13, %14
%17 = add nsw i32 %16, 10
%18 = select i1 %15, i32 %16, i32 %17
store i32 %18, i32* %3
%19 = call i32 @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32 %18)
ret i32 0
}