#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 main() {
  float N;
  scanf("%f  ", &N);
  if (N >= 0 && N <= 1000000) {
    printf("NOTAS:\n");
    printf(" nota(s) de R$ 100.00\n");
    printf(" nota(s) de R$ 50.00\n");
    printf(" nota(s) de R$ 20.00\n");
    printf(" nota(s) de R$ 10.00\n");
    printf(" nota(s) de R$ 5.00\n");
    printf(" nota(s) de R$ 2.00\n");
    printf("MOEDAS:\n");
    printf(" moeda(s) de R$ 1.00\n");
    printf(" moeda(s) de R$ 0.50\n");
    printf(" moeda(s) de R$ 0.25\n");
    printf(" moeda(s) de R$ 0.10\n");
    printf(" moeda(s) de R$ 0.05\n");
    printf(" moeda(s) de R$ 0.01\n");
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
lea    0xece(%rip),%rdi
lea    -0x8(%rbp),%rsi
call   1040 <scanf@plt>
movss  -0x8(%rbp),%xmm0
xorps  %xmm1,%xmm1
ucomiss %xmm1,%xmm0
jb     120a <main+0xea>
movss  0xea8(%rip),%xmm0
ucomiss -0x8(%rbp),%xmm0
jb     120a <main+0xea>
lea    0xea0(%rip),%rdi
call   1030 <printf@plt>
lea    0xe9c(%rip),%rdi
call   1030 <printf@plt>
lea    0xea7(%rip),%rdi
call   1030 <printf@plt>
lea    0xeb1(%rip),%rdi
call   1030 <printf@plt>
lea    0xebb(%rip),%rdi
call   1030 <printf@plt>
lea    0xec5(%rip),%rdi
call   1030 <printf@plt>
lea    0xece(%rip),%rdi
call   1030 <printf@plt>
lea    0xed7(%rip),%rdi
call   1030 <printf@plt>
lea    0xed4(%rip),%rdi
call   1030 <printf@plt>
lea    0xede(%rip),%rdi
call   1030 <printf@plt>
lea    0xee8(%rip),%rdi
call   1030 <printf@plt>
lea    0xef2(%rip),%rdi
call   1030 <printf@plt>
lea    0xefc(%rip),%rdi
call   1030 <printf@plt>
lea    0xf06(%rip),%rdi
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
lea    0xedc(%rip),%rdi
lea    0x4(%rsp),%rsi
call   1040 <scanf@plt>
movss  0x4(%rsp),%xmm0
xorps  %xmm1,%xmm1
ucomiss %xmm1,%xmm0
jb     11fd <main+0xdd>
movss  0xeb4(%rip),%xmm1
ucomiss %xmm0,%xmm1
jb     11fd <main+0xdd>
lea    0xead(%rip),%rdi
call   1030 <puts@plt>
lea    0xea8(%rip),%rdi
call   1030 <puts@plt>
lea    0xeb2(%rip),%rdi
call   1030 <puts@plt>
lea    0xebb(%rip),%rdi
call   1030 <puts@plt>
lea    0xec4(%rip),%rdi
call   1030 <puts@plt>
lea    0xecd(%rip),%rdi
call   1030 <puts@plt>
lea    0xed5(%rip),%rdi
call   1030 <puts@plt>
lea    0xedd(%rip),%rdi
call   1030 <puts@plt>
lea    0xed9(%rip),%rdi
call   1030 <puts@plt>
lea    0xee2(%rip),%rdi
call   1030 <puts@plt>
lea    0xeeb(%rip),%rdi
call   1030 <puts@plt>
lea    0xef4(%rip),%rdi
call   1030 <puts@plt>
lea    0xefd(%rip),%rdi
call   1030 <puts@plt>
lea    0xf06(%rip),%rdi
call   1030 <puts@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
@.str = [5 x i8] c"%f \00"
@.str.1 = [8 x i8] c"NOTAS:\0A\00"
@.str.2 = [23 x i8] c" nota(s) de R$ 100.00\0A\00"
@.str.3 = [22 x i8] c" nota(s) de R$ 50.00\0A\00"
@.str.4 = [22 x i8] c" nota(s) de R$ 20.00\0A\00"
@.str.5 = [22 x i8] c" nota(s) de R$ 10.00\0A\00"
@.str.6 = [21 x i8] c" nota(s) de R$ 5.00\0A\00"
@.str.7 = [21 x i8] c" nota(s) de R$ 2.00\0A\00"
@.str.8 = [9 x i8] c"MOEDAS:\0A\00"
@.str.9 = [22 x i8] c" moeda(s) de R$ 1.00\0A\00"
@.str.10 = [22 x i8] c" moeda(s) de R$ 0.50\0A\00"
@.str.11 = [22 x i8] c" moeda(s) de R$ 0.25\0A\00"
@.str.12 = [22 x i8] c" moeda(s) de R$ 0.10\0A\00"
@.str.13 = [22 x i8] c" moeda(s) de R$ 0.05\0A\00"
@.str.14 = [22 x i8] c" moeda(s) de R$ 0.01\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca float
store i32 0, i32* %1
%3 = call i32 @scanf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0), float* %2)
%4 = load float, float* %2
%5 = fcmp oge float %4, 0.000000e+00
br i1 %5, label %6, label %24
6: ; preds = %0
%7 = load float, float* %2
%8 = fcmp ole float %7, 1.000000e+06
br i1 %8, label %9, label %24
9: ; preds = %6
%10 = call i32 @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.1, i64 0, i64 0))
%11 = call i32 @printf(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.2, i64 0, i64 0))
%12 = call i32 @printf(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.3, i64 0, i64 0))
%13 = call i32 @printf(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.4, i64 0, i64 0))
%14 = call i32 @printf(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.5, i64 0, i64 0))
%15 = call i32 @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.6, i64 0, i64 0))
%16 = call i32 @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.7, i64 0, i64 0))
%17 = call i32 @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.8, i64 0, i64 0))
%18 = call i32 @printf(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.9, i64 0, i64 0))
%19 = call i32 @printf(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.10, i64 0, i64 0))
%20 = call i32 @printf(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.11, i64 0, i64 0))
%21 = call i32 @printf(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.12, i64 0, i64 0))
%22 = call i32 @printf(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.13, i64 0, i64 0))
%23 = call i32 @printf(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.14, i64 0, i64 0))
br label %24
24: ; preds = %9, %6, %0
ret i32 0
}

