#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*/ fprintf(int /*<<< orphan*/, char *, char *);
int /*<<< orphan*/ fputs(char *, int /*<<< orphan*/);
int /*<<< orphan*/ fwrite(char *, int, int, int /*<<< orphan*/);
int /*<<< orphan*/ printf(char *, ...);
int /*<<< orphan*/ puts(char *);
int /*<<< orphan*/ stdout;
void module1_section1_topic0() {
  int blue_sticky_note = 6;
  float pink_sticky_note = 9.9;
  char yellow_sticky_note = 'c';
  char *yellow_note_block = "penispants";
  printf("%d ", blue_sticky_note);
  printf("%f ", pink_sticky_note);
  printf("%c ", yellow_sticky_note);
  printf("%s ", yellow_note_block);
  puts(yellow_note_block);
  fputs(yellow_note_block, stdout);
  fprintf(stdout, "this will be a sentence: %s\n", yellow_note_block);
  fwrite(yellow_note_block, sizeof(char), 10, stdout);
}


x86 assembly (clang, -O0):
<module1_section1_topic0>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movl   $0x6,-0x4(%rbp)
movss  0xe99(%rip),%xmm0
movss  %xmm0,-0x8(%rbp)
movb   $0x63,-0x9(%rbp)
lea    0xe8d(%rip),%rax
mov    %rax,-0x18(%rbp)
mov    -0x4(%rbp),%esi
lea    0xe8a(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
movss  -0x8(%rbp),%xmm0
cvtss2sd %xmm0,%xmm0
lea    0xe77(%rip),%rdi
mov    $0x1,%al
call   1040 <printf@plt>
movsbl -0x9(%rbp),%esi
lea    0xe69(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x18(%rbp),%rsi
lea    0xe5b(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x18(%rbp),%rdi
call   1030 <puts@plt>
mov    -0x18(%rbp),%rdi
mov    0x2e05(%rip),%rax
mov    (%rax),%esi
call   1050 <fputs@plt>
mov    0x2df7(%rip),%rax
mov    (%rax),%edi
mov    -0x18(%rbp),%rdx
lea    0xe29(%rip),%rsi
call   1060 <fprintf@plt>
mov    -0x18(%rbp),%rdi
mov    0x2dda(%rip),%rax
mov    (%rax),%ecx
mov    $0x1,%esi
mov    $0xa,%edx
call   1070 <fwrite@plt>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<module1_section1_topic0>:
push   %r14
push   %rbx
push   %rax
lea    0xeb8(%rip),%rdi
mov    $0x6,%esi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xea9(%rip),%rdi
movsd  0xe8a(%rip),%xmm0
mov    $0x1,%al
call   1040 <printf@plt>
lea    0xe97(%rip),%rdi
mov    $0x63,%esi
xor    %eax,%eax
call   1040 <printf@plt>
lea    0xe88(%rip),%rdi
lea    0xe6a(%rip),%rbx
mov    %rbx,%rsi
xor    %eax,%eax
call   1040 <printf@plt>
mov    %rbx,%rdi
call   1030 <puts@plt>
mov    0x2e29(%rip),%r14
mov    (%r14),%esi
mov    %rbx,%rdi
call   1050 <fputs@plt>
mov    (%r14),%edi
lea    0xe57(%rip),%rsi
mov    %rbx,%rdx
call   1060 <fprintf@plt>
mov    (%r14),%ecx
mov    %rbx,%rdi
mov    $0x1,%esi
mov    $0xa,%edx
add    $0x8,%rsp
pop    %rbx
pop    %r14
jmp    1070 <fwrite@plt>

LLVM IR (-O0):
@.str = [11 x i8] c"penispants\00"
@.str.1 = [4 x i8] c"%d \00"
@.str.2 = [4 x i8] c"%f \00"
@.str.3 = [4 x i8] c"%c \00"
@.str.4 = [4 x i8] c"%s \00"
@stdout = global i32 0
@.str.5 = [29 x i8] c"this will be a sentence: %s\0A\00"
define void @module1_section1_topic0() {
%1 = alloca i32
%2 = alloca float
%3 = alloca i8
%4 = alloca i8*
store i32 6, i32* %1
store float 0x4023CCCCC0000000, float* %2
store i8 99, i8* %3
store i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str, i64 0, i64 0), i8** %4
%5 = load i32, i32* %1
%6 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i32 %5)
%7 = load float, float* %2
%8 = fpext float %7 to double
%9 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0), double %8)
%10 = load i8, i8* %3
%11 = sext i8 %10 to i32
%12 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i64 0, i64 0), i32 %11)
%13 = load i8*, i8** %4
%14 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0), i8* %13)
%15 = load i8*, i8** %4
%16 = call i32 @puts(i8* %15)
%17 = load i8*, i8** %4
%18 = load i32, i32* @stdout
%19 = call i32 @fputs(i8* %17, i32 %18)
%20 = load i32, i32* @stdout
%21 = load i8*, i8** %4
%22 = call i32 @fprintf(i32 %20, i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.5, i64 0, i64 0), i8* %21)
%23 = load i8*, i8** %4
%24 = load i32, i32* @stdout
%25 = call i32 @fwrite(i8* %23, i32 1, i32 10, i32 %24)
ret void
}

LLVM IR (-O2):
@.str = [11 x i8] c"penispants\00"
@.str.1 = [4 x i8] c"%d \00"
@.str.2 = [4 x i8] c"%f \00"
@.str.3 = [4 x i8] c"%c \00"
@.str.4 = [4 x i8] c"%s \00"
@stdout = global i32 0
@.str.5 = [29 x i8] c"this will be a sentence: %s\0A\00"
define void @module1_section1_topic0() {
%1 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i32 6)
%2 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0), double 0x4023CCCCC0000000)
%3 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i64 0, i64 0), i32 99)
%4 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str, i64 0, i64 0))
%5 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([11 x i8], [11 x i8]* @.str, i64 0, i64 0))
%6 = load i32, i32* @stdout
%7 = tail call i32 @fputs(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str, i64 0, i64 0), i32 %6)
%8 = load i32, i32* @stdout
%9 = tail call i32 @fprintf(i32 %8, i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.5, i64 0, i64 0), i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str, i64 0, i64 0))
%10 = load i32, i32* @stdout
%11 = tail call i32 @fwrite(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str, i64 0, i64 0), i32 1, i32 10, i32 %10)
ret void
}