#define NULL ((void *)0)
typedef unsigned long size_t; // Customize by platform.
typedef long intptr_t;
typedef unsigned long uintptr_t;
typedef long scalar_t__; // Either arithmetic or pointer type.
/* By default, we understand bool (as a convenience). */
typedef int bool;
#define false 0
#define true 1

/* Forward declarations */

/* Type definitions */

/* Variables and functions */
int /*<<< orphan*/ printf(char *);
void displayVectorView() {
  printf("\n\nYou now have the following options:\n\n");
  printf("\t[A] scalar product\n");
  printf("\t[C] centre of medians\n");
  printf("\t[D] distance between two points\n");
  printf("\t[E] equal vectors\n");
  printf("\t[L] length of a vector\n");
  printf("\t[M] middle point between two points\n");
  printf("\t[N] whether the angle is less than, equal to, or more than 90 "
         "degrees\n");
  printf("\t[O] cross vector to a vector\n");
  printf("\t[P] projection of a vector on another vector\n");
  printf("\t[R] parametric equation of a vector\n");
  printf("\t[S] vector of same or opposite direction\n");
  printf("\t[T] determinant of a vector pair\n");
  printf("\t[U] unit vector\n");
  printf("\t[V] angle of two intersecting vectors\n");
  printf("\t[W] solution to polynomia with two unknowns\n");
  printf("\t[X] back to main menu\n");
}


x86 assembly (clang, -O0):
<displayVectorView>:
push   %rbp
mov    %rsp,%rbp
lea    0xee5(%rip),%rdi
call   1030 <printf@plt>
lea    0xf01(%rip),%rdi
call   1030 <printf@plt>
lea    0xf0a(%rip),%rdi
call   1030 <printf@plt>
lea    0xf16(%rip),%rdi
call   1030 <printf@plt>
lea    0xf2c(%rip),%rdi
call   1030 <printf@plt>
lea    0xf34(%rip),%rdi
call   1030 <printf@plt>
lea    0xf41(%rip),%rdi
call   1030 <printf@plt>
lea    0xf5b(%rip),%rdi
call   1030 <printf@plt>
lea    0xf97(%rip),%rdi
call   1030 <printf@plt>
lea    0xfaa(%rip),%rdi
call   1030 <printf@plt>
lea    0xfcd(%rip),%rdi
call   1030 <printf@plt>
lea    0xfe7(%rip),%rdi
call   1030 <printf@plt>
lea    0x1006(%rip),%rdi
call   1030 <printf@plt>
lea    0x101d(%rip),%rdi
call   1030 <printf@plt>
lea    0x1023(%rip),%rdi
call   1030 <printf@plt>
lea    0x103f(%rip),%rdi
call   1030 <printf@plt>
lea    0x1061(%rip),%rdi
call   1030 <printf@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<displayVectorView>:
push   %rax
lea    0xee8(%rip),%rdi
call   1030 <puts@plt>
lea    0xf03(%rip),%rdi
call   1030 <puts@plt>
lea    0xf0b(%rip),%rdi
call   1030 <puts@plt>
lea    0xf16(%rip),%rdi
call   1030 <puts@plt>
lea    0xf2b(%rip),%rdi
call   1030 <puts@plt>
lea    0xf32(%rip),%rdi
call   1030 <puts@plt>
lea    0xf3e(%rip),%rdi
call   1030 <puts@plt>
lea    0xf57(%rip),%rdi
call   1030 <puts@plt>
lea    0xf92(%rip),%rdi
call   1030 <puts@plt>
lea    0xfa4(%rip),%rdi
call   1030 <puts@plt>
lea    0xfc6(%rip),%rdi
call   1030 <puts@plt>
lea    0xfdf(%rip),%rdi
call   1030 <puts@plt>
lea    0xffd(%rip),%rdi
call   1030 <puts@plt>
lea    0x1013(%rip),%rdi
call   1030 <puts@plt>
lea    0x1018(%rip),%rdi
call   1030 <puts@plt>
lea    0x1033(%rip),%rdi
call   1030 <puts@plt>
lea    0x1054(%rip),%rdi
pop    %rax
jmp    1030 <puts@plt>

