#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 /*<<< orphan*/ scanf(char *, float *);
int main(int argc, char const *argv[]) {
  float a;
  scanf("%f", &a);
  if ((300 < a) && (a <= 500)) {
    printf("%.2f", (a + (a * 7) / 100));
  } else if (a > 500) {
    printf("%.2f", (a + (a * 10) / 100));
  } else {
    printf("%.2f", (a + (a * 5) / 100));
  }
  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    0xedb(%rip),%rdi
lea    -0x14(%rbp),%rsi
call   1040 <scanf@plt>
movss  -0x14(%rbp),%xmm0
movss  0xead(%rip),%xmm1
ucomiss %xmm1,%xmm0
jbe    11a1 <main+0x81>
movss  0xea0(%rip),%xmm0
ucomiss -0x14(%rbp),%xmm0
jb     11a1 <main+0x81>
movss  -0x14(%rbp),%xmm0
movss  0xe99(%rip),%xmm1
mulss  -0x14(%rbp),%xmm1
movss  0xe80(%rip),%xmm2
divss  %xmm2,%xmm1
addss  %xmm1,%xmm0
lea    0xe84(%rip),%rdi
call   1030 <printf@plt>
jmp    121d <main+0xfd>
movss  -0x14(%rbp),%xmm0
movss  0xe56(%rip),%xmm1
ucomiss %xmm1,%xmm0
jbe    11ea <main+0xca>
movss  -0x14(%rbp),%xmm0
movss  0xe4c(%rip),%xmm1
mulss  -0x14(%rbp),%xmm1
movss  0xe37(%rip),%xmm2
divss  %xmm2,%xmm1
addss  %xmm1,%xmm0
lea    0xe3b(%rip),%rdi
call   1030 <printf@plt>
jmp    1218 <main+0xf8>
movss  -0x14(%rbp),%xmm0
movss  0xe15(%rip),%xmm1
mulss  -0x14(%rbp),%xmm1
movss  0xe04(%rip),%xmm2
divss  %xmm2,%xmm1
addss  %xmm1,%xmm0
lea    0xe08(%rip),%rdi
call   1030 <printf@plt>
jmp    121d <main+0xfd>
xor    %eax,%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
lea    0xef0(%rip),%rdi
lea    0x4(%rsp),%rsi
call   1040 <scanf@plt>
movss  0x4(%rsp),%xmm1
movss  0xec0(%rip),%xmm0
xor    %eax,%eax
ucomiss %xmm0,%xmm1
seta   %al
lea    0xec1(%rip),%rcx
movss  (%rcx,%rax,4),%xmm2
movss  0xea8(%rip),%xmm3
cmpltss %xmm1,%xmm3
movaps %xmm1,%xmm4
cmpless %xmm0,%xmm4
movss  0xe97(%rip),%xmm0
andps  %xmm4,%xmm0
andnps %xmm2,%xmm4
orps   %xmm4,%xmm0
andps  %xmm3,%xmm0
andnps %xmm2,%xmm3
orps   %xmm3,%xmm0
mulss  %xmm1,%xmm0
divss  0xe7d(%rip),%xmm0
addss  %xmm1,%xmm0
lea    0xe81(%rip),%rdi
call   1030 <printf@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
@.str = [3 x i8] c"%f\00"
@.str.1 = [5 x i8] c"%.2f\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca float
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
%7 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), float* %6)
%8 = load float, float* %6
%9 = fcmp olt float 3.000000e+02, %8
br i1 %9, label %10, label %20
10: ; preds = %2
%11 = load float, float* %6
%12 = fcmp ole float %11, 5.000000e+02
br i1 %12, label %13, label %20
13: ; preds = %10
%14 = load float, float* %6
%15 = load float, float* %6
%16 = fmul float %15, 7.000000e+00
%17 = fdiv float %16, 1.000000e+02
%18 = fadd float %14, %17
%19 = call i32 @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0), float %18)
br label %38
20: ; preds = %10, %2
%21 = load float, float* %6
%22 = fcmp ogt float %21, 5.000000e+02
br i1 %22, label %23, label %30
23: ; preds = %20
%24 = load float, float* %6
%25 = load float, float* %6
%26 = fmul float %25, 1.000000e+01
%27 = fdiv float %26, 1.000000e+02
%28 = fadd float %24, %27
%29 = call i32 @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0), float %28)
br label %37
30: ; preds = %20
%31 = load float, float* %6
%32 = load float, float* %6
%33 = fmul float %32, 5.000000e+00
%34 = fdiv float %33, 1.000000e+02
%35 = fadd float %31, %34
%36 = call i32 @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0), float %35)
br label %37
37: ; preds = %30, %23
br label %38
38: ; preds = %37, %13
ret i32 0
}

LLVM IR (-O2):
@.str = [3 x i8] c"%f\00"
@.str.1 = [5 x i8] c"%.2f\00"
define i32 @main(i32 %0, i8** nocapture readnone %1) {
%3 = alloca float
%4 = bitcast float* %3 to i8*
%5 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), float* %3)
%6 = load float, float* %3
%7 = fcmp ogt float %6, 3.000000e+02
%8 = fcmp ole float %6, 5.000000e+02
%9 = and i1 %7, %8
%10 = fcmp ogt float %6, 5.000000e+02
%11 = select i1 %10, float 1.000000e+01, float 5.000000e+00
%12 = select i1 %9, float 7.000000e+00, float %11
%13 = fmul float %6, %12
%14 = fdiv float %13, 1.000000e+02
%15 = fadd float %6, %14
%16 = call i32 @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0), float %15)
ret i32 0
}