#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 */
double acos(float);
int /*<<< orphan*/ printf(char *, ...);
scalar_t__ round(float);
int /*<<< orphan*/ scanf(char *, float *);
float sqrt(float);
int main(int argc, char *argv[]) {
  printf("Specify the points of a triangle to find its angles.\n\n");
  float Axcoord, Aycoord;
  printf("What is the x-coordinate of Point A?\n");
  scanf(" %f", &Axcoord);
  printf("What is the y-coordinate of Point A?\n");
  scanf(" %f", &Aycoord);
  float Bxcoord, Bycoord;
  printf("What is the x-coordinate of Point B?\n");
  scanf(" %f", &Bxcoord);
  printf("What is the y-coordinate of Point B?\n");
  scanf(" %f", &Bycoord);
  float Cxcoord, Cycoord;
  printf("What is the x-coordinate of Point C?\n");
  scanf(" %f", &Cxcoord);
  printf("What is the y-coordinate of Point C?\n");
  scanf(" %f", &Cycoord);
  float distAB = sqrt(((Axcoord - Bxcoord) * (Axcoord - Bxcoord)) +
                      ((Aycoord - Bycoord) * (Aycoord - Bycoord)));
  float distBC = sqrt(((Bxcoord - Cxcoord) * (Bxcoord - Cxcoord)) +
                      ((Bycoord - Cycoord) * (Bycoord - Cycoord)));
  float distAC = sqrt(((Axcoord - Cxcoord) * (Axcoord - Cxcoord)) +
                      ((Aycoord - Cycoord) * (Aycoord - Cycoord)));
  float angleA =
      acos(((distAB * distAB) + (distAC * distAC) - (distBC * distBC)) /
           (2 * distAB * distAC)) *
      57.2957795;
  float angleB =
      acos(((distBC * distBC) + (distAB * distAB) - (distAC * distAC)) /
           (2 * distBC * distAB)) *
      57.2957795;
  float angleC =
      acos(((distBC * distBC) + (distAC * distAC) - (distAB * distAB)) /
           (2 * distBC * distAC)) *
      57.2957795;
  float perimeter = distAB + distBC + distAC;
  float area = sqrt((perimeter / 2) * ((perimeter / 2) - distBC) *
                    ((perimeter / 2) - distAC) * ((perimeter / 2) - distAB));
  printf("Point A: (%.3f, %.3f)\n", Axcoord, Aycoord);
  printf("Point B: (%.3f, %.3f)\n", Bxcoord, Bycoord);
  printf("Point C: (%.3f, %.3f)\n", Cxcoord, Cycoord);
  printf("Distance from A-B: %.3f\n", (float)round((distAB * 100) / 100));
  printf("Distance from B-C: %.3f\n", (float)round((distBC * 100) / 100));
  printf("Distance from A-C: %.3f\n", (float)round((distAC * 100) / 100));
  printf("Perimeter: %.3f\n", (float)round((perimeter * 100) / 100));
  printf("Area: %.3f\n", (float)round((area * 100) / 100));
  printf("Angle A: %.3f degrees\n", (float)round((angleA * 100) / 100));
  printf("Angle B: %.3f degrees\n", (float)round((angleB * 100) / 100));
  printf("Angle C: %.3f degrees\n", (float)round((angleC * 100) / 100));
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x50,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
lea    0xea3(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xecc(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xee4(%rip),%rdi
lea    -0x14(%rbp),%rsi
call   1050 <scanf@plt>
lea    0xed8(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xec6(%rip),%rdi
lea    -0x18(%rbp),%rsi
call   1050 <scanf@plt>
lea    0xee0(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xea8(%rip),%rdi
lea    -0x1c(%rbp),%rsi
call   1050 <scanf@plt>
lea    0xee8(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xe8a(%rip),%rdi
lea    -0x20(%rbp),%rsi
call   1050 <scanf@plt>
lea    0xef0(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xe6c(%rip),%rdi
lea    -0x24(%rbp),%rsi
call   1050 <scanf@plt>
lea    0xef8(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xe4e(%rip),%rdi
lea    -0x28(%rbp),%rsi
call   1050 <scanf@plt>
movss  -0x14(%rbp),%xmm0
subss  -0x1c(%rbp),%xmm0
movss  -0x14(%rbp),%xmm2
subss  -0x1c(%rbp),%xmm2
movss  -0x18(%rbp),%xmm1
subss  -0x20(%rbp),%xmm1
movss  -0x18(%rbp),%xmm3
subss  -0x20(%rbp),%xmm3
mulss  %xmm3,%xmm1
mulss  %xmm2,%xmm0
addss  %xmm1,%xmm0
call   1070 <sqrt@plt>
movss  %xmm0,-0x2c(%rbp)
movss  -0x1c(%rbp),%xmm0
subss  -0x24(%rbp),%xmm0
movss  -0x1c(%rbp),%xmm2
subss  -0x24(%rbp),%xmm2
movss  -0x20(%rbp),%xmm1
subss  -0x28(%rbp),%xmm1
movss  -0x20(%rbp),%xmm3
subss  -0x28(%rbp),%xmm3
mulss  %xmm3,%xmm1
mulss  %xmm2,%xmm0
addss  %xmm1,%xmm0
call   1070 <sqrt@plt>
movss  %xmm0,-0x30(%rbp)
movss  -0x14(%rbp),%xmm0
subss  -0x24(%rbp),%xmm0
movss  -0x14(%rbp),%xmm2
subss  -0x24(%rbp),%xmm2
movss  -0x18(%rbp),%xmm1
subss  -0x28(%rbp),%xmm1
movss  -0x18(%rbp),%xmm3
subss  -0x28(%rbp),%xmm3
mulss  %xmm3,%xmm1
mulss  %xmm2,%xmm0
addss  %xmm1,%xmm0
call   1070 <sqrt@plt>
movss  %xmm0,-0x34(%rbp)
movss  -0x2c(%rbp),%xmm1
movss  -0x2c(%rbp),%xmm2
movss  -0x34(%rbp),%xmm0
mulss  -0x34(%rbp),%xmm0
mulss  %xmm2,%xmm1
addss  %xmm0,%xmm1
movss  -0x30(%rbp),%xmm0
movss  -0x30(%rbp),%xmm2
movd   %xmm0,%eax
xor    $0x80000000,%eax
movd   %eax,%xmm0
mulss  %xmm2,%xmm0
addss  %xmm1,%xmm0
movss  0xcdf(%rip),%xmm1
mulss  -0x2c(%rbp),%xmm1
mulss  -0x34(%rbp),%xmm1
divss  %xmm1,%xmm0
call   1040 <acos@plt>
movsd  0xcc8(%rip),%xmm1
mulsd  %xmm1,%xmm0
cvtsd2ss %xmm0,%xmm0
movss  %xmm0,-0x38(%rbp)
movss  -0x30(%rbp),%xmm1
movss  -0x30(%rbp),%xmm2
movss  -0x2c(%rbp),%xmm0
mulss  -0x2c(%rbp),%xmm0
mulss  %xmm2,%xmm1
addss  %xmm0,%xmm1
movss  -0x34(%rbp),%xmm0
movss  -0x34(%rbp),%xmm2
movd   %xmm0,%eax
xor    $0x80000000,%eax
movd   %eax,%xmm0
mulss  %xmm2,%xmm0
addss  %xmm1,%xmm0
movss  0xc74(%rip),%xmm1
mulss  -0x30(%rbp),%xmm1
mulss  -0x2c(%rbp),%xmm1
divss  %xmm1,%xmm0
call   1040 <acos@plt>
movsd  0xc5d(%rip),%xmm1
mulsd  %xmm1,%xmm0
cvtsd2ss %xmm0,%xmm0
movss  %xmm0,-0x3c(%rbp)
movss  -0x30(%rbp),%xmm1
movss  -0x30(%rbp),%xmm2
movss  -0x34(%rbp),%xmm0
mulss  -0x34(%rbp),%xmm0
mulss  %xmm2,%xmm1
addss  %xmm0,%xmm1
movss  -0x2c(%rbp),%xmm0
movss  -0x2c(%rbp),%xmm2
movd   %xmm0,%eax
xor    $0x80000000,%eax
movd   %eax,%xmm0
mulss  %xmm2,%xmm0
addss  %xmm1,%xmm0
movss  0xc09(%rip),%xmm1
mulss  -0x30(%rbp),%xmm1
mulss  -0x34(%rbp),%xmm1
divss  %xmm1,%xmm0
call   1040 <acos@plt>
movsd  0xbf2(%rip),%xmm1
mulsd  %xmm1,%xmm0
cvtsd2ss %xmm0,%xmm0
movss  %xmm0,-0x40(%rbp)
movss  -0x2c(%rbp),%xmm0
addss  -0x30(%rbp),%xmm0
addss  -0x34(%rbp),%xmm0
movss  %xmm0,-0x44(%rbp)
movss  -0x44(%rbp),%xmm0
movss  0xbc0(%rip),%xmm1
divss  %xmm1,%xmm0
movss  -0x44(%rbp),%xmm1
movss  0xbaf(%rip),%xmm2
divss  %xmm2,%xmm1
subss  -0x30(%rbp),%xmm1
mulss  %xmm1,%xmm0
movss  -0x44(%rbp),%xmm1
movss  0xb95(%rip),%xmm2
divss  %xmm2,%xmm1
subss  -0x34(%rbp),%xmm1
mulss  %xmm1,%xmm0
movss  -0x44(%rbp),%xmm1
movss  0xb7b(%rip),%xmm2
divss  %xmm2,%xmm1
subss  -0x2c(%rbp),%xmm1
mulss  %xmm1,%xmm0
call   1070 <sqrt@plt>
movss  %xmm0,-0x48(%rbp)
movss  -0x14(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
movss  -0x18(%rbp),%xmm1
cvtss2sd %xmm1,%xmm1
lea    0xc76(%rip),%rdi
mov    $0x2,%al
call   1030 <printf@plt>
movss  -0x1c(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
movss  -0x20(%rbp),%xmm1
cvtss2sd %xmm1,%xmm1
lea    0xc6d(%rip),%rdi
mov    $0x2,%al
call   1030 <printf@plt>
movss  -0x24(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
movss  -0x28(%rbp),%xmm1
cvtss2sd %xmm1,%xmm1
lea    0xc64(%rip),%rdi
mov    $0x2,%al
call   1030 <printf@plt>
movss  0xaf8(%rip),%xmm0
mulss  -0x2c(%rbp),%xmm0
movss  0xaeb(%rip),%xmm1
divss  %xmm1,%xmm0
call   1060 <round@plt>
cvtsi2ss %rax,%xmm0
cvtss2sd %xmm0,%xmm0
lea    0xc46(%rip),%rdi
mov    $0x1,%al
call   1030 <printf@plt>
movss  0xac3(%rip),%xmm0
mulss  -0x30(%rbp),%xmm0
movss  0xab6(%rip),%xmm1
divss  %xmm1,%xmm0
call   1060 <round@plt>
cvtsi2ss %rax,%xmm0
cvtss2sd %xmm0,%xmm0
lea    0xc2a(%rip),%rdi
mov    $0x1,%al
call   1030 <printf@plt>
movss  0xa8e(%rip),%xmm0
mulss  -0x34(%rbp),%xmm0
movss  0xa81(%rip),%xmm1
divss  %xmm1,%xmm0
call   1060 <round@plt>
cvtsi2ss %rax,%xmm0
cvtss2sd %xmm0,%xmm0
lea    0xc0e(%rip),%rdi
mov    $0x1,%al
call   1030 <printf@plt>
movss  0xa59(%rip),%xmm0
mulss  -0x44(%rbp),%xmm0
movss  0xa4c(%rip),%xmm1
divss  %xmm1,%xmm0
call   1060 <round@plt>
cvtsi2ss %rax,%xmm0
cvtss2sd %xmm0,%xmm0
lea    0xbf2(%rip),%rdi
mov    $0x1,%al
call   1030 <printf@plt>
movss  0xa24(%rip),%xmm0
mulss  -0x48(%rbp),%xmm0
movss  0xa17(%rip),%xmm1
divss  %xmm1,%xmm0
call   1060 <round@plt>
cvtsi2ss %rax,%xmm0
cvtss2sd %xmm0,%xmm0
lea    0xbce(%rip),%rdi
mov    $0x1,%al
call   1030 <printf@plt>
movss  0x9ef(%rip),%xmm0
mulss  -0x38(%rbp),%xmm0
movss  0x9e2(%rip),%xmm1
divss  %xmm1,%xmm0
call   1060 <round@plt>
cvtsi2ss %rax,%xmm0
cvtss2sd %xmm0,%xmm0
lea    0xba5(%rip),%rdi
mov    $0x1,%al
call   1030 <printf@plt>
movss  0x9ba(%rip),%xmm0
mulss  -0x3c(%rbp),%xmm0
movss  0x9ad(%rip),%xmm1
divss  %xmm1,%xmm0
call   1060 <round@plt>
cvtsi2ss %rax,%xmm0
cvtss2sd %xmm0,%xmm0
lea    0xb87(%rip),%rdi
mov    $0x1,%al
call   1030 <printf@plt>
movss  0x985(%rip),%xmm0
mulss  -0x40(%rbp),%xmm0
movss  0x978(%rip),%xmm1
divss  %xmm1,%xmm0
call   1060 <round@plt>
cvtsi2ss %rax,%xmm0
cvtss2sd %xmm0,%xmm0
lea    0xb69(%rip),%rdi
mov    $0x1,%al
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x50,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbx
sub    $0x40,%rsp
lea    0xf9e(%rip),%rdi
call   1030 <puts@plt>
lea    0xfc8(%rip),%rdi
call   1030 <puts@plt>
lea    0xe90(%rip),%rbx
lea    0x30(%rsp),%rsi
mov    %rbx,%rdi
call   1060 <scanf@plt>
lea    0xfcd(%rip),%rdi
call   1030 <puts@plt>
lea    0x2c(%rsp),%rsi
mov    %rbx,%rdi
call   1060 <scanf@plt>
lea    0xfd9(%rip),%rdi
call   1030 <puts@plt>
lea    0x28(%rsp),%rsi
mov    %rbx,%rdi
call   1060 <scanf@plt>
lea    0xfe5(%rip),%rdi
call   1030 <puts@plt>
lea    0x24(%rsp),%rsi
mov    %rbx,%rdi
call   1060 <scanf@plt>
lea    0xff1(%rip),%rdi
call   1030 <puts@plt>
lea    0x20(%rsp),%rsi
mov    %rbx,%rdi
call   1060 <scanf@plt>
lea    0xffd(%rip),%rdi
call   1030 <puts@plt>
lea    0x1c(%rsp),%rsi
mov    %rbx,%rdi
call   1060 <scanf@plt>
movss  0x30(%rsp),%xmm0
subss  0x28(%rsp),%xmm0
movss  0x2c(%rsp),%xmm1
subss  0x24(%rsp),%xmm1
mulss  %xmm1,%xmm1
mulss  %xmm0,%xmm0
addss  %xmm1,%xmm0
xorps  %xmm2,%xmm2
ucomiss %xmm2,%xmm0
jb     1240 <main+0xe0>
sqrtss %xmm0,%xmm0
jmp    1248 <main+0xe8>
call   1080 <sqrt@plt>
xorps  %xmm2,%xmm2
movss  %xmm0,0xc(%rsp)
movss  0x28(%rsp),%xmm0
subss  0x20(%rsp),%xmm0
movss  0x24(%rsp),%xmm1
subss  0x1c(%rsp),%xmm1
mulss  %xmm1,%xmm1
mulss  %xmm0,%xmm0
addss  %xmm1,%xmm0
ucomiss %xmm2,%xmm0
jb     127d <main+0x11d>
sqrtss %xmm0,%xmm0
jmp    1282 <main+0x122>
call   1080 <sqrt@plt>
movss  %xmm0,0x8(%rsp)
movss  0x30(%rsp),%xmm0
subss  0x20(%rsp),%xmm0
movss  0x2c(%rsp),%xmm1
subss  0x1c(%rsp),%xmm1
mulss  %xmm1,%xmm1
mulss  %xmm0,%xmm0
addss  %xmm1,%xmm0
xorps  %xmm1,%xmm1
ucomiss %xmm1,%xmm0
jb     12ba <main+0x15a>
sqrtss %xmm0,%xmm0
jmp    12bf <main+0x15f>
call   1080 <sqrt@plt>
movaps %xmm0,%xmm3
mulss  %xmm0,%xmm3
movss  %xmm3,0x10(%rsp)
movss  0xc(%rsp),%xmm1
movaps %xmm1,%xmm4
mulss  %xmm1,%xmm4
movss  %xmm4,0x14(%rsp)
movaps %xmm0,%xmm2
movss  %xmm0,0x18(%rsp)
movaps %xmm4,%xmm0
addss  %xmm3,%xmm0
movss  0x8(%rsp),%xmm3
mulss  %xmm3,%xmm3
movss  %xmm3,0x4(%rsp)
subss  %xmm3,%xmm0
addss  %xmm1,%xmm1
mulss  %xmm2,%xmm1
divss  %xmm1,%xmm0
call   1050 <acos@plt>
mulsd  0xce4(%rip),%xmm0
cvtsd2ss %xmm0,%xmm0
movss  %xmm0,0x3c(%rsp)
movss  0x4(%rsp),%xmm0
addss  0x14(%rsp),%xmm0
subss  0x10(%rsp),%xmm0
movss  0x8(%rsp),%xmm2
addss  %xmm2,%xmm2
movss  %xmm2,0x34(%rsp)
movss  0xc(%rsp),%xmm1
mulss  %xmm2,%xmm1
divss  %xmm1,%xmm0
call   1050 <acos@plt>
mulsd  0xc9d(%rip),%xmm0
cvtsd2ss %xmm0,%xmm0
movss  %xmm0,0x38(%rsp)
movss  0x4(%rsp),%xmm0
addss  0x10(%rsp),%xmm0
subss  0x14(%rsp),%xmm0
movss  0x34(%rsp),%xmm1
mulss  0x18(%rsp),%xmm1
divss  %xmm1,%xmm0
call   1050 <acos@plt>
mulsd  0xc64(%rip),%xmm0
cvtsd2ss %xmm0,%xmm0
movss  %xmm0,0x14(%rsp)
movss  0xc(%rsp),%xmm4
movaps %xmm4,%xmm1
movss  0x8(%rsp),%xmm2
addss  %xmm2,%xmm1
movss  0x18(%rsp),%xmm3
addss  %xmm3,%xmm1
movss  0xc3d(%rip),%xmm0
movss  %xmm1,0x10(%rsp)
mulss  %xmm1,%xmm0
movaps %xmm0,%xmm1
subss  %xmm2,%xmm1
mulss  %xmm0,%xmm1
movaps %xmm0,%xmm2
subss  %xmm3,%xmm2
mulss  %xmm1,%xmm2
subss  %xmm4,%xmm0
mulss  %xmm2,%xmm0
ucomiss 0xc16(%rip),%xmm0
jb     1402 <main+0x2a2>
sqrtss %xmm0,%xmm0
jmp    1407 <main+0x2a7>
call   1080 <sqrt@plt>
movss  %xmm0,0x4(%rsp)
movss  0x30(%rsp),%xmm0
cvtss2sd %xmm0,%xmm0
movss  0x2c(%rsp),%xmm1
cvtss2sd %xmm1,%xmm1
lea    0xbf0(%rip),%rdi
mov    $0x2,%al
call   1040 <printf@plt>
movss  0x28(%rsp),%xmm0
cvtss2sd %xmm0,%xmm0
movss  0x24(%rsp),%xmm1
cvtss2sd %xmm1,%xmm1
lea    0xbe5(%rip),%rdi
mov    $0x2,%al
call   1040 <printf@plt>
movss  0x20(%rsp),%xmm0
cvtss2sd %xmm0,%xmm0
movss  0x1c(%rsp),%xmm1
cvtss2sd %xmm1,%xmm1
lea    0xbda(%rip),%rdi
mov    $0x2,%al
call   1040 <printf@plt>
movss  0xb91(%rip),%xmm1
movss  0xc(%rsp),%xmm0
mulss  %xmm1,%xmm0
divss  %xmm1,%xmm0
call   1070 <round@plt>
xorps  %xmm0,%xmm0
cvtsi2ss %rax,%xmm0
cvtss2sd %xmm0,%xmm0
lea    0xbbc(%rip),%rdi
mov    $0x1,%al
call   1040 <printf@plt>
movss  0x8(%rsp),%xmm0
movss  0xb56(%rip),%xmm1
mulss  %xmm1,%xmm0
divss  %xmm1,%xmm0
call   1070 <round@plt>
xorps  %xmm0,%xmm0
cvtsi2ss %rax,%xmm0
cvtss2sd %xmm0,%xmm0
lea    0xba0(%rip),%rdi
mov    $0x1,%al
call   1040 <printf@plt>
movss  0x18(%rsp),%xmm0
movss  0xb21(%rip),%xmm1
mulss  %xmm1,%xmm0
divss  %xmm1,%xmm0
call   1070 <round@plt>
xorps  %xmm0,%xmm0
cvtsi2ss %rax,%xmm0
cvtss2sd %xmm0,%xmm0
lea    0xb84(%rip),%rdi
mov    $0x1,%al
call   1040 <printf@plt>
movss  0x10(%rsp),%xmm0
movss  0xaec(%rip),%xmm1
mulss  %xmm1,%xmm0
divss  %xmm1,%xmm0
call   1070 <round@plt>
xorps  %xmm0,%xmm0
cvtsi2ss %rax,%xmm0
cvtss2sd %xmm0,%xmm0
lea    0xb68(%rip),%rdi
mov    $0x1,%al
call   1040 <printf@plt>
movss  0x4(%rsp),%xmm0
movss  0xab7(%rip),%xmm1
mulss  %xmm1,%xmm0
divss  %xmm1,%xmm0
call   1070 <round@plt>
xorps  %xmm0,%xmm0
cvtsi2ss %rax,%xmm0
cvtss2sd %xmm0,%xmm0
lea    0xb44(%rip),%rdi
mov    $0x1,%al
call   1040 <printf@plt>
movss  0x3c(%rsp),%xmm0
movss  0xa82(%rip),%xmm1
mulss  %xmm1,%xmm0
divss  %xmm1,%xmm0
call   1070 <round@plt>
xorps  %xmm0,%xmm0
cvtsi2ss %rax,%xmm0
cvtss2sd %xmm0,%xmm0
lea    0xb1b(%rip),%rdi
mov    $0x1,%al
call   1040 <printf@plt>
movss  0x38(%rsp),%xmm0
movss  0xa4d(%rip),%xmm1
mulss  %xmm1,%xmm0
divss  %xmm1,%xmm0
call   1070 <round@plt>
xorps  %xmm0,%xmm0
cvtsi2ss %rax,%xmm0
cvtss2sd %xmm0,%xmm0
lea    0xafd(%rip),%rdi
mov    $0x1,%al
call   1040 <printf@plt>
movss  0x14(%rsp),%xmm0
movss  0xa18(%rip),%xmm1
mulss  %xmm1,%xmm0
divss  %xmm1,%xmm0
call   1070 <round@plt>
xorps  %xmm0,%xmm0
cvtsi2ss %rax,%xmm0
cvtss2sd %xmm0,%xmm0
lea    0xadf(%rip),%rdi
mov    $0x1,%al
call   1040 <printf@plt>
xor    %eax,%eax
add    $0x40,%rsp
pop    %rbx
ret

LLVM IR (-O0):
@.str = [55 x i8] c"Specify the points of a triangle to find its angles.\0A\0A\00"
@.str.1 = [38 x i8] c"What is the x-coordinate of Point A?\0A\00"
@.str.2 = [4 x i8] c" %f\00"
@.str.3 = [38 x i8] c"What is the y-coordinate of Point A?\0A\00"
@.str.4 = [38 x i8] c"What is the x-coordinate of Point B?\0A\00"
@.str.5 = [38 x i8] c"What is the y-coordinate of Point B?\0A\00"
@.str.6 = [38 x i8] c"What is the x-coordinate of Point C?\0A\00"
@.str.7 = [38 x i8] c"What is the y-coordinate of Point C?\0A\00"
@.str.8 = [23 x i8] c"Point A: (%.3f, %.3f)\0A\00"
@.str.9 = [23 x i8] c"Point B: (%.3f, %.3f)\0A\00"
@.str.10 = [23 x i8] c"Point C: (%.3f, %.3f)\0A\00"
@.str.11 = [25 x i8] c"Distance from A-B: %.3f\0A\00"
@.str.12 = [25 x i8] c"Distance from B-C: %.3f\0A\00"
@.str.13 = [25 x i8] c"Distance from A-C: %.3f\0A\00"
@.str.14 = [17 x i8] c"Perimeter: %.3f\0A\00"
@.str.15 = [12 x i8] c"Area: %.3f\0A\00"
@.str.16 = [23 x i8] c"Angle A: %.3f degrees\0A\00"
@.str.17 = [23 x i8] c"Angle B: %.3f degrees\0A\00"
@.str.18 = [23 x i8] c"Angle C: %.3f degrees\0A\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca float
%7 = alloca float
%8 = alloca float
%9 = alloca float
%10 = alloca float
%11 = alloca float
%12 = alloca float
%13 = alloca float
%14 = alloca float
%15 = alloca float
%16 = alloca float
%17 = alloca float
%18 = alloca float
%19 = alloca float
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
%20 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([55 x i8], [55 x i8]* @.str, i64 0, i64 0))
%21 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.1, i64 0, i64 0))
%22 = call i32 @scanf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0), float* %6)
%23 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.3, i64 0, i64 0))
%24 = call i32 @scanf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0), float* %7)
%25 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.4, i64 0, i64 0))
%26 = call i32 @scanf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0), float* %8)
%27 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.5, i64 0, i64 0))
%28 = call i32 @scanf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0), float* %9)
%29 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.6, i64 0, i64 0))
%30 = call i32 @scanf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0), float* %10)
%31 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.7, i64 0, i64 0))
%32 = call i32 @scanf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0), float* %11)
%33 = load float, float* %6
%34 = load float, float* %8
%35 = fsub float %33, %34
%36 = load float, float* %6
%37 = load float, float* %8
%38 = fsub float %36, %37
%39 = load float, float* %7
%40 = load float, float* %9
%41 = fsub float %39, %40
%42 = load float, float* %7
%43 = load float, float* %9
%44 = fsub float %42, %43
%45 = fmul float %41, %44
%46 = call float @llvm.fmuladd.f32(float %35, float %38, float %45)
%47 = call float @sqrt(float %46)
store float %47, float* %12
%48 = load float, float* %8
%49 = load float, float* %10
%50 = fsub float %48, %49
%51 = load float, float* %8
%52 = load float, float* %10
%53 = fsub float %51, %52
%54 = load float, float* %9
%55 = load float, float* %11
%56 = fsub float %54, %55
%57 = load float, float* %9
%58 = load float, float* %11
%59 = fsub float %57, %58
%60 = fmul float %56, %59
%61 = call float @llvm.fmuladd.f32(float %50, float %53, float %60)
%62 = call float @sqrt(float %61)
store float %62, float* %13
%63 = load float, float* %6
%64 = load float, float* %10
%65 = fsub float %63, %64
%66 = load float, float* %6
%67 = load float, float* %10
%68 = fsub float %66, %67
%69 = load float, float* %7
%70 = load float, float* %11
%71 = fsub float %69, %70
%72 = load float, float* %7
%73 = load float, float* %11
%74 = fsub float %72, %73
%75 = fmul float %71, %74
%76 = call float @llvm.fmuladd.f32(float %65, float %68, float %75)
%77 = call float @sqrt(float %76)
store float %77, float* %14
%78 = load float, float* %12
%79 = load float, float* %12
%80 = load float, float* %14
%81 = load float, float* %14
%82 = fmul float %80, %81
%83 = call float @llvm.fmuladd.f32(float %78, float %79, float %82)
%84 = load float, float* %13
%85 = load float, float* %13
%86 = fneg float %84
%87 = call float @llvm.fmuladd.f32(float %86, float %85, float %83)
%88 = load float, float* %12
%89 = fmul float 2.000000e+00, %88
%90 = load float, float* %14
%91 = fmul float %89, %90
%92 = fdiv float %87, %91
%93 = call double @acos(float %92)
%94 = fmul double %93, 0x404CA5DC1A47A9E3
%95 = fptrunc double %94 to float
store float %95, float* %15
%96 = load float, float* %13
%97 = load float, float* %13
%98 = load float, float* %12
%99 = load float, float* %12
%100 = fmul float %98, %99
%101 = call float @llvm.fmuladd.f32(float %96, float %97, float %100)
%102 = load float, float* %14
%103 = load float, float* %14
%104 = fneg float %102
%105 = call float @llvm.fmuladd.f32(float %104, float %103, float %101)
%106 = load float, float* %13
%107 = fmul float 2.000000e+00, %106
%108 = load float, float* %12
%109 = fmul float %107, %108
%110 = fdiv float %105, %109
%111 = call double @acos(float %110)
%112 = fmul double %111, 0x404CA5DC1A47A9E3
%113 = fptrunc double %112 to float
store float %113, float* %16
%114 = load float, float* %13
%115 = load float, float* %13
%116 = load float, float* %14
%117 = load float, float* %14
%118 = fmul float %116, %117
%119 = call float @llvm.fmuladd.f32(float %114, float %115, float %118)
%120 = load float, float* %12
%121 = load float, float* %12
%122 = fneg float %120
%123 = call float @llvm.fmuladd.f32(float %122, float %121, float %119)
%124 = load float, float* %13
%125 = fmul float 2.000000e+00, %124
%126 = load float, float* %14
%127 = fmul float %125, %126
%128 = fdiv float %123, %127
%129 = call double @acos(float %128)
%130 = fmul double %129, 0x404CA5DC1A47A9E3
%131 = fptrunc double %130 to float
store float %131, float* %17
%132 = load float, float* %12
%133 = load float, float* %13
%134 = fadd float %132, %133
%135 = load float, float* %14
%136 = fadd float %134, %135
store float %136, float* %18
%137 = load float, float* %18
%138 = fdiv float %137, 2.000000e+00
%139 = load float, float* %18
%140 = fdiv float %139, 2.000000e+00
%141 = load float, float* %13
%142 = fsub float %140, %141
%143 = fmul float %138, %142
%144 = load float, float* %18
%145 = fdiv float %144, 2.000000e+00
%146 = load float, float* %14
%147 = fsub float %145, %146
%148 = fmul float %143, %147
%149 = load float, float* %18
%150 = fdiv float %149, 2.000000e+00
%151 = load float, float* %12
%152 = fsub float %150, %151
%153 = fmul float %148, %152
%154 = call float @sqrt(float %153)
store float %154, float* %19
%155 = load float, float* %6
%156 = fpext float %155 to double
%157 = load float, float* %7
%158 = fpext float %157 to double
%159 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.8, i64 0, i64 0), double %156, double %158)
%160 = load float, float* %8
%161 = fpext float %160 to double
%162 = load float, float* %9
%163 = fpext float %162 to double
%164 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.9, i64 0, i64 0), double %161, double %163)
%165 = load float, float* %10
%166 = fpext float %165 to double
%167 = load float, float* %11
%168 = fpext float %167 to double
%169 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.10, i64 0, i64 0), double %166, double %168)
%170 = load float, float* %12
%171 = fmul float %170, 1.000000e+02
%172 = fdiv float %171, 1.000000e+02
%173 = call i64 @round(float %172)
%174 = sitofp i64 %173 to float
%175 = fpext float %174 to double
%176 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.11, i64 0, i64 0), double %175)
%177 = load float, float* %13
%178 = fmul float %177, 1.000000e+02
%179 = fdiv float %178, 1.000000e+02
%180 = call i64 @round(float %179)
%181 = sitofp i64 %180 to float
%182 = fpext float %181 to double
%183 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.12, i64 0, i64 0), double %182)
%184 = load float, float* %14
%185 = fmul float %184, 1.000000e+02
%186 = fdiv float %185, 1.000000e+02
%187 = call i64 @round(float %186)
%188 = sitofp i64 %187 to float
%189 = fpext float %188 to double
%190 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.13, i64 0, i64 0), double %189)
%191 = load float, float* %18
%192 = fmul float %191, 1.000000e+02
%193 = fdiv float %192, 1.000000e+02
%194 = call i64 @round(float %193)
%195 = sitofp i64 %194 to float
%196 = fpext float %195 to double
%197 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.14, i64 0, i64 0), double %196)
%198 = load float, float* %19
%199 = fmul float %198, 1.000000e+02
%200 = fdiv float %199, 1.000000e+02
%201 = call i64 @round(float %200)
%202 = sitofp i64 %201 to float
%203 = fpext float %202 to double
%204 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.15, i64 0, i64 0), double %203)
%205 = load float, float* %15
%206 = fmul float %205, 1.000000e+02
%207 = fdiv float %206, 1.000000e+02
%208 = call i64 @round(float %207)
%209 = sitofp i64 %208 to float
%210 = fpext float %209 to double
%211 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.16, i64 0, i64 0), double %210)
%212 = load float, float* %16
%213 = fmul float %212, 1.000000e+02
%214 = fdiv float %213, 1.000000e+02
%215 = call i64 @round(float %214)
%216 = sitofp i64 %215 to float
%217 = fpext float %216 to double
%218 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.17, i64 0, i64 0), double %217)
%219 = load float, float* %17
%220 = fmul float %219, 1.000000e+02
%221 = fdiv float %220, 1.000000e+02
%222 = call i64 @round(float %221)
%223 = sitofp i64 %222 to float
%224 = fpext float %223 to double
%225 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.18, i64 0, i64 0), double %224)
ret i32 0
}

