#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 *, char *, int);
int /*<<< orphan*/ strcpy(char *, char *);
int main() {
  int age = 22;
  char name[] = "Wesam Shigdar";
  printf("%s is %d age\n", "Wesam Shigdar", 22);
  printf("%s is %d age\n", name, age);
  age = 20;
  strcpy(name, "mezo");
  printf("%s is %d\n", name, age);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movl   $0x0,-0x4(%rbp)
movl   $0x16,-0x8(%rbp)
mov    0xec3(%rip),%rax
mov    %rax,-0x16(%rbp)
mov    0xec1(%rip),%eax
mov    %eax,-0xe(%rbp)
mov    0xebb(%rip),%ax
mov    %ax,-0xa(%rbp)
lea    0xeb2(%rip),%rdi
lea    0xe9d(%rip),%rsi
mov    $0x16,%edx
call   1040 <printf@plt>
lea    -0x16(%rbp),%rsi
mov    -0x8(%rbp),%edx
lea    0xe93(%rip),%rdi
call   1040 <printf@plt>
movl   $0x14,-0x8(%rbp)
lea    -0x16(%rbp),%rdi
lea    0xe8a(%rip),%rsi
call   1030 <strcpy@plt>
lea    -0x16(%rbp),%rsi
mov    -0x8(%rbp),%edx
lea    0xe7c(%rip),%rdi
call   1040 <printf@plt>
xor    %eax,%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %r14
push   %rbx
sub    $0x18,%rsp
movabs $0x72616467696853,%rax
mov    %rax,0xe(%rsp)
movabs $0x6853206d61736557,%rax
20 53 68
mov    %rax,0x8(%rsp)
lea    0xec2(%rip),%rsi
lea    0xead(%rip),%r14
mov    %r14,%rdi
mov    $0x16,%edx
call   1040 <printf@plt>
lea    0x8(%rsp),%rbx
mov    %r14,%rdi
mov    %rbx,%rsi
mov    $0x16,%edx
call   1040 <printf@plt>
lea    0xea0(%rip),%rsi
mov    %rbx,%rdi
call   1030 <strcpy@plt>
lea    0xe96(%rip),%rdi
mov    %rbx,%rsi
mov    $0x14,%edx
call   1040 <printf@plt>
xor    %eax,%eax
add    $0x18,%rsp
pop    %rbx
pop    %r14
ret

LLVM IR (-O0):
@__const.main.name = [14 x i8] c"Wesam Shigdar\00"
@.str = [14 x i8] c"%s is %d age\0A\00"
@.str.1 = [14 x i8] c"Wesam Shigdar\00"
@.str.2 = [5 x i8] c"mezo\00"
@.str.3 = [10 x i8] c"%s is %d\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca [14 x i8]
store i32 0, i32* %1
store i32 22, i32* %2
%4 = bitcast [14 x i8]* %3 to i8*
%5 = call i32 @printf(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.1, i64 0, i64 0), i32 22)
%6 = getelementptr inbounds [14 x i8], [14 x i8]* %3, i64 0, i64 0
%7 = load i32, i32* %2
%8 = call i32 @printf(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str, i64 0, i64 0), i8* %6, i32 %7)
store i32 20, i32* %2
%9 = getelementptr inbounds [14 x i8], [14 x i8]* %3, i64 0, i64 0
%10 = call i32 @strcpy(i8* %9, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0))
%11 = getelementptr inbounds [14 x i8], [14 x i8]* %3, i64 0, i64 0
%12 = load i32, i32* %2
%13 = call i32 @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.3, i64 0, i64 0), i8* %11, i32 %12)
ret i32 0
}

LLVM IR (-O2):
@.str = [14 x i8] c"%s is %d age\0A\00"
@.str.1 = [14 x i8] c"Wesam Shigdar\00"
@.str.2 = [5 x i8] c"mezo\00"
@.str.3 = [10 x i8] c"%s is %d\0A\00"
define i32 @main() {
%1 = alloca [14 x i8]
%2 = getelementptr inbounds [14 x i8], [14 x i8]* %1, i64 0, i64 0
%3 = tail call i32 @printf(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.1, i64 0, i64 0), i32 22)
%4 = call i32 @printf(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str, i64 0, i64 0), i8* %2, i32 22)
%5 = call i32 @strcpy(i8* %2, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0))
%6 = call i32 @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.3, i64 0, i64 0), i8* %2, i32 20)
ret i32 0
}