#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(void) {
  int age;
  char childname[14] = "Thomasina";
  printf("\n%s have %d kids.\n", "The Sidebottoms", 3);
  age = 11;
  printf("The oldest, %s, is %d.\n", childname, age);
  strcpy(childname, "Christopher");
  age = 6;
  printf("The middle boy, %s, is %d.\n", childname, age);
  age = 3;
  strcpy(childname, "Banjo");
  printf("The youngest, %s, is %d.\n", childname, age);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movl   $0x0,-0x4(%rbp)
mov    0xeca(%rip),%rax
mov    %rax,-0x16(%rbp)
mov    0xec8(%rip),%eax
mov    %eax,-0xe(%rbp)
mov    0xec2(%rip),%ax
mov    %ax,-0xa(%rbp)
lea    0xeb9(%rip),%rdi
lea    0xec5(%rip),%rsi
mov    $0x3,%edx
call   1040 <printf@plt>
movl   $0xb,-0x8(%rbp)
lea    -0x16(%rbp),%rsi
mov    -0x8(%rbp),%edx
lea    0xeb6(%rip),%rdi
call   1040 <printf@plt>
lea    -0x16(%rbp),%rdi
lea    0xebe(%rip),%rsi
call   1030 <strcpy@plt>
movl   $0x6,-0x8(%rbp)
lea    -0x16(%rbp),%rsi
mov    -0x8(%rbp),%edx
lea    0xeb0(%rip),%rdi
call   1040 <printf@plt>
movl   $0x3,-0x8(%rbp)
lea    -0x16(%rbp),%rdi
lea    0xeb5(%rip),%rsi
call   1030 <strcpy@plt>
lea    -0x16(%rbp),%rsi
mov    -0x8(%rbp),%edx
lea    0xea8(%rip),%rdi
call   1040 <printf@plt>
xor    %eax,%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbx
sub    $0x10,%rsp
movabs $0x6e6973616d6f6854,%rax
73 69 6e
mov    %rax,(%rsp)
movq   $0x616e69,0x6(%rsp)
lea    0xecb(%rip),%rdi
lea    0xed7(%rip),%rsi
mov    $0x3,%edx
call   1040 <printf@plt>
lea    0xed6(%rip),%rdi
mov    %rsp,%rbx
mov    %rbx,%rsi
mov    $0xb,%edx
call   1040 <printf@plt>
lea    0xed7(%rip),%rsi
mov    %rbx,%rdi
call   1030 <strcpy@plt>
lea    0xed4(%rip),%rdi
mov    %rbx,%rsi
mov    $0x6,%edx
call   1040 <printf@plt>
lea    0xedc(%rip),%rsi
mov    %rbx,%rdi
call   1030 <strcpy@plt>
lea    0xed3(%rip),%rdi
mov    %rbx,%rsi
mov    $0x3,%edx
call   1040 <printf@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbx
ret

LLVM IR (-O0):
@__const.main.childname = [14 x i8] c"Thomasina\00\00\00\00\00"
@.str = [19 x i8] c"\0A%s have %d kids.\0A\00"
@.str.1 = [16 x i8] c"The Sidebottoms\00"
@.str.2 = [24 x i8] c"The oldest, %s, is %d.\0A\00"
@.str.3 = [12 x i8] c"Christopher\00"
@.str.4 = [28 x i8] c"The middle boy, %s, is %d.\0A\00"
@.str.5 = [6 x i8] c"Banjo\00"
@.str.6 = [26 x i8] c"The youngest, %s, is %d.\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca [14 x i8]
store i32 0, i32* %1
%4 = bitcast [14 x i8]* %3 to i8*
%5 = call i32 @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.1, i64 0, i64 0), i32 3)
store i32 11, i32* %2
%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 ([24 x i8], [24 x i8]* @.str.2, i64 0, i64 0), i8* %6, i32 %7)
%9 = getelementptr inbounds [14 x i8], [14 x i8]* %3, i64 0, i64 0
%10 = call i32 @strcpy(i8* %9, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.3, i64 0, i64 0))
store i32 6, i32* %2
%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 ([28 x i8], [28 x i8]* @.str.4, i64 0, i64 0), i8* %11, i32 %12)
store i32 3, i32* %2
%14 = getelementptr inbounds [14 x i8], [14 x i8]* %3, i64 0, i64 0
%15 = call i32 @strcpy(i8* %14, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.5, i64 0, i64 0))
%16 = getelementptr inbounds [14 x i8], [14 x i8]* %3, i64 0, i64 0
%17 = load i32, i32* %2
%18 = call i32 @printf(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.6, i64 0, i64 0), i8* %16, i32 %17)
ret i32 0
}

LLVM IR (-O2):
@__const.main.childname = [14 x i8] c"Thomasina\00\00\00\00\00"
@.str = [19 x i8] c"\0A%s have %d kids.\0A\00"
@.str.1 = [16 x i8] c"The Sidebottoms\00"
@.str.2 = [24 x i8] c"The oldest, %s, is %d.\0A\00"
@.str.3 = [12 x i8] c"Christopher\00"
@.str.4 = [28 x i8] c"The middle boy, %s, is %d.\0A\00"
@.str.5 = [6 x i8] c"Banjo\00"
@.str.6 = [26 x i8] c"The youngest, %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 ([19 x i8], [19 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.1, i64 0, i64 0), i32 3)
%4 = call i32 @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.2, i64 0, i64 0), i8* %2, i32 11)
%5 = call i32 @strcpy(i8* %2, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.3, i64 0, i64 0))
%6 = call i32 @printf(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.4, i64 0, i64 0), i8* %2, i32 6)
%7 = call i32 @strcpy(i8* %2, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.5, i64 0, i64 0))
%8 = call i32 @printf(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.6, i64 0, i64 0), i8* %2, i32 3)
ret i32 0
}