#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 *);
int lvl7() {
  char string2[1024] = "ALPHA";
  char string3[1024] = "BETA";
  char string4[1024] = "GAMMA";
  printf("\n\nLEVEL 7 \n");
  return (0);
}


x86 assembly (clang, -O0):
<lvl7>:
push   %rbp
mov    %rsp,%rbp
sub    $0xc00,%rsp
lea    -0x400(%rbp),%rdi
xor    %esi,%esi
mov    $0x400,%edx
call   1040 <memset@plt>
movb   $0x41,-0x400(%rbp)
movb   $0x4c,-0x3ff(%rbp)
movb   $0x50,-0x3fe(%rbp)
movb   $0x48,-0x3fd(%rbp)
movb   $0x41,-0x3fc(%rbp)
lea    -0x800(%rbp),%rdi
xor    %esi,%esi
mov    $0x400,%edx
call   1040 <memset@plt>
movb   $0x42,-0x800(%rbp)
movb   $0x45,-0x7ff(%rbp)
movb   $0x54,-0x7fe(%rbp)
movb   $0x41,-0x7fd(%rbp)
lea    -0xc00(%rbp),%rdi
xor    %esi,%esi
mov    $0x400,%edx
call   1040 <memset@plt>
movb   $0x47,-0xc00(%rbp)
movb   $0x41,-0xbff(%rbp)
movb   $0x4d,-0xbfe(%rbp)
movb   $0x4d,-0xbfd(%rbp)
movb   $0x41,-0xbfc(%rbp)
lea    0xe33(%rip),%rdi
call   1030 <printf@plt>
xor    %eax,%eax
add    $0xc00,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<lvl7>:
push   %rax
lea    0xee8(%rip),%rdi
call   1030 <puts@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
@.str = [12 x i8] c"\0A\0ALEVEL 7 \0A\00"
define i32 @lvl7() {
%1 = alloca [1024 x i8]
%2 = alloca [1024 x i8]
%3 = alloca [1024 x i8]
%4 = bitcast [1024 x i8]* %1 to i8*
%5 = bitcast i8* %4 to [1024 x i8]*
%6 = getelementptr inbounds [1024 x i8], [1024 x i8]* %5, i32 0, i32 0
store i8 65, i8* %6
%7 = getelementptr inbounds [1024 x i8], [1024 x i8]* %5, i32 0, i32 1
store i8 76, i8* %7
%8 = getelementptr inbounds [1024 x i8], [1024 x i8]* %5, i32 0, i32 2
store i8 80, i8* %8
%9 = getelementptr inbounds [1024 x i8], [1024 x i8]* %5, i32 0, i32 3
store i8 72, i8* %9
%10 = getelementptr inbounds [1024 x i8], [1024 x i8]* %5, i32 0, i32 4
store i8 65, i8* %10
%11 = bitcast [1024 x i8]* %2 to i8*
%12 = bitcast i8* %11 to [1024 x i8]*
%13 = getelementptr inbounds [1024 x i8], [1024 x i8]* %12, i32 0, i32 0
store i8 66, i8* %13
%14 = getelementptr inbounds [1024 x i8], [1024 x i8]* %12, i32 0, i32 1
store i8 69, i8* %14
%15 = getelementptr inbounds [1024 x i8], [1024 x i8]* %12, i32 0, i32 2
store i8 84, i8* %15
%16 = getelementptr inbounds [1024 x i8], [1024 x i8]* %12, i32 0, i32 3
store i8 65, i8* %16
%17 = bitcast [1024 x i8]* %3 to i8*
%18 = bitcast i8* %17 to [1024 x i8]*
%19 = getelementptr inbounds [1024 x i8], [1024 x i8]* %18, i32 0, i32 0
store i8 71, i8* %19
%20 = getelementptr inbounds [1024 x i8], [1024 x i8]* %18, i32 0, i32 1
store i8 65, i8* %20
%21 = getelementptr inbounds [1024 x i8], [1024 x i8]* %18, i32 0, i32 2
store i8 77, i8* %21
%22 = getelementptr inbounds [1024 x i8], [1024 x i8]* %18, i32 0, i32 3
store i8 77, i8* %22
%23 = getelementptr inbounds [1024 x i8], [1024 x i8]* %18, i32 0, i32 4
store i8 65, i8* %23
%24 = call i32 @printf(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str, i64 0, i64 0))
ret i32 0
}

LLVM IR (-O2):
@str = [11 x i8] c"\0A\0ALEVEL 7 \00"
define i32 @lvl7() {
%1 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([11 x i8], [11 x i8]* @str, i64 0, i64 0))
ret i32 0
}