#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_topic1() {
  char first_initial = 'C';
  char last_initial = 'C';
  char *full_name = "Chris Carl";
  int house = 1101;
  char *street = "Main Street";
  char *city = "Washington";
  char *state = "D.C.";
  int zip = 20052;
  printf("Dear Mr. %c.%c.,\n", first_initial, last_initial);
  printf("\tWe understand that you have a new course for people to learn what "
         "programming is all about! ");
  printf("We also know that your full name is %s, that you're a giant piece of "
         "shit, ",
         full_name);
  printf("and you live at the following address:\n\n");
  printf("\t%d %s\n", house, street);
  printf("\t%s, %s %d\n\n", city, state, zip);
  printf("\tIf you do not deliver on the promise of a new world for the mere "
         "pittiance htat you've asked for, ");
  printf("be aware that the trolls will come for you, the comment section of "
         "your videos will cause your eyes ");
  printf("to bleed, and you will most die a horrible, painful death even more "
         "tragically than that of a ");
  printf("nerd.\n\n");
  printf("Rest in pieces,\n");
  printf("The Internet");
  printf("\n\n\n\n");
  int number_one = 0;
  int bob = 0;
  float pi = 3.14159;
  float euler = 2.71828;
  double super_long =
      .087965768798068574608768574635769876987890970695847362475869978697868574635758695876656;
  double equally_long =
      4567866789079685746352647586970886975386427768762734584659706875964875126348547695860.0;
  printf("the first number you put was: %d\n", number_one);
  printf("the second number you gave a value two was this value: %d\n", bob);
  printf("see how the name of the variable has nothing to do with its "
         "contents?\n\n");
  printf("now about them decimals, you had two of them: %f and %f.\n", pi,
         euler);
  printf("depending on your system, the following numbers may or may not even "
         "show up in their entirety. ");
  printf("see, the thing is that numbers can only be so big for a computer. "
         "more or less up to 64 bits. ");
  printf("when they are stored as such, eventually they run out of space. so "
         "with that in mind, here we go: \n");
  printf("%lf\n", super_long);
  printf("%lf\n", equally_long);
}