LLVM IR (-O2):
@.str.2 = [4 x i8] c" %f\00"
@.str.8 = [23 x i8] c"Point A: (%.3f, %.3f)\0A\00"
@.str.9 = [23 x i8] c"Point B: (%.3f, %.3f)\0A\00"
@.str.10 = [23 x i8] c"Point C: (%.3f, %.3f)\0A\00"
@.str.11 = [25 x i8] c"Distance from A-B: %.3f\0A\00"
@.str.12 = [25 x i8] c"Distance from B-C: %.3f\0A\00"
@.str.13 = [25 x i8] c"Distance from A-C: %.3f\0A\00"
@.str.14 = [17 x i8] c"Perimeter: %.3f\0A\00"
@.str.15 = [12 x i8] c"Area: %.3f\0A\00"
@.str.16 = [23 x i8] c"Angle A: %.3f degrees\0A\00"
@.str.17 = [23 x i8] c"Angle B: %.3f degrees\0A\00"
@.str.18 = [23 x i8] c"Angle C: %.3f degrees\0A\00"
@str = [54 x i8] c"Specify the points of a triangle to find its angles.\0A\00"
@str.19 = [37 x i8] c"What is the x-coordinate of Point A?\00"
@str.20 = [37 x i8] c"What is the y-coordinate of Point A?\00"
@str.21 = [37 x i8] c"What is the x-coordinate of Point B?\00"
@str.22 = [37 x i8] c"What is the y-coordinate of Point B?\00"
@str.23 = [37 x i8] c"What is the x-coordinate of Point C?\00"
@str.24 = [37 x i8] c"What is the y-coordinate of Point C?\00"
define i32 @main(i32 %0, i8** nocapture readnone %1) {
%3 = alloca float
%4 = alloca float
%5 = alloca float
%6 = alloca float
%7 = alloca float
%8 = alloca float
%9 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([54 x i8], [54 x i8]* @str, i64 0, i64 0))
%10 = bitcast float* %3 to i8*
%11 = bitcast float* %4 to i8*
%12 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([37 x i8], [37 x i8]* @str.19, i64 0, i64 0))
%13 = call i32 @scanf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0), float* %3)
%14 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([37 x i8], [37 x i8]* @str.20, i64 0, i64 0))
%15 = call i32 @scanf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0), float* %4)
%16 = bitcast float* %5 to i8*
%17 = bitcast float* %6 to i8*
%18 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([37 x i8], [37 x i8]* @str.21, i64 0, i64 0))
%19 = call i32 @scanf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0), float* %5)
%20 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([37 x i8], [37 x i8]* @str.22, i64 0, i64 0))
%21 = call i32 @scanf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0), float* %6)
%22 = bitcast float* %7 to i8*
%23 = bitcast float* %8 to i8*
%24 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([37 x i8], [37 x i8]* @str.23, i64 0, i64 0))
%25 = call i32 @scanf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0), float* %7)
%26 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([37 x i8], [37 x i8]* @str.24, i64 0, i64 0))
%27 = call i32 @scanf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0), float* %8)
%28 = load float, float* %3
%29 = load float, float* %5
%30 = fsub float %28, %29
%31 = load float, float* %4
%32 = load float, float* %6
%33 = fsub float %31, %32
%34 = fmul float %33, %33
%35 = call float @llvm.fmuladd.f32(float %30, float %30, float %34)
%36 = call float @sqrt(float %35)
%37 = load float, float* %5
%38 = load float, float* %7
%39 = fsub float %37, %38
%40 = load float, float* %6
%41 = load float, float* %8
%42 = fsub float %40, %41
%43 = fmul float %42, %42
%44 = call float @llvm.fmuladd.f32(float %39, float %39, float %43)
%45 = call float @sqrt(float %44)
%46 = load float, float* %3
%47 = load float, float* %7
%48 = fsub float %46, %47
%49 = load float, float* %4
%50 = load float, float* %8
%51 = fsub float %49, %50
%52 = fmul float %51, %51
%53 = call float @llvm.fmuladd.f32(float %48, float %48, float %52)
%54 = call float @sqrt(float %53)
%55 = fmul float %54, %54
%56 = call float @llvm.fmuladd.f32(float %36, float %36, float %55)
%57 = fneg float %45
%58 = call float @llvm.fmuladd.f32(float %57, float %45, float %56)
%59 = fmul float %36, 2.000000e+00
%60 = fmul float %59, %54
%61 = fdiv float %58, %60
%62 = call double @acos(float %61)
%63 = fmul double %62, 0x404CA5DC1A47A9E3
%64 = fptrunc double %63 to float
%65 = fmul float %36, %36
%66 = call float @llvm.fmuladd.f32(float %45, float %45, float %65)
%67 = fneg float %54
%68 = call float @llvm.fmuladd.f32(float %67, float %54, float %66)
%69 = fmul float %45, 2.000000e+00
%70 = fmul float %36, %69
%71 = fdiv float %68, %70
%72 = call double @acos(float %71)
%73 = fmul double %72, 0x404CA5DC1A47A9E3
%74 = fptrunc double %73 to float
%75 = call float @llvm.fmuladd.f32(float %45, float %45, float %55)
%76 = fneg float %36
%77 = call float @llvm.fmuladd.f32(float %76, float %36, float %75)
%78 = fmul float %69, %54
%79 = fdiv float %77, %78
%80 = call double @acos(float %79)
%81 = fmul double %80, 0x404CA5DC1A47A9E3
%82 = fptrunc double %81 to float
%83 = fadd float %36, %45
%84 = fadd float %83, %54
%85 = fmul float %84, 5.000000e-01
%86 = fsub float %85, %45
%87 = fmul float %85, %86
%88 = fsub float %85, %54
%89 = fmul float %88, %87
%90 = fsub float %85, %36
%91 = fmul float %90, %89
%92 = call float @sqrt(float %91)
%93 = load float, float* %3
%94 = fpext float %93 to double
%95 = load float, float* %4
%96 = fpext float %95 to double
%97 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([23 x i8], [23 x i8]* @.str.8, i64 0, i64 0), double %94, double %96)
%98 = load float, float* %5
%99 = fpext float %98 to double
%100 = load float, float* %6
%101 = fpext float %100 to double
%102 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([23 x i8], [23 x i8]* @.str.9, i64 0, i64 0), double %99, double %101)
%103 = load float, float* %7
%104 = fpext float %103 to double
%105 = load float, float* %8
%106 = fpext float %105 to double
%107 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([23 x i8], [23 x i8]* @.str.10, i64 0, i64 0), double %104, double %106)
%108 = fmul float %36, 1.000000e+02
%109 = fdiv float %108, 1.000000e+02
%110 = call i64 @round(float %109)
%111 = sitofp i64 %110 to float
%112 = fpext float %111 to double
%113 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([25 x i8], [25 x i8]* @.str.11, i64 0, i64 0), double %112)
%114 = fmul float %45, 1.000000e+02
%115 = fdiv float %114, 1.000000e+02
%116 = call i64 @round(float %115)
%117 = sitofp i64 %116 to float
%118 = fpext float %117 to double
%119 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([25 x i8], [25 x i8]* @.str.12, i64 0, i64 0), double %118)
%120 = fmul float %54, 1.000000e+02
%121 = fdiv float %120, 1.000000e+02
%122 = call i64 @round(float %121)
%123 = sitofp i64 %122 to float
%124 = fpext float %123 to double
%125 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([25 x i8], [25 x i8]* @.str.13, i64 0, i64 0), double %124)
%126 = fmul float %84, 1.000000e+02
%127 = fdiv float %126, 1.000000e+02
%128 = call i64 @round(float %127)
%129 = sitofp i64 %128 to float
%130 = fpext float %129 to double
%131 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([17 x i8], [17 x i8]* @.str.14, i64 0, i64 0), double %130)
%132 = fmul float %92, 1.000000e+02
%133 = fdiv float %132, 1.000000e+02
%134 = call i64 @round(float %133)
%135 = sitofp i64 %134 to float
%136 = fpext float %135 to double
%137 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([12 x i8], [12 x i8]* @.str.15, i64 0, i64 0), double %136)
%138 = fmul float %64, 1.000000e+02
%139 = fdiv float %138, 1.000000e+02
%140 = call i64 @round(float %139)
%141 = sitofp i64 %140 to float
%142 = fpext float %141 to double
%143 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([23 x i8], [23 x i8]* @.str.16, i64 0, i64 0), double %142)
%144 = fmul float %74, 1.000000e+02
%145 = fdiv float %144, 1.000000e+02
%146 = call i64 @round(float %145)
%147 = sitofp i64 %146 to float
%148 = fpext float %147 to double
%149 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([23 x i8], [23 x i8]* @.str.17, i64 0, i64 0), double %148)
%150 = fmul float %82, 1.000000e+02
%151 = fdiv float %150, 1.000000e+02
%152 = call i64 @round(float %151)
%153 = sitofp i64 %152 to float
%154 = fpext float %153 to double
%155 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([23 x i8], [23 x i8]* @.str.18, i64 0, i64 0), double %154)
ret i32 0
}