#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 module1_section1_topic10() {
  printf(
      "One beautiful summer morning %s woke me up at %d am. It was just near "
      "the end of the summer and I was trying to catch up on my %s.\n\n",
      "Evil Caneival", 9, "bed head");
  char *type_of_meat_product = "sausage";
  char *female_teachers_name = "Ms. Vagina";
  char *mythical_creature = "succubus";
  printf("%s said \"Wake up %s! It’s the first day of school! Let’s get going "
         "because my new teacher %s is really a %s. I can’t wait to throw %s "
         "at her. I hear she can’t resist %s it with her teeth!\"\n\n",
         "Evil Caneival", type_of_meat_product, female_teachers_name,
         mythical_creature, type_of_meat_product, "fucking");
  int amount = 3;
  char *of_time = "days";
  char *color_pattern = "polkadot";
  char *type_of_clothes = "bruka";
  char *type_of_sauce = "man yogurt";
  char *utensil = "chopsticks";
  printf("I moaned and groaned for %d %s, but eventually, I woke and starter "
         "getting dressed. I wore a %s %s with a very long %s attached to it. "
         "My shoes rocked hard! They were covered in %s from the night before. "
         "I flipped over the shoe and yelled \"%s\" I grabbed a %s and had "
         "breakfast off of my shoes!\n\n",
         amount, of_time, color_pattern, type_of_clothes, "asshat",
         type_of_sauce, "shit", utensil);
}


x86 assembly (clang, -O0):
<module1_section1_topic10>:
push   %rbp
mov    %rsp,%rbp
sub    $0x60,%rsp
lea    0xee1(%rip),%rdi
lea    0xf5f(%rip),%rsi
mov    $0x9,%edx
lea    0xf61(%rip),%rcx
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf5c(%rip),%rax
mov    %rax,-0x8(%rbp)
lea    0xf59(%rip),%rax
mov    %rax,-0x10(%rbp)
lea    0xf59(%rip),%rax
mov    %rax,-0x18(%rbp)
mov    -0x8(%rbp),%rdx
mov    -0x10(%rbp),%rcx
mov    -0x18(%rbp),%r8
mov    -0x8(%rbp),%r9
lea    0xf47(%rip),%rdi
lea    0xf0d(%rip),%rsi
lea    0x1000(%rip),%rax
mov    %rax,(%rsp)
mov    $0x0,%al
call   1030 <printf@plt>
movl   $0x3,-0x1c(%rbp)
lea    0xfef(%rip),%rax
mov    %rax,-0x28(%rbp)
lea    0xfe9(%rip),%rax
mov    %rax,-0x30(%rbp)
lea    0xfe7(%rip),%rax
mov    %rax,-0x38(%rbp)
lea    0xfe2(%rip),%rax
mov    %rax,-0x40(%rbp)
lea    0xfe2(%rip),%rax
mov    %rax,-0x48(%rbp)
mov    -0x1c(%rbp),%esi
mov    -0x28(%rbp),%rdx
mov    -0x30(%rbp),%rcx
mov    -0x38(%rbp),%r8
mov    -0x40(%rbp),%r11
mov    -0x48(%rbp),%rax
lea    0xfcb(%rip),%rdi
lea    0x10ec(%rip),%r9
lea    0x10ec(%rip),%r10
mov    %r11,(%rsp)
mov    %r10,0x8(%rsp)
mov    %rax,0x10(%rsp)
mov    $0x0,%al
call   1030 <printf@plt>
add    $0x60,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<module1_section1_topic10>:
push   %rbx
lea    0xee8(%rip),%rdi
lea    0xf66(%rip),%rbx
lea    0xf6d(%rip),%rcx
mov    %rbx,%rsi
mov    $0x9,%edx
xor    %eax,%eax
call   1030 <printf@plt>
sub    $0x8,%rsp
lea    0x103f(%rip),%r10
lea    0xf71(%rip),%rdi
lea    0xf56(%rip),%rcx
lea    0xf5a(%rip),%r8
lea    0xf40(%rip),%rdx
mov    %rbx,%rsi
mov    %rdx,%r9
xor    %eax,%eax
push   %r10
call   1030 <printf@plt>
add    $0x8,%rsp
lea    0x1030(%rip),%rbx
lea    0x1163(%rip),%r10
lea    0x1017(%rip),%r11
lea    0x1026(%rip),%rdi
lea    0xff5(%rip),%rdx
lea    0xff3(%rip),%rcx
lea    0xff5(%rip),%r8
lea    0x1132(%rip),%r9
mov    $0x3,%esi
xor    %eax,%eax
push   %rbx
push   %r10
push   %r11
call   1030 <printf@plt>
add    $0x20,%rsp
pop    %rbx
ret

