#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 abs(int);
int /*<<< orphan*/ printf(char *, ...);
int /*<<< orphan*/ scanf(char *, int *);
int main() {
  int pa_1 = 0;
  int g_1 = 0;
  int pl_1 = 0;
  int pa_2 = 0;
  int g_2 = 0;
  int pl_2 = 0;
  double totalOunce_1 = 0.0;
  double totalOunce_2 = 0.0;
  double totalPrice_1 = 0.0;
  double totalPrice_2 = 0.0;
  double maxPrice = 0.0;
  double minPrice = 0.0;
  int maxOunce = 0;
  int minOunce = 0;
  char price = ' ';
  char ounce = ' ';
  int check = 0;
  int check2 = 0;
  printf("\n-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-\n");
  printf("Current market prices: \n");
  printf("- Palladium $%.2f/ounce\n", 762.00);
  printf("- Gold $%.2f/ounce\n", 1185.10);
  printf("- Platinum $%.2f/ounce\n", 968.00);
  printf("-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-\n");
  printf("Enter the number of Palladium ounces in first purchase: ");
  scanf("%d", &pa_1);
  printf("Enter the number of Gold ounces in first purchase: ");
  scanf("%d", &g_1);
  printf("Enter the number of Platinum ounces in first purchase: ");
  scanf("%d", &pl_1);
  printf("-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-\n");
  totalPrice_1 += pa_1 * 762.00;
  totalPrice_1 += g_1 * 1185.10;
  totalPrice_1 += pl_1 * 968.00;
  printf("Enter the number of Palladium ounces in second purchase: ");
  scanf("%d", &pa_2);
  printf("Enter the number of Gold ounces in second purchase: ");
  scanf("%d", &g_2);
  printf("Enter the number of Platinum ounces in second purchase: ");
  scanf("%d", &pl_2);
  printf("-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-\n");
  totalPrice_2 += pa_2 * 762.00;
  totalPrice_2 += g_2 * 1185.10;
  totalPrice_2 += pl_2 * 968.00;
  totalOunce_1 = (pa_1 + g_1 + pl_1) * 10;
  totalOunce_2 = (pa_2 + g_2 + pl_2) * 10;
  check = (totalPrice_1 - totalPrice_2) / abs(totalPrice_2 - totalPrice_1 + 1);
  check += (totalPrice_1 - totalPrice_2) / abs(totalPrice_2 - totalPrice_1 - 1);
  price = (char)(61 + check);
  check = (totalOunce_1 - totalOunce_2) / abs(totalOunce_2 - totalOunce_1 + 1);
  check += (totalOunce_1 - totalOunce_2) / abs(totalOunce_2 - totalOunce_1 - 1);
  ounce = (char)(61 + check);
  totalPrice_1++;
  totalPrice_2++;
  check = totalPrice_1 / totalPrice_2;
  check2 = totalPrice_2 / totalPrice_1;
  check = (check + 2) % (check + 1);
  check2 = (check2 + 2) % (check2 + 1);
  maxPrice = (totalPrice_1 - 1) * check + (totalPrice_2 - 1) * check2;
  minPrice = (totalPrice_1 - 1) * check2 + (totalPrice_2 - 1) * check;
  maxOunce = maxPrice - (pa_1 * 762.00 + g_1 * 1185.10 + pl_1 * 968.00);
  minOunce = (maxOunce + 2) % (maxOunce + 1);
  maxOunce = (maxOunce + 2) % (maxOunce + 1);
  maxOunce = abs(maxOunce - 1) * (pa_1 + g_1 + pl_1) +
             abs(maxOunce) * (pa_2 + g_2 + pl_2);
  minOunce = abs(minOunce) * (pa_1 + g_1 + pl_1) +
             abs(minOunce - 1) * (pa_2 + g_2 + pl_2);
  printf("\n");
  printf("Cost of first purchase [%c] Cost of second purchase\n", price);
  printf("Ounces of first purchase [%c] Ounces of second purchase\n", ounce);
  printf("-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-\n");
  printf("Cost of the more expensive purchase: $%.2f\n", maxPrice);
  printf("Cost of the less expensive purchase: $%.2f\n", minPrice);
  printf("-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-\n");
  printf("Number of ounces in the larger purchase: %d\n", maxOunce);
  printf("Number of ounces in the smaller purchase: %d\n", minOunce);
  printf("\n");
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x90,%rsp
movl   $0x0,-0x4(%rbp)
movl   $0x0,-0x8(%rbp)
movl   $0x0,-0xc(%rbp)
movl   $0x0,-0x10(%rbp)
movl   $0x0,-0x14(%rbp)
movl   $0x0,-0x18(%rbp)
movl   $0x0,-0x1c(%rbp)
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x28(%rbp)
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x30(%rbp)
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x38(%rbp)
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x40(%rbp)
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x48(%rbp)
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x50(%rbp)
movl   $0x0,-0x54(%rbp)
movl   $0x0,-0x58(%rbp)
movb   $0x20,-0x59(%rbp)
movb   $0x20,-0x5a(%rbp)
movl   $0x0,-0x60(%rbp)
movl   $0x0,-0x64(%rbp)
lea    0xe59(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xe85(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xe90(%rip),%rdi
movsd  0xe1d(%rip),%xmm0
mov    $0x1,%al
call   1040 <printf@plt>
lea    0xe93(%rip),%rdi
movsd  0xe0f(%rip),%xmm0
mov    $0x1,%al
call   1040 <printf@plt>
lea    0xe91(%rip),%rdi
movsd  0xde9(%rip),%xmm0
mov    $0x1,%al
call   1040 <printf@plt>
lea    0xdfc(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xe85(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xeb0(%rip),%rdi
lea    -0x8(%rbp),%rsi
call   1050 <scanf@plt>
lea    0xea3(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xe92(%rip),%rdi
lea    -0xc(%rbp),%rsi
call   1050 <scanf@plt>
lea    0xeb9(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xe74(%rip),%rdi
lea    -0x10(%rbp),%rsi
call   1050 <scanf@plt>
lea    0xd94(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
cvtsi2sdl -0x8(%rbp),%xmm0
movsd  -0x38(%rbp),%xmm1
movsd  0xd62(%rip),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x38(%rbp)
cvtsi2sdl -0xc(%rbp),%xmm0
movsd  -0x38(%rbp),%xmm1
movsd  0xd4b(%rip),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x38(%rbp)
cvtsi2sdl -0x10(%rbp),%xmm0
movsd  -0x38(%rbp),%xmm1
movsd  0xd1c(%rip),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x38(%rbp)
lea    0xe68(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xdeb(%rip),%rdi
lea    -0x14(%rbp),%rsi
call   1050 <scanf@plt>
lea    0xe84(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xdcd(%rip),%rdi
lea    -0x18(%rbp),%rsi
call   1050 <scanf@plt>
lea    0xe9b(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xdaf(%rip),%rdi
lea    -0x1c(%rbp),%rsi
call   1050 <scanf@plt>
lea    0xccf(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
cvtsi2sdl -0x14(%rbp),%xmm0
movsd  -0x40(%rbp),%xmm1
movsd  0xc9d(%rip),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x40(%rbp)
cvtsi2sdl -0x18(%rbp),%xmm0
movsd  -0x40(%rbp),%xmm1
movsd  0xc86(%rip),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x40(%rbp)
cvtsi2sdl -0x1c(%rbp),%xmm0
movsd  -0x40(%rbp),%xmm1
movsd  0xc57(%rip),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x40(%rbp)
mov    -0x8(%rbp),%eax
add    -0xc(%rbp),%eax
add    -0x10(%rbp),%eax
imul   $0xa,%eax,%eax
cvtsi2sd %eax,%xmm0
movsd  %xmm0,-0x28(%rbp)
mov    -0x14(%rbp),%eax
add    -0x18(%rbp),%eax
add    -0x1c(%rbp),%eax
imul   $0xa,%eax,%eax
cvtsi2sd %eax,%xmm0
movsd  %xmm0,-0x30(%rbp)
movsd  -0x38(%rbp),%xmm0
subsd  -0x40(%rbp),%xmm0
movsd  %xmm0,-0x90(%rbp)
ff
movsd  -0x40(%rbp),%xmm0
subsd  -0x38(%rbp),%xmm0
movsd  0xc14(%rip),%xmm1
addsd  %xmm1,%xmm0
cvttsd2si %xmm0,%edi
call   1030 <abs@plt>
movsd  -0x90(%rbp),%xmm0
ff
cvtsi2sd %eax,%xmm1
divsd  %xmm1,%xmm0
cvttsd2si %xmm0,%eax
mov    %eax,-0x60(%rbp)
movsd  -0x38(%rbp),%xmm0
subsd  -0x40(%rbp),%xmm0
movsd  %xmm0,-0x88(%rbp)
ff
movsd  -0x40(%rbp),%xmm0
subsd  -0x38(%rbp),%xmm0
movsd  0xbcc(%rip),%xmm1
subsd  %xmm1,%xmm0
cvttsd2si %xmm0,%edi
call   1030 <abs@plt>
movsd  -0x88(%rbp),%xmm1
ff
cvtsi2sd %eax,%xmm0
divsd  %xmm0,%xmm1
cvtsi2sdl -0x60(%rbp),%xmm0
addsd  %xmm1,%xmm0
cvttsd2si %xmm0,%eax
mov    %eax,-0x60(%rbp)
mov    -0x60(%rbp),%eax
add    $0x3d,%eax
mov    %al,-0x59(%rbp)
movsd  -0x28(%rbp),%xmm0
subsd  -0x30(%rbp),%xmm0
movsd  %xmm0,-0x80(%rbp)
movsd  -0x30(%rbp),%xmm0
subsd  -0x28(%rbp),%xmm0
movsd  0xb75(%rip),%xmm1
addsd  %xmm1,%xmm0
cvttsd2si %xmm0,%edi
call   1030 <abs@plt>
movsd  -0x80(%rbp),%xmm0
cvtsi2sd %eax,%xmm1
divsd  %xmm1,%xmm0
cvttsd2si %xmm0,%eax
mov    %eax,-0x60(%rbp)
movsd  -0x28(%rbp),%xmm0
subsd  -0x30(%rbp),%xmm0
movsd  %xmm0,-0x78(%rbp)
movsd  -0x30(%rbp),%xmm0
subsd  -0x28(%rbp),%xmm0
movsd  0xb33(%rip),%xmm1
subsd  %xmm1,%xmm0
cvttsd2si %xmm0,%edi
call   1030 <abs@plt>
movsd  -0x78(%rbp),%xmm1
cvtsi2sd %eax,%xmm0
divsd  %xmm0,%xmm1
cvtsi2sdl -0x60(%rbp),%xmm0
addsd  %xmm1,%xmm0
cvttsd2si %xmm0,%eax
mov    %eax,-0x60(%rbp)
mov    -0x60(%rbp),%eax
add    $0x3d,%eax
mov    %al,-0x5a(%rbp)
movsd  0xaf8(%rip),%xmm0
addsd  -0x38(%rbp),%xmm0
movsd  %xmm0,-0x38(%rbp)
movsd  0xae6(%rip),%xmm0
addsd  -0x40(%rbp),%xmm0
movsd  %xmm0,-0x40(%rbp)
movsd  -0x38(%rbp),%xmm0
divsd  -0x40(%rbp),%xmm0
cvttsd2si %xmm0,%eax
mov    %eax,-0x60(%rbp)
movsd  -0x40(%rbp),%xmm0
divsd  -0x38(%rbp),%xmm0
cvttsd2si %xmm0,%eax
mov    %eax,-0x64(%rbp)
mov    -0x60(%rbp),%eax
add    $0x2,%eax
mov    -0x60(%rbp),%ecx
add    $0x1,%ecx
cltd
idiv   %ecx
mov    %edx,-0x60(%rbp)
mov    -0x64(%rbp),%eax
add    $0x2,%eax
mov    -0x64(%rbp),%ecx
add    $0x1,%ecx
cltd
idiv   %ecx
mov    %edx,-0x64(%rbp)
movsd  -0x38(%rbp),%xmm0
movsd  0xa89(%rip),%xmm1
subsd  %xmm1,%xmm0
cvtsi2sdl -0x60(%rbp),%xmm2
movsd  -0x40(%rbp),%xmm1
movsd  0xa73(%rip),%xmm3
subsd  %xmm3,%xmm1
cvtsi2sdl -0x64(%rbp),%xmm3
mulsd  %xmm3,%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x48(%rbp)
movsd  -0x38(%rbp),%xmm0
movsd  0xa4c(%rip),%xmm1
subsd  %xmm1,%xmm0
cvtsi2sdl -0x64(%rbp),%xmm2
movsd  -0x40(%rbp),%xmm1
movsd  0xa36(%rip),%xmm3
subsd  %xmm3,%xmm1
cvtsi2sdl -0x60(%rbp),%xmm3
mulsd  %xmm3,%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x50(%rbp)
movsd  -0x48(%rbp),%xmm0
cvtsi2sdl -0x8(%rbp),%xmm2
cvtsi2sdl -0xc(%rbp),%xmm1
movsd  0x9fd(%rip),%xmm3
mulsd  %xmm3,%xmm1
movsd  0x9e9(%rip),%xmm3
mulsd  %xmm3,%xmm2
addsd  %xmm1,%xmm2
cvtsi2sdl -0x10(%rbp),%xmm1
movsd  0x9cc(%rip),%xmm3
mulsd  %xmm3,%xmm1
addsd  %xmm2,%xmm1
subsd  %xmm1,%xmm0
cvttsd2si %xmm0,%eax
mov    %eax,-0x54(%rbp)
mov    -0x54(%rbp),%eax
add    $0x2,%eax
mov    -0x54(%rbp),%ecx
add    $0x1,%ecx
cltd
idiv   %ecx
mov    %edx,-0x58(%rbp)
mov    -0x54(%rbp),%eax
add    $0x2,%eax
mov    -0x54(%rbp),%ecx
add    $0x1,%ecx
cltd
idiv   %ecx
mov    %edx,-0x54(%rbp)
mov    -0x54(%rbp),%edi
sub    $0x1,%edi
call   1030 <abs@plt>
mov    -0x8(%rbp),%ecx
add    -0xc(%rbp),%ecx
add    -0x10(%rbp),%ecx
imul   %ecx,%eax
mov    %eax,-0x6c(%rbp)
mov    -0x54(%rbp),%edi
call   1030 <abs@plt>
mov    %eax,%ecx
mov    -0x6c(%rbp),%eax
mov    -0x14(%rbp),%edx
add    -0x18(%rbp),%edx
add    -0x1c(%rbp),%edx
imul   %edx,%ecx
add    %ecx,%eax
mov    %eax,-0x54(%rbp)
mov    -0x58(%rbp),%edi
call   1030 <abs@plt>
mov    -0x8(%rbp),%ecx
add    -0xc(%rbp),%ecx
add    -0x10(%rbp),%ecx
imul   %ecx,%eax
mov    %eax,-0x68(%rbp)
mov    -0x58(%rbp),%edi
sub    $0x1,%edi
call   1030 <abs@plt>
mov    %eax,%ecx
mov    -0x68(%rbp),%eax
mov    -0x14(%rbp),%edx
add    -0x18(%rbp),%edx
add    -0x1c(%rbp),%edx
imul   %edx,%ecx
add    %ecx,%eax
mov    %eax,-0x58(%rbp)
lea    0x98f(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
movsbl -0x59(%rbp),%esi
lea    0xb14(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
movsbl -0x5a(%rbp),%esi
lea    0xb37(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0x90d(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
movsd  -0x48(%rbp),%xmm0
lea    0xb4f(%rip),%rdi
mov    $0x1,%al
call   1040 <printf@plt>
movsd  -0x50(%rbp),%xmm0
lea    0xb68(%rip),%rdi
mov    $0x1,%al
call   1040 <printf@plt>
lea    0x8d9(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x54(%rbp),%esi
lea    0xb75(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x58(%rbp),%esi
lea    0xb91(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0x8f9(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
xor    %eax,%eax
add    $0x90,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r12
push   %rbx
sub    $0x50,%rsp
movl   $0x0,0x10(%rsp)
movl   $0x0,0xc(%rsp)
movl   $0x0,0x8(%rsp)
movl   $0x0,0x1c(%rsp)
movl   $0x0,0x18(%rsp)
movl   $0x0,0x14(%rsp)
lea    0x11a3(%rip),%rdi
call   1040 <puts@plt>
lea    0x11d0(%rip),%rdi
call   1040 <puts@plt>
lea    0xed5(%rip),%rdi
movsd  0xe5d(%rip),%xmm0
mov    $0x1,%al
call   1050 <printf@plt>
lea    0xed8(%rip),%rdi
movsd  0xe4f(%rip),%xmm0
mov    $0x1,%al
call   1050 <printf@plt>
lea    0xed6(%rip),%rdi
movsd  0xe41(%rip),%xmm0
mov    $0x1,%al
call   1050 <printf@plt>
lea    0x114a(%rip),%r14
mov    %r14,%rdi
call   1040 <puts@plt>
lea    0xec9(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
lea    0xef4(%rip),%rbp
lea    0x10(%rsp),%rsi
mov    %rbp,%rdi
call   1060 <scanf@plt>
lea    0xee3(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
lea    0xc(%rsp),%rsi
mov    %rbp,%rdi
call   1060 <scanf@plt>
lea    0xefc(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
lea    0x8(%rsp),%rsi
mov    %rbp,%rdi
call   1060 <scanf@plt>
mov    %r14,%rdi
call   1040 <puts@plt>
movss  0x10(%rsp),%xmm0
movaps %xmm0,0x40(%rsp)
movss  0xc(%rsp),%xmm0
movaps %xmm0,0x20(%rsp)
movss  0x8(%rsp),%xmm0
movaps %xmm0,0x30(%rsp)
lea    0xef0(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
lea    0x1c(%rsp),%rsi
mov    %rbp,%rdi
call   1060 <scanf@plt>
lea    0xf0f(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
lea    0x18(%rsp),%rsi
mov    %rbp,%rdi
call   1060 <scanf@plt>
lea    0xf29(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
lea    0x14(%rsp),%rsi
mov    %rbp,%rdi
call   1060 <scanf@plt>
mov    %r14,%rdi
call   1040 <puts@plt>
mov    0x1c(%rsp),%eax
movd   %eax,%xmm0
movdqa 0x40(%rsp),%xmm1
punpckldq %xmm0,%xmm1
cvtdq2pd %xmm1,%xmm0
mulpd  0xd53(%rip),%xmm0
pxor   %xmm1,%xmm1
addpd  %xmm0,%xmm1
mov    0x18(%rsp),%esi
movd   %esi,%xmm0
movdqa 0x20(%rsp),%xmm2
punpckldq %xmm0,%xmm2
cvtdq2pd %xmm2,%xmm0
mulpd  0xd3d(%rip),%xmm0
addpd  %xmm1,%xmm0
mov    0x14(%rsp),%ecx
movd   %ecx,%xmm1
movdqa 0x30(%rsp),%xmm2
punpckldq %xmm1,%xmm2
cvtdq2pd %xmm2,%xmm7
mulpd  0xd2b(%rip),%xmm7
addpd  %xmm0,%xmm7
mov    0x10(%rsp),%r9d
mov    0xc(%rsp),%ebp
lea    (%r9,%rbp,1),%edi
mov    0x8(%rsp),%r8d
add    %r8d,%edi
lea    (%rdi,%rdi,1),%edx
lea    (%rdx,%rdx,4),%edx
xorps  %xmm2,%xmm2
cvtsi2sd %edx,%xmm2
add    %eax,%esi
add    %ecx,%esi
lea    (%rsi,%rsi,1),%eax
lea    (%rax,%rax,4),%eax
xorps  %xmm1,%xmm1
cvtsi2sd %eax,%xmm1
movapd %xmm7,%xmm4
unpckhpd %xmm7,%xmm4
movapd %xmm7,%xmm5
subsd  %xmm4,%xmm5
subsd  %xmm7,%xmm4
movsd  0xca0(%rip),%xmm3
movapd %xmm4,%xmm0
addsd  %xmm3,%xmm0
cvttsd2si %xmm0,%eax
mov    %eax,%ecx
neg    %ecx
cmovs  %eax,%ecx
cvtsi2sd %ecx,%xmm6
movsd  0xc89(%rip),%xmm0
addsd  %xmm0,%xmm4
cvttsd2si %xmm4,%eax
movapd %xmm5,%xmm4
divsd  %xmm6,%xmm4
mov    %eax,%ecx
neg    %ecx
cmovs  %eax,%ecx
xorps  %xmm6,%xmm6
cvtsi2sd %ecx,%xmm6
cvttpd2dq %xmm4,%xmm4
divsd  %xmm6,%xmm5
cvtdq2pd %xmm4,%xmm4
addsd  %xmm5,%xmm4
cvttsd2si %xmm4,%r15d
movapd %xmm2,%xmm4
subsd  %xmm1,%xmm4
subsd  %xmm2,%xmm1
addsd  %xmm1,%xmm3
cvttsd2si %xmm3,%eax
mov    %eax,%ecx
neg    %ecx
cmovs  %eax,%ecx
xorps  %xmm2,%xmm2
cvtsi2sd %ecx,%xmm2
movapd %xmm4,%xmm3
addsd  %xmm0,%xmm1
cvttsd2si %xmm1,%eax
divsd  %xmm2,%xmm3
mov    %eax,%ecx
neg    %ecx
cmovs  %eax,%ecx
xorps  %xmm1,%xmm1
cvtsi2sd %ecx,%xmm1
cvttpd2dq %xmm3,%xmm2
divsd  %xmm1,%xmm4
cvtdq2pd %xmm2,%xmm1
addsd  %xmm4,%xmm1
cvttsd2si %xmm1,%r12d
addpd  0xc39(%rip),%xmm7
movapd %xmm7,%xmm1
unpckhpd %xmm7,%xmm1
movapd %xmm7,%xmm2
divsd  %xmm1,%xmm2
cvttsd2si %xmm2,%ecx
movapd %xmm1,%xmm2
divsd  %xmm7,%xmm2
cvttsd2si %xmm2,%ebx
lea    0x2(%rcx),%eax
add    $0x1,%ecx
cltd
idiv   %ecx
mov    %edx,%ecx
lea    0x2(%rbx),%eax
add    $0x1,%ebx
cltd
idiv   %ebx
addsd  %xmm0,%xmm7
xorps  %xmm2,%xmm2
cvtsi2sd %ecx,%xmm2
xorps  %xmm3,%xmm3
cvtsi2sd %edx,%xmm3
addsd  %xmm0,%xmm1
movapd %xmm1,%xmm0
mulsd  %xmm3,%xmm0
movapd %xmm7,%xmm4
mulsd  %xmm2,%xmm4
addsd  %xmm0,%xmm4
movapd %xmm4,0x20(%rsp)
mulsd  %xmm2,%xmm1
mulsd  %xmm3,%xmm7
xorps  %xmm0,%xmm0
cvtsi2sd %r9d,%xmm0
xorps  %xmm2,%xmm2
cvtsi2sd %ebp,%xmm2
mulsd  0xb5e(%rip),%xmm2
mulsd  0xb4e(%rip),%xmm0
addsd  %xmm2,%xmm0
xorps  %xmm2,%xmm2
cvtsi2sd %r8d,%xmm2
mulsd  0xb4a(%rip),%xmm2
addsd  %xmm0,%xmm2
movapd %xmm4,%xmm0
subsd  %xmm2,%xmm0
cvttsd2si %xmm0,%ecx
addsd  %xmm1,%xmm7
movapd %xmm7,0x30(%rsp)
lea    0x2(%rcx),%eax
add    $0x1,%ecx
cltd
idiv   %ecx
lea    -0x1(%rdx),%eax
mov    $0x1,%ebp
sub    %edx,%ebp
test   %edx,%edx
cmovg  %eax,%ebp
mov    %ebp,%eax
imul   %edi,%eax
mov    %edx,%ecx
neg    %ecx
cmovs  %edx,%ecx
mov    %ecx,%ebx
imul   %esi,%ebx
add    %eax,%ebx
imul   %edi,%ecx
imul   %esi,%ebp
add    %ecx,%ebp
mov    $0xa,%edi
call   1030 <putchar@plt>
add    $0x3d,%r15b
movsbl %r15b,%esi
lea    0xcd9(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
add    $0x3d,%r12b
movsbl %r12b,%esi
lea    0xcf8(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    %r14,%rdi
call   1040 <puts@plt>
lea    0xd1b(%rip),%rdi
movaps 0x20(%rsp),%xmm0
mov    $0x1,%al
call   1050 <printf@plt>
lea    0xd34(%rip),%rdi
movaps 0x30(%rsp),%xmm0
mov    $0x1,%al
call   1050 <printf@plt>
mov    %r14,%rdi
call   1040 <puts@plt>
lea    0xd45(%rip),%rdi
mov    %ebx,%esi
xor    %eax,%eax
call   1050 <printf@plt>
lea    0xd62(%rip),%rdi
mov    %ebp,%esi
xor    %eax,%eax
call   1050 <printf@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
xor    %eax,%eax
add    $0x50,%rsp
pop    %rbx
pop    %r12
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [58 x i8] c"\0A-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-\0A\00"
@.str.1 = [25 x i8] c"Current market prices: \0A\00"
@.str.2 = [25 x i8] c"- Palladium $%.2f/ounce\0A\00"
@.str.3 = [20 x i8] c"- Gold $%.2f/ounce\0A\00"
@.str.4 = [24 x i8] c"- Platinum $%.2f/ounce\0A\00"
@.str.5 = [57 x i8] c"-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-\0A\00"
@.str.6 = [57 x i8] c"Enter the number of Palladium ounces in first purchase: \00"
@.str.7 = [3 x i8] c"%d\00"
@.str.8 = [52 x i8] c"Enter the number of Gold ounces in first purchase: \00"
@.str.9 = [56 x i8] c"Enter the number of Platinum ounces in first purchase: \00"
@.str.10 = [58 x i8] c"Enter the number of Palladium ounces in second purchase: \00"
@.str.11 = [53 x i8] c"Enter the number of Gold ounces in second purchase: \00"
@.str.12 = [57 x i8] c"Enter the number of Platinum ounces in second purchase: \00"
@.str.13 = [2 x i8] c"\0A\00"
@.str.14 = [53 x i8] c"Cost of first purchase [%c] Cost of second purchase\0A\00"
@.str.15 = [57 x i8] c"Ounces of first purchase [%c] Ounces of second purchase\0A\00"
@.str.16 = [44 x i8] c"Cost of the more expensive purchase: $%.2f\0A\00"
@.str.17 = [44 x i8] c"Cost of the less expensive purchase: $%.2f\0A\00"
@.str.18 = [45 x i8] c"Number of ounces in the larger purchase: %d\0A\00"
@.str.19 = [46 x i8] c"Number of ounces in the smaller purchase: %d\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
%4 = alloca i32
%5 = alloca i32
%6 = alloca i32
%7 = alloca i32
%8 = alloca double
%9 = alloca double
%10 = alloca double
%11 = alloca double
%12 = alloca double
%13 = alloca double
%14 = alloca i32
%15 = alloca i32
%16 = alloca i8
%17 = alloca i8
%18 = alloca i32
%19 = alloca i32
store i32 0, i32* %1
store i32 0, i32* %2
store i32 0, i32* %3
store i32 0, i32* %4
store i32 0, i32* %5
store i32 0, i32* %6
store i32 0, i32* %7
store double 0.000000e+00, double* %8
store double 0.000000e+00, double* %9
store double 0.000000e+00, double* %10
store double 0.000000e+00, double* %11
store double 0.000000e+00, double* %12
store double 0.000000e+00, double* %13
store i32 0, i32* %14
store i32 0, i32* %15
store i8 32, i8* %16
store i8 32, i8* %17
store i32 0, i32* %18
store i32 0, i32* %19
%20 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([58 x i8], [58 x i8]* @.str, i64 0, i64 0))
%21 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.1, i64 0, i64 0))
%22 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.2, i64 0, i64 0), double 7.620000e+02)
%23 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.3, i64 0, i64 0), double 1.185100e+03)
%24 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.4, i64 0, i64 0), double 9.680000e+02)
%25 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([57 x i8], [57 x i8]* @.str.5, i64 0, i64 0))
%26 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([57 x i8], [57 x i8]* @.str.6, i64 0, i64 0))
%27 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.7, i64 0, i64 0), i32* %2)
%28 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([52 x i8], [52 x i8]* @.str.8, i64 0, i64 0))
%29 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.7, i64 0, i64 0), i32* %3)
%30 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([56 x i8], [56 x i8]* @.str.9, i64 0, i64 0))
%31 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.7, i64 0, i64 0), i32* %4)
%32 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([57 x i8], [57 x i8]* @.str.5, i64 0, i64 0))
%33 = load i32, i32* %2
%34 = sitofp i32 %33 to double
%35 = load double, double* %10
%36 = call double @llvm.fmuladd.f64(double %34, double 7.620000e+02, double %35)
store double %36, double* %10
%37 = load i32, i32* %3
%38 = sitofp i32 %37 to double
%39 = load double, double* %10
%40 = call double @llvm.fmuladd.f64(double %38, double 1.185100e+03, double %39)
store double %40, double* %10
%41 = load i32, i32* %4
%42 = sitofp i32 %41 to double
%43 = load double, double* %10
%44 = call double @llvm.fmuladd.f64(double %42, double 9.680000e+02, double %43)
store double %44, double* %10
%45 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([58 x i8], [58 x i8]* @.str.10, i64 0, i64 0))
%46 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.7, i64 0, i64 0), i32* %5)
%47 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([53 x i8], [53 x i8]* @.str.11, i64 0, i64 0))
%48 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.7, i64 0, i64 0), i32* %6)
%49 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([57 x i8], [57 x i8]* @.str.12, i64 0, i64 0))
%50 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.7, i64 0, i64 0), i32* %7)
%51 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([57 x i8], [57 x i8]* @.str.5, i64 0, i64 0))
%52 = load i32, i32* %5
%53 = sitofp i32 %52 to double
%54 = load double, double* %11
%55 = call double @llvm.fmuladd.f64(double %53, double 7.620000e+02, double %54)
store double %55, double* %11
%56 = load i32, i32* %6
%57 = sitofp i32 %56 to double
%58 = load double, double* %11
%59 = call double @llvm.fmuladd.f64(double %57, double 1.185100e+03, double %58)
store double %59, double* %11
%60 = load i32, i32* %7
%61 = sitofp i32 %60 to double
%62 = load double, double* %11
%63 = call double @llvm.fmuladd.f64(double %61, double 9.680000e+02, double %62)
store double %63, double* %11
%64 = load i32, i32* %2
%65 = load i32, i32* %3
%66 = add nsw i32 %64, %65
%67 = load i32, i32* %4
%68 = add nsw i32 %66, %67
%69 = mul nsw i32 %68, 10
%70 = sitofp i32 %69 to double
store double %70, double* %8
%71 = load i32, i32* %5
%72 = load i32, i32* %6
%73 = add nsw i32 %71, %72
%74 = load i32, i32* %7
%75 = add nsw i32 %73, %74
%76 = mul nsw i32 %75, 10
%77 = sitofp i32 %76 to double
store double %77, double* %9
%78 = load double, double* %10
%79 = load double, double* %11
%80 = fsub double %78, %79
%81 = load double, double* %11
%82 = load double, double* %10
%83 = fsub double %81, %82
%84 = fadd double %83, 1.000000e+00
%85 = fptosi double %84 to i32
%86 = call i32 @abs(i32 %85)
%87 = sitofp i32 %86 to double
%88 = fdiv double %80, %87
%89 = fptosi double %88 to i32
store i32 %89, i32* %18
%90 = load double, double* %10
%91 = load double, double* %11
%92 = fsub double %90, %91
%93 = load double, double* %11
%94 = load double, double* %10
%95 = fsub double %93, %94
%96 = fsub double %95, 1.000000e+00
%97 = fptosi double %96 to i32
%98 = call i32 @abs(i32 %97)
%99 = sitofp i32 %98 to double
%100 = fdiv double %92, %99
%101 = load i32, i32* %18
%102 = sitofp i32 %101 to double
%103 = fadd double %102, %100
%104 = fptosi double %103 to i32
store i32 %104, i32* %18
%105 = load i32, i32* %18
%106 = add nsw i32 61, %105
%107 = trunc i32 %106 to i8
store i8 %107, i8* %16
%108 = load double, double* %8
%109 = load double, double* %9
%110 = fsub double %108, %109
%111 = load double, double* %9
%112 = load double, double* %8
%113 = fsub double %111, %112
%114 = fadd double %113, 1.000000e+00
%115 = fptosi double %114 to i32
%116 = call i32 @abs(i32 %115)
%117 = sitofp i32 %116 to double
%118 = fdiv double %110, %117
%119 = fptosi double %118 to i32
store i32 %119, i32* %18
%120 = load double, double* %8
%121 = load double, double* %9
%122 = fsub double %120, %121
%123 = load double, double* %9
%124 = load double, double* %8
%125 = fsub double %123, %124
%126 = fsub double %125, 1.000000e+00
%127 = fptosi double %126 to i32
%128 = call i32 @abs(i32 %127)
%129 = sitofp i32 %128 to double
%130 = fdiv double %122, %129
%131 = load i32, i32* %18
%132 = sitofp i32 %131 to double
%133 = fadd double %132, %130
%134 = fptosi double %133 to i32
store i32 %134, i32* %18
%135 = load i32, i32* %18
%136 = add nsw i32 61, %135
%137 = trunc i32 %136 to i8
store i8 %137, i8* %17
%138 = load double, double* %10
%139 = fadd double %138, 1.000000e+00
store double %139, double* %10
%140 = load double, double* %11
%141 = fadd double %140, 1.000000e+00
store double %141, double* %11
%142 = load double, double* %10
%143 = load double, double* %11
%144 = fdiv double %142, %143
%145 = fptosi double %144 to i32
store i32 %145, i32* %18
%146 = load double, double* %11
%147 = load double, double* %10
%148 = fdiv double %146, %147
%149 = fptosi double %148 to i32
store i32 %149, i32* %19
%150 = load i32, i32* %18
%151 = add nsw i32 %150, 2
%152 = load i32, i32* %18
%153 = add nsw i32 %152, 1
%154 = srem i32 %151, %153
store i32 %154, i32* %18
%155 = load i32, i32* %19
%156 = add nsw i32 %155, 2
%157 = load i32, i32* %19
%158 = add nsw i32 %157, 1
%159 = srem i32 %156, %158
store i32 %159, i32* %19
%160 = load double, double* %10
%161 = fsub double %160, 1.000000e+00
%162 = load i32, i32* %18
%163 = sitofp i32 %162 to double
%164 = load double, double* %11
%165 = fsub double %164, 1.000000e+00
%166 = load i32, i32* %19
%167 = sitofp i32 %166 to double
%168 = fmul double %165, %167
%169 = call double @llvm.fmuladd.f64(double %161, double %163, double %168)
store double %169, double* %12
%170 = load double, double* %10
%171 = fsub double %170, 1.000000e+00
%172 = load i32, i32* %19
%173 = sitofp i32 %172 to double
%174 = load double, double* %11
%175 = fsub double %174, 1.000000e+00
%176 = load i32, i32* %18
%177 = sitofp i32 %176 to double
%178 = fmul double %175, %177
%179 = call double @llvm.fmuladd.f64(double %171, double %173, double %178)
store double %179, double* %13
%180 = load double, double* %12
%181 = load i32, i32* %2
%182 = sitofp i32 %181 to double
%183 = load i32, i32* %3
%184 = sitofp i32 %183 to double
%185 = fmul double %184, 1.185100e+03
%186 = call double @llvm.fmuladd.f64(double %182, double 7.620000e+02, double %185)
%187 = load i32, i32* %4
%188 = sitofp i32 %187 to double
%189 = call double @llvm.fmuladd.f64(double %188, double 9.680000e+02, double %186)
%190 = fsub double %180, %189
%191 = fptosi double %190 to i32
store i32 %191, i32* %14
%192 = load i32, i32* %14
%193 = add nsw i32 %192, 2
%194 = load i32, i32* %14
%195 = add nsw i32 %194, 1
%196 = srem i32 %193, %195
store i32 %196, i32* %15
%197 = load i32, i32* %14
%198 = add nsw i32 %197, 2
%199 = load i32, i32* %14
%200 = add nsw i32 %199, 1
%201 = srem i32 %198, %200
store i32 %201, i32* %14
%202 = load i32, i32* %14
%203 = sub nsw i32 %202, 1
%204 = call i32 @abs(i32 %203)
%205 = load i32, i32* %2
%206 = load i32, i32* %3
%207 = add nsw i32 %205, %206
%208 = load i32, i32* %4
%209 = add nsw i32 %207, %208
%210 = mul nsw i32 %204, %209
%211 = load i32, i32* %14
%212 = call i32 @abs(i32 %211)
%213 = load i32, i32* %5
%214 = load i32, i32* %6
%215 = add nsw i32 %213, %214
%216 = load i32, i32* %7
%217 = add nsw i32 %215, %216
%218 = mul nsw i32 %212, %217
%219 = add nsw i32 %210, %218
store i32 %219, i32* %14
%220 = load i32, i32* %15
%221 = call i32 @abs(i32 %220)
%222 = load i32, i32* %2
%223 = load i32, i32* %3
%224 = add nsw i32 %222, %223
%225 = load i32, i32* %4
%226 = add nsw i32 %224, %225
%227 = mul nsw i32 %221, %226
%228 = load i32, i32* %15
%229 = sub nsw i32 %228, 1
%230 = call i32 @abs(i32 %229)
%231 = load i32, i32* %5
%232 = load i32, i32* %6
%233 = add nsw i32 %231, %232
%234 = load i32, i32* %7
%235 = add nsw i32 %233, %234
%236 = mul nsw i32 %230, %235
%237 = add nsw i32 %227, %236
store i32 %237, i32* %15
%238 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.13, i64 0, i64 0))
%239 = load i8, i8* %16
%240 = sext i8 %239 to i32
%241 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([53 x i8], [53 x i8]* @.str.14, i64 0, i64 0), i32 %240)
%242 = load i8, i8* %17
%243 = sext i8 %242 to i32
%244 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([57 x i8], [57 x i8]* @.str.15, i64 0, i64 0), i32 %243)
%245 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([57 x i8], [57 x i8]* @.str.5, i64 0, i64 0))
%246 = load double, double* %12
%247 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([44 x i8], [44 x i8]* @.str.16, i64 0, i64 0), double %246)
%248 = load double, double* %13
%249 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([44 x i8], [44 x i8]* @.str.17, i64 0, i64 0), double %248)
%250 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([57 x i8], [57 x i8]* @.str.5, i64 0, i64 0))
%251 = load i32, i32* %14
%252 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([45 x i8], [45 x i8]* @.str.18, i64 0, i64 0), i32 %251)
%253 = load i32, i32* %15
%254 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([46 x i8], [46 x i8]* @.str.19, i64 0, i64 0), i32 %253)
%255 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.13, i64 0, i64 0))
ret i32 0
}