x86 assembly (clang, -O0):
<module1_section1_topic1>:
push   %rbp
mov    %rsp,%rbp
sub    $0x60,%rsp
movb   $0x43,-0x1(%rbp)
movb   $0x43,-0x2(%rbp)
lea    0xef1(%rip),%rax
mov    %rax,-0x10(%rbp)
movl   $0x44d,-0x14(%rbp)
lea    0xeea(%rip),%rax
mov    %rax,-0x20(%rbp)
lea    0xeeb(%rip),%rax
mov    %rax,-0x28(%rbp)
lea    0xeeb(%rip),%rax
mov    %rax,-0x30(%rbp)
movl   $0x4e54,-0x34(%rbp)
movsbl -0x1(%rbp),%esi
movsbl -0x2(%rbp),%edx
lea    0xed6(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xeda(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x10(%rbp),%rsi
lea    0xf26(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf64(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x14(%rbp),%esi
mov    -0x20(%rbp),%rdx
lea    0xf78(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x28(%rbp),%rsi
mov    -0x30(%rbp),%rdx
mov    -0x34(%rbp),%ecx
lea    0xf67(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf66(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xfbc(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x1013(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x1064(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x105e(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x1061(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x1060(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movl   $0x0,-0x38(%rbp)
movl   $0x0,-0x3c(%rbp)
movss  0xdd0(%rip),%xmm0
movss  %xmm0,-0x40(%rbp)
movss  0xdbf(%rip),%xmm0
movss  %xmm0,-0x44(%rbp)
movsd  0xdaa(%rip),%xmm0
movsd  %xmm0,-0x50(%rbp)
movsd  0xd95(%rip),%xmm0
movsd  %xmm0,-0x58(%rbp)
mov    -0x38(%rbp),%esi
lea    0x1012(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x3c(%rbp),%esi
lea    0x1023(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x1050(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movss  -0x40(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
movss  -0x44(%rbp),%xmm1
cvtss2sd %xmm1,%xmm1
lea    0x1078(%rip),%rdi
mov    $0x2,%al
call   1030 <printf@plt>
lea    0x10a4(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x10f6(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0x1147(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
movsd  -0x50(%rbp),%xmm0
lea    0x1198(%rip),%rdi
mov    $0x1,%al
call   1030 <printf@plt>
movsd  -0x58(%rbp),%xmm0
lea    0x1185(%rip),%rdi
mov    $0x1,%al
call   1030 <printf@plt>
add    $0x60,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<module1_section1_topic1>:
push   %rbx
lea    0xf1f(%rip),%rdi
mov    $0x43,%esi
mov    $0x43,%edx
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xf19(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xf69(%rip),%rdi
lea    0xecb(%rip),%rsi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0x1245(%rip),%rdi
call   1030 <puts@plt>
lea    0xf94(%rip),%rdi
lea    0xeb5(%rip),%rdx
mov    $0x44d,%esi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xf82(%rip),%rdi
lea    0xea7(%rip),%rsi
lea    0xeab(%rip),%rdx
mov    $0x4e54,%ecx
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xf6e(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xfc4(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0x101b(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0x11fc(%rip),%rdi
call   1030 <puts@plt>
lea    0x11f7(%rip),%rdi
call   1030 <puts@plt>
lea    0x1054(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0x11ed(%rip),%rdi
call   1030 <puts@plt>
lea    0x1047(%rip),%rdi
xor    %esi,%esi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0x1059(%rip),%rdi
xor    %esi,%esi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0x11c5(%rip),%rdi
call   1030 <puts@plt>
lea    0x1078(%rip),%rdi
movsd  0xdc6(%rip),%xmm0
movsd  0xdc6(%rip),%xmm1
mov    $0x2,%al
call   1040 <printf@plt>
lea    0x1094(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0x10e6(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0x11c6(%rip),%rdi
call   1030 <puts@plt>
lea    0x112b(%rip),%rbx
movsd  0xd90(%rip),%xmm0
mov    %rbx,%rdi
mov    $0x1,%al
call   1040 <printf@plt>
movsd  0xd86(%rip),%xmm0
mov    %rbx,%rdi
mov    $0x1,%al
pop    %rbx
jmp    1040 <printf@plt>

LLVM IR (-O0):
@.str = [11 x i8] c"Chris Carl\00"
@.str.1 = [12 x i8] c"Main Street\00"
@.str.2 = [11 x i8] c"Washington\00"
@.str.3 = [5 x i8] c"D.C.\00"
@.str.4 = [18 x i8] c"Dear Mr. %c.%c.,\0A\00"
@.str.5 = [94 x i8] c"\09We understand that you have a new course for people to learn what programming is all about! \00"
@.str.6 = [76 x i8] c"We also know that your full name is %s, that you're a giant piece of shit, \00"
@.str.7 = [41 x i8] c"and you live at the following address:\0A\0A\00"
@.str.8 = [8 x i8] c"\09%d %s\0A\00"
@.str.9 = [13 x i8] c"\09%s, %s %d\0A\0A\00"
@.str.10 = [100 x i8] c"\09If you do not deliver on the promise of a new world for the mere pittiance htat you've asked for, \00"
@.str.11 = [101 x i8] c"be aware that the trolls will come for you, the comment section of your videos will cause your eyes \00"
@.str.12 = [95 x i8] c"to bleed, and you will most die a horrible, painful death even more tragically than that of a \00"
@.str.13 = [8 x i8] c"nerd.\0A\0A\00"
@.str.14 = [17 x i8] c"Rest in pieces,\0A\00"
@.str.15 = [13 x i8] c"The Internet\00"
@.str.16 = [5 x i8] c"\0A\0A\0A\0A\00"
@.str.17 = [34 x i8] c"the first number you put was: %d\0A\00"
@.str.18 = [59 x i8] c"the second number you gave a value two was this value: %d\0A\00"
@.str.19 = [72 x i8] c"see how the name of the variable has nothing to do with its contents?\0A\0A\00"
@.str.20 = [58 x i8] c"now about them decimals, you had two of them: %f and %f.\0A\00"
@.str.21 = [96 x i8] c"depending on your system, the following numbers may or may not even show up in their entirety. \00"
@.str.22 = [95 x i8] c"see, the thing is that numbers can only be so big for a computer. more or less up to 64 bits. \00"
@.str.23 = [100 x i8] c"when they are stored as such, eventually they run out of space. so with that in mind, here we go: \0A\00"
@.str.24 = [5 x i8] c"%lf\0A\00"
define void @module1_section1_topic1() {
%1 = alloca i8
%2 = alloca i8
%3 = alloca i8*
%4 = alloca i32
%5 = alloca i8*
%6 = alloca i8*
%7 = alloca i8*
%8 = alloca i32
%9 = alloca i32
%10 = alloca i32
%11 = alloca float
%12 = alloca float
%13 = alloca double
%14 = alloca double
store i8 67, i8* %1
store i8 67, i8* %2
store i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str, i64 0, i64 0), i8** %3
store i32 1101, i32* %4
store i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.1, i64 0, i64 0), i8** %5
store i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.2, i64 0, i64 0), i8** %6
store i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i64 0, i64 0), i8** %7
store i32 20052, i32* %8
%15 = load i8, i8* %1
%16 = sext i8 %15 to i32
%17 = load i8, i8* %2
%18 = sext i8 %17 to i32
%19 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.4, i64 0, i64 0), i32 %16, i32 %18)
%20 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([94 x i8], [94 x i8]* @.str.5, i64 0, i64 0))
%21 = load i8*, i8** %3
%22 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([76 x i8], [76 x i8]* @.str.6, i64 0, i64 0), i8* %21)
%23 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([41 x i8], [41 x i8]* @.str.7, i64 0, i64 0))
%24 = load i32, i32* %4
%25 = load i8*, i8** %5
%26 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.8, i64 0, i64 0), i32 %24, i8* %25)
%27 = load i8*, i8** %6
%28 = load i8*, i8** %7
%29 = load i32, i32* %8
%30 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.9, i64 0, i64 0), i8* %27, i8* %28, i32 %29)
%31 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([100 x i8], [100 x i8]* @.str.10, i64 0, i64 0))
%32 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([101 x i8], [101 x i8]* @.str.11, i64 0, i64 0))
%33 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([95 x i8], [95 x i8]* @.str.12, i64 0, i64 0))
%34 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.13, i64 0, i64 0))
%35 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.14, i64 0, i64 0))
%36 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.15, i64 0, i64 0))
%37 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.16, i64 0, i64 0))
store i32 0, i32* %9
store i32 0, i32* %10
store float 0x400921FA00000000, float* %11
store float 0x4005BF09A0000000, float* %12
store double 0x3FB684ECB427BB4D, double* %13
store double 0x5182CF891C38C021, double* %14
%38 = load i32, i32* %9
%39 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str.17, i64 0, i64 0), i32 %38)
%40 = load i32, i32* %10
%41 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([59 x i8], [59 x i8]* @.str.18, i64 0, i64 0), i32 %40)
%42 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([72 x i8], [72 x i8]* @.str.19, i64 0, i64 0))
%43 = load float, float* %11
%44 = fpext float %43 to double
%45 = load float, float* %12
%46 = fpext float %45 to double
%47 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([58 x i8], [58 x i8]* @.str.20, i64 0, i64 0), double %44, double %46)
%48 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([96 x i8], [96 x i8]* @.str.21, i64 0, i64 0))
%49 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([95 x i8], [95 x i8]* @.str.22, i64 0, i64 0))
%50 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([100 x i8], [100 x i8]* @.str.23, i64 0, i64 0))
%51 = load double, double* %13
%52 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.24, i64 0, i64 0), double %51)
%53 = load double, double* %14
%54 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.24, i64 0, i64 0), double %53)
ret void
}

