#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() {
  int moneda[] = {200, 100, 50, 20, 10, 5};
  int canvi[6], preu, pagat, diferencia;
  int i = 0;
  int check = 0;
  float Preu, Pagat;
  printf("\n\n\tPreu de la beguda ==>");
  scanf("%f", &Preu);
  printf("\tDiners introduits ==>");
  scanf("%f", &Pagat);
  preu = (int)(Preu * 100);
  pagat = (int)(Pagat * 100);
  if (!(preu % 5 == 0 && pagat % 5 == 0)) {
    printf("No hi ha canvi suficient.\n");
  } else {
    if (!(preu > 0 && preu < pagat)) {
      printf("No hi han suficient diners.\n");
    } else {
      check = 1;
    }
  }
  if (check) {
    diferencia = pagat - preu;
    printf("\nCanvi a tornar ==> %.2f\n", (float)diferencia / 100.0);
    for (i = 0; i < 6; i++) {
      canvi[i] = diferencia / (moneda[i]);
      if (diferencia % moneda[i]) {
        diferencia = diferencia % moneda[i];
      } else {
        break;
      }
    }
    for (int j = 0; j < 6; j++) {
      if (canvi[j] != 0) {
        printf("\t%d %s %.2f euros.\n", canvi[j], "monedes de",
               (float)moneda[j] / 100.0);
        if (j == i) {
          break;
        }
      }
    }
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x60,%rsp
movl   $0x0,-0x4(%rbp)
mov    0xeda(%rip),%rax
mov    %rax,-0x20(%rbp)
mov    0xed7(%rip),%rax
mov    %rax,-0x18(%rbp)
mov    0xed4(%rip),%rax
mov    %rax,-0x10(%rbp)
movl   $0x0,-0x50(%rbp)
movl   $0x0,-0x54(%rbp)
lea    0xec3(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xece(%rip),%rdi
lea    -0x58(%rbp),%rsi
call   1040 <scanf@plt>
lea    0xec1(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xeb0(%rip),%rdi
lea    -0x5c(%rbp),%rsi
call   1040 <scanf@plt>
movss  0xe5e(%rip),%xmm0
mulss  -0x58(%rbp),%xmm0
cvttss2si %xmm0,%eax
mov    %eax,-0x44(%rbp)
movss  0xe4a(%rip),%xmm0
mulss  -0x5c(%rbp),%xmm0
cvttss2si %xmm0,%eax
mov    %eax,-0x48(%rbp)
mov    -0x44(%rbp),%eax
mov    $0x5,%ecx
cltd
idiv   %ecx
cmp    $0x0,%edx
jne    11ea <main+0xca>
mov    -0x48(%rbp),%eax
mov    $0x5,%ecx
cltd
idiv   %ecx
cmp    $0x0,%edx
je     11fd <main+0xdd>
lea    0xe6a(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    1232 <main+0x112>
cmpl   $0x0,-0x44(%rbp)
jle    1213 <main+0xf3>
mov    -0x44(%rbp),%eax
cmp    -0x48(%rbp),%eax
jl     1226 <main+0x106>
lea    0xe5c(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    122d <main+0x10d>
movl   $0x1,-0x54(%rbp)
jmp    1232 <main+0x112>
cmpl   $0x0,-0x54(%rbp)
je     1355 <main+0x235>
mov    -0x48(%rbp),%eax
sub    -0x44(%rbp),%eax
mov    %eax,-0x4c(%rbp)
cvtsi2ssl -0x4c(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
movsd  0xdb2(%rip),%xmm1
divsd  %xmm1,%xmm0
lea    0xe32(%rip),%rdi
mov    $0x1,%al
call   1030 <printf@plt>
movl   $0x0,-0x50(%rbp)
cmpl   $0x6,-0x50(%rbp)
jge    12d0 <main+0x1b0>
mov    -0x4c(%rbp),%eax
movslq -0x50(%rbp),%rcx
cltd
idivl  -0x20(%rbp,%rcx,4)
mov    %eax,%ecx
movslq -0x50(%rbp),%rax
mov    %ecx,-0x40(%rbp,%rax,4)
mov    -0x4c(%rbp),%eax
movslq -0x50(%rbp),%rcx
cltd
idivl  -0x20(%rbp,%rcx,4)
cmp    $0x0,%edx
je     12b8 <main+0x198>
mov    -0x4c(%rbp),%eax
movslq -0x50(%rbp),%rcx
cltd
idivl  -0x20(%rbp,%rcx,4)
mov    %edx,-0x4c(%rbp)
jmp    12bd <main+0x19d>
jmp    12d0 <main+0x1b0>
jmp    12c2 <main+0x1a2>
mov    -0x50(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x50(%rbp)
jmp    126f <main+0x14f>
movl   $0x0,-0x60(%rbp)
cmpl   $0x6,-0x60(%rbp)
jge    1350 <main+0x230>
movslq -0x60(%rbp),%rax
cmpl   $0x0,-0x40(%rbp,%rax,4)
je     133d <main+0x21d>
movslq -0x60(%rbp),%rax
mov    -0x40(%rbp,%rax,4),%esi
movslq -0x60(%rbp),%rax
cvtsi2ssl -0x20(%rbp,%rax,4),%xmm0
cvtss2sd %xmm0,%xmm0
movsd  0xcfa(%rip),%xmm1
divsd  %xmm1,%xmm0
lea    0xd94(%rip),%rdi
lea    0xda1(%rip),%rdx
mov    $0x1,%al
call   1030 <printf@plt>
mov    -0x60(%rbp),%eax
cmp    -0x50(%rbp),%eax
jne    1338 <main+0x218>
jmp    1350 <main+0x230>
jmp    133d <main+0x21d>
jmp    1342 <main+0x222>
mov    -0x60(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x60(%rbp)
jmp    12d7 <main+0x1b7>
jmp    1355 <main+0x235>
xor    %eax,%eax
add    $0x60,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x28,%rsp
lea    0xefb(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xf06(%rip),%rbx
lea    0x24(%rsp),%rsi
mov    %rbx,%rdi
call   1050 <scanf@plt>
lea    0xef5(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0x20(%rsp),%rsi
mov    %rbx,%rdi
call   1050 <scanf@plt>
movss  0xe7d(%rip),%xmm0
movss  0x24(%rsp),%xmm1
mulss  %xmm0,%xmm1
cvttss2si %xmm1,%eax
mulss  0x20(%rsp),%xmm0
cvttss2si %xmm0,%ebp
movslq %eax,%rcx
imul   $0x66666667,%rcx,%rdx
mov    %rdx,%rsi
shr    $0x3f,%rsi
sar    $0x21,%rdx
add    %esi,%edx
lea    (%rdx,%rdx,4),%edx
sub    %edx,%ecx
movslq %ebp,%rdx
imul   $0x66666667,%rdx,%rsi
mov    %rsi,%rdi
shr    $0x3f,%rdi
sar    $0x21,%rsi
add    %edi,%esi
lea    (%rsi,%rsi,4),%esi
sub    %esi,%edx
or     %ecx,%edx
jne    12f3 <main+0x1c3>
test   %eax,%eax
jle    1304 <main+0x1d4>
sub    %eax,%ebp
jle    1304 <main+0x1d4>
xorps  %xmm0,%xmm0
cvtsi2ss %ebp,%xmm0
cvtss2sd %xmm0,%xmm0
divsd  0xe0a(%rip),%xmm0
lea    0xe6e(%rip),%rdi
mov    $0x1,%r15b
mov    $0x1,%al
call   1040 <printf@plt>
movslq %ebp,%r12
imul   $0x51eb851f,%r12,%rsi
mov    %rsi,%rax
shr    $0x3f,%rax
sar    $0x26,%rsi
add    %eax,%esi
imul   $0xc8,%esi,%eax
sub    %eax,%r12d
je     1315 <main+0x1e5>
movswl %r12w,%eax
imul   $0x147b,%eax,%ebx
mov    %ebx,%ecx
shr    $0x1f,%ecx
sar    $0x13,%ebx
add    %ecx,%ebx
imul   $0x64,%ebx,%ecx
sub    %cx,%ax
je     1398 <main+0x268>
movsbl %al,%eax
lea    (%rax,%rax,4),%ecx
lea    (%rax,%rcx,8),%ecx
movzwl %cx,%ecx
movswl %cx,%edx
shr    $0xf,%ecx
shr    $0xb,%edx
add    %cl,%dl
movsbl %dl,%r13d
movzbl %r13b,%ecx
imul   $0x32,%ecx,%ecx
sub    %cl,%al
je     13b8 <main+0x288>
movsbl %al,%eax
imul   $0x67,%eax,%ecx
movzwl %cx,%edx
shr    $0xb,%ecx
shr    $0xf,%edx
add    %cl,%dl
movsbl %dl,%edx
movzbl %dl,%ecx
shl    $0x2,%ecx
lea    (%rcx,%rcx,4),%ecx
sub    %cl,%al
mov    %edx,0x18(%rsp)
je     14c4 <main+0x394>
movsbl %al,%eax
imul   $0x67,%eax,%ecx
movzwl %cx,%edx
shr    $0xa,%ecx
shr    $0xf,%edx
add    %cl,%dl
movsbl %dl,%ecx
mov    %ecx,0x1c(%rsp)
movzbl %cl,%ecx
add    %ecx,%ecx
lea    (%rcx,%rcx,4),%ecx
sub    %cl,%al
je     150e <main+0x3de>
movsbl %al,%eax
imul   $0x67,%eax,%eax
movzwl %ax,%ecx
shr    $0x9,%eax
shr    $0xf,%ecx
add    %al,%cl
movsbl %cl,%eax
mov    %eax,0x14(%rsp)
xor    %r15d,%r15d
xor    %r14d,%r14d
jmp    13be <main+0x28e>
lea    0xdb2(%rip),%rdi
call   1030 <puts@plt>
jmp    14fd <main+0x3cd>
lea    0xdbb(%rip),%rdi
call   1030 <puts@plt>
jmp    14fd <main+0x3cd>
add    $0xc7,%ebp
cmp    $0x18e,%ebp
ja     139d <main+0x26d>
lea    0xd63(%rip),%rbx
lea    0xd70(%rip),%rbp
movsd  0xcdf(%rip),%xmm0
mov    %rbx,%rdi
mov    %rbp,%rdx
mov    $0x1,%al
call   1040 <printf@plt>
movsd  0xcd2(%rip),%xmm0
mov    %rbx,%rdi
mov    %rbp,%rdx
mov    $0x1,%al
call   1040 <printf@plt>
movsd  0xcc5(%rip),%xmm0
mov    %rbx,%rdi
mov    %rbp,%rdx
mov    $0x1,%al
call   1040 <printf@plt>
movsd  0xcb8(%rip),%xmm0
mov    %rbx,%rdi
mov    %rbp,%rdx
mov    $0x1,%al
call   1040 <printf@plt>
movsd  0xcab(%rip),%xmm0
mov    %rbx,%rdi
mov    %rbp,%rdx
jmp    14f6 <main+0x3c6>
xor    %r14d,%r14d
jmp    13be <main+0x28e>
lea    0xce9(%rip),%rdi
lea    0xcf6(%rip),%rdx
movsd  0xc5d(%rip),%xmm0
jmp    14f6 <main+0x3c6>
xor    %r15d,%r15d
mov    $0x1,%r14b
movl   $0x0,0x10(%rsp)
movl   $0x0,0xc(%rsp)
add    $0xc7,%ebp
cmp    $0x18f,%ebp
jb     13f9 <main+0x2c9>
lea    0xcaa(%rip),%rdi
lea    0xcb7(%rip),%rdx
movsd  0xc1e(%rip),%xmm0
mov    $0x1,%al
call   1040 <printf@plt>
add    $0x63,%r12d
movzwl %r12w,%eax
cmp    $0xc7,%eax
jb     1430 <main+0x300>
lea    0xc7e(%rip),%rdi
lea    0xc8b(%rip),%rdx
movsd  0xbfa(%rip),%xmm0
mov    %ebx,%esi
mov    $0x1,%al
call   1040 <printf@plt>
test   %r15b,%r15b
jne    14fd <main+0x3cd>
test   %r13d,%r13d
je     145e <main+0x32e>
lea    0xc51(%rip),%rdi
lea    0xc5e(%rip),%rdx
movsd  0xbd5(%rip),%xmm0
mov    %r13d,%esi
mov    $0x1,%al
call   1040 <printf@plt>
test   %r14b,%r14b
jne    14fd <main+0x3cd>
cmpl   $0x0,0x18(%rsp)
je     148d <main+0x35d>
lea    0xc21(%rip),%rdi
lea    0xc2e(%rip),%rdx
movsd  0xbad(%rip),%xmm0
mov    0x18(%rsp),%esi
mov    $0x1,%al
call   1040 <printf@plt>
cmpb   $0x0,0x10(%rsp)
jne    14fd <main+0x3cd>
mov    0x1c(%rsp),%esi
test   %esi,%esi
je     14d5 <main+0x3a5>
lea    0xbf1(%rip),%rdi
lea    0xbfe(%rip),%rdx
movsd  0xb85(%rip),%xmm0
mov    $0x1,%al
call   1040 <printf@plt>
cmpl   $0x0,0x14(%rsp)
sete   %al
mov    0xc(%rsp),%ecx
or     %al,%cl
je     14dc <main+0x3ac>
jmp    14fd <main+0x3cd>
xor    %r15d,%r15d
mov    $0x1,%al
mov    %eax,0x10(%rsp)
xor    %r14d,%r14d
jmp    13c6 <main+0x296>
cmpl   $0x0,0x14(%rsp)
je     14fd <main+0x3cd>
lea    0xbaa(%rip),%rdi
lea    0xbb7(%rip),%rdx
movsd  0xb46(%rip),%xmm0
mov    0x14(%rsp),%esi
mov    $0x1,%al
call   1040 <printf@plt>
xor    %eax,%eax
add    $0x28,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret
xor    %r15d,%r15d
mov    $0x1,%al
mov    %eax,0xc(%rsp)
xor    %r14d,%r14d
movl   $0x0,0x10(%rsp)
jmp    13ce <main+0x29e>

LLVM IR (-O0):
@__const.main.moneda = [6 x i32] [i32 200, i32 100, i32 50, i32 20, i32 10, i32 5]
@.str = [25 x i8] c"\0A\0A\09Preu de la beguda ==>\00"
@.str.1 = [3 x i8] c"%f\00"
@.str.2 = [23 x i8] c"\09Diners introduits ==>\00"
@.str.3 = [27 x i8] c"No hi ha canvi suficient.\0A\00"
@.str.4 = [29 x i8] c"No hi han suficient diners.\0A\00"
@.str.5 = [26 x i8] c"\0ACanvi a tornar ==> %.2f\0A\00"
@.str.6 = [20 x i8] c"\09%d %s %.2f euros.\0A\00"
@.str.7 = [11 x i8] c"monedes de\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca [6 x i32]
%3 = alloca [6 x i32]
%4 = alloca i32
%5 = alloca i32
%6 = alloca i32
%7 = alloca i32
%8 = alloca i32
%9 = alloca float
%10 = alloca float
%11 = alloca i32
store i32 0, i32* %1
%12 = bitcast [6 x i32]* %2 to i8*
store i32 0, i32* %7
store i32 0, i32* %8
%13 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str, i64 0, i64 0))
%14 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), float* %9)
%15 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.2, i64 0, i64 0))
%16 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), float* %10)
%17 = load float, float* %9
%18 = fmul float %17, 1.000000e+02
%19 = fptosi float %18 to i32
store i32 %19, i32* %4
%20 = load float, float* %10
%21 = fmul float %20, 1.000000e+02
%22 = fptosi float %21 to i32
store i32 %22, i32* %5
%23 = load i32, i32* %4
%24 = srem i32 %23, 5
%25 = icmp eq i32 %24, 0
br i1 %25, label %26, label %30
26: ; preds = %0
%27 = load i32, i32* %5
%28 = srem i32 %27, 5
%29 = icmp eq i32 %28, 0
br i1 %29, label %32, label %30
30: ; preds = %26, %0
%31 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.3, i64 0, i64 0))
br label %43
32: ; preds = %26
%33 = load i32, i32* %4
%34 = icmp sgt i32 %33, 0
br i1 %34, label %35, label %39
35: ; preds = %32
%36 = load i32, i32* %4
%37 = load i32, i32* %5
%38 = icmp slt i32 %36, %37
br i1 %38, label %41, label %39
39: ; preds = %35, %32
%40 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.4, i64 0, i64 0))
br label %42
41: ; preds = %35
store i32 1, i32* %8
br label %42
42: ; preds = %41, %39
br label %43
43: ; preds = %42, %30
%44 = load i32, i32* %8
%45 = icmp ne i32 %44, 0
br i1 %45, label %46, label %120
46: ; preds = %43
%47 = load i32, i32* %5
%48 = load i32, i32* %4
%49 = sub nsw i32 %47, %48
store i32 %49, i32* %6
%50 = load i32, i32* %6
%51 = sitofp i32 %50 to float
%52 = fpext float %51 to double
%53 = fdiv double %52, 1.000000e+02
%54 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.5, i64 0, i64 0), double %53)
store i32 0, i32* %7
br label %55
55: ; preds = %84, %46
%56 = load i32, i32* %7
%57 = icmp slt i32 %56, 6
br i1 %57, label %58, label %87
58: ; preds = %55
%59 = load i32, i32* %6
%60 = load i32, i32* %7
%61 = sext i32 %60 to i64
%62 = getelementptr inbounds [6 x i32], [6 x i32]* %2, i64 0, i64 %61
%63 = load i32, i32* %62
%64 = sdiv i32 %59, %63
%65 = load i32, i32* %7
%66 = sext i32 %65 to i64
%67 = getelementptr inbounds [6 x i32], [6 x i32]* %3, i64 0, i64 %66
store i32 %64, i32* %67
%68 = load i32, i32* %6
%69 = load i32, i32* %7
%70 = sext i32 %69 to i64
%71 = getelementptr inbounds [6 x i32], [6 x i32]* %2, i64 0, i64 %70
%72 = load i32, i32* %71
%73 = srem i32 %68, %72
%74 = icmp ne i32 %73, 0
br i1 %74, label %75, label %82
75: ; preds = %58
%76 = load i32, i32* %6
%77 = load i32, i32* %7
%78 = sext i32 %77 to i64
%79 = getelementptr inbounds [6 x i32], [6 x i32]* %2, i64 0, i64 %78
%80 = load i32, i32* %79
%81 = srem i32 %76, %80
store i32 %81, i32* %6
br label %83
82: ; preds = %58
br label %87
83: ; preds = %75
br label %84
84: ; preds = %83
%85 = load i32, i32* %7
%86 = add nsw i32 %85, 1
store i32 %86, i32* %7
br label %55
87: ; preds = %82, %55
store i32 0, i32* %11
br label %88
88: ; preds = %116, %87
%89 = load i32, i32* %11
%90 = icmp slt i32 %89, 6
br i1 %90, label %91, label %119
91: ; preds = %88
%92 = load i32, i32* %11
%93 = sext i32 %92 to i64
%94 = getelementptr inbounds [6 x i32], [6 x i32]* %3, i64 0, i64 %93
%95 = load i32, i32* %94
%96 = icmp ne i32 %95, 0
br i1 %96, label %97, label %115
97: ; preds = %91
%98 = load i32, i32* %11
%99 = sext i32 %98 to i64
%100 = getelementptr inbounds [6 x i32], [6 x i32]* %3, i64 0, i64 %99
%101 = load i32, i32* %100
%102 = load i32, i32* %11
%103 = sext i32 %102 to i64
%104 = getelementptr inbounds [6 x i32], [6 x i32]* %2, i64 0, i64 %103
%105 = load i32, i32* %104
%106 = sitofp i32 %105 to float
%107 = fpext float %106 to double
%108 = fdiv double %107, 1.000000e+02
%109 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.6, i64 0, i64 0), i32 %101, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.7, i64 0, i64 0), double %108)
%110 = load i32, i32* %11
%111 = load i32, i32* %7
%112 = icmp eq i32 %110, %111
br i1 %112, label %113, label %114
113: ; preds = %97
br label %119
114: ; preds = %97
br label %115
115: ; preds = %114, %91
br label %116
116: ; preds = %115
%117 = load i32, i32* %11
%118 = add nsw i32 %117, 1
store i32 %118, i32* %11
br label %88
119: ; preds = %113, %88
br label %120
120: ; preds = %119, %43
ret i32 0
}

