#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 fabs(double);
double pow(double, int);
int /*<<< orphan*/ printf(char *, ...);
int /*<<< orphan*/ scanf(char *, int *);
int main() {
  int i;
  i = 0;
  printf("Hello world!f\nMy name is tochap %d", i);
  int age = 0;
  do {
    printf("Quel age avez vous???\n");
    scanf("%d", &age);
    printf("\nVous n'êtes pas majeur!!!!!!\n", age);
  } while (age <= 18 || age >= 25);
  double absolu = 0, nombre = -27;
  absolu = fabs(nombre);
  absolu = pow(nombre, 2);
  printf("\nLa valeur absolu de %lf est %lf \n", nombre, absolu);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
movl   $0x0,-0x4(%rbp)
movl   $0x0,-0x8(%rbp)
mov    -0x8(%rbp),%esi
lea    0xec8(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movl   $0x0,-0xc(%rbp)
lea    0xed6(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xec5(%rip),%rdi
lea    -0xc(%rbp),%rsi
call   1040 <scanf@plt>
mov    -0xc(%rbp),%esi
lea    0xecc(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    $0x1,%al
cmpl   $0x12,-0xc(%rbp)
mov    %al,-0x21(%rbp)
jle    11a6 <main+0x76>
cmpl   $0x19,-0xc(%rbp)
setge  %al
mov    %al,-0x21(%rbp)
mov    -0x21(%rbp),%al
test   $0x1,%al
jne    115e <main+0x2e>
xorps  %xmm0,%xmm0
movsd  %xmm0,-0x18(%rbp)
movsd  0xe4f(%rip),%xmm0
movsd  %xmm0,-0x20(%rbp)
movsd  -0x20(%rbp),%xmm0
movaps 0xe2e(%rip),%xmm1
pand   %xmm1,%xmm0
movsd  %xmm0,-0x18(%rbp)
movsd  -0x20(%rbp),%xmm0
mov    $0x2,%edi
call   1050 <pow@plt>
movsd  %xmm0,-0x18(%rbp)
movsd  -0x20(%rbp),%xmm0
movsd  -0x18(%rbp),%xmm1
lea    0xe72(%rip),%rdi
mov    $0x2,%al
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %r15
push   %r14
push   %r12
push   %rbx
push   %rax
lea    0xeb9(%rip),%rdi
xor    %esi,%esi
xor    %eax,%eax
call   1040 <printf@plt>
movl   $0x0,0x4(%rsp)
lea    0xee7(%rip),%r14
lea    0xeba(%rip),%r15
lea    0x4(%rsp),%r12
lea    0xeea(%rip),%rbx
nopw   0x0(%rax,%rax,1)
mov    %r14,%rdi
call   1030 <puts@plt>
mov    %r15,%rdi
mov    %r12,%rsi
call   1050 <scanf@plt>
mov    %rbx,%rdi
call   1030 <puts@plt>
mov    0x4(%rsp),%eax
add    $0xffffffe7,%eax
cmp    $0xfffffffa,%eax
jb     1180 <main+0x40>
movsd  0xe51(%rip),%xmm0
mov    $0x2,%edi
call   1060 <pow@plt>
movaps %xmm0,%xmm1
lea    0xe68(%rip),%rdi
movsd  0xe35(%rip),%xmm0
mov    $0x2,%al
call   1040 <printf@plt>
xor    %eax,%eax
add    $0x8,%rsp
pop    %rbx
pop    %r12
pop    %r14
pop    %r15
ret

LLVM IR (-O0):
@.str = [35 x i8] c"Hello world!f\0AMy name is tochap %d\00"
@.str.1 = [23 x i8] c"Quel age avez vous???\0A\00"
@.str.2 = [3 x i8] c"%d\00"
@.str.3 = [32 x i8] c"\0AVous n'\C3\AAtes pas majeur!!!!!!\0A\00"
@.str.4 = [35 x i8] c"\0ALa valeur absolu de %lf est %lf \0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
%4 = alloca double
%5 = alloca double
store i32 0, i32* %1
store i32 0, i32* %2
%6 = load i32, i32* %2
%7 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str, i64 0, i64 0), i32 %6)
store i32 0, i32* %3
br label %8
8: ; preds = %19, %0
%9 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.1, i64 0, i64 0))
%10 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), i32* %3)
%11 = load i32, i32* %3
%12 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.3, i64 0, i64 0), i32 %11)
br label %13
13: ; preds = %8
%14 = load i32, i32* %3
%15 = icmp sle i32 %14, 18
br i1 %15, label %19, label %16
16: ; preds = %13
%17 = load i32, i32* %3
%18 = icmp sge i32 %17, 25
br label %19
19: ; preds = %16, %13
%20 = phi i1 [ true, %13 ], [ %18, %16 ]
br i1 %20, label %8, label %21
21: ; preds = %19
store double 0.000000e+00, double* %4
store double -2.700000e+01, double* %5
%22 = load double, double* %5
%23 = call double @llvm.fabs.f64(double %22)
store double %23, double* %4
%24 = load double, double* %5
%25 = call double @pow(double %24, i32 2)
store double %25, double* %4
%26 = load double, double* %5
%27 = load double, double* %4
%28 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str.4, i64 0, i64 0), double %26, double %27)
ret i32 0
}

LLVM IR (-O2):
@.str = [35 x i8] c"Hello world!f\0AMy name is tochap %d\00"
@.str.2 = [3 x i8] c"%d\00"
@.str.4 = [35 x i8] c"\0ALa valeur absolu de %lf est %lf \0A\00"
@str = [22 x i8] c"Quel age avez vous???\00"
@str.5 = [31 x i8] c"\0AVous n'\C3\AAtes pas majeur!!!!!!\00"
define i32 @main() {
%1 = alloca i32
%2 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([35 x i8], [35 x i8]* @.str, i64 0, i64 0), i32 0)
%3 = bitcast i32* %1 to i8*
store i32 0, i32* %1
br label %4
4: ; preds = %4, %0
%5 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([22 x i8], [22 x i8]* @str, i64 0, i64 0))
%6 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), i32* %1)
%7 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([31 x i8], [31 x i8]* @str.5, i64 0, i64 0))
%8 = load i32, i32* %1
%9 = add i32 %8, -25
%10 = icmp ult i32 %9, -6
br i1 %10, label %4, label %11
11: ; preds = %4
%12 = call double @pow(double -2.700000e+01, i32 2)
%13 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([35 x i8], [35 x i8]* @.str.4, i64 0, i64 0), double -2.700000e+01, double %12)
ret i32 0
}