#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, int);
int main() {
  int one, two, three;
  for (one = 0; one <= 10 / 0.1; one++) {
    for (two = 0; two <= 10 / 0.2; two++) {
      for (three = 0; three <= 10 / 0.5; three++) {
        if (one * 0.1 + two * 0.2 + three * 0.5 == 10) {
          printf("One:%d , Two:%d, Five:%d\n", one, two, three);
          goto out;
        }
      }
    }
  }
out:
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
movl   $0x0,-0x8(%rbp)
cvtsi2sdl -0x8(%rbp),%xmm1
movsd  0xecd(%rip),%xmm0
ucomisd %xmm1,%xmm0
jb     121f <main+0x10f>
movl   $0x0,-0xc(%rbp)
cvtsi2sdl -0xc(%rbp),%xmm1
movsd  0xeb7(%rip),%xmm0
ucomisd %xmm1,%xmm0
jb     120c <main+0xfc>
movl   $0x0,-0x10(%rbp)
cvtsi2sdl -0x10(%rbp),%xmm1
movsd  0xea1(%rip),%xmm0
ucomisd %xmm1,%xmm0
jb     11f9 <main+0xe9>
cvtsi2sdl -0x8(%rbp),%xmm1
cvtsi2sdl -0xc(%rbp),%xmm0
movsd  0xea5(%rip),%xmm2
mulsd  %xmm2,%xmm0
movsd  0xe91(%rip),%xmm2
mulsd  %xmm2,%xmm1
addsd  %xmm0,%xmm1
cvtsi2sdl -0x10(%rbp),%xmm0
movsd  0xe74(%rip),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  0xe5c(%rip),%xmm1
ucomisd %xmm1,%xmm0
jne    11e6 <main+0xd6>
jp     11e6 <main+0xd6>
mov    -0x8(%rbp),%esi
mov    -0xc(%rbp),%edx
mov    -0x10(%rbp),%ecx
lea    0xe5c(%rip),%rdi
call   1030 <printf@plt>
jmp    1224 <main+0x114>
jmp    11eb <main+0xdb>
mov    -0x10(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x10(%rbp)
jmp    1162 <main+0x52>
jmp    11fe <main+0xee>
mov    -0xc(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xc(%rbp)
jmp    1144 <main+0x34>
jmp    1211 <main+0x101>
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
jmp    1126 <main+0x16>
jmp    1224 <main+0x114>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
lea    0xee8(%rip),%rdi
xor    %esi,%esi
xor    %edx,%edx
mov    $0x14,%ecx
call   1030 <printf@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
@.str = [26 x i8] c"One:%d , Two:%d, Five:%d\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
%4 = alloca i32
store i32 0, i32* %1
store i32 0, i32* %2
br label %5
5: ; preds = %44, %0
%6 = load i32, i32* %2
%7 = sitofp i32 %6 to double
%8 = fcmp ole double %7, 1.000000e+02
br i1 %8, label %9, label %47
9: ; preds = %5
store i32 0, i32* %3
br label %10
10: ; preds = %40, %9
%11 = load i32, i32* %3
%12 = sitofp i32 %11 to double
%13 = fcmp ole double %12, 5.000000e+01
br i1 %13, label %14, label %43
14: ; preds = %10
store i32 0, i32* %4
br label %15
15: ; preds = %36, %14
%16 = load i32, i32* %4
%17 = sitofp i32 %16 to double
%18 = fcmp ole double %17, 2.000000e+01
br i1 %18, label %19, label %39
19: ; preds = %15
%20 = load i32, i32* %2
%21 = sitofp i32 %20 to double
%22 = load i32, i32* %3
%23 = sitofp i32 %22 to double
%24 = fmul double %23, 2.000000e-01
%25 = call double @llvm.fmuladd.f64(double %21, double 1.000000e-01, double %24)
%26 = load i32, i32* %4
%27 = sitofp i32 %26 to double
%28 = call double @llvm.fmuladd.f64(double %27, double 5.000000e-01, double %25)
%29 = fcmp oeq double %28, 1.000000e+01
br i1 %29, label %30, label %35
30: ; preds = %19
%31 = load i32, i32* %2
%32 = load i32, i32* %3
%33 = load i32, i32* %4
%34 = call i32 @printf(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str, i64 0, i64 0), i32 %31, i32 %32, i32 %33)
br label %48
35: ; preds = %19
br label %36
36: ; preds = %35
%37 = load i32, i32* %4
%38 = add nsw i32 %37, 1
store i32 %38, i32* %4
br label %15
39: ; preds = %15
br label %40
40: ; preds = %39
%41 = load i32, i32* %3
%42 = add nsw i32 %41, 1
store i32 %42, i32* %3
br label %10
43: ; preds = %10
br label %44
44: ; preds = %43
%45 = load i32, i32* %2
%46 = add nsw i32 %45, 1
store i32 %46, i32* %2
br label %5
47: ; preds = %5
br label %48
48: ; preds = %47, %30
ret i32 0
}

LLVM IR (-O2):
@.str = [26 x i8] c"One:%d , Two:%d, Five:%d\0A\00"
define i32 @main() {
%1 = tail call i32 @printf(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str, i64 0, i64 0), i32 0, i32 0, i32 20)
ret i32 0
}