#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*/ fpurge(int /*<<< orphan*/);
int /*<<< orphan*/ printf(char *, ...);
int /*<<< orphan*/ scanf(char *, short *);
int /*<<< orphan*/ stdin;
int main() {
  short int age;
  for (;;) {
    printf("\n\nPlease enter your age here : ");
    scanf("%d", &age);
    if (age == 26) {
      printf("\nYour hexadecimal age is .... \n\t\t....... \n%32.#x", age);
      printf("\n\n\nYour octal age is .... \n\t\t....... \n%31.#o", age);
      printf("\n\n\nYour scientific age is .... \n\t\t....... \n%32.2e(%g)\r",
             (float)age, (float)age);
      break;
    } else {
      printf("\n \"Mugurel\" !? ....");
    }
    fpurge(stdin);
  }
  return (0);
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
lea    0xeba(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xecc(%rip),%rdi
lea    -0x6(%rbp),%rsi
call   1040 <scanf@plt>
movswl -0x6(%rbp),%eax
cmp    $0x1a,%eax
jne    11b5 <main+0x85>
movswl -0x6(%rbp),%esi
lea    0xeae(%rip),%rdi
xor    %eax,%eax
mov    %al,-0x7(%rbp)
call   1030 <printf@plt>
mov    -0x7(%rbp),%al
movswl -0x6(%rbp),%esi
lea    0xec7(%rip),%rdi
call   1030 <printf@plt>
movswl -0x6(%rbp),%eax
cvtsi2ss %eax,%xmm1
cvtss2sd %xmm1,%xmm0
cvtss2sd %xmm1,%xmm1
lea    0xed8(%rip),%rdi
mov    $0x2,%al
call   1030 <printf@plt>
jmp    11d6 <main+0xa6>
lea    0xefc(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    0x2e1e(%rip),%rax
mov    (%rax),%edi
call   1050 <fpurge@plt>
jmp    113f <main+0xf>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x10,%rsp
lea    0xebc(%rip),%rdi
xor    %eax,%eax
call   1030 <printf@plt>
lea    0xece(%rip),%rdi
lea    0xe(%rsp),%rsi
call   1040 <scanf@plt>
cmpw   $0x1a,0xe(%rsp)
je     11c0 <main+0x90>
lea    0xf4d(%rip),%r14
mov    0x2e76(%rip),%r13
lea    0xe87(%rip),%r15
lea    0xea0(%rip),%r12
lea    0xe(%rsp),%rbx
cs nopw 0x0(%rax,%rax,1)
nop
mov    %r14,%rdi
xor    %eax,%eax
call   1030 <printf@plt>
mov    0x0(%r13),%edi
call   1050 <fpurge@plt>
mov    %r15,%rdi
xor    %eax,%eax
call   1030 <printf@plt>
mov    %r12,%rdi
mov    %rbx,%rsi
call   1040 <scanf@plt>
cmpw   $0x1a,0xe(%rsp)
jne    1190 <main+0x60>
lea    0xe5c(%rip),%rdi
mov    $0x1a,%esi
xor    %eax,%eax
call   1030 <printf@plt>
movswl 0xe(%rsp),%esi
lea    0xe75(%rip),%rdi
xor    %eax,%eax
call   1030 <printf@plt>
movswl 0xe(%rsp),%eax
cvtsi2sd %eax,%xmm0
lea    0xe8b(%rip),%rdi
movapd %xmm0,%xmm1
mov    $0x2,%al
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
ret

LLVM IR (-O0):
@.str = [32 x i8] c"\0A\0APlease enter your age here : \00"
@.str.1 = [3 x i8] c"%d\00"
@.str.2 = [49 x i8] c"\0AYour hexadecimal age is .... \0A\09\09....... \0A%32.#x\00"
@.str.3 = [45 x i8] c"\0A\0A\0AYour octal age is .... \0A\09\09....... \0A%31.#o\00"
@.str.4 = [55 x i8] c"\0A\0A\0AYour scientific age is .... \0A\09\09....... \0A%32.2e(%g)\0D\00"
@.str.5 = [20 x i8] c"\0A \22Mugurel\22 !? ....\00"
@stdin = global i32 0
define i32 @main() {
%1 = alloca i32
%2 = alloca i16
store i32 0, i32* %1
br label %3
3: ; preds = %25, %0
%4 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str, i64 0, i64 0))
%5 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i16* %2)
%6 = load i16, i16* %2
%7 = sext i16 %6 to i32
%8 = icmp eq i32 %7, 26
br i1 %8, label %9, label %23
9: ; preds = %3
%10 = load i16, i16* %2
%11 = sext i16 %10 to i32
%12 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([49 x i8], [49 x i8]* @.str.2, i64 0, i64 0), i32 %11)
%13 = load i16, i16* %2
%14 = sext i16 %13 to i32
%15 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([45 x i8], [45 x i8]* @.str.3, i64 0, i64 0), i32 %14)
%16 = load i16, i16* %2
%17 = sitofp i16 %16 to float
%18 = fpext float %17 to double
%19 = load i16, i16* %2
%20 = sitofp i16 %19 to float
%21 = fpext float %20 to double
%22 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([55 x i8], [55 x i8]* @.str.4, i64 0, i64 0), double %18, double %21)
br label %28
23: ; preds = %3
%24 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.5, i64 0, i64 0))
br label %25
25: ; preds = %23
%26 = load i32, i32* @stdin
%27 = call i32 @fpurge(i32 %26)
br label %3
28: ; preds = %9
ret i32 0
}

LLVM IR (-O2):
@.str = [32 x i8] c"\0A\0APlease enter your age here : \00"
@.str.1 = [3 x i8] c"%d\00"
@.str.2 = [49 x i8] c"\0AYour hexadecimal age is .... \0A\09\09....... \0A%32.#x\00"
@.str.3 = [45 x i8] c"\0A\0A\0AYour octal age is .... \0A\09\09....... \0A%31.#o\00"
@.str.4 = [55 x i8] c"\0A\0A\0AYour scientific age is .... \0A\09\09....... \0A%32.2e(%g)\0D\00"
@.str.5 = [20 x i8] c"\0A \22Mugurel\22 !? ....\00"
@stdin = global i32 0
define i32 @main() {
%1 = alloca i16
%2 = bitcast i16* %1 to i8*
%3 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([32 x i8], [32 x i8]* @.str, i64 0, i64 0))
%4 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i16* %1)
%5 = load i16, i16* %1
%6 = icmp eq i16 %5, 26
br i1 %6, label %7, label %15
7: ; preds = %15, %0
%8 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([49 x i8], [49 x i8]* @.str.2, i64 0, i64 0), i32 26)
%9 = load i16, i16* %1
%10 = sext i16 %9 to i32
%11 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([45 x i8], [45 x i8]* @.str.3, i64 0, i64 0), i32 %10)
%12 = load i16, i16* %1
%13 = sitofp i16 %12 to double
%14 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([55 x i8], [55 x i8]* @.str.4, i64 0, i64 0), double %13, double %13)
ret i32 0
15: ; preds = %0, %15
%16 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([20 x i8], [20 x i8]* @.str.5, i64 0, i64 0))
%17 = load i32, i32* @stdin
%18 = call i32 @fpurge(i32 %17)
%19 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([32 x i8], [32 x i8]* @.str, i64 0, i64 0))
%20 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i16* %1)
%21 = load i16, i16* %1
%22 = icmp eq i16 %21, 26
br i1 %22, label %7, label %15
}