#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 */
typedef int /*<<< orphan*/ FILE;

/* Variables and functions */
int /*<<< orphan*/ fprintf(int /*<<< orphan*/ *, char *, char *, char *, char *,
                           char *, char *, char *, char *);
void make_template_bottom(FILE *f) {
  fprintf(f, "%s\n%s\n%s\n%s\n%s\n%s\n%s\n", "    popq    %rbp",
          "    .cfi_def_cfa 7, 8", "    ret", "    .cfi_endproc",
          ".LFE0:", "    .size   main, .-main",
          "    .section    .note.GNU-stack,\"\",@progbits");
}


x86 assembly (clang, -O0):
<make_template_bottom>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rdi
lea    0xed9(%rip),%rsi
lea    0xee8(%rip),%rdx
lea    0xef2(%rip),%rcx
lea    0xf01(%rip),%r8
lea    0xf02(%rip),%r9
lea    0xf0c(%rip),%r11
lea    0xf0c(%rip),%r10
lea    0xf1e(%rip),%rax
mov    %r11,(%rsp)
mov    %r10,0x8(%rsp)
mov    %rax,0x10(%rsp)
call   1030 <fprintf@plt>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<make_template_bottom>:
push   %rax
sub    $0x8,%rsp
lea    0xf5a(%rip),%rax
lea    0xf3a(%rip),%r10
lea    0xf2c(%rip),%r11
lea    0xecf(%rip),%rsi
lea    0xede(%rip),%rdx
lea    0xee8(%rip),%rcx
lea    0xef7(%rip),%r8
lea    0xef8(%rip),%r9
push   %rax
push   %r10
push   %r11
call   1030 <fprintf@plt>
add    $0x20,%rsp
pop    %rax
ret

LLVM IR (-O0):
@.str = [22 x i8] c"%s\0A%s\0A%s\0A%s\0A%s\0A%s\0A%s\0A\00"
@.str.1 = [17 x i8] c" popq %rbp\00"
@.str.2 = [22 x i8] c" .cfi_def_cfa 7, 8\00"
@.str.3 = [8 x i8] c" ret\00"
@.str.4 = [17 x i8] c" .cfi_endproc\00"
@.str.5 = [7 x i8] c".LFE0:\00"
@.str.6 = [25 x i8] c" .size main, .-main\00"
@.str.7 = [45 x i8] c" .section .note.GNU-stack,\22\22,@progbits\00"
define void @make_template_bottom(i32* %0) {
%2 = alloca i32*
store i32* %0, i32** %2
%3 = load i32*, i32** %2
%4 = call i32 @fprintf(i32* %3, i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.5, i64 0, i64 0), i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.6, i64 0, i64 0), i8* getelementptr inbounds ([45 x i8], [45 x i8]* @.str.7, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@.str = [22 x i8] c"%s\0A%s\0A%s\0A%s\0A%s\0A%s\0A%s\0A\00"
@.str.1 = [17 x i8] c" popq %rbp\00"
@.str.2 = [22 x i8] c" .cfi_def_cfa 7, 8\00"
@.str.3 = [8 x i8] c" ret\00"
@.str.4 = [17 x i8] c" .cfi_endproc\00"
@.str.5 = [7 x i8] c".LFE0:\00"
@.str.6 = [25 x i8] c" .size main, .-main\00"
@.str.7 = [45 x i8] c" .section .note.GNU-stack,\22\22,@progbits\00"
define void @make_template_bottom(i32* nocapture %0) {
%2 = tail call i32 @fprintf(i32* %0, i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.5, i64 0, i64 0), i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.6, i64 0, i64 0), i8* getelementptr inbounds ([45 x i8], [45 x i8]* @.str.7, i64 0, i64 0))
ret void
}