LLVM IR (-O2):
@.str = [25 x i8] c"\0A\0A\09Preu de la beguda ==>\00"
@.str.1 = [3 x i8] c"%f\00"
@.str.2 = [23 x i8] c"\09Diners introduits ==>\00"
@.str.5 = [26 x i8] c"\0ACanvi a tornar ==> %.2f\0A\00"
@.str.6 = [20 x i8] c"\09%d %s %.2f euros.\0A\00"
@.str.7 = [11 x i8] c"monedes de\00"
@str = [26 x i8] c"No hi ha canvi suficient.\00"
@str.8 = [28 x i8] c"No hi han suficient diners.\00"
define i32 @main() {
%1 = alloca float
%2 = alloca float
%3 = bitcast float* %1 to i8*
%4 = bitcast float* %2 to i8*
%5 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([25 x i8], [25 x i8]* @.str, i64 0, i64 0))
%6 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), float* %1)
%7 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([23 x i8], [23 x i8]* @.str.2, i64 0, i64 0))
%8 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), float* %2)
%9 = load float, float* %1
%10 = fmul float %9, 1.000000e+02
%11 = fptosi float %10 to i32
%12 = load float, float* %2
%13 = fmul float %12, 1.000000e+02
%14 = fptosi float %13 to i32
%15 = srem i32 %11, 5
%16 = icmp eq i32 %15, 0
%17 = srem i32 %14, 5
%18 = icmp eq i32 %17, 0
%19 = select i1 %16, i1 %18, i1 false
br i1 %19, label %22, label %20
20: ; preds = %0
%21 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([26 x i8], [26 x i8]* @str, i64 0, i64 0))
br label %111
22: ; preds = %0
%23 = icmp sgt i32 %11, 0
%24 = icmp sgt i32 %14, %11
%25 = select i1 %23, i1 %24, i1 false
br i1 %25, label %28, label %26
26: ; preds = %22
%27 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([28 x i8], [28 x i8]* @str.8, i64 0, i64 0))
br label %111
28: ; preds = %22
%29 = sub nsw i32 %14, %11
%30 = sitofp i32 %29 to float
%31 = fpext float %30 to double
%32 = fdiv double %31, 1.000000e+02
%33 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([26 x i8], [26 x i8]* @.str.5, i64 0, i64 0), double %32)
%34 = sdiv i32 %29, 200
%35 = srem i32 %29, 200
%36 = icmp eq i32 %35, 0
br i1 %36, label %75, label %37
37: ; preds = %28
%38 = trunc i32 %35 to i16
%39 = sdiv i16 %38, 100
%40 = sext i16 %39 to i32
%41 = trunc i32 %35 to i16
%42 = srem i16 %41, 100
%43 = icmp eq i16 %42, 0
br i1 %43, label %64, label %44
44: ; preds = %37
%45 = trunc i16 %42 to i8
%46 = sdiv i8 %45, 50
%47 = sext i8 %46 to i32
%48 = trunc i16 %42 to i8
%49 = srem i8 %48, 50
%50 = icmp eq i8 %49, 0
br i1 %50, label %64, label %51
51: ; preds = %44
%52 = sdiv i8 %49, 20
%53 = sext i8 %52 to i32
%54 = srem i8 %49, 20
%55 = icmp eq i8 %54, 0
br i1 %55, label %64, label %56
56: ; preds = %51
%57 = sdiv i8 %54, 10
%58 = sext i8 %57 to i32
%59 = srem i8 %54, 10
%60 = icmp eq i8 %59, 0
br i1 %60, label %64, label %61
61: ; preds = %56
%62 = sdiv i8 %59, 5
%63 = sext i8 %62 to i32
br label %64
64: ; preds = %61, %56, %51, %44, %37
%65 = phi i32 [ undef, %37 ], [ undef, %44 ], [ undef, %51 ], [ %58, %56 ], [ %58, %61 ]
%66 = phi i32 [ undef, %37 ], [ undef, %44 ], [ %53, %51 ], [ %53, %56 ], [ %53, %61 ]
%67 = phi i32 [ undef, %37 ], [ %47, %44 ], [ %47, %51 ], [ %47, %56 ], [ %47, %61 ]
%68 = phi i32 [ undef, %37 ], [ undef, %44 ], [ undef, %51 ], [ undef, %56 ], [ %63, %61 ]
%69 = phi i1 [ true, %37 ], [ false, %44 ], [ false, %51 ], [ false, %56 ], [ false, %61 ]
%70 = phi i1 [ false, %37 ], [ true, %44 ], [ false, %51 ], [ false, %56 ], [ false, %61 ]
%71 = phi i1 [ false, %37 ], [ false, %44 ], [ true, %51 ], [ false, %56 ], [ false, %61 ]
%72 = phi i1 [ false, %37 ], [ false, %44 ], [ false, %51 ], [ true, %56 ], [ false, %61 ]
%73 = add i32 %29, 199
%74 = icmp ult i32 %73, 399
br i1 %74, label %88, label %86
75: ; preds = %28
%76 = add i32 %29, 199
%77 = icmp ult i32 %76, 399
br i1 %77, label %78, label %84
78: ; preds = %75
%79 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([20 x i8], [20 x i8]* @.str.6, i64 0, i64 0), i32 undef, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.7, i64 0, i64 0), double 1.000000e+00)
%80 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([20 x i8], [20 x i8]* @.str.6, i64 0, i64 0), i32 undef, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.7, i64 0, i64 0), double 5.000000e-01)
%81 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([20 x i8], [20 x i8]* @.str.6, i64 0, i64 0), i32 undef, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.7, i64 0, i64 0), double 2.000000e-01)
%82 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([20 x i8], [20 x i8]* @.str.6, i64 0, i64 0), i32 undef, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.7, i64 0, i64 0), double 1.000000e-01)
%83 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([20 x i8], [20 x i8]* @.str.6, i64 0, i64 0), i32 undef, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.7, i64 0, i64 0), double 5.000000e-02)
br label %111
84: ; preds = %75
%85 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([20 x i8], [20 x i8]* @.str.6, i64 0, i64 0), i32 %34, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.7, i64 0, i64 0), double 2.000000e+00)
br label %111
86: ; preds = %64
%87 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([20 x i8], [20 x i8]* @.str.6, i64 0, i64 0), i32 %34, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.7, i64 0, i64 0), double 2.000000e+00)
br label %88
88: ; preds = %86, %64
%89 = add i16 %38, 99
%90 = icmp ult i16 %89, 199
br i1 %90, label %93, label %91
91: ; preds = %88
%92 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([20 x i8], [20 x i8]* @.str.6, i64 0, i64 0), i32 %40, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.7, i64 0, i64 0), double 1.000000e+00)
br i1 %69, label %111, label %93
93: ; preds = %91, %88
%94 = icmp eq i32 %67, 0
br i1 %94, label %97, label %95
95: ; preds = %93
%96 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([20 x i8], [20 x i8]* @.str.6, i64 0, i64 0), i32 %67, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.7, i64 0, i64 0), double 5.000000e-01)
br i1 %70, label %111, label %97
97: ; preds = %95, %93
%98 = icmp eq i32 %66, 0
br i1 %98, label %101, label %99
99: ; preds = %97
%100 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([20 x i8], [20 x i8]* @.str.6, i64 0, i64 0), i32 %66, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.7, i64 0, i64 0), double 2.000000e-01)
br i1 %71, label %111, label %101
101: ; preds = %99, %97
%102 = icmp eq i32 %65, 0
br i1 %102, label %107, label %103
103: ; preds = %101
%104 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([20 x i8], [20 x i8]* @.str.6, i64 0, i64 0), i32 %65, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.7, i64 0, i64 0), double 1.000000e-01)
%105 = icmp eq i32 %68, 0
%106 = select i1 %72, i1 true, i1 %105
br i1 %106, label %111, label %109
107: ; preds = %101
%108 = icmp eq i32 %68, 0
br i1 %108, label %111, label %109
109: ; preds = %103, %107
%110 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([20 x i8], [20 x i8]* @.str.6, i64 0, i64 0), i32 %68, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.7, i64 0, i64 0), double 5.000000e-02)
br label %111
111: ; preds = %109, %91, %95, %99, %103, %84, %78, %107, %20, %26
ret i32 0
}