#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;
  int totalOunce_1 = 0;
  int totalOunce_2 = 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);
  totalOunce_1 /= 10;
  totalOunce_2 /= 10;
  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;
  maxPrice -= (check + check2 - 1) * (totalPrice_1 - 1);
  minPrice = (totalPrice_1 + totalPrice_2 - 2) - maxPrice;
  totalOunce_1++;
  totalOunce_2++;
  check = (totalOunce_1) / (totalOunce_2);
  check2 = (totalOunce_2) / (totalOunce_1);
  check = (check + 2) % (check + 1);
  check2 = (check2 + 2) % (check2 + 1);
  maxOunce = (totalOunce_1 - 1) * check + (totalOunce_2 - 1) * check2;
  maxOunce -= (check + check2 - 1) * (totalOunce_1 - 1);
  minOunce = (totalOunce_1 + totalOunce_2 - 2) - maxOunce;
  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    $0x80,%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)
movl   $0x0,-0x20(%rbp)
movl   $0x0,-0x24(%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)
movl   $0x0,-0x4c(%rbp)
movl   $0x0,-0x50(%rbp)
movb   $0x20,-0x51(%rbp)
movb   $0x20,-0x52(%rbp)
movl   $0x0,-0x58(%rbp)
movl   $0x0,-0x5c(%rbp)
lea    0xe63(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xe8f(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xe9a(%rip),%rdi
movsd  0xe37(%rip),%xmm0
mov    $0x1,%al
call   1040 <printf@plt>
lea    0xe9d(%rip),%rdi
movsd  0xe19(%rip),%xmm0
mov    $0x1,%al
call   1040 <printf@plt>
lea    0xe9b(%rip),%rdi
movsd  0xdfb(%rip),%xmm0
mov    $0x1,%al
call   1040 <printf@plt>
lea    0xe06(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xe8f(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xeba(%rip),%rdi
lea    -0x8(%rbp),%rsi
call   1050 <scanf@plt>
lea    0xead(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xe9c(%rip),%rdi
lea    -0xc(%rbp),%rsi
call   1050 <scanf@plt>
lea    0xec3(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xe7e(%rip),%rdi
lea    -0x10(%rbp),%rsi
call   1050 <scanf@plt>
lea    0xd9e(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
cvtsi2sdl -0x8(%rbp),%xmm0
movsd  -0x30(%rbp),%xmm1
movsd  0xd7c(%rip),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x30(%rbp)
cvtsi2sdl -0xc(%rbp),%xmm0
movsd  -0x30(%rbp),%xmm1
movsd  0xd55(%rip),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x30(%rbp)
cvtsi2sdl -0x10(%rbp),%xmm0
movsd  -0x30(%rbp),%xmm1
movsd  0xd2e(%rip),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x30(%rbp)
lea    0xe72(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xdf5(%rip),%rdi
lea    -0x14(%rbp),%rsi
call   1050 <scanf@plt>
lea    0xe8e(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xdd7(%rip),%rdi
lea    -0x18(%rbp),%rsi
call   1050 <scanf@plt>
lea    0xea5(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xdb9(%rip),%rdi
lea    -0x1c(%rbp),%rsi
call   1050 <scanf@plt>
lea    0xcd9(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
cvtsi2sdl -0x14(%rbp),%xmm0
movsd  -0x38(%rbp),%xmm1
movsd  0xcb7(%rip),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x38(%rbp)
cvtsi2sdl -0x18(%rbp),%xmm0
movsd  -0x38(%rbp),%xmm1
movsd  0xc90(%rip),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x38(%rbp)
cvtsi2sdl -0x1c(%rbp),%xmm0
movsd  -0x38(%rbp),%xmm1
movsd  0xc69(%rip),%xmm2
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x38(%rbp)
mov    -0x8(%rbp),%eax
add    -0xc(%rbp),%eax
add    -0x10(%rbp),%eax
imul   $0xa,%eax,%eax
mov    %eax,-0x20(%rbp)
mov    -0x14(%rbp),%eax
add    -0x18(%rbp),%eax
add    -0x1c(%rbp),%eax
imul   $0xa,%eax,%eax
mov    %eax,-0x24(%rbp)
movsd  -0x30(%rbp),%xmm0
subsd  -0x38(%rbp),%xmm0
movsd  %xmm0,-0x78(%rbp)
movsd  -0x38(%rbp),%xmm0
subsd  -0x30(%rbp),%xmm0
movsd  0xc15(%rip),%xmm1
addsd  %xmm1,%xmm0
cvttsd2si %xmm0,%edi
call   1030 <abs@plt>
movsd  -0x78(%rbp),%xmm0
cvtsi2sd %eax,%xmm1
divsd  %xmm1,%xmm0
cvttsd2si %xmm0,%eax
mov    %eax,-0x58(%rbp)
movsd  -0x30(%rbp),%xmm0
subsd  -0x38(%rbp),%xmm0
movsd  %xmm0,-0x70(%rbp)
movsd  -0x38(%rbp),%xmm0
subsd  -0x30(%rbp),%xmm0
movsd  0xbd3(%rip),%xmm1
subsd  %xmm1,%xmm0
cvttsd2si %xmm0,%edi
call   1030 <abs@plt>
movsd  -0x70(%rbp),%xmm1
cvtsi2sd %eax,%xmm0
divsd  %xmm0,%xmm1
cvtsi2sdl -0x58(%rbp),%xmm0
addsd  %xmm1,%xmm0
cvttsd2si %xmm0,%eax
mov    %eax,-0x58(%rbp)
mov    -0x58(%rbp),%eax
add    $0x3d,%eax
mov    %al,-0x51(%rbp)
mov    -0x20(%rbp),%eax
sub    -0x24(%rbp),%eax
mov    %eax,-0x64(%rbp)
mov    -0x24(%rbp),%edi
sub    -0x20(%rbp),%edi
add    $0x1,%edi
call   1030 <abs@plt>
mov    %eax,%ecx
mov    -0x64(%rbp),%eax
cltd
idiv   %ecx
mov    %eax,-0x58(%rbp)
mov    -0x20(%rbp),%eax
sub    -0x24(%rbp),%eax
mov    %eax,-0x60(%rbp)
mov    -0x24(%rbp),%edi
sub    -0x20(%rbp),%edi
sub    $0x1,%edi
call   1030 <abs@plt>
mov    %eax,%ecx
mov    -0x60(%rbp),%eax
cltd
idiv   %ecx
add    -0x58(%rbp),%eax
mov    %eax,-0x58(%rbp)
mov    -0x58(%rbp),%eax
add    $0x3d,%eax
mov    %al,-0x52(%rbp)
mov    -0x20(%rbp),%eax
mov    $0xa,%ecx
cltd
idiv   %ecx
mov    %eax,-0x20(%rbp)
mov    -0x24(%rbp),%eax
mov    $0xa,%ecx
cltd
idiv   %ecx
mov    %eax,-0x24(%rbp)
movsd  0xb2c(%rip),%xmm0
addsd  -0x30(%rbp),%xmm0
movsd  %xmm0,-0x30(%rbp)
movsd  0xb1a(%rip),%xmm0
addsd  -0x38(%rbp),%xmm0
movsd  %xmm0,-0x38(%rbp)
movsd  -0x30(%rbp),%xmm0
divsd  -0x38(%rbp),%xmm0
cvttsd2si %xmm0,%eax
mov    %eax,-0x58(%rbp)
movsd  -0x38(%rbp),%xmm0
divsd  -0x30(%rbp),%xmm0
cvttsd2si %xmm0,%eax
mov    %eax,-0x5c(%rbp)
mov    -0x58(%rbp),%eax
add    $0x2,%eax
mov    -0x58(%rbp),%ecx
add    $0x1,%ecx
cltd
idiv   %ecx
mov    %edx,-0x58(%rbp)
mov    -0x5c(%rbp),%eax
add    $0x2,%eax
mov    -0x5c(%rbp),%ecx
add    $0x1,%ecx
cltd
idiv   %ecx
mov    %edx,-0x5c(%rbp)
movsd  -0x30(%rbp),%xmm0
movsd  0xabd(%rip),%xmm1
subsd  %xmm1,%xmm0
cvtsi2sdl -0x58(%rbp),%xmm2
movsd  -0x38(%rbp),%xmm1
movsd  0xaa7(%rip),%xmm3
subsd  %xmm3,%xmm1
cvtsi2sdl -0x5c(%rbp),%xmm3
mulsd  %xmm3,%xmm1
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x40(%rbp)
mov    -0x58(%rbp),%eax
add    -0x5c(%rbp),%eax
sub    $0x1,%eax
cvtsi2sd %eax,%xmm0
movsd  -0x30(%rbp),%xmm2
movsd  0xa73(%rip),%xmm1
subsd  %xmm1,%xmm2
movsd  -0x40(%rbp),%xmm1
movq   %xmm0,%rax
movabs $0x8000000000000000,%rcx
xor    %rcx,%rax
movq   %rax,%xmm0
mulsd  %xmm2,%xmm0
addsd  %xmm1,%xmm0
movsd  %xmm0,-0x40(%rbp)
movsd  -0x30(%rbp),%xmm0
addsd  -0x38(%rbp),%xmm0
movsd  0xa2c(%rip),%xmm1
subsd  %xmm1,%xmm0
subsd  -0x40(%rbp),%xmm0
movsd  %xmm0,-0x48(%rbp)
mov    -0x20(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x20(%rbp)
mov    -0x24(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x24(%rbp)
mov    -0x20(%rbp),%eax
cltd
idivl  -0x24(%rbp)
mov    %eax,-0x58(%rbp)
mov    -0x24(%rbp),%eax
cltd
idivl  -0x20(%rbp)
mov    %eax,-0x5c(%rbp)
mov    -0x58(%rbp),%eax
add    $0x2,%eax
mov    -0x58(%rbp),%ecx
add    $0x1,%ecx
cltd
idiv   %ecx
mov    %edx,-0x58(%rbp)
mov    -0x5c(%rbp),%eax
add    $0x2,%eax
mov    -0x5c(%rbp),%ecx
add    $0x1,%ecx
cltd
idiv   %ecx
mov    %edx,-0x5c(%rbp)
mov    -0x20(%rbp),%eax
sub    $0x1,%eax
imul   -0x58(%rbp),%eax
mov    -0x24(%rbp),%ecx
sub    $0x1,%ecx
imul   -0x5c(%rbp),%ecx
add    %ecx,%eax
mov    %eax,-0x4c(%rbp)
mov    -0x58(%rbp),%ecx
add    -0x5c(%rbp),%ecx
sub    $0x1,%ecx
mov    -0x20(%rbp),%eax
sub    $0x1,%eax
imul   %eax,%ecx
mov    -0x4c(%rbp),%eax
sub    %ecx,%eax
mov    %eax,-0x4c(%rbp)
mov    -0x20(%rbp),%eax
add    -0x24(%rbp),%eax
sub    $0x2,%eax
sub    -0x4c(%rbp),%eax
mov    %eax,-0x50(%rbp)
lea    0xa04(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
movsbl -0x51(%rbp),%esi
lea    0xb89(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
movsbl -0x52(%rbp),%esi
lea    0xbac(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0x982(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
movsd  -0x40(%rbp),%xmm0
lea    0xbc4(%rip),%rdi
mov    $0x1,%al
call   1040 <printf@plt>
movsd  -0x48(%rbp),%xmm0
lea    0xbdd(%rip),%rdi
mov    $0x1,%al
call   1040 <printf@plt>
lea    0x94e(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x4c(%rbp),%esi
lea    0xbea(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x50(%rbp),%esi
lea    0xc06(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0x96e(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
xor    %eax,%eax
add    $0x80,%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),%rbx
lea    0x10(%rsp),%rsi
mov    %rbx,%rdi
call   1060 <scanf@plt>
lea    0xee3(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
lea    0xc(%rsp),%rsi
mov    %rbx,%rdi
call   1060 <scanf@plt>
lea    0xefc(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
lea    0x8(%rsp),%rsi
mov    %rbx,%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    %rbx,%rdi
call   1060 <scanf@plt>
lea    0xf0f(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
lea    0x18(%rsp),%rsi
mov    %rbx,%rdi
call   1060 <scanf@plt>
lea    0xf29(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
lea    0x14(%rsp),%rsi
mov    %rbx,%rdi
call   1060 <scanf@plt>
mov    %r14,%rdi
call   1040 <puts@plt>
mov    0x1c(%rsp),%ecx
movd   %ecx,%xmm0
movdqa 0x40(%rsp),%xmm1
punpckldq %xmm0,%xmm1
cvtdq2pd %xmm1,%xmm0
mulpd  0xd53(%rip),%xmm0
pxor   %xmm1,%xmm1
addpd  %xmm0,%xmm1
mov    0x18(%rsp),%edi
movd   %edi,%xmm0
movdqa 0x20(%rsp),%xmm2
punpckldq %xmm0,%xmm2
cvtdq2pd %xmm2,%xmm2
mulpd  0xd3d(%rip),%xmm2
addpd  %xmm1,%xmm2
mov    0x14(%rsp),%r9d
movd   %r9d,%xmm0
movdqa 0x30(%rsp),%xmm1
punpckldq %xmm0,%xmm1
cvtdq2pd %xmm1,%xmm0
mulpd  0xd29(%rip),%xmm0
addpd  %xmm2,%xmm0
mov    0xc(%rsp),%r11d
add    0x10(%rsp),%r11d
mov    0x8(%rsp),%r10d
lea    (%r11,%r10,1),%r15d
lea    (%r15,%r15,1),%eax
lea    (%rax,%rax,4),%eax
add    %ecx,%edi
lea    (%rdi,%r9,1),%r8d
lea    (%r8,%r8,1),%ecx
lea    (%rcx,%rcx,4),%ebp
movapd %xmm0,%xmm2
unpckhpd %xmm0,%xmm2
movapd %xmm0,%xmm3
subsd  %xmm2,%xmm3
subsd  %xmm0,%xmm2
movsd  0xcaa(%rip),%xmm1
addsd  %xmm2,%xmm1
cvttsd2si %xmm1,%ecx
mov    %ecx,%edx
neg    %edx
cmovs  %ecx,%edx
cvtsi2sd %edx,%xmm4
movapd %xmm3,%xmm5
movsd  0xc93(%rip),%xmm1
addsd  %xmm1,%xmm2
cvttsd2si %xmm2,%ecx
divsd  %xmm4,%xmm5
mov    %ecx,%edx
neg    %edx
cmovs  %ecx,%edx
xorps  %xmm2,%xmm2
cvtsi2sd %edx,%xmm2
cvttpd2dq %xmm5,%xmm4
divsd  %xmm2,%xmm3
cvtdq2pd %xmm4,%xmm2
addsd  %xmm3,%xmm2
cvttsd2si %xmm2,%r12d
mov    %eax,%ecx
sub    %ebp,%ecx
sub    %eax,%ebp
mov    %ebp,%eax
or     $0x1,%eax
mov    %eax,%esi
neg    %esi
cmovs  %eax,%esi
mov    %ecx,%eax
cltd
idiv   %esi
mov    %eax,%esi
lea    -0x1(%rbp),%eax
mov    $0x1,%ebx
sub    %ebp,%ebx
test   %ebp,%ebp
cmovg  %eax,%ebx
mov    %ecx,%eax
cltd
idiv   %ebx
mov    %eax,%ebp
addpd  0xc6d(%rip),%xmm0
movapd %xmm0,%xmm3
unpckhpd %xmm0,%xmm3
movapd %xmm0,%xmm2
divsd  %xmm3,%xmm2
cvttsd2si %xmm2,%ecx
add    %esi,%ebp
movapd %xmm3,%xmm2
movapd %xmm3,%xmm4
divsd  %xmm0,%xmm2
cvttsd2si %xmm2,%esi
lea    0x2(%rcx),%eax
add    $0x1,%ecx
cltd
idiv   %ecx
mov    %edx,%ecx
lea    0x2(%rsi),%eax
add    $0x1,%esi
cltd
idiv   %esi
movapd %xmm0,%xmm2
addsd  %xmm1,%xmm2
xorps  %xmm5,%xmm5
cvtsi2sd %ecx,%xmm5
addsd  %xmm3,%xmm1
xorps  %xmm3,%xmm3
cvtsi2sd %edx,%xmm3
mulsd  %xmm1,%xmm3
mulsd  %xmm2,%xmm5
addsd  %xmm3,%xmm5
lea    -0x1(%rcx,%rdx,1),%eax
xorps  %xmm1,%xmm1
cvtsi2sd %eax,%xmm1
mulsd  %xmm2,%xmm1
addsd  %xmm0,%xmm4
addsd  0xbba(%rip),%xmm4
subsd  %xmm1,%xmm5
movsd  %xmm5,0x20(%rsp)
subsd  %xmm5,%xmm4
movapd %xmm4,0x30(%rsp)
lea    0x1(%r10,%r11,1),%ecx
lea    (%r9,%rdi,1),%esi
add    $0x1,%esi
mov    %ecx,%eax
cltd
idiv   %esi
mov    %eax,%edi
mov    %esi,%eax
cltd
idiv   %ecx
mov    %eax,%ecx
lea    0x2(%rdi),%eax
add    $0x1,%edi
cltd
idiv   %edi
mov    %edx,%esi
lea    0x2(%rcx),%eax
add    $0x1,%ecx
cltd
idiv   %ecx
lea    (%rsi,%rdx,1),%eax
imul   %r8d,%edx
neg    %eax
lea    (%rsi,%rax,1),%ebx
add    $0x1,%ebx
imul   %r15d,%ebx
add    %edx,%ebx
add    %r8d,%r15d
sub    %ebx,%r15d
mov    $0xa,%edi
call   1030 <putchar@plt>
add    $0x3d,%r12b
movsbl %r12b,%esi
lea    0xd21(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
add    $0x3d,%bpl
movsbl %bpl,%esi
lea    0xd40(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    %r14,%rdi
call   1040 <puts@plt>
lea    0xd63(%rip),%rdi
movsd  0x20(%rsp),%xmm0
mov    $0x1,%al
call   1050 <printf@plt>
lea    0xd7b(%rip),%rdi
movaps 0x30(%rsp),%xmm0
mov    $0x1,%al
call   1050 <printf@plt>
mov    %r14,%rdi
call   1040 <puts@plt>
lea    0xd8c(%rip),%rdi
mov    %ebx,%esi
xor    %eax,%eax
call   1050 <printf@plt>
lea    0xda9(%rip),%rdi
mov    %r15d,%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 i32
%9 = alloca i32
%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 i32 0, i32* %8
store i32 0, i32* %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
store i32 %69, i32* %8
%70 = load i32, i32* %5
%71 = load i32, i32* %6
%72 = add nsw i32 %70, %71
%73 = load i32, i32* %7
%74 = add nsw i32 %72, %73
%75 = mul nsw i32 %74, 10
store i32 %75, i32* %9
%76 = load double, double* %10
%77 = load double, double* %11
%78 = fsub double %76, %77
%79 = load double, double* %11
%80 = load double, double* %10
%81 = fsub double %79, %80
%82 = fadd double %81, 1.000000e+00
%83 = fptosi double %82 to i32
%84 = call i32 @abs(i32 %83)
%85 = sitofp i32 %84 to double
%86 = fdiv double %78, %85
%87 = fptosi double %86 to i32
store i32 %87, i32* %18
%88 = load double, double* %10
%89 = load double, double* %11
%90 = fsub double %88, %89
%91 = load double, double* %11
%92 = load double, double* %10
%93 = fsub double %91, %92
%94 = fsub double %93, 1.000000e+00
%95 = fptosi double %94 to i32
%96 = call i32 @abs(i32 %95)
%97 = sitofp i32 %96 to double
%98 = fdiv double %90, %97
%99 = load i32, i32* %18
%100 = sitofp i32 %99 to double
%101 = fadd double %100, %98
%102 = fptosi double %101 to i32
store i32 %102, i32* %18
%103 = load i32, i32* %18
%104 = add nsw i32 61, %103
%105 = trunc i32 %104 to i8
store i8 %105, i8* %16
%106 = load i32, i32* %8
%107 = load i32, i32* %9
%108 = sub nsw i32 %106, %107
%109 = load i32, i32* %9
%110 = load i32, i32* %8
%111 = sub nsw i32 %109, %110
%112 = add nsw i32 %111, 1
%113 = call i32 @abs(i32 %112)
%114 = sdiv i32 %108, %113
store i32 %114, i32* %18
%115 = load i32, i32* %8
%116 = load i32, i32* %9
%117 = sub nsw i32 %115, %116
%118 = load i32, i32* %9
%119 = load i32, i32* %8
%120 = sub nsw i32 %118, %119
%121 = sub nsw i32 %120, 1
%122 = call i32 @abs(i32 %121)
%123 = sdiv i32 %117, %122
%124 = load i32, i32* %18
%125 = add nsw i32 %124, %123
store i32 %125, i32* %18
%126 = load i32, i32* %18
%127 = add nsw i32 61, %126
%128 = trunc i32 %127 to i8
store i8 %128, i8* %17
%129 = load i32, i32* %8
%130 = sdiv i32 %129, 10
store i32 %130, i32* %8
%131 = load i32, i32* %9
%132 = sdiv i32 %131, 10
store i32 %132, i32* %9
%133 = load double, double* %10
%134 = fadd double %133, 1.000000e+00
store double %134, double* %10
%135 = load double, double* %11
%136 = fadd double %135, 1.000000e+00
store double %136, double* %11
%137 = load double, double* %10
%138 = load double, double* %11
%139 = fdiv double %137, %138
%140 = fptosi double %139 to i32
store i32 %140, i32* %18
%141 = load double, double* %11
%142 = load double, double* %10
%143 = fdiv double %141, %142
%144 = fptosi double %143 to i32
store i32 %144, i32* %19
%145 = load i32, i32* %18
%146 = add nsw i32 %145, 2
%147 = load i32, i32* %18
%148 = add nsw i32 %147, 1
%149 = srem i32 %146, %148
store i32 %149, i32* %18
%150 = load i32, i32* %19
%151 = add nsw i32 %150, 2
%152 = load i32, i32* %19
%153 = add nsw i32 %152, 1
%154 = srem i32 %151, %153
store i32 %154, i32* %19
%155 = load double, double* %10
%156 = fsub double %155, 1.000000e+00
%157 = load i32, i32* %18
%158 = sitofp i32 %157 to double
%159 = load double, double* %11
%160 = fsub double %159, 1.000000e+00
%161 = load i32, i32* %19
%162 = sitofp i32 %161 to double
%163 = fmul double %160, %162
%164 = call double @llvm.fmuladd.f64(double %156, double %158, double %163)
store double %164, double* %12
%165 = load i32, i32* %18
%166 = load i32, i32* %19
%167 = add nsw i32 %165, %166
%168 = sub nsw i32 %167, 1
%169 = sitofp i32 %168 to double
%170 = load double, double* %10
%171 = fsub double %170, 1.000000e+00
%172 = load double, double* %12
%173 = fneg double %169
%174 = call double @llvm.fmuladd.f64(double %173, double %171, double %172)
store double %174, double* %12
%175 = load double, double* %10
%176 = load double, double* %11
%177 = fadd double %175, %176
%178 = fsub double %177, 2.000000e+00
%179 = load double, double* %12
%180 = fsub double %178, %179
store double %180, double* %13
%181 = load i32, i32* %8
%182 = add nsw i32 %181, 1
store i32 %182, i32* %8
%183 = load i32, i32* %9
%184 = add nsw i32 %183, 1
store i32 %184, i32* %9
%185 = load i32, i32* %8
%186 = load i32, i32* %9
%187 = sdiv i32 %185, %186
store i32 %187, i32* %18
%188 = load i32, i32* %9
%189 = load i32, i32* %8
%190 = sdiv i32 %188, %189
store i32 %190, i32* %19
%191 = load i32, i32* %18
%192 = add nsw i32 %191, 2
%193 = load i32, i32* %18
%194 = add nsw i32 %193, 1
%195 = srem i32 %192, %194
store i32 %195, i32* %18
%196 = load i32, i32* %19
%197 = add nsw i32 %196, 2
%198 = load i32, i32* %19
%199 = add nsw i32 %198, 1
%200 = srem i32 %197, %199
store i32 %200, i32* %19
%201 = load i32, i32* %8
%202 = sub nsw i32 %201, 1
%203 = load i32, i32* %18
%204 = mul nsw i32 %202, %203
%205 = load i32, i32* %9
%206 = sub nsw i32 %205, 1
%207 = load i32, i32* %19
%208 = mul nsw i32 %206, %207
%209 = add nsw i32 %204, %208
store i32 %209, i32* %14
%210 = load i32, i32* %18
%211 = load i32, i32* %19
%212 = add nsw i32 %210, %211
%213 = sub nsw i32 %212, 1
%214 = load i32, i32* %8
%215 = sub nsw i32 %214, 1
%216 = mul nsw i32 %213, %215
%217 = load i32, i32* %14
%218 = sub nsw i32 %217, %216
store i32 %218, i32* %14
%219 = load i32, i32* %8
%220 = load i32, i32* %9
%221 = add nsw i32 %219, %220
%222 = sub nsw i32 %221, 2
%223 = load i32, i32* %14
%224 = sub nsw i32 %222, %223
store i32 %224, i32* %15
%225 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.13, i64 0, i64 0))
%226 = load i8, i8* %16
%227 = sext i8 %226 to i32
%228 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([53 x i8], [53 x i8]* @.str.14, i64 0, i64 0), i32 %227)
%229 = load i8, i8* %17
%230 = sext i8 %229 to i32
%231 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([57 x i8], [57 x i8]* @.str.15, i64 0, i64 0), i32 %230)
%232 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([57 x i8], [57 x i8]* @.str.5, i64 0, i64 0))
%233 = load double, double* %12
%234 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([44 x i8], [44 x i8]* @.str.16, i64 0, i64 0), double %233)
%235 = load double, double* %13
%236 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([44 x i8], [44 x i8]* @.str.17, i64 0, i64 0), double %235)
%237 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([57 x i8], [57 x i8]* @.str.5, i64 0, i64 0))
%238 = load i32, i32* %14
%239 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([45 x i8], [45 x i8]* @.str.18, i64 0, i64 0), i32 %238)
%240 = load i32, i32* %15
%241 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([46 x i8], [46 x i8]* @.str.19, i64 0, i64 0), i32 %240)
%242 = 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 = add nsw i32 %41, %36
%58 = add nsw i32 %57, %46
%59 = mul nsw i32 %58, 10
%60 = extractelement <2 x double> %50, i64 0
%61 = extractelement <2 x double> %50, i64 1
%62 = fsub double %60, %61
%63 = fsub double %61, %60
%64 = fadd double %63, 1.000000e+00
%65 = fptosi double %64 to i32
%66 = call i32 @llvm.abs.i32(i32 %65, i1 true)
%67 = sitofp i32 %66 to double
%68 = fdiv double %62, %67
%69 = fptosi double %68 to i32
%70 = fadd double %63, -1.000000e+00
%71 = fptosi double %70 to i32
%72 = call i32 @llvm.abs.i32(i32 %71, i1 true)
%73 = sitofp i32 %72 to double
%74 = fdiv double %62, %73
%75 = sitofp i32 %69 to double
%76 = fadd double %74, %75
%77 = fptosi double %76 to i32
%78 = sub nsw i32 %56, %59
%79 = sub nsw i32 %59, %56
%80 = or i32 %79, 1
%81 = call i32 @llvm.abs.i32(i32 %80, i1 true)
%82 = sdiv i32 %78, %81
%83 = add nsw i32 %79, -1
%84 = icmp slt i32 %79, 1
%85 = sub i32 1, %79
%86 = select i1 %84, i32 %85, i32 %83
%87 = sdiv i32 %78, %86
%88 = add nsw i32 %87, %82
%89 = fadd <2 x double> %50, <double 1.000000e+00, double 1.000000e+00>
%90 = extractelement <2 x double> %89, i64 0
%91 = extractelement <2 x double> %89, i64 1
%92 = fdiv double %90, %91
%93 = fptosi double %92 to i32
%94 = fdiv double %91, %90
%95 = fptosi double %94 to i32
%96 = add nsw i32 %93, 2
%97 = add nsw i32 %93, 1
%98 = srem i32 %96, %97
%99 = add nsw i32 %95, 2
%100 = add nsw i32 %95, 1
%101 = srem i32 %99, %100
%102 = fadd double %90, -1.000000e+00
%103 = sitofp i32 %98 to double
%104 = fadd double %91, -1.000000e+00
%105 = sitofp i32 %101 to double
%106 = fmul double %104, %105
%107 = call double @llvm.fmuladd.f64(double %102, double %103, double %106)
%108 = add nsw i32 %98, -1
%109 = add i32 %108, %101
%110 = sitofp i32 %109 to double
%111 = fneg double %110
%112 = call double @llvm.fmuladd.f64(double %111, double %102, double %107)
%113 = fadd double %90, %91
%114 = fadd double %113, -2.000000e+00
%115 = fsub double %114, %112
%116 = add nsw i32 %55, 1
%117 = add nsw i32 %58, 1
%118 = sdiv i32 %116, %117
%119 = sdiv i32 %117, %116
%120 = add nsw i32 %118, 2
%121 = add nsw i32 %118, 1
%122 = srem i32 %120, %121
%123 = add nsw i32 %119, 2
%124 = add nsw i32 %119, 1
%125 = srem i32 %123, %124
%126 = mul nsw i32 %125, %58
%127 = add i32 %122, %125
%128 = sub i32 1, %127
%129 = add i32 %128, %122
%130 = mul i32 %129, %55
%131 = add i32 %130, %126
%132 = add i32 %58, %55
%133 = sub i32 %132, %131
%134 = call i32 @putchar(i32 10)
%135 = shl i32 %77, 24
%136 = add i32 %135, 1023410176
%137 = ashr exact i32 %136, 24
%138 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([53 x i8], [53 x i8]* @.str.14, i64 0, i64 0), i32 %137)
%139 = shl i32 %88, 24
%140 = add i32 %139, 1023410176
%141 = ashr exact i32 %140, 24
%142 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([57 x i8], [57 x i8]* @.str.15, i64 0, i64 0), i32 %141)
%143 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([56 x i8], [56 x i8]* @str.25, i64 0, i64 0))
%144 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([44 x i8], [44 x i8]* @.str.16, i64 0, i64 0), double %112)
%145 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([44 x i8], [44 x i8]* @.str.17, i64 0, i64 0), double %115)
%146 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([56 x i8], [56 x i8]* @str.25, i64 0, i64 0))
%147 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([45 x i8], [45 x i8]* @.str.18, i64 0, i64 0), i32 %131)
%148 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([46 x i8], [46 x i8]* @.str.19, i64 0, i64 0), i32 %133)
%149 = call i32 @putchar(i32 10)
ret i32 0
}