LLVM IR (-O0):
@.str = [133 x i8] c"One beautiful summer morning %s woke me up at %d am. It was just near the end of the summer and I was trying to catch up on my %s.\0A\0A\00"
@.str.1 = [14 x i8] c"Evil Caneival\00"
@.str.2 = [9 x i8] c"bed head\00"
@.str.3 = [8 x i8] c"sausage\00"
@.str.4 = [11 x i8] c"Ms. Vagina\00"
@.str.5 = [9 x i8] c"succubus\00"
@.str.6 = [199 x i8] c"%s said \22Wake up %s! It\E2\80\99s the first day of school! Let\E2\80\99s get going because my new teacher %s is really a %s. I can\E2\80\99t wait to throw %s at her. I hear she can\E2\80\99t resist %s it with her teeth!\22\0A\0A\00"
@.str.7 = [8 x i8] c"fucking\00"
@.str.8 = [5 x i8] c"days\00"
@.str.9 = [9 x i8] c"polkadot\00"
@.str.10 = [6 x i8] c"bruka\00"
@.str.11 = [11 x i8] c"man yogurt\00"
@.str.12 = [11 x i8] c"chopsticks\00"
@.str.13 = [296 x i8] c"I moaned and groaned for %d %s, but eventually, I woke and starter getting dressed. I wore a %s %s with a very long %s attached to it. My shoes rocked hard! They were covered in %s from the night before. I flipped over the shoe and yelled \22%s\22 I grabbed a %s and had breakfast off of my shoes!\0A\0A\00"
@.str.14 = [7 x i8] c"asshat\00"
@.str.15 = [5 x i8] c"shit\00"
define void @module1_section1_topic10() {
%1 = alloca i8*
%2 = alloca i8*
%3 = alloca i8*
%4 = alloca i32
%5 = alloca i8*
%6 = alloca i8*
%7 = alloca i8*
%8 = alloca i8*
%9 = alloca i8*
%10 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([133 x i8], [133 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.1, i64 0, i64 0), i32 9, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.2, i64 0, i64 0))
store i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.3, i64 0, i64 0), i8** %1
store i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.4, i64 0, i64 0), i8** %2
store i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.5, i64 0, i64 0), i8** %3
%11 = load i8*, i8** %1
%12 = load i8*, i8** %2
%13 = load i8*, i8** %3
%14 = load i8*, i8** %1
%15 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([199 x i8], [199 x i8]* @.str.6, i64 0, i64 0), i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.1, i64 0, i64 0), i8* %11, i8* %12, i8* %13, i8* %14, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.7, i64 0, i64 0))
store i32 3, i32* %4
store i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.8, i64 0, i64 0), i8** %5
store i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.9, i64 0, i64 0), i8** %6
store i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.10, i64 0, i64 0), i8** %7
store i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.11, i64 0, i64 0), i8** %8
store i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.12, i64 0, i64 0), i8** %9
%16 = load i32, i32* %4
%17 = load i8*, i8** %5
%18 = load i8*, i8** %6
%19 = load i8*, i8** %7
%20 = load i8*, i8** %8
%21 = load i8*, i8** %9
%22 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([296 x i8], [296 x i8]* @.str.13, i64 0, i64 0), i32 %16, i8* %17, i8* %18, i8* %19, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.14, i64 0, i64 0), i8* %20, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.15, i64 0, i64 0), i8* %21)
ret void
}

LLVM IR (-O2):
@.str = [133 x i8] c"One beautiful summer morning %s woke me up at %d am. It was just near the end of the summer and I was trying to catch up on my %s.\0A\0A\00"
@.str.1 = [14 x i8] c"Evil Caneival\00"
@.str.2 = [9 x i8] c"bed head\00"
@.str.3 = [8 x i8] c"sausage\00"
@.str.4 = [11 x i8] c"Ms. Vagina\00"
@.str.5 = [9 x i8] c"succubus\00"
@.str.6 = [199 x i8] c"%s said \22Wake up %s! It\E2\80\99s the first day of school! Let\E2\80\99s get going because my new teacher %s is really a %s. I can\E2\80\99t wait to throw %s at her. I hear she can\E2\80\99t resist %s it with her teeth!\22\0A\0A\00"
@.str.7 = [8 x i8] c"fucking\00"
@.str.8 = [5 x i8] c"days\00"
@.str.9 = [9 x i8] c"polkadot\00"
@.str.10 = [6 x i8] c"bruka\00"
@.str.11 = [11 x i8] c"man yogurt\00"
@.str.12 = [11 x i8] c"chopsticks\00"
@.str.13 = [296 x i8] c"I moaned and groaned for %d %s, but eventually, I woke and starter getting dressed. I wore a %s %s with a very long %s attached to it. My shoes rocked hard! They were covered in %s from the night before. I flipped over the shoe and yelled \22%s\22 I grabbed a %s and had breakfast off of my shoes!\0A\0A\00"
@.str.14 = [7 x i8] c"asshat\00"
@.str.15 = [5 x i8] c"shit\00"
define void @module1_section1_topic10() {
%1 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([133 x i8], [133 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.1, i64 0, i64 0), i32 9, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.2, i64 0, i64 0))
%2 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([199 x i8], [199 x i8]* @.str.6, i64 0, i64 0), i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.5, i64 0, i64 0), i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.7, i64 0, i64 0))
%3 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([296 x i8], [296 x i8]* @.str.13, i64 0, i64 0), i32 3, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.8, i64 0, i64 0), i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.9, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.10, i64 0, i64 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.14, i64 0, i64 0), i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.11, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.15, i64 0, i64 0), i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.12, i64 0, i64 0))
ret void
}