#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 *, double *);
int main() {
  double n, twenc, tenc, fivec, onec;
  int thou, five, thund, hund, fifth, twen, ten, fives, ones, i = 0;
  printf("Enter a peso amount: ");
  scanf("%lf", &n);
  printf("The output is: %.2lf = ", n);
  if (n >= 1000) {
    thou = (int)n / 1000;
    printf("(%d) 1000 ", thou);
    n = n - 1000 * thou;
    i++;
  }
  if (n >= 500) {
    five = (int)n / 500;
    if (i == 0) {
      printf("(%d) 500 ", five);
      i++;
    } else {
      printf("+ (%d) 500 ", five);
    }
    n = n - 500 * five;
  }
  if (n >= 200) {
    thund = (int)n / 200;
    if (i == 0) {
      printf("(%d) 200 ", thund);
      i++;
    } else {
      printf("+ (%d) 200 ", thund);
    }
    n = n - 200 * thund;
  }
  if (n >= 100) {
    hund = (int)n / 100;
    if (i == 0) {
      printf("(%d) 100", hund);
      i++;
    } else {
      printf("+ (%d) 100 ", hund);
    }
    n = n - 100 * hund;
  }
  if (n >= 50) {
    fifth = (int)n / 50;
    if (i == 0) {
      printf("(%d) 50 ", fifth);
      i++;
    } else {
      printf("+ (%d) 50 ", fifth);
    }
    n = n - 50 * fifth;
  }
  if (n >= 20) {
    twen = (int)n / 20;
    if (i == 0) {
      printf("(%d) 20 ", twen);
      i++;
    } else {
      printf("+ (%d) 20 ", twen);
    }
    n = n - 20 * twen;
  }
  if (n >= 10) {
    ten = (int)n / 10;
    if (i == 0) {
      printf("(%d) 10 ", ten);
      i++;
    } else {
      printf("+ (%d) 10 ", ten);
    }
    n = n - 10 * ten;
  }
  if (n >= 5) {
    fives = (int)n / 5;
    if (i == 0) {
      printf("(%d) 5 ", fives);
      i++;
    } else {
      printf("+ (%d) 5 ", fives);
    }
    n = n - 5 * fives;
  }
  if (n >= 1) {
    ones = (int)n;
    if (i == 0) {
      printf("(%d) 1 ", ones);
      i++;
    } else {
      printf("+ (%d) 1 ", ones);
    }
    n = n - ones;
  }
  if (n >= 0.25) {
    twenc = n / 0.25;
    if (i == 0) {
      printf("(%.0lf) 0.25 ", twenc);
      i++;
    } else {
      printf("+ (%.0lf) 0.25 ", twenc);
    }
    n = n - 0.25 * twenc;
  }
  if (n >= 0.10) {
    tenc = n / 0.10;
    if (i == 0) {
      printf("(%.0lf) 0.10 ", tenc);
      i++;
    } else {
      printf("+ (%.0lf) 0.10 ", tenc);
    }
    n = n - 0.10 * tenc;
  }
  if (n >= 0.05) {
    fivec = n / 0.05;
    if (i == 0) {
      printf("(%.0lf) 0.05 ", fivec);
      i++;
    } else {
      printf("+ (%.0lf) 0.05 ", fivec);
    }
    n = n - 0.05 * fivec;
  }
  if (n >= 0.01) {
    onec = n / 0.01;
    if (i == 0) {
      printf("(%.0lf) 0.01 ", onec);
    } else {
      printf("+ (%.0lf) 0.01 ", onec);
    }
    n = n - 0.01 * onec;
  }
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x60,%rsp
movl   $0x0,-0x4(%rbp)
movl   $0x0,-0x58(%rbp)
lea    0xf4b(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf53(%rip),%rdi
lea    -0x10(%rbp),%rsi
call   1040 <scanf@plt>
movsd  -0x10(%rbp),%xmm0
lea    0xf42(%rip),%rdi
mov    $0x1,%al
call   1030 <printf@plt>
movsd  -0x10(%rbp),%xmm0
movsd  0xe8c(%rip),%xmm1
ucomisd %xmm1,%xmm0
jb     11c1 <main+0xa1>
cvttsd2si -0x10(%rbp),%eax
mov    $0x3e8,%ecx
cltd
idiv   %ecx
mov    %eax,-0x34(%rbp)
mov    -0x34(%rbp),%esi
lea    0xf22(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movsd  -0x10(%rbp),%xmm0
imul   $0x3e8,-0x34(%rbp),%eax
cvtsi2sd %eax,%xmm1
subsd  %xmm1,%xmm0
movsd  %xmm0,-0x10(%rbp)
mov    -0x58(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x58(%rbp)
movsd  -0x10(%rbp),%xmm0
movsd  0xe3a(%rip),%xmm1
ucomisd %xmm1,%xmm0
jb     123b <main+0x11b>
cvttsd2si -0x10(%rbp),%eax
mov    $0x1f4,%ecx
cltd
idiv   %ecx
mov    %eax,-0x38(%rbp)
cmpl   $0x0,-0x58(%rbp)
jne    1211 <main+0xf1>
mov    -0x38(%rbp),%esi
lea    0xecb(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x58(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x58(%rbp)
jmp    1222 <main+0x102>
mov    -0x38(%rbp),%esi
lea    0xeaa(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movsd  -0x10(%rbp),%xmm0
imul   $0x1f4,-0x38(%rbp),%eax
cvtsi2sd %eax,%xmm1
subsd  %xmm1,%xmm0
movsd  %xmm0,-0x10(%rbp)
movsd  -0x10(%rbp),%xmm0
movsd  0xdc8(%rip),%xmm1
ucomisd %xmm1,%xmm0
jb     12b5 <main+0x195>
cvttsd2si -0x10(%rbp),%eax
mov    $0xc8,%ecx
cltd
idiv   %ecx
mov    %eax,-0x3c(%rbp)
cmpl   $0x0,-0x58(%rbp)
jne    128b <main+0x16b>
mov    -0x3c(%rbp),%esi
lea    0xe5d(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x58(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x58(%rbp)
jmp    129c <main+0x17c>
mov    -0x3c(%rbp),%esi
lea    0xe3c(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movsd  -0x10(%rbp),%xmm0
imul   $0xc8,-0x3c(%rbp),%eax
cvtsi2sd %eax,%xmm1
subsd  %xmm1,%xmm0
movsd  %xmm0,-0x10(%rbp)
movsd  -0x10(%rbp),%xmm0
movsd  0xd56(%rip),%xmm1
ucomisd %xmm1,%xmm0
jb     132c <main+0x20c>
cvttsd2si -0x10(%rbp),%eax
mov    $0x64,%ecx
cltd
idiv   %ecx
mov    %eax,-0x40(%rbp)
cmpl   $0x0,-0x58(%rbp)
jne    1305 <main+0x1e5>
mov    -0x40(%rbp),%esi
lea    0xded(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x58(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x58(%rbp)
jmp    1316 <main+0x1f6>
mov    -0x40(%rbp),%esi
lea    0xdd7(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movsd  -0x10(%rbp),%xmm0
imul   $0x64,-0x40(%rbp),%eax
cvtsi2sd %eax,%xmm1
subsd  %xmm1,%xmm0
movsd  %xmm0,-0x10(%rbp)
movsd  -0x10(%rbp),%xmm0
movsd  0xce7(%rip),%xmm1
ucomisd %xmm1,%xmm0
jb     13a3 <main+0x283>
cvttsd2si -0x10(%rbp),%eax
mov    $0x32,%ecx
cltd
idiv   %ecx
mov    %eax,-0x44(%rbp)
cmpl   $0x0,-0x58(%rbp)
jne    137c <main+0x25c>
mov    -0x44(%rbp),%esi
lea    0xd8d(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x58(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x58(%rbp)
jmp    138d <main+0x26d>
mov    -0x44(%rbp),%esi
lea    0xd6c(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movsd  -0x10(%rbp),%xmm0
imul   $0x32,-0x44(%rbp),%eax
cvtsi2sd %eax,%xmm1
subsd  %xmm1,%xmm0
movsd  %xmm0,-0x10(%rbp)
movsd  -0x10(%rbp),%xmm0
movsd  0xc78(%rip),%xmm1
ucomisd %xmm1,%xmm0
jb     141a <main+0x2fa>
cvttsd2si -0x10(%rbp),%eax
mov    $0x14,%ecx
cltd
idiv   %ecx
mov    %eax,-0x48(%rbp)
cmpl   $0x0,-0x58(%rbp)
jne    13f3 <main+0x2d3>
mov    -0x48(%rbp),%esi
lea    0xd21(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x58(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x58(%rbp)
jmp    1404 <main+0x2e4>
mov    -0x48(%rbp),%esi
lea    0xd00(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movsd  -0x10(%rbp),%xmm0
imul   $0x14,-0x48(%rbp),%eax
cvtsi2sd %eax,%xmm1
subsd  %xmm1,%xmm0
movsd  %xmm0,-0x10(%rbp)
movsd  -0x10(%rbp),%xmm0
movsd  0xc09(%rip),%xmm1
ucomisd %xmm1,%xmm0
jb     1491 <main+0x371>
cvttsd2si -0x10(%rbp),%eax
mov    $0xa,%ecx
cltd
idiv   %ecx
mov    %eax,-0x4c(%rbp)
cmpl   $0x0,-0x58(%rbp)
jne    146a <main+0x34a>
mov    -0x4c(%rbp),%esi
lea    0xcb5(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x58(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x58(%rbp)
jmp    147b <main+0x35b>
mov    -0x4c(%rbp),%esi
lea    0xc94(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movsd  -0x10(%rbp),%xmm0
imul   $0xa,-0x4c(%rbp),%eax
cvtsi2sd %eax,%xmm1
subsd  %xmm1,%xmm0
movsd  %xmm0,-0x10(%rbp)
movsd  -0x10(%rbp),%xmm0
movsd  0xb9a(%rip),%xmm1
ucomisd %xmm1,%xmm0
jb     1508 <main+0x3e8>
cvttsd2si -0x10(%rbp),%eax
mov    $0x5,%ecx
cltd
idiv   %ecx
mov    %eax,-0x50(%rbp)
cmpl   $0x0,-0x58(%rbp)
jne    14e1 <main+0x3c1>
mov    -0x50(%rbp),%esi
lea    0xc49(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x58(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x58(%rbp)
jmp    14f2 <main+0x3d2>
mov    -0x50(%rbp),%esi
lea    0xc28(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movsd  -0x10(%rbp),%xmm0
imul   $0x5,-0x50(%rbp),%eax
cvtsi2sd %eax,%xmm1
subsd  %xmm1,%xmm0
movsd  %xmm0,-0x10(%rbp)
movsd  -0x10(%rbp),%xmm0
movsd  0xb2b(%rip),%xmm1
ucomisd %xmm1,%xmm0
jb     1574 <main+0x454>
cvttsd2si -0x10(%rbp),%eax
mov    %eax,-0x54(%rbp)
cmpl   $0x0,-0x58(%rbp)
jne    1550 <main+0x430>
mov    -0x54(%rbp),%esi
lea    0xbe4(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x58(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x58(%rbp)
jmp    1561 <main+0x441>
mov    -0x54(%rbp),%esi
lea    0xbc3(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movsd  -0x10(%rbp),%xmm0
cvtsi2sdl -0x54(%rbp),%xmm1
subsd  %xmm1,%xmm0
movsd  %xmm0,-0x10(%rbp)
movsd  -0x10(%rbp),%xmm0
movsd  0xac7(%rip),%xmm1
ucomisd %xmm1,%xmm0
jb     15fe <main+0x4de>
movsd  -0x10(%rbp),%xmm0
movsd  0xab0(%rip),%xmm1
divsd  %xmm1,%xmm0
movsd  %xmm0,-0x18(%rbp)
cmpl   $0x0,-0x58(%rbp)
jne    15cc <main+0x4ac>
movsd  -0x18(%rbp),%xmm0
lea    0xb72(%rip),%rdi
mov    $0x1,%al
call   1030 <printf@plt>
mov    -0x58(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x58(%rbp)
jmp    15df <main+0x4bf>
movsd  -0x18(%rbp),%xmm0
lea    0xb4f(%rip),%rdi
mov    $0x1,%al
call   1030 <printf@plt>
movsd  -0x10(%rbp),%xmm1
movsd  -0x18(%rbp),%xmm0
movsd  0xa5f(%rip),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x10(%rbp)
movsd  -0x10(%rbp),%xmm0
movsd  0xa4d(%rip),%xmm1
ucomisd %xmm1,%xmm0
jb     1688 <main+0x568>
movsd  -0x10(%rbp),%xmm0
movsd  0xa36(%rip),%xmm1
divsd  %xmm1,%xmm0
movsd  %xmm0,-0x20(%rbp)
cmpl   $0x0,-0x58(%rbp)
jne    1656 <main+0x536>
movsd  -0x20(%rbp),%xmm0
lea    0xaf8(%rip),%rdi
mov    $0x1,%al
call   1030 <printf@plt>
mov    -0x58(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x58(%rbp)
jmp    1669 <main+0x549>
movsd  -0x20(%rbp),%xmm0
lea    0xad5(%rip),%rdi
mov    $0x1,%al
call   1030 <printf@plt>
movsd  -0x10(%rbp),%xmm1
movsd  -0x20(%rbp),%xmm0
movsd  0x9e5(%rip),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x10(%rbp)
movsd  -0x10(%rbp),%xmm0
movsd  0x9d3(%rip),%xmm1
ucomisd %xmm1,%xmm0
jb     1712 <main+0x5f2>
movsd  -0x10(%rbp),%xmm0
movsd  0x9bc(%rip),%xmm1
divsd  %xmm1,%xmm0
movsd  %xmm0,-0x28(%rbp)
cmpl   $0x0,-0x58(%rbp)
jne    16e0 <main+0x5c0>
movsd  -0x28(%rbp),%xmm0
lea    0xa7e(%rip),%rdi
mov    $0x1,%al
call   1030 <printf@plt>
mov    -0x58(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x58(%rbp)
jmp    16f3 <main+0x5d3>
movsd  -0x28(%rbp),%xmm0
lea    0xa5b(%rip),%rdi
mov    $0x1,%al
call   1030 <printf@plt>
movsd  -0x10(%rbp),%xmm1
movsd  -0x28(%rbp),%xmm0
movsd  0x96b(%rip),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x10(%rbp)
movsd  -0x10(%rbp),%xmm0
movsd  0x959(%rip),%xmm1
ucomisd %xmm1,%xmm0
jb     1793 <main+0x673>
movsd  -0x10(%rbp),%xmm0
movsd  0x942(%rip),%xmm1
divsd  %xmm1,%xmm0
movsd  %xmm0,-0x30(%rbp)
cmpl   $0x0,-0x58(%rbp)
jne    1761 <main+0x641>
movsd  -0x30(%rbp),%xmm0
lea    0xa04(%rip),%rdi
mov    $0x1,%al
call   1030 <printf@plt>
jmp    1774 <main+0x654>
movsd  -0x30(%rbp),%xmm0
lea    0x9ea(%rip),%rdi
mov    $0x1,%al
call   1030 <printf@plt>
movsd  -0x10(%rbp),%xmm1
movsd  -0x30(%rbp),%xmm0
movsd  0x8fa(%rip),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x10(%rbp)
mov    -0x4(%rbp),%eax
add    $0x60,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbx
sub    $0x10,%rsp
lea    0xf5c(%rip),%rdi
xor    %eax,%eax
call   1030 <printf@plt>
lea    0xf64(%rip),%rdi
mov    %rsp,%rsi
call   1040 <scanf@plt>
movsd  (%rsp),%xmm0
lea    0xf54(%rip),%rdi
mov    $0x1,%al
call   1030 <printf@plt>
movsd  (%rsp),%xmm0
ucomisd 0xe9e(%rip),%xmm0
jae    121c <main+0xfc>
ucomisd 0xe98(%rip),%xmm0
jae    130b <main+0x1eb>
ucomisd 0xe92(%rip),%xmm0
jae    13a4 <main+0x284>
ucomisd 0xe8c(%rip),%xmm0
jae    16a3 <main+0x583>
ucomisd 0xe86(%rip),%xmm0
jae    16c9 <main+0x5a9>
ucomisd 0xe80(%rip),%xmm0
jae    16ef <main+0x5cf>
ucomisd 0xe7a(%rip),%xmm0
jae    1715 <main+0x5f5>
ucomisd 0xe74(%rip),%xmm0
jae    173b <main+0x61b>
ucomisd 0xe6e(%rip),%xmm0
jae    1761 <main+0x641>
ucomisd 0xe68(%rip),%xmm0
jae    1771 <main+0x651>
ucomisd 0xe72(%rip),%xmm0
jae    178b <main+0x66b>
ucomisd 0xe6c(%rip),%xmm0
jae    17a5 <main+0x685>
ucomisd 0xe76(%rip),%xmm0
jb     169b <main+0x57b>
lea    0xf42(%rip),%rdi
jmp    168c <main+0x56c>
cvttsd2si %xmm0,%eax
cltq
imul   $0x10624dd3,%rax,%rbx
mov    %rbx,%rax
shr    $0x3f,%rax
sar    $0x26,%rbx
add    %eax,%ebx
lea    0xe7d(%rip),%rdi
mov    %ebx,%esi
xor    %eax,%eax
call   1030 <printf@plt>
movsd  (%rsp),%xmm0
imul   $0x3e8,%ebx,%eax
cvtsi2sd %eax,%xmm1
subsd  %xmm1,%xmm0
movsd  %xmm0,(%rsp)
ucomisd 0xda2(%rip),%xmm0
jae    132e <main+0x20e>
ucomisd 0xd9c(%rip),%xmm0
jae    1381 <main+0x261>
ucomisd 0xd96(%rip),%xmm0
jae    13f7 <main+0x2d7>
ucomisd 0xd90(%rip),%xmm0
jae    1447 <main+0x327>
ucomisd 0xd8a(%rip),%xmm0
jae    1497 <main+0x377>
ucomisd 0xd84(%rip),%xmm0
jae    14ea <main+0x3ca>
ucomisd 0xd7e(%rip),%xmm0
jae    153c <main+0x41c>
ucomisd 0xd78(%rip),%xmm0
jae    158c <main+0x46c>
ucomisd 0xd72(%rip),%xmm0
jae    15c3 <main+0x4a3>
ucomisd 0xd7c(%rip),%xmm0
jae    1605 <main+0x4e5>
ucomisd 0xd76(%rip),%xmm0
jae    1647 <main+0x527>
ucomisd 0xd80(%rip),%xmm0
jae    1685 <main+0x565>
jmp    169b <main+0x57b>
cvttsd2si %xmm0,%eax
cltq
imul   $0x10624dd3,%rax,%rbx
mov    %rbx,%rax
shr    $0x3f,%rax
sar    $0x25,%rbx
add    %eax,%ebx
lea    0xd9b(%rip),%rdi
jmp    134f <main+0x22f>
cvttsd2si %xmm0,%eax
cltq
imul   $0x10624dd3,%rax,%rbx
mov    %rbx,%rax
shr    $0x3f,%rax
sar    $0x25,%rbx
add    %eax,%ebx
lea    0xd76(%rip),%rdi
mov    %ebx,%esi
xor    %eax,%eax
call   1030 <printf@plt>
movsd  (%rsp),%xmm0
imul   $0x1f4,%ebx,%eax
xorps  %xmm1,%xmm1
cvtsi2sd %eax,%xmm1
subsd  %xmm1,%xmm0
movsd  %xmm0,(%rsp)
ucomisd 0xc95(%rip),%xmm0
jb     127a <main+0x15a>
cvttsd2si %xmm0,%eax
cltq
imul   $0x51eb851f,%rax,%rbx
mov    %rbx,%rax
shr    $0x3f,%rax
sar    $0x26,%rbx
add    %eax,%ebx
lea    0xd2f(%rip),%rdi
jmp    13c5 <main+0x2a5>
cvttsd2si %xmm0,%eax
cltq
imul   $0x51eb851f,%rax,%rbx
mov    %rbx,%rax
shr    $0x3f,%rax
sar    $0x26,%rbx
add    %eax,%ebx
lea    0xd0e(%rip),%rdi
mov    %ebx,%esi
xor    %eax,%eax
call   1030 <printf@plt>
movsd  (%rsp),%xmm0
imul   $0xc8,%ebx,%eax
xorps  %xmm1,%xmm1
cvtsi2sd %eax,%xmm1
subsd  %xmm1,%xmm0
movsd  %xmm0,(%rsp)
ucomisd 0xc27(%rip),%xmm0
jb     1288 <main+0x168>
cvttsd2si %xmm0,%eax
cltq
imul   $0x51eb851f,%rax,%rbx
mov    %rbx,%rax
shr    $0x3f,%rax
sar    $0x25,%rbx
add    %eax,%ebx
lea    0xcce(%rip),%rdi
mov    %ebx,%esi
xor    %eax,%eax
call   1030 <printf@plt>
movsd  (%rsp),%xmm0
imul   $0x64,%ebx,%eax
xorps  %xmm1,%xmm1
cvtsi2sd %eax,%xmm1
subsd  %xmm1,%xmm0
movsd  %xmm0,(%rsp)
ucomisd 0xbdf(%rip),%xmm0
jb     1296 <main+0x176>
cvttsd2si %xmm0,%eax
cltq
imul   $0x51eb851f,%rax,%rbx
mov    %rbx,%rax
shr    $0x3f,%rax
sar    $0x24,%rbx
add    %eax,%ebx
lea    0xc8a(%rip),%rdi
mov    %ebx,%esi
xor    %eax,%eax
call   1030 <printf@plt>
movsd  (%rsp),%xmm0
imul   $0x32,%ebx,%eax
xorps  %xmm1,%xmm1
cvtsi2sd %eax,%xmm1
subsd  %xmm1,%xmm0
movsd  %xmm0,(%rsp)
ucomisd 0xb97(%rip),%xmm0
jb     12a4 <main+0x184>
cvttsd2si %xmm0,%eax
cltq
imul   $0x66666667,%rax,%rbx
mov    %rbx,%rax
shr    $0x3f,%rax
sar    $0x23,%rbx
add    %eax,%ebx
lea    0xc45(%rip),%rdi
mov    %ebx,%esi
xor    %eax,%eax
call   1030 <printf@plt>
movsd  (%rsp),%xmm0
shl    $0x2,%ebx
lea    (%rbx,%rbx,4),%eax
xorps  %xmm1,%xmm1
cvtsi2sd %eax,%xmm1
subsd  %xmm1,%xmm0
movsd  %xmm0,(%rsp)
ucomisd 0xb4c(%rip),%xmm0
jb     12b2 <main+0x192>
cvttsd2si %xmm0,%eax
cltq
imul   $0x66666667,%rax,%rbx
mov    %rbx,%rax
shr    $0x3f,%rax
sar    $0x22,%rbx
add    %eax,%ebx
lea    0xbfd(%rip),%rdi
mov    %ebx,%esi
xor    %eax,%eax
call   1030 <printf@plt>
movsd  (%rsp),%xmm0
add    %ebx,%ebx
lea    (%rbx,%rbx,4),%eax
xorps  %xmm1,%xmm1
cvtsi2sd %eax,%xmm1
subsd  %xmm1,%xmm0
movsd  %xmm0,(%rsp)
ucomisd 0xb02(%rip),%xmm0
jb     12c0 <main+0x1a0>
cvttsd2si %xmm0,%eax
cltq
imul   $0x66666667,%rax,%rbx
mov    %rbx,%rax
shr    $0x3f,%rax
sar    $0x21,%rbx
add    %eax,%ebx
lea    0xbb6(%rip),%rdi
mov    %ebx,%esi
xor    %eax,%eax
call   1030 <printf@plt>
movsd  (%rsp),%xmm0
lea    (%rbx,%rbx,4),%eax
xorps  %xmm1,%xmm1
cvtsi2sd %eax,%xmm1
subsd  %xmm1,%xmm0
movsd  %xmm0,(%rsp)
ucomisd 0xaba(%rip),%xmm0
jb     12ce <main+0x1ae>
cvttsd2si %xmm0,%ebx
lea    0xb86(%rip),%rdi
mov    %ebx,%esi
xor    %eax,%eax
call   1030 <printf@plt>
movsd  (%rsp),%xmm0
xorps  %xmm1,%xmm1
cvtsi2sd %ebx,%xmm1
subsd  %xmm1,%xmm0
movsd  %xmm0,(%rsp)
ucomisd 0xa8b(%rip),%xmm0
jb     12dc <main+0x1bc>
mulsd  0xa85(%rip),%xmm0
movsd  %xmm0,0x8(%rsp)
lea    0xb4f(%rip),%rdi
mov    $0x1,%al
call   1030 <printf@plt>
movsd  0x8(%rsp),%xmm0
mulsd  0xa6b(%rip),%xmm0
addsd  (%rsp),%xmm0
movsd  %xmm0,(%rsp)
ucomisd 0xa61(%rip),%xmm0
jb     12ea <main+0x1ca>
divsd  0xa53(%rip),%xmm0
movsd  %xmm0,0x8(%rsp)
lea    0xb1d(%rip),%rdi
mov    $0x1,%al
call   1030 <printf@plt>
movsd  0x8(%rsp),%xmm0
mulsd  0xa41(%rip),%xmm0
addsd  (%rsp),%xmm0
movsd  %xmm0,(%rsp)
ucomisd 0xa27(%rip),%xmm0
jb     12f8 <main+0x1d8>
divsd  0xa19(%rip),%xmm0
movsd  %xmm0,0x8(%rsp)
lea    0xaeb(%rip),%rdi
mov    $0x1,%al
call   1030 <printf@plt>
movsd  0x8(%rsp),%xmm0
mulsd  0xa07(%rip),%xmm0
addsd  (%rsp),%xmm0
movsd  %xmm0,(%rsp)
ucomisd 0x9fd(%rip),%xmm0
jb     169b <main+0x57b>
lea    0xacb(%rip),%rdi
divsd  0x9ec(%rip),%xmm0
mov    $0x1,%al
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbx
ret
cvttsd2si %xmm0,%eax
cltq
imul   $0x51eb851f,%rax,%rbx
mov    %rbx,%rax
shr    $0x3f,%rax
sar    $0x25,%rbx
add    %eax,%ebx
lea    0xa19(%rip),%rdi
jmp    1418 <main+0x2f8>
cvttsd2si %xmm0,%eax
cltq
imul   $0x51eb851f,%rax,%rbx
mov    %rbx,%rax
shr    $0x3f,%rax
sar    $0x24,%rbx
add    %eax,%ebx
lea    0xa0a(%rip),%rdi
jmp    1468 <main+0x348>
cvttsd2si %xmm0,%eax
cltq
imul   $0x66666667,%rax,%rbx
mov    %rbx,%rax
shr    $0x3f,%rax
sar    $0x23,%rbx
add    %eax,%ebx
lea    0x9ef(%rip),%rdi
jmp    14b8 <main+0x398>
cvttsd2si %xmm0,%eax
cltq
imul   $0x66666667,%rax,%rbx
mov    %rbx,%rax
shr    $0x3f,%rax
sar    $0x22,%rbx
add    %eax,%ebx
lea    0x9d4(%rip),%rdi
jmp    150b <main+0x3eb>
cvttsd2si %xmm0,%eax
cltq
imul   $0x66666667,%rax,%rbx
mov    %rbx,%rax
shr    $0x3f,%rax
sar    $0x21,%rbx
add    %eax,%ebx
lea    0x9b9(%rip),%rdi
jmp    155d <main+0x43d>
cvttsd2si %xmm0,%ebx
lea    0x9b3(%rip),%rdi
jmp    1597 <main+0x477>
mulsd  0x8d7(%rip),%xmm0
movsd  %xmm0,0x8(%rsp)
lea    0x9a3(%rip),%rdi
jmp    15d8 <main+0x4b8>
divsd  0x8cd(%rip),%xmm0
movsd  %xmm0,0x8(%rsp)
lea    0x999(%rip),%rdi
jmp    161a <main+0x4fa>
divsd  0x8bb(%rip),%xmm0
movsd  %xmm0,0x8(%rsp)
lea    0x98f(%rip),%rdi
jmp    165c <main+0x53c>

LLVM IR (-O0):
@.str = [22 x i8] c"Enter a peso amount: \00"
@.str.1 = [4 x i8] c"%lf\00"
@.str.2 = [24 x i8] c"The output is: %.2lf = \00"
@.str.3 = [11 x i8] c"(%d) 1000 \00"
@.str.4 = [10 x i8] c"(%d) 500 \00"
@.str.5 = [12 x i8] c"+ (%d) 500 \00"
@.str.6 = [10 x i8] c"(%d) 200 \00"
@.str.7 = [12 x i8] c"+ (%d) 200 \00"
@.str.8 = [9 x i8] c"(%d) 100\00"
@.str.9 = [12 x i8] c"+ (%d) 100 \00"
@.str.10 = [9 x i8] c"(%d) 50 \00"
@.str.11 = [11 x i8] c"+ (%d) 50 \00"
@.str.12 = [9 x i8] c"(%d) 20 \00"
@.str.13 = [11 x i8] c"+ (%d) 20 \00"
@.str.14 = [9 x i8] c"(%d) 10 \00"
@.str.15 = [11 x i8] c"+ (%d) 10 \00"
@.str.16 = [8 x i8] c"(%d) 5 \00"
@.str.17 = [10 x i8] c"+ (%d) 5 \00"
@.str.18 = [8 x i8] c"(%d) 1 \00"
@.str.19 = [10 x i8] c"+ (%d) 1 \00"
@.str.20 = [14 x i8] c"(%.0lf) 0.25 \00"
@.str.21 = [16 x i8] c"+ (%.0lf) 0.25 \00"
@.str.22 = [14 x i8] c"(%.0lf) 0.10 \00"
@.str.23 = [16 x i8] c"+ (%.0lf) 0.10 \00"
@.str.24 = [14 x i8] c"(%.0lf) 0.05 \00"
@.str.25 = [16 x i8] c"+ (%.0lf) 0.05 \00"
@.str.26 = [14 x i8] c"(%.0lf) 0.01 \00"
@.str.27 = [16 x i8] c"+ (%.0lf) 0.01 \00"
define i32 @main() {
%1 = alloca i32
%2 = alloca double
%3 = alloca double
%4 = alloca double
%5 = alloca double
%6 = alloca double
%7 = alloca i32
%8 = alloca i32
%9 = alloca i32
%10 = alloca i32
%11 = alloca i32
%12 = alloca i32
%13 = alloca i32
%14 = alloca i32
%15 = alloca i32
%16 = alloca i32
store i32 0, i32* %1
store i32 0, i32* %16
%17 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str, i64 0, i64 0))
%18 = call i32 @scanf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), double* %2)
%19 = load double, double* %2
%20 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.2, i64 0, i64 0), double %19)
%21 = load double, double* %2
%22 = fcmp oge double %21, 1.000000e+03
br i1 %22, label %23, label %36
23: ; preds = %0
%24 = load double, double* %2
%25 = fptosi double %24 to i32
%26 = sdiv i32 %25, 1000
store i32 %26, i32* %7
%27 = load i32, i32* %7
%28 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.3, i64 0, i64 0), i32 %27)
%29 = load double, double* %2
%30 = load i32, i32* %7
%31 = mul nsw i32 1000, %30
%32 = sitofp i32 %31 to double
%33 = fsub double %29, %32
store double %33, double* %2
%34 = load i32, i32* %16
%35 = add nsw i32 %34, 1
store i32 %35, i32* %16
br label %36
36: ; preds = %23, %0
%37 = load double, double* %2
%38 = fcmp oge double %37, 5.000000e+02
br i1 %38, label %39, label %59
39: ; preds = %36
%40 = load double, double* %2
%41 = fptosi double %40 to i32
%42 = sdiv i32 %41, 500
store i32 %42, i32* %8
%43 = load i32, i32* %16
%44 = icmp eq i32 %43, 0
br i1 %44, label %45, label %50
45: ; preds = %39
%46 = load i32, i32* %8
%47 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.4, i64 0, i64 0), i32 %46)
%48 = load i32, i32* %16
%49 = add nsw i32 %48, 1
store i32 %49, i32* %16
br label %53
50: ; preds = %39
%51 = load i32, i32* %8
%52 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.5, i64 0, i64 0), i32 %51)
br label %53
53: ; preds = %50, %45
%54 = load double, double* %2
%55 = load i32, i32* %8
%56 = mul nsw i32 500, %55
%57 = sitofp i32 %56 to double
%58 = fsub double %54, %57
store double %58, double* %2
br label %59
59: ; preds = %53, %36
%60 = load double, double* %2
%61 = fcmp oge double %60, 2.000000e+02
br i1 %61, label %62, label %82
62: ; preds = %59
%63 = load double, double* %2
%64 = fptosi double %63 to i32
%65 = sdiv i32 %64, 200
store i32 %65, i32* %9
%66 = load i32, i32* %16
%67 = icmp eq i32 %66, 0
br i1 %67, label %68, label %73
68: ; preds = %62
%69 = load i32, i32* %9
%70 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.6, i64 0, i64 0), i32 %69)
%71 = load i32, i32* %16
%72 = add nsw i32 %71, 1
store i32 %72, i32* %16
br label %76
73: ; preds = %62
%74 = load i32, i32* %9
%75 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.7, i64 0, i64 0), i32 %74)
br label %76
76: ; preds = %73, %68
%77 = load double, double* %2
%78 = load i32, i32* %9
%79 = mul nsw i32 200, %78
%80 = sitofp i32 %79 to double
%81 = fsub double %77, %80
store double %81, double* %2
br label %82
82: ; preds = %76, %59
%83 = load double, double* %2
%84 = fcmp oge double %83, 1.000000e+02
br i1 %84, label %85, label %105
85: ; preds = %82
%86 = load double, double* %2
%87 = fptosi double %86 to i32
%88 = sdiv i32 %87, 100
store i32 %88, i32* %10
%89 = load i32, i32* %16
%90 = icmp eq i32 %89, 0
br i1 %90, label %91, label %96
91: ; preds = %85
%92 = load i32, i32* %10
%93 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.8, i64 0, i64 0), i32 %92)
%94 = load i32, i32* %16
%95 = add nsw i32 %94, 1
store i32 %95, i32* %16
br label %99
96: ; preds = %85
%97 = load i32, i32* %10
%98 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.9, i64 0, i64 0), i32 %97)
br label %99
99: ; preds = %96, %91
%100 = load double, double* %2
%101 = load i32, i32* %10
%102 = mul nsw i32 100, %101
%103 = sitofp i32 %102 to double
%104 = fsub double %100, %103
store double %104, double* %2
br label %105
105: ; preds = %99, %82
%106 = load double, double* %2
%107 = fcmp oge double %106, 5.000000e+01
br i1 %107, label %108, label %128
108: ; preds = %105
%109 = load double, double* %2
%110 = fptosi double %109 to i32
%111 = sdiv i32 %110, 50
store i32 %111, i32* %11
%112 = load i32, i32* %16
%113 = icmp eq i32 %112, 0
br i1 %113, label %114, label %119
114: ; preds = %108
%115 = load i32, i32* %11
%116 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.10, i64 0, i64 0), i32 %115)
%117 = load i32, i32* %16
%118 = add nsw i32 %117, 1
store i32 %118, i32* %16
br label %122
119: ; preds = %108
%120 = load i32, i32* %11
%121 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.11, i64 0, i64 0), i32 %120)
br label %122
122: ; preds = %119, %114
%123 = load double, double* %2
%124 = load i32, i32* %11
%125 = mul nsw i32 50, %124
%126 = sitofp i32 %125 to double
%127 = fsub double %123, %126
store double %127, double* %2
br label %128
128: ; preds = %122, %105
%129 = load double, double* %2
%130 = fcmp oge double %129, 2.000000e+01
br i1 %130, label %131, label %151
131: ; preds = %128
%132 = load double, double* %2
%133 = fptosi double %132 to i32
%134 = sdiv i32 %133, 20
store i32 %134, i32* %12
%135 = load i32, i32* %16
%136 = icmp eq i32 %135, 0
br i1 %136, label %137, label %142
137: ; preds = %131
%138 = load i32, i32* %12
%139 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.12, i64 0, i64 0), i32 %138)
%140 = load i32, i32* %16
%141 = add nsw i32 %140, 1
store i32 %141, i32* %16
br label %145
142: ; preds = %131
%143 = load i32, i32* %12
%144 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.13, i64 0, i64 0), i32 %143)
br label %145
145: ; preds = %142, %137
%146 = load double, double* %2
%147 = load i32, i32* %12
%148 = mul nsw i32 20, %147
%149 = sitofp i32 %148 to double
%150 = fsub double %146, %149
store double %150, double* %2
br label %151
151: ; preds = %145, %128
%152 = load double, double* %2
%153 = fcmp oge double %152, 1.000000e+01
br i1 %153, label %154, label %174
154: ; preds = %151
%155 = load double, double* %2
%156 = fptosi double %155 to i32
%157 = sdiv i32 %156, 10
store i32 %157, i32* %13
%158 = load i32, i32* %16
%159 = icmp eq i32 %158, 0
br i1 %159, label %160, label %165
160: ; preds = %154
%161 = load i32, i32* %13
%162 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.14, i64 0, i64 0), i32 %161)
%163 = load i32, i32* %16
%164 = add nsw i32 %163, 1
store i32 %164, i32* %16
br label %168
165: ; preds = %154
%166 = load i32, i32* %13
%167 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.15, i64 0, i64 0), i32 %166)
br label %168
168: ; preds = %165, %160
%169 = load double, double* %2
%170 = load i32, i32* %13
%171 = mul nsw i32 10, %170
%172 = sitofp i32 %171 to double
%173 = fsub double %169, %172
store double %173, double* %2
br label %174
174: ; preds = %168, %151
%175 = load double, double* %2
%176 = fcmp oge double %175, 5.000000e+00
br i1 %176, label %177, label %197
177: ; preds = %174
%178 = load double, double* %2
%179 = fptosi double %178 to i32
%180 = sdiv i32 %179, 5
store i32 %180, i32* %14
%181 = load i32, i32* %16
%182 = icmp eq i32 %181, 0
br i1 %182, label %183, label %188
183: ; preds = %177
%184 = load i32, i32* %14
%185 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.16, i64 0, i64 0), i32 %184)
%186 = load i32, i32* %16
%187 = add nsw i32 %186, 1
store i32 %187, i32* %16
br label %191
188: ; preds = %177
%189 = load i32, i32* %14
%190 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.17, i64 0, i64 0), i32 %189)
br label %191
191: ; preds = %188, %183
%192 = load double, double* %2
%193 = load i32, i32* %14
%194 = mul nsw i32 5, %193
%195 = sitofp i32 %194 to double
%196 = fsub double %192, %195
store double %196, double* %2
br label %197
197: ; preds = %191, %174
%198 = load double, double* %2
%199 = fcmp oge double %198, 1.000000e+00
br i1 %199, label %200, label %218
200: ; preds = %197
%201 = load double, double* %2
%202 = fptosi double %201 to i32
store i32 %202, i32* %15
%203 = load i32, i32* %16
%204 = icmp eq i32 %203, 0
br i1 %204, label %205, label %210
205: ; preds = %200
%206 = load i32, i32* %15
%207 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.18, i64 0, i64 0), i32 %206)
%208 = load i32, i32* %16
%209 = add nsw i32 %208, 1
store i32 %209, i32* %16
br label %213
210: ; preds = %200
%211 = load i32, i32* %15
%212 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.19, i64 0, i64 0), i32 %211)
br label %213
213: ; preds = %210, %205
%214 = load double, double* %2
%215 = load i32, i32* %15
%216 = sitofp i32 %215 to double
%217 = fsub double %214, %216
store double %217, double* %2
br label %218
218: ; preds = %213, %197
%219 = load double, double* %2
%220 = fcmp oge double %219, 2.500000e-01
br i1 %220, label %221, label %238
221: ; preds = %218
%222 = load double, double* %2
%223 = fdiv double %222, 2.500000e-01
store double %223, double* %3
%224 = load i32, i32* %16
%225 = icmp eq i32 %224, 0
br i1 %225, label %226, label %231
226: ; preds = %221
%227 = load double, double* %3
%228 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.20, i64 0, i64 0), double %227)
%229 = load i32, i32* %16
%230 = add nsw i32 %229, 1
store i32 %230, i32* %16
br label %234
231: ; preds = %221
%232 = load double, double* %3
%233 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.21, i64 0, i64 0), double %232)
br label %234
234: ; preds = %231, %226
%235 = load double, double* %2
%236 = load double, double* %3
%237 = call double @llvm.fmuladd.f64(double -2.500000e-01, double %236, double %235)
store double %237, double* %2
br label %238
238: ; preds = %234, %218
%239 = load double, double* %2
%240 = fcmp oge double %239, 1.000000e-01
br i1 %240, label %241, label %258
241: ; preds = %238
%242 = load double, double* %2
%243 = fdiv double %242, 1.000000e-01
store double %243, double* %4
%244 = load i32, i32* %16
%245 = icmp eq i32 %244, 0
br i1 %245, label %246, label %251
246: ; preds = %241
%247 = load double, double* %4
%248 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.22, i64 0, i64 0), double %247)
%249 = load i32, i32* %16
%250 = add nsw i32 %249, 1
store i32 %250, i32* %16
br label %254
251: ; preds = %241
%252 = load double, double* %4
%253 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.23, i64 0, i64 0), double %252)
br label %254
254: ; preds = %251, %246
%255 = load double, double* %2
%256 = load double, double* %4
%257 = call double @llvm.fmuladd.f64(double -1.000000e-01, double %256, double %255)
store double %257, double* %2
br label %258
258: ; preds = %254, %238
%259 = load double, double* %2
%260 = fcmp oge double %259, 5.000000e-02
br i1 %260, label %261, label %278
261: ; preds = %258
%262 = load double, double* %2
%263 = fdiv double %262, 5.000000e-02
store double %263, double* %5
%264 = load i32, i32* %16
%265 = icmp eq i32 %264, 0
br i1 %265, label %266, label %271
266: ; preds = %261
%267 = load double, double* %5
%268 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.24, i64 0, i64 0), double %267)
%269 = load i32, i32* %16
%270 = add nsw i32 %269, 1
store i32 %270, i32* %16
br label %274
271: ; preds = %261
%272 = load double, double* %5
%273 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.25, i64 0, i64 0), double %272)
br label %274
274: ; preds = %271, %266
%275 = load double, double* %2
%276 = load double, double* %5
%277 = call double @llvm.fmuladd.f64(double -5.000000e-02, double %276, double %275)
store double %277, double* %2
br label %278
278: ; preds = %274, %258
%279 = load double, double* %2
%280 = fcmp oge double %279, 1.000000e-02
br i1 %280, label %281, label %296
281: ; preds = %278
%282 = load double, double* %2
%283 = fdiv double %282, 1.000000e-02
store double %283, double* %6
%284 = load i32, i32* %16
%285 = icmp eq i32 %284, 0
br i1 %285, label %286, label %289
286: ; preds = %281
%287 = load double, double* %6
%288 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.26, i64 0, i64 0), double %287)
br label %292
289: ; preds = %281
%290 = load double, double* %6
%291 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.27, i64 0, i64 0), double %290)
br label %292
292: ; preds = %289, %286
%293 = load double, double* %2
%294 = load double, double* %6
%295 = call double @llvm.fmuladd.f64(double -1.000000e-02, double %294, double %293)
store double %295, double* %2
br label %296
296: ; preds = %292, %278
%297 = load i32, i32* %1
ret i32 %297
}

