#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 afficherPrixPotionBoutique(void) {
  printf("Voici mes prix !\n\n");
  printf("\t- 1 potion de sante I = %d tek\n", 30);
  printf("\t- 1 potion de force I = %d tek\n", 20);
  printf("\t- 1 potion de resistance I = %d tek\n\n", 20);
  printf("\t- 1 potion de sante II = %d tek\n", 70);
  printf("\t- 1 potion de force II = %d tek\n", 60);
  printf("\t- 1 potion de resistance II = %d tek\n\n", 60);
}


x86 assembly (clang, -O0):
<afficherPrixPotionBoutique>:
push   %rbp
mov    %rsp,%rbp
lea    0xee5(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xeea(%rip),%rdi
mov    $0x1e,%esi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xef8(%rip),%rdi
mov    $0x14,%esi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf06(%rip),%rdi
mov    $0x14,%esi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf1a(%rip),%rdi
mov    $0x46,%esi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf29(%rip),%rdi
mov    $0x3c,%esi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf38(%rip),%rdi
mov    $0x3c,%esi
mov    $0x0,%al
call   1030 <printf@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<afficherPrixPotionBoutique>:
push   %rax
lea    0xfad(%rip),%rdi
call   1030 <puts@plt>
lea    0xecc(%rip),%rdi
mov    $0x1e,%esi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xeda(%rip),%rdi
mov    $0x14,%esi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xee8(%rip),%rdi
mov    $0x14,%esi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xefc(%rip),%rdi
mov    $0x46,%esi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xf0b(%rip),%rdi
mov    $0x3c,%esi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xf1a(%rip),%rdi
mov    $0x3c,%esi
xor    %eax,%eax
pop    %rcx
jmp    1040 <printf@plt>

LLVM IR (-O0):
@.str = [19 x i8] c"Voici mes prix !\0A\0A\00"
@.str.1 = [33 x i8] c"\09- 1 potion de sante I = %d tek\0A\00"
@.str.2 = [33 x i8] c"\09- 1 potion de force I = %d tek\0A\00"
@.str.3 = [39 x i8] c"\09- 1 potion de resistance I = %d tek\0A\0A\00"
@.str.4 = [34 x i8] c"\09- 1 potion de sante II = %d tek\0A\00"
@.str.5 = [34 x i8] c"\09- 1 potion de force II = %d tek\0A\00"
@.str.6 = [40 x i8] c"\09- 1 potion de resistance II = %d tek\0A\0A\00"
define void @afficherPrixPotionBoutique() {
%1 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str, i64 0, i64 0))
%2 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.1, i64 0, i64 0), i32 30)
%3 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.2, i64 0, i64 0), i32 20)
%4 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([39 x i8], [39 x i8]* @.str.3, i64 0, i64 0), i32 20)
%5 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.4, i64 0, i64 0), i32 70)
%6 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.5, i64 0, i64 0), i32 60)
%7 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([40 x i8], [40 x i8]* @.str.6, i64 0, i64 0), i32 60)
ret void
}

LLVM IR (-O2):
@.str.1 = [33 x i8] c"\09- 1 potion de sante I = %d tek\0A\00"
@.str.2 = [33 x i8] c"\09- 1 potion de force I = %d tek\0A\00"
@.str.3 = [39 x i8] c"\09- 1 potion de resistance I = %d tek\0A\0A\00"
@.str.4 = [34 x i8] c"\09- 1 potion de sante II = %d tek\0A\00"
@.str.5 = [34 x i8] c"\09- 1 potion de force II = %d tek\0A\00"
@.str.6 = [40 x i8] c"\09- 1 potion de resistance II = %d tek\0A\0A\00"
@str = [18 x i8] c"Voici mes prix !\0A\00"
define void @afficherPrixPotionBoutique() {
%1 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([18 x i8], [18 x i8]* @str, i64 0, i64 0))
%2 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([33 x i8], [33 x i8]* @.str.1, i64 0, i64 0), i32 30)
%3 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([33 x i8], [33 x i8]* @.str.2, i64 0, i64 0), i32 20)
%4 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([39 x i8], [39 x i8]* @.str.3, i64 0, i64 0), i32 20)
%5 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([34 x i8], [34 x i8]* @.str.4, i64 0, i64 0), i32 70)
%6 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([34 x i8], [34 x i8]* @.str.5, i64 0, i64 0), i32 60)
%7 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([40 x i8], [40 x i8]* @.str.6, i64 0, i64 0), i32 60)
ret void
}