LLVM IR (-O0):
@.str = [40 x i8] c"\0A\0AYou now have the following options:\0A\0A\00"
@.str.1 = [21 x i8] c"\09[A] scalar product\0A\00"
@.str.2 = [24 x i8] c"\09[C] centre of medians\0A\00"
@.str.3 = [34 x i8] c"\09[D] distance between two points\0A\00"
@.str.4 = [20 x i8] c"\09[E] equal vectors\0A\00"
@.str.5 = [25 x i8] c"\09[L] length of a vector\0A\00"
@.str.6 = [38 x i8] c"\09[M] middle point between two points\0A\00"
@.str.7 = [72 x i8] c"\09[N] whether the angle is less than, equal to, or more than 90 degrees\0A\00"
@.str.8 = [31 x i8] c"\09[O] cross vector to a vector\0A\00"
@.str.9 = [47 x i8] c"\09[P] projection of a vector on another vector\0A\00"
@.str.10 = [38 x i8] c"\09[R] parametric equation of a vector\0A\00"
@.str.11 = [43 x i8] c"\09[S] vector of same or opposite direction\0A\00"
@.str.12 = [35 x i8] c"\09[T] determinant of a vector pair\0A\00"
@.str.13 = [18 x i8] c"\09[U] unit vector\0A\00"
@.str.14 = [40 x i8] c"\09[V] angle of two intersecting vectors\0A\00"
@.str.15 = [46 x i8] c"\09[W] solution to polynomia with two unknowns\0A\00"
@.str.16 = [24 x i8] c"\09[X] back to main menu\0A\00"
define void @displayVectorView() {
%1 = call i32 @printf(i8* getelementptr inbounds ([40 x i8], [40 x i8]* @.str, i64 0, i64 0))
%2 = call i32 @printf(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.1, i64 0, i64 0))
%3 = call i32 @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.2, i64 0, i64 0))
%4 = call i32 @printf(i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.3, i64 0, i64 0))
%5 = call i32 @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.4, i64 0, i64 0))
%6 = call i32 @printf(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.5, i64 0, i64 0))
%7 = call i32 @printf(i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.6, i64 0, i64 0))
%8 = call i32 @printf(i8* getelementptr inbounds ([72 x i8], [72 x i8]* @.str.7, i64 0, i64 0))
%9 = call i32 @printf(i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str.8, i64 0, i64 0))
%10 = call i32 @printf(i8* getelementptr inbounds ([47 x i8], [47 x i8]* @.str.9, i64 0, i64 0))
%11 = call i32 @printf(i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.10, i64 0, i64 0))
%12 = call i32 @printf(i8* getelementptr inbounds ([43 x i8], [43 x i8]* @.str.11, i64 0, i64 0))
%13 = call i32 @printf(i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str.12, i64 0, i64 0))
%14 = call i32 @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.13, i64 0, i64 0))
%15 = call i32 @printf(i8* getelementptr inbounds ([40 x i8], [40 x i8]* @.str.14, i64 0, i64 0))
%16 = call i32 @printf(i8* getelementptr inbounds ([46 x i8], [46 x i8]* @.str.15, i64 0, i64 0))
%17 = call i32 @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.16, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@str = [39 x i8] c"\0A\0AYou now have the following options:\0A\00"
@str.17 = [20 x i8] c"\09[A] scalar product\00"
@str.18 = [23 x i8] c"\09[C] centre of medians\00"
@str.19 = [33 x i8] c"\09[D] distance between two points\00"
@str.20 = [19 x i8] c"\09[E] equal vectors\00"
@str.21 = [24 x i8] c"\09[L] length of a vector\00"
@str.22 = [37 x i8] c"\09[M] middle point between two points\00"
@str.23 = [71 x i8] c"\09[N] whether the angle is less than, equal to, or more than 90 degrees\00"
@str.24 = [30 x i8] c"\09[O] cross vector to a vector\00"
@str.25 = [46 x i8] c"\09[P] projection of a vector on another vector\00"
@str.26 = [37 x i8] c"\09[R] parametric equation of a vector\00"
@str.27 = [42 x i8] c"\09[S] vector of same or opposite direction\00"
@str.28 = [34 x i8] c"\09[T] determinant of a vector pair\00"
@str.29 = [17 x i8] c"\09[U] unit vector\00"
@str.30 = [39 x i8] c"\09[V] angle of two intersecting vectors\00"
@str.31 = [45 x i8] c"\09[W] solution to polynomia with two unknowns\00"
@str.32 = [23 x i8] c"\09[X] back to main menu\00"
define void @displayVectorView() {
%1 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([39 x i8], [39 x i8]* @str, i64 0, i64 0))
%2 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([20 x i8], [20 x i8]* @str.17, i64 0, i64 0))
%3 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([23 x i8], [23 x i8]* @str.18, i64 0, i64 0))
%4 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([33 x i8], [33 x i8]* @str.19, i64 0, i64 0))
%5 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([19 x i8], [19 x i8]* @str.20, i64 0, i64 0))
%6 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([24 x i8], [24 x i8]* @str.21, i64 0, i64 0))
%7 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([37 x i8], [37 x i8]* @str.22, i64 0, i64 0))
%8 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([71 x i8], [71 x i8]* @str.23, i64 0, i64 0))
%9 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([30 x i8], [30 x i8]* @str.24, i64 0, i64 0))
%10 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([46 x i8], [46 x i8]* @str.25, i64 0, i64 0))
%11 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([37 x i8], [37 x i8]* @str.26, i64 0, i64 0))
%12 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([42 x i8], [42 x i8]* @str.27, i64 0, i64 0))
%13 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([34 x i8], [34 x i8]* @str.28, i64 0, i64 0))
%14 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([17 x i8], [17 x i8]* @str.29, i64 0, i64 0))
%15 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([39 x i8], [39 x i8]* @str.30, i64 0, i64 0))
%16 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([45 x i8], [45 x i8]* @str.31, i64 0, i64 0))
%17 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([23 x i8], [23 x i8]* @str.32, i64 0, i64 0))
ret void
}