LLVM IR (-O2):
@.str = [5 x i8] c"%f \00"
@str = [7 x i8] c"NOTAS:\00"
@str.15 = [22 x i8] c" nota(s) de R$ 100.00\00"
@str.16 = [21 x i8] c" nota(s) de R$ 50.00\00"
@str.17 = [21 x i8] c" nota(s) de R$ 20.00\00"
@str.18 = [21 x i8] c" nota(s) de R$ 10.00\00"
@str.19 = [20 x i8] c" nota(s) de R$ 5.00\00"
@str.20 = [20 x i8] c" nota(s) de R$ 2.00\00"
@str.21 = [8 x i8] c"MOEDAS:\00"
@str.22 = [21 x i8] c" moeda(s) de R$ 1.00\00"
@str.23 = [21 x i8] c" moeda(s) de R$ 0.50\00"
@str.24 = [21 x i8] c" moeda(s) de R$ 0.25\00"
@str.25 = [21 x i8] c" moeda(s) de R$ 0.10\00"
@str.26 = [21 x i8] c" moeda(s) de R$ 0.05\00"
@str.27 = [21 x i8] c" moeda(s) de R$ 0.01\00"
define i32 @main() {
%1 = alloca float
%2 = bitcast float* %1 to i8*
%3 = call i32 @scanf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0), float* %1)
%4 = load float, float* %1
%5 = fcmp oge float %4, 0.000000e+00
%6 = fcmp ole float %4, 1.000000e+06
%7 = and i1 %5, %6
br i1 %7, label %8, label %23
8: ; preds = %0
%9 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @str, i64 0, i64 0))
%10 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([22 x i8], [22 x i8]* @str.15, i64 0, i64 0))
%11 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([21 x i8], [21 x i8]* @str.16, i64 0, i64 0))
%12 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([21 x i8], [21 x i8]* @str.17, i64 0, i64 0))
%13 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([21 x i8], [21 x i8]* @str.18, i64 0, i64 0))
%14 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([20 x i8], [20 x i8]* @str.19, i64 0, i64 0))
%15 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([20 x i8], [20 x i8]* @str.20, i64 0, i64 0))
%16 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([8 x i8], [8 x i8]* @str.21, i64 0, i64 0))
%17 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([21 x i8], [21 x i8]* @str.22, i64 0, i64 0))
%18 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([21 x i8], [21 x i8]* @str.23, i64 0, i64 0))
%19 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([21 x i8], [21 x i8]* @str.24, i64 0, i64 0))
%20 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([21 x i8], [21 x i8]* @str.25, i64 0, i64 0))
%21 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([21 x i8], [21 x i8]* @str.26, i64 0, i64 0))
%22 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([21 x i8], [21 x i8]* @str.27, i64 0, i64 0))
br label %23
23: ; preds = %8, %0
ret i32 0
}