LLVM IR (-O2):
@.str.2 = [25 x i8] c"- Palladium $%.2f/ounce\0A\00"
@.str.3 = [20 x i8] c"- Gold $%.2f/ounce\0A\00"
@.str.4 = [24 x i8] c"- Platinum $%.2f/ounce\0A\00"
@.str.6 = [57 x i8] c"Enter the number of Palladium ounces in first purchase: \00"
@.str.7 = [3 x i8] c"%d\00"
@.str.8 = [52 x i8] c"Enter the number of Gold ounces in first purchase: \00"
@.str.9 = [56 x i8] c"Enter the number of Platinum ounces in first purchase: \00"
@.str.10 = [58 x i8] c"Enter the number of Palladium ounces in second purchase: \00"
@.str.11 = [53 x i8] c"Enter the number of Gold ounces in second purchase: \00"
@.str.12 = [57 x i8] c"Enter the number of Platinum ounces in second purchase: \00"
@.str.14 = [53 x i8] c"Cost of first purchase [%c] Cost of second purchase\0A\00"
@.str.15 = [57 x i8] c"Ounces of first purchase [%c] Ounces of second purchase\0A\00"
@.str.16 = [44 x i8] c"Cost of the more expensive purchase: $%.2f\0A\00"
@.str.17 = [44 x i8] c"Cost of the less expensive purchase: $%.2f\0A\00"
@.str.18 = [45 x i8] c"Number of ounces in the larger purchase: %d\0A\00"
@.str.19 = [46 x i8] c"Number of ounces in the smaller purchase: %d\0A\00"
@str = [57 x i8] c"\0A-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-\00"
@str.20 = [24 x i8] c"Current market prices: \00"
@str.25 = [56 x i8] c"-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
%4 = alloca i32
%5 = alloca i32
%6 = alloca i32
%7 = bitcast i32* %1 to i8*
store i32 0, i32* %1
%8 = bitcast i32* %2 to i8*
store i32 0, i32* %2
%9 = bitcast i32* %3 to i8*
store i32 0, i32* %3
%10 = bitcast i32* %4 to i8*
store i32 0, i32* %4
%11 = bitcast i32* %5 to i8*
store i32 0, i32* %5
%12 = bitcast i32* %6 to i8*
store i32 0, i32* %6
%13 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([57 x i8], [57 x i8]* @str, i64 0, i64 0))
%14 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([24 x i8], [24 x i8]* @str.20, i64 0, i64 0))
%15 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([25 x i8], [25 x i8]* @.str.2, i64 0, i64 0), double 7.620000e+02)
%16 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([20 x i8], [20 x i8]* @.str.3, i64 0, i64 0), double 1.185100e+03)
%17 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([24 x i8], [24 x i8]* @.str.4, i64 0, i64 0), double 9.680000e+02)
%18 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([56 x i8], [56 x i8]* @str.25, i64 0, i64 0))
%19 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([57 x i8], [57 x i8]* @.str.6, i64 0, i64 0))
%20 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.7, i64 0, i64 0), i32* %1)
%21 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([52 x i8], [52 x i8]* @.str.8, i64 0, i64 0))
%22 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.7, i64 0, i64 0), i32* %2)
%23 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([56 x i8], [56 x i8]* @.str.9, i64 0, i64 0))
%24 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.7, i64 0, i64 0), i32* %3)
%25 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([56 x i8], [56 x i8]* @str.25, i64 0, i64 0))
%26 = load i32, i32* %1
%27 = load i32, i32* %2
%28 = load i32, i32* %3
%29 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([58 x i8], [58 x i8]* @.str.10, i64 0, i64 0))
%30 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.7, i64 0, i64 0), i32* %4)
%31 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([53 x i8], [53 x i8]* @.str.11, i64 0, i64 0))
%32 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.7, i64 0, i64 0), i32* %5)
%33 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([57 x i8], [57 x i8]* @.str.12, i64 0, i64 0))
%34 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.7, i64 0, i64 0), i32* %6)
%35 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([56 x i8], [56 x i8]* @str.25, i64 0, i64 0))
%36 = load i32, i32* %4
%37 = insertelement <2 x i32> poison, i32 %26, i64 0
%38 = insertelement <2 x i32> %37, i32 %36, i64 1
%39 = sitofp <2 x i32> %38 to <2 x double>
%40 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %39, <2 x double> <double 7.620000e+02, double 7.620000e+02>, <2 x double> zeroinitializer)
%41 = load i32, i32* %5
%42 = insertelement <2 x i32> poison, i32 %27, i64 0
%43 = insertelement <2 x i32> %42, i32 %41, i64 1
%44 = sitofp <2 x i32> %43 to <2 x double>
%45 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %44, <2 x double> <double 1.185100e+03, double 1.185100e+03>, <2 x double> %40)
%46 = load i32, i32* %6
%47 = insertelement <2 x i32> poison, i32 %28, i64 0
%48 = insertelement <2 x i32> %47, i32 %46, i64 1
%49 = sitofp <2 x i32> %48 to <2 x double>
%50 = call <2 x double> @llvm.fmuladd.v2f64(<2 x double> %49, <2 x double> <double 9.680000e+02, double 9.680000e+02>, <2 x double> %45)
%51 = load i32, i32* %1
%52 = load i32, i32* %2
%53 = add nsw i32 %52, %51
%54 = load i32, i32* %3
%55 = add nsw i32 %53, %54
%56 = mul nsw i32 %55, 10
%57 = sitofp i32 %56 to double
%58 = add nsw i32 %41, %36
%59 = add nsw i32 %58, %46
%60 = mul nsw i32 %59, 10
%61 = sitofp i32 %60 to double
%62 = extractelement <2 x double> %50, i64 0
%63 = extractelement <2 x double> %50, i64 1
%64 = fsub double %62, %63
%65 = fsub double %63, %62
%66 = fadd double %65, 1.000000e+00
%67 = fptosi double %66 to i32
%68 = call i32 @llvm.abs.i32(i32 %67, i1 true)
%69 = sitofp i32 %68 to double
%70 = fdiv double %64, %69
%71 = fptosi double %70 to i32
%72 = fadd double %65, -1.000000e+00
%73 = fptosi double %72 to i32
%74 = call i32 @llvm.abs.i32(i32 %73, i1 true)
%75 = sitofp i32 %74 to double
%76 = fdiv double %64, %75
%77 = sitofp i32 %71 to double
%78 = fadd double %76, %77
%79 = fptosi double %78 to i32
%80 = fsub double %57, %61
%81 = fsub double %61, %57
%82 = fadd double %81, 1.000000e+00
%83 = fptosi double %82 to i32
%84 = call i32 @llvm.abs.i32(i32 %83, i1 true)
%85 = sitofp i32 %84 to double
%86 = fdiv double %80, %85
%87 = fptosi double %86 to i32
%88 = fadd double %81, -1.000000e+00
%89 = fptosi double %88 to i32
%90 = call i32 @llvm.abs.i32(i32 %89, i1 true)
%91 = sitofp i32 %90 to double
%92 = fdiv double %80, %91
%93 = sitofp i32 %87 to double
%94 = fadd double %92, %93
%95 = fptosi double %94 to i32
%96 = fadd <2 x double> %50, <double 1.000000e+00, double 1.000000e+00>
%97 = extractelement <2 x double> %96, i64 0
%98 = extractelement <2 x double> %96, i64 1
%99 = fdiv double %97, %98
%100 = fptosi double %99 to i32
%101 = fdiv double %98, %97
%102 = fptosi double %101 to i32
%103 = add nsw i32 %100, 2
%104 = add nsw i32 %100, 1
%105 = srem i32 %103, %104
%106 = add nsw i32 %102, 2
%107 = add nsw i32 %102, 1
%108 = srem i32 %106, %107
%109 = fadd double %97, -1.000000e+00
%110 = sitofp i32 %105 to double
%111 = fadd double %98, -1.000000e+00
%112 = sitofp i32 %108 to double
%113 = fmul double %111, %112
%114 = call double @llvm.fmuladd.f64(double %109, double %110, double %113)
%115 = fmul double %111, %110
%116 = call double @llvm.fmuladd.f64(double %109, double %112, double %115)
%117 = sitofp i32 %51 to double
%118 = sitofp i32 %52 to double
%119 = fmul double %118, 1.185100e+03
%120 = call double @llvm.fmuladd.f64(double %117, double 7.620000e+02, double %119)
%121 = sitofp i32 %54 to double
%122 = call double @llvm.fmuladd.f64(double %121, double 9.680000e+02, double %120)
%123 = fsub double %114, %122
%124 = fptosi double %123 to i32
%125 = add nsw i32 %124, 2
%126 = add nsw i32 %124, 1
%127 = srem i32 %125, %126
%128 = add nsw i32 %127, -1
%129 = icmp slt i32 %127, 1
%130 = sub nsw i32 1, %127
%131 = select i1 %129, i32 %130, i32 %128
%132 = mul nsw i32 %131, %55
%133 = call i32 @llvm.abs.i32(i32 %127, i1 true)
%134 = mul nsw i32 %133, %59
%135 = add nsw i32 %132, %134
%136 = mul nsw i32 %133, %55
%137 = mul nsw i32 %131, %59
%138 = add nsw i32 %137, %136
%139 = call i32 @putchar(i32 10)
%140 = shl i32 %79, 24
%141 = add i32 %140, 1023410176
%142 = ashr exact i32 %141, 24
%143 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([53 x i8], [53 x i8]* @.str.14, i64 0, i64 0), i32 %142)
%144 = shl i32 %95, 24
%145 = add i32 %144, 1023410176
%146 = ashr exact i32 %145, 24
%147 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([57 x i8], [57 x i8]* @.str.15, i64 0, i64 0), i32 %146)
%148 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([56 x i8], [56 x i8]* @str.25, i64 0, i64 0))
%149 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([44 x i8], [44 x i8]* @.str.16, i64 0, i64 0), double %114)
%150 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([44 x i8], [44 x i8]* @.str.17, i64 0, i64 0), double %116)
%151 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([56 x i8], [56 x i8]* @str.25, i64 0, i64 0))
%152 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([45 x i8], [45 x i8]* @.str.18, i64 0, i64 0), i32 %135)
%153 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([46 x i8], [46 x i8]* @.str.19, i64 0, i64 0), i32 %138)
%154 = call i32 @putchar(i32 10)
ret i32 0
}