#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*/ displayMenuEntry(int, char *);
void displayMenu() {
  displayMenuEntry(1, "Addition");
  displayMenuEntry(2, "Soustraction");
  displayMenuEntry(3, "Multiplication");
  displayMenuEntry(4, "Division");
  displayMenuEntry(5, "Puissance");
  displayMenuEntry(6, "Quitter");
}


x86 assembly (clang, -O0):
<displayMenu>:
push   %rbp
mov    %rsp,%rbp
mov    $0x1,%edi
lea    0xee0(%rip),%rsi
call   1030 <displayMenuEntry@plt>
mov    $0x2,%edi
lea    0xed8(%rip),%rsi
call   1030 <displayMenuEntry@plt>
mov    $0x3,%edi
lea    0xed4(%rip),%rsi
call   1030 <displayMenuEntry@plt>
mov    $0x4,%edi
lea    0xed2(%rip),%rsi
call   1030 <displayMenuEntry@plt>
mov    $0x5,%edi
lea    0xeca(%rip),%rsi
call   1030 <displayMenuEntry@plt>
mov    $0x6,%edi
lea    0xec3(%rip),%rsi
call   1030 <displayMenuEntry@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<displayMenu>:
push   %rax
lea    0xee8(%rip),%rsi
mov    $0x1,%edi
call   1030 <displayMenuEntry@plt>
lea    0xee0(%rip),%rsi
mov    $0x2,%edi
call   1030 <displayMenuEntry@plt>
lea    0xedc(%rip),%rsi
mov    $0x3,%edi
call   1030 <displayMenuEntry@plt>
lea    0xeda(%rip),%rsi
mov    $0x4,%edi
call   1030 <displayMenuEntry@plt>
lea    0xed2(%rip),%rsi
mov    $0x5,%edi
call   1030 <displayMenuEntry@plt>
lea    0xecb(%rip),%rsi
mov    $0x6,%edi
pop    %rax
jmp    1030 <displayMenuEntry@plt>

LLVM IR (-O0):
@.str = [9 x i8] c"Addition\00"
@.str.1 = [13 x i8] c"Soustraction\00"
@.str.2 = [15 x i8] c"Multiplication\00"
@.str.3 = [9 x i8] c"Division\00"
@.str.4 = [10 x i8] c"Puissance\00"
@.str.5 = [8 x i8] c"Quitter\00"
define void @displayMenu() {
%1 = call i32 @displayMenuEntry(i32 1, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0))
%2 = call i32 @displayMenuEntry(i32 2, i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.1, i64 0, i64 0))
%3 = call i32 @displayMenuEntry(i32 3, i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.2, i64 0, i64 0))
%4 = call i32 @displayMenuEntry(i32 4, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.3, i64 0, i64 0))
%5 = call i32 @displayMenuEntry(i32 5, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.4, i64 0, i64 0))
%6 = call i32 @displayMenuEntry(i32 6, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.5, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@.str = [9 x i8] c"Addition\00"
@.str.1 = [13 x i8] c"Soustraction\00"
@.str.2 = [15 x i8] c"Multiplication\00"
@.str.3 = [9 x i8] c"Division\00"
@.str.4 = [10 x i8] c"Puissance\00"
@.str.5 = [8 x i8] c"Quitter\00"
define void @displayMenu() {
%1 = tail call i32 @displayMenuEntry(i32 1, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0))
%2 = tail call i32 @displayMenuEntry(i32 2, i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.1, i64 0, i64 0))
%3 = tail call i32 @displayMenuEntry(i32 3, i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.2, i64 0, i64 0))
%4 = tail call i32 @displayMenuEntry(i32 4, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.3, i64 0, i64 0))
%5 = tail call i32 @displayMenuEntry(i32 5, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.4, i64 0, i64 0))
%6 = tail call i32 @displayMenuEntry(i32 6, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.5, i64 0, i64 0))
ret void
}