LLVM IR (-O2):
@.str = [11 x i8] c"Chris Carl\00"
@.str.1 = [12 x i8] c"Main Street\00"
@.str.2 = [11 x i8] c"Washington\00"
@.str.3 = [5 x i8] c"D.C.\00"
@.str.4 = [18 x i8] c"Dear Mr. %c.%c.,\0A\00"
@.str.5 = [94 x i8] c"\09We understand that you have a new course for people to learn what programming is all about! \00"
@.str.6 = [76 x i8] c"We also know that your full name is %s, that you're a giant piece of shit, \00"
@.str.8 = [8 x i8] c"\09%d %s\0A\00"
@.str.9 = [13 x i8] c"\09%s, %s %d\0A\0A\00"
@.str.10 = [100 x i8] c"\09If you do not deliver on the promise of a new world for the mere pittiance htat you've asked for, \00"
@.str.11 = [101 x i8] c"be aware that the trolls will come for you, the comment section of your videos will cause your eyes \00"
@.str.12 = [95 x i8] c"to bleed, and you will most die a horrible, painful death even more tragically than that of a \00"
@.str.15 = [13 x i8] c"The Internet\00"
@.str.17 = [34 x i8] c"the first number you put was: %d\0A\00"
@.str.18 = [59 x i8] c"the second number you gave a value two was this value: %d\0A\00"
@.str.20 = [58 x i8] c"now about them decimals, you had two of them: %f and %f.\0A\00"
@.str.21 = [96 x i8] c"depending on your system, the following numbers may or may not even show up in their entirety. \00"
@.str.22 = [95 x i8] c"see, the thing is that numbers can only be so big for a computer. more or less up to 64 bits. \00"
@.str.24 = [5 x i8] c"%lf\0A\00"
@str = [40 x i8] c"and you live at the following address:\0A\00"
@str.25 = [7 x i8] c"nerd.\0A\00"
@str.26 = [16 x i8] c"Rest in pieces,\00"
@str.27 = [4 x i8] c"\0A\0A\0A\00"
@str.28 = [71 x i8] c"see how the name of the variable has nothing to do with its contents?\0A\00"
@str.29 = [99 x i8] c"when they are stored as such, eventually they run out of space. so with that in mind, here we go: \00"
define void @module1_section1_topic1() {
%1 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([18 x i8], [18 x i8]* @.str.4, i64 0, i64 0), i32 67, i32 67)
%2 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([94 x i8], [94 x i8]* @.str.5, i64 0, i64 0))
%3 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([76 x i8], [76 x i8]* @.str.6, i64 0, i64 0), i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str, i64 0, i64 0))
%4 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([40 x i8], [40 x i8]* @str, i64 0, i64 0))
%5 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([8 x i8], [8 x i8]* @.str.8, i64 0, i64 0), i32 1101, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.1, i64 0, i64 0))
%6 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([13 x i8], [13 x i8]* @.str.9, i64 0, i64 0), i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i64 0, i64 0), i32 20052)
%7 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([100 x i8], [100 x i8]* @.str.10, i64 0, i64 0))
%8 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([101 x i8], [101 x i8]* @.str.11, i64 0, i64 0))
%9 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([95 x i8], [95 x i8]* @.str.12, i64 0, i64 0))
%10 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @str.25, i64 0, i64 0))
%11 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([16 x i8], [16 x i8]* @str.26, i64 0, i64 0))
%12 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([13 x i8], [13 x i8]* @.str.15, i64 0, i64 0))
%13 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @str.27, i64 0, i64 0))
%14 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([34 x i8], [34 x i8]* @.str.17, i64 0, i64 0), i32 0)
%15 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([59 x i8], [59 x i8]* @.str.18, i64 0, i64 0), i32 0)
%16 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([71 x i8], [71 x i8]* @str.28, i64 0, i64 0))
%17 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([58 x i8], [58 x i8]* @.str.20, i64 0, i64 0), double 0x400921FA00000000, double 0x4005BF09A0000000)
%18 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([96 x i8], [96 x i8]* @.str.21, i64 0, i64 0))
%19 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([95 x i8], [95 x i8]* @.str.22, i64 0, i64 0))
%20 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([99 x i8], [99 x i8]* @str.29, i64 0, i64 0))
%21 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.24, i64 0, i64 0), double 0x3FB684ECB427BB4D)
%22 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.24, i64 0, i64 0), double 0x5182CF891C38C021)
ret void
}