LLVM IR (-O2):
@.str = [22 x i8] c"Enter a peso amount: \00"
@.str.1 = [4 x i8] c"%lf\00"
@.str.2 = [24 x i8] c"The output is: %.2lf = \00"
@.str.3 = [11 x i8] c"(%d) 1000 \00"
@.str.4 = [10 x i8] c"(%d) 500 \00"
@.str.5 = [12 x i8] c"+ (%d) 500 \00"
@.str.6 = [10 x i8] c"(%d) 200 \00"
@.str.7 = [12 x i8] c"+ (%d) 200 \00"
@.str.8 = [9 x i8] c"(%d) 100\00"
@.str.9 = [12 x i8] c"+ (%d) 100 \00"
@.str.10 = [9 x i8] c"(%d) 50 \00"
@.str.11 = [11 x i8] c"+ (%d) 50 \00"
@.str.12 = [9 x i8] c"(%d) 20 \00"
@.str.13 = [11 x i8] c"+ (%d) 20 \00"
@.str.14 = [9 x i8] c"(%d) 10 \00"
@.str.15 = [11 x i8] c"+ (%d) 10 \00"
@.str.16 = [8 x i8] c"(%d) 5 \00"
@.str.17 = [10 x i8] c"+ (%d) 5 \00"
@.str.18 = [8 x i8] c"(%d) 1 \00"
@.str.19 = [10 x i8] c"+ (%d) 1 \00"
@.str.20 = [14 x i8] c"(%.0lf) 0.25 \00"
@.str.21 = [16 x i8] c"+ (%.0lf) 0.25 \00"
@.str.22 = [14 x i8] c"(%.0lf) 0.10 \00"
@.str.23 = [16 x i8] c"+ (%.0lf) 0.10 \00"
@.str.24 = [14 x i8] c"(%.0lf) 0.05 \00"
@.str.25 = [16 x i8] c"+ (%.0lf) 0.05 \00"
@.str.26 = [14 x i8] c"(%.0lf) 0.01 \00"
@.str.27 = [16 x i8] c"+ (%.0lf) 0.01 \00"
define i32 @main() {
%1 = alloca double
%2 = bitcast double* %1 to i8*
%3 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([22 x i8], [22 x i8]* @.str, i64 0, i64 0))
%4 = call i32 @scanf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), double* %1)
%5 = load double, double* %1
%6 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([24 x i8], [24 x i8]* @.str.2, i64 0, i64 0), double %5)
%7 = load double, double* %1
%8 = fcmp ult double %7, 1.000000e+03
br i1 %8, label %9, label %11
9: ; preds = %0
%10 = fcmp ult double %7, 5.000000e+02
br i1 %10, label %37, label %20
11: ; preds = %0
%12 = fptosi double %7 to i32
%13 = sdiv i32 %12, 1000
%14 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([11 x i8], [11 x i8]* @.str.3, i64 0, i64 0), i32 %13)
%15 = load double, double* %1
%16 = mul nsw i32 %13, 1000
%17 = sitofp i32 %16 to double
%18 = fsub double %15, %17
store double %18, double* %1
%19 = fcmp ult double %18, 5.000000e+02
br i1 %19, label %34, label %24
20: ; preds = %9
%21 = fptosi double %7 to i32
%22 = sdiv i32 %21, 500
%23 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([10 x i8], [10 x i8]* @.str.4, i64 0, i64 0), i32 %22)
br label %28
24: ; preds = %11
%25 = fptosi double %18 to i32
%26 = sdiv i32 %25, 500
%27 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([12 x i8], [12 x i8]* @.str.5, i64 0, i64 0), i32 %26)
br label %28
28: ; preds = %24, %20
%29 = phi i32 [ %26, %24 ], [ %22, %20 ]
%30 = load double, double* %1
%31 = mul nsw i32 %29, 500
%32 = sitofp i32 %31 to double
%33 = fsub double %30, %32
store double %33, double* %1
br label %34
34: ; preds = %11, %28
%35 = phi double [ %18, %11 ], [ %33, %28 ]
%36 = fcmp ult double %35, 2.000000e+02
br i1 %36, label %49, label %43
37: ; preds = %9
%38 = fcmp ult double %7, 2.000000e+02
br i1 %38, label %47, label %39
39: ; preds = %37
%40 = fptosi double %7 to i32
%41 = sdiv i32 %40, 200
%42 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([10 x i8], [10 x i8]* @.str.6, i64 0, i64 0), i32 %41)
br label %51
43: ; preds = %34
%44 = fptosi double %35 to i32
%45 = sdiv i32 %44, 200
%46 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([12 x i8], [12 x i8]* @.str.7, i64 0, i64 0), i32 %45)
br label %51
47: ; preds = %37
%48 = fcmp ult double %7, 1.000000e+02
br i1 %48, label %76, label %58
49: ; preds = %34
%50 = fcmp ult double %35, 1.000000e+02
br i1 %50, label %73, label %62
51: ; preds = %39, %43
%52 = phi i32 [ %45, %43 ], [ %41, %39 ]
%53 = load double, double* %1
%54 = mul nsw i32 %52, 200
%55 = sitofp i32 %54 to double
%56 = fsub double %53, %55
store double %56, double* %1
%57 = fcmp ult double %56, 1.000000e+02
br i1 %57, label %73, label %62
58: ; preds = %47
%59 = fptosi double %7 to i32
%60 = sdiv i32 %59, 100
%61 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([9 x i8], [9 x i8]* @.str.8, i64 0, i64 0), i32 %60)
br label %67
62: ; preds = %51, %49
%63 = phi double [ %35, %49 ], [ %56, %51 ]
%64 = fptosi double %63 to i32
%65 = sdiv i32 %64, 100
%66 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([12 x i8], [12 x i8]* @.str.9, i64 0, i64 0), i32 %65)
br label %67
67: ; preds = %62, %58
%68 = phi i32 [ %65, %62 ], [ %60, %58 ]
%69 = load double, double* %1
%70 = mul nsw i32 %68, 100
%71 = sitofp i32 %70 to double
%72 = fsub double %69, %71
store double %72, double* %1
br label %73
73: ; preds = %49, %51, %67
%74 = phi double [ %56, %51 ], [ %72, %67 ], [ %35, %49 ]
%75 = fcmp ult double %74, 5.000000e+01
br i1 %75, label %88, label %82
76: ; preds = %47
%77 = fcmp ult double %7, 5.000000e+01
br i1 %77, label %86, label %78
78: ; preds = %76
%79 = fptosi double %7 to i32
%80 = sdiv i32 %79, 50
%81 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([9 x i8], [9 x i8]* @.str.10, i64 0, i64 0), i32 %80)
br label %90
82: ; preds = %73
%83 = fptosi double %74 to i32
%84 = sdiv i32 %83, 50
%85 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([11 x i8], [11 x i8]* @.str.11, i64 0, i64 0), i32 %84)
br label %90
86: ; preds = %76
%87 = fcmp ult double %7, 2.000000e+01
br i1 %87, label %115, label %97
88: ; preds = %73
%89 = fcmp ult double %74, 2.000000e+01
br i1 %89, label %112, label %101
90: ; preds = %78, %82
%91 = phi i32 [ %80, %78 ], [ %84, %82 ]
%92 = load double, double* %1
%93 = mul nsw i32 %91, 50
%94 = sitofp i32 %93 to double
%95 = fsub double %92, %94
store double %95, double* %1
%96 = fcmp ult double %95, 2.000000e+01
br i1 %96, label %112, label %101
97: ; preds = %86
%98 = fptosi double %7 to i32
%99 = sdiv i32 %98, 20
%100 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([9 x i8], [9 x i8]* @.str.12, i64 0, i64 0), i32 %99)
br label %106
101: ; preds = %90, %88
%102 = phi double [ %74, %88 ], [ %95, %90 ]
%103 = fptosi double %102 to i32
%104 = sdiv i32 %103, 20
%105 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([11 x i8], [11 x i8]* @.str.13, i64 0, i64 0), i32 %104)
br label %106
106: ; preds = %101, %97
%107 = phi i32 [ %104, %101 ], [ %99, %97 ]
%108 = load double, double* %1
%109 = mul nsw i32 %107, 20
%110 = sitofp i32 %109 to double
%111 = fsub double %108, %110
store double %111, double* %1
br label %112
112: ; preds = %88, %90, %106
%113 = phi double [ %95, %90 ], [ %111, %106 ], [ %74, %88 ]
%114 = fcmp ult double %113, 1.000000e+01
br i1 %114, label %127, label %121
115: ; preds = %86
%116 = fcmp ult double %7, 1.000000e+01
br i1 %116, label %125, label %117
117: ; preds = %115
%118 = fptosi double %7 to i32
%119 = sdiv i32 %118, 10
%120 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([9 x i8], [9 x i8]* @.str.14, i64 0, i64 0), i32 %119)
br label %129
121: ; preds = %112
%122 = fptosi double %113 to i32
%123 = sdiv i32 %122, 10
%124 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([11 x i8], [11 x i8]* @.str.15, i64 0, i64 0), i32 %123)
br label %129
125: ; preds = %115
%126 = fcmp ult double %7, 5.000000e+00
br i1 %126, label %154, label %136
127: ; preds = %112
%128 = fcmp ult double %113, 5.000000e+00
br i1 %128, label %151, label %140
129: ; preds = %117, %121
%130 = phi i32 [ %119, %117 ], [ %123, %121 ]
%131 = load double, double* %1
%132 = mul nsw i32 %130, 10
%133 = sitofp i32 %132 to double
%134 = fsub double %131, %133
store double %134, double* %1
%135 = fcmp ult double %134, 5.000000e+00
br i1 %135, label %151, label %140
136: ; preds = %125
%137 = fptosi double %7 to i32
%138 = sdiv i32 %137, 5
%139 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([8 x i8], [8 x i8]* @.str.16, i64 0, i64 0), i32 %138)
br label %145
140: ; preds = %129, %127
%141 = phi double [ %113, %127 ], [ %134, %129 ]
%142 = fptosi double %141 to i32
%143 = sdiv i32 %142, 5
%144 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([10 x i8], [10 x i8]* @.str.17, i64 0, i64 0), i32 %143)
br label %145
145: ; preds = %140, %136
%146 = phi i32 [ %143, %140 ], [ %138, %136 ]
%147 = load double, double* %1
%148 = mul nsw i32 %146, 5
%149 = sitofp i32 %148 to double
%150 = fsub double %147, %149
store double %150, double* %1
br label %151
151: ; preds = %127, %129, %145
%152 = phi double [ %134, %129 ], [ %150, %145 ], [ %113, %127 ]
%153 = fcmp ult double %152, 1.000000e+00
br i1 %153, label %164, label %159
154: ; preds = %125
%155 = fcmp ult double %7, 1.000000e+00
br i1 %155, label %162, label %156
156: ; preds = %154
%157 = fptosi double %7 to i32
%158 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([8 x i8], [8 x i8]* @.str.18, i64 0, i64 0), i32 %157)
br label %166
159: ; preds = %151
%160 = fptosi double %152 to i32
%161 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([10 x i8], [10 x i8]* @.str.19, i64 0, i64 0), i32 %160)
br label %166
162: ; preds = %154
%163 = fcmp ult double %7, 2.500000e-01
br i1 %163, label %186, label %172
164: ; preds = %151
%165 = fcmp ult double %152, 2.500000e-01
br i1 %165, label %183, label %175
166: ; preds = %156, %159
%167 = phi i32 [ %157, %156 ], [ %160, %159 ]
%168 = load double, double* %1
%169 = sitofp i32 %167 to double
%170 = fsub double %168, %169
store double %170, double* %1
%171 = fcmp ult double %170, 2.500000e-01
br i1 %171, label %183, label %175
172: ; preds = %162
%173 = fmul double %7, 4.000000e+00
%174 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([14 x i8], [14 x i8]* @.str.20, i64 0, i64 0), double %173)
br label %179
175: ; preds = %166, %164
%176 = phi double [ %152, %164 ], [ %170, %166 ]
%177 = fmul double %176, 4.000000e+00
%178 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([16 x i8], [16 x i8]* @.str.21, i64 0, i64 0), double %177)
br label %179
179: ; preds = %175, %172
%180 = phi double [ %177, %175 ], [ %173, %172 ]
%181 = load double, double* %1
%182 = call double @llvm.fmuladd.f64(double %180, double -2.500000e-01, double %181)
store double %182, double* %1
br label %183
183: ; preds = %164, %166, %179
%184 = phi double [ %170, %166 ], [ %182, %179 ], [ %152, %164 ]
%185 = fcmp ult double %184, 1.000000e-01
br i1 %185, label %196, label %191
186: ; preds = %162
%187 = fcmp ult double %7, 1.000000e-01
br i1 %187, label %194, label %188
188: ; preds = %186
%189 = fdiv double %7, 1.000000e-01
%190 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([14 x i8], [14 x i8]* @.str.22, i64 0, i64 0), double %189)
br label %198
191: ; preds = %183
%192 = fdiv double %184, 1.000000e-01
%193 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([16 x i8], [16 x i8]* @.str.23, i64 0, i64 0), double %192)
br label %198
194: ; preds = %186
%195 = fcmp ult double %7, 5.000000e-02
br i1 %195, label %217, label %203
196: ; preds = %183
%197 = fcmp ult double %184, 5.000000e-02
br i1 %197, label %214, label %206
198: ; preds = %188, %191
%199 = phi double [ %189, %188 ], [ %192, %191 ]
%200 = load double, double* %1
%201 = call double @llvm.fmuladd.f64(double %199, double -1.000000e-01, double %200)
store double %201, double* %1
%202 = fcmp ult double %201, 5.000000e-02
br i1 %202, label %214, label %206
203: ; preds = %194
%204 = fdiv double %7, 5.000000e-02
%205 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([14 x i8], [14 x i8]* @.str.24, i64 0, i64 0), double %204)
br label %210
206: ; preds = %198, %196
%207 = phi double [ %184, %196 ], [ %201, %198 ]
%208 = fdiv double %207, 5.000000e-02
%209 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([16 x i8], [16 x i8]* @.str.25, i64 0, i64 0), double %208)
br label %210
210: ; preds = %206, %203
%211 = phi double [ %208, %206 ], [ %204, %203 ]
%212 = load double, double* %1
%213 = call double @llvm.fmuladd.f64(double %211, double -5.000000e-02, double %212)
store double %213, double* %1
br label %214
214: ; preds = %196, %198, %210
%215 = phi double [ %201, %198 ], [ %213, %210 ], [ %184, %196 ]
%216 = fcmp ult double %215, 1.000000e-02
br i1 %216, label %224, label %219
217: ; preds = %194
%218 = fcmp ult double %7, 1.000000e-02
br i1 %218, label %224, label %219
219: ; preds = %214, %217
%220 = phi double [ %7, %217 ], [ %215, %214 ]
%221 = phi i8* [ getelementptr inbounds ([14 x i8], [14 x i8]* @.str.26, i64 0, i64 0), %217 ], [ getelementptr inbounds ([16 x i8], [16 x i8]* @.str.27, i64 0, i64 0), %214 ]
%222 = fdiv double %220, 1.000000e-02
%223 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) %221, double %222)
br label %224
224: ; preds = %217, %219, %214
ret i32 0
}