#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*/ puts(char *);
void interface(void) {
  puts("****** CHERNOBYL NUCLEAR REACTOR #4 INTERFACE ******");
  puts("1 - Initiate Stress Test Operations");
  puts("2 - Pulse the Reactor");
  puts("3 - Initiate Steam Turbine Tests");
  puts("4 - Print Current Reactor Status");
  puts("5 - Alter Fuel Rod Elevations");
  puts("6 - Play Anthem of the Glorious Soviet Union");
  puts("7 - Display System Information & Login Credentials");
  puts("8 - Quit");
  puts("*************** 26 April 1986 01:00 ***************");
}


x86 assembly (clang, -O0):
<interface>:
push   %rbp
mov    %rsp,%rbp
lea    0xee5(%rip),%rdi
call   1030 <puts@plt>
lea    0xf0e(%rip),%rdi
call   1030 <puts@plt>
lea    0xf26(%rip),%rdi
call   1030 <puts@plt>
lea    0xf30(%rip),%rdi
call   1030 <puts@plt>
lea    0xf45(%rip),%rdi
call   1030 <puts@plt>
lea    0xf5a(%rip),%rdi
call   1030 <puts@plt>
lea    0xf6c(%rip),%rdi
call   1030 <puts@plt>
lea    0xf8d(%rip),%rdi
call   1030 <puts@plt>
lea    0xfb4(%rip),%rdi
call   1030 <puts@plt>
lea    0xfb1(%rip),%rdi
call   1030 <puts@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<interface>:
push   %rax
lea    0xee8(%rip),%rdi
call   1030 <puts@plt>
lea    0xf11(%rip),%rdi
call   1030 <puts@plt>
lea    0xf29(%rip),%rdi
call   1030 <puts@plt>
lea    0xf33(%rip),%rdi
call   1030 <puts@plt>
lea    0xf48(%rip),%rdi
call   1030 <puts@plt>
lea    0xf5d(%rip),%rdi
call   1030 <puts@plt>
lea    0xf6f(%rip),%rdi
call   1030 <puts@plt>
lea    0xf90(%rip),%rdi
call   1030 <puts@plt>
lea    0xfb7(%rip),%rdi
call   1030 <puts@plt>
lea    0xfb4(%rip),%rdi
pop    %rax
jmp    1030 <puts@plt>

LLVM IR (-O0):
@.str = [53 x i8] c"****** CHERNOBYL NUCLEAR REACTOR INTERFACE ******\00"
@.str.1 = [36 x i8] c"1 - Initiate Stress Test Operations\00"
@.str.2 = [22 x i8] c"2 - Pulse the Reactor\00"
@.str.3 = [33 x i8] c"3 - Initiate Steam Turbine Tests\00"
@.str.4 = [33 x i8] c"4 - Print Current Reactor Status\00"
@.str.5 = [30 x i8] c"5 - Alter Fuel Rod Elevations\00"
@.str.6 = [45 x i8] c"6 - Play Anthem of the Glorious Soviet Union\00"
@.str.7 = [51 x i8] c"7 - Display System Information & Login Credentials\00"
@.str.8 = [9 x i8] c"8 - Quit\00"
@.str.9 = [52 x i8] c"*************** 26 April 1986 01:00 ***************\00"
define void @interface() {
%1 = call i32 @puts(i8* getelementptr inbounds ([53 x i8], [53 x i8]* @.str, i64 0, i64 0))
%2 = call i32 @puts(i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.1, i64 0, i64 0))
%3 = call i32 @puts(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.2, i64 0, i64 0))
%4 = call i32 @puts(i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.3, i64 0, i64 0))
%5 = call i32 @puts(i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.4, i64 0, i64 0))
%6 = call i32 @puts(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.5, i64 0, i64 0))
%7 = call i32 @puts(i8* getelementptr inbounds ([45 x i8], [45 x i8]* @.str.6, i64 0, i64 0))
%8 = call i32 @puts(i8* getelementptr inbounds ([51 x i8], [51 x i8]* @.str.7, i64 0, i64 0))
%9 = call i32 @puts(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.8, i64 0, i64 0))
%10 = call i32 @puts(i8* getelementptr inbounds ([52 x i8], [52 x i8]* @.str.9, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@.str = [53 x i8] c"****** CHERNOBYL NUCLEAR REACTOR INTERFACE ******\00"
@.str.1 = [36 x i8] c"1 - Initiate Stress Test Operations\00"
@.str.2 = [22 x i8] c"2 - Pulse the Reactor\00"
@.str.3 = [33 x i8] c"3 - Initiate Steam Turbine Tests\00"
@.str.4 = [33 x i8] c"4 - Print Current Reactor Status\00"
@.str.5 = [30 x i8] c"5 - Alter Fuel Rod Elevations\00"
@.str.6 = [45 x i8] c"6 - Play Anthem of the Glorious Soviet Union\00"
@.str.7 = [51 x i8] c"7 - Display System Information & Login Credentials\00"
@.str.8 = [9 x i8] c"8 - Quit\00"
@.str.9 = [52 x i8] c"*************** 26 April 1986 01:00 ***************\00"
define void @interface() {
%1 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([53 x i8], [53 x i8]* @.str, i64 0, i64 0))
%2 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([36 x i8], [36 x i8]* @.str.1, i64 0, i64 0))
%3 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([22 x i8], [22 x i8]* @.str.2, i64 0, i64 0))
%4 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([33 x i8], [33 x i8]* @.str.3, i64 0, i64 0))
%5 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([33 x i8], [33 x i8]* @.str.4, i64 0, i64 0))
%6 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([30 x i8], [30 x i8]* @.str.5, i64 0, i64 0))
%7 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([45 x i8], [45 x i8]* @.str.6, i64 0, i64 0))
%8 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([51 x i8], [51 x i8]* @.str.7, i64 0, i64 0))
%9 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([9 x i8], [9 x i8]* @.str.8, i64 0, i64 0))
%10 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([52 x i8], [52 x i8]* @.str.9, i64 0, i64 0))
ret void
}