#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*/ my_printf(char *, ...);
void version(void) {
  my_printf("#define BBSNAME		\"%s\"\n", "ISCABBS");
  my_printf("#define BBSUID		%d\n", 1001);
  my_printf("#define BBSGID		%d\n", 1001);
  my_printf("#define MAILMSGS		%d\n", 200);
  my_printf("#define MSGSPERRM		%d\n", 200);
  my_printf("#define MAXROOMS		%d\n", 200);
  my_printf("#define MM_FILELEN	%d\n", (200000000));
  my_printf("#define ROOT		%s\n", "/home/bbs/");
  my_printf("#define MAXTOTALUSERS	%d\n", 5000);
}


x86 assembly (clang, -O0):
<version>:
push   %rbp
mov    %rsp,%rbp
lea    0xee5(%rip),%rdi
lea    0xef5(%rip),%rsi
mov    $0x0,%al
call   1030 <my_printf@plt>
lea    0xeef(%rip),%rdi
mov    $0x3e9,%esi
mov    $0x0,%al
call   1030 <my_printf@plt>
lea    0xef0(%rip),%rdi
mov    $0x3e9,%esi
mov    $0x0,%al
call   1030 <my_printf@plt>
lea    0xef1(%rip),%rdi
mov    $0xc8,%esi
mov    $0x0,%al
call   1030 <my_printf@plt>
lea    0xef4(%rip),%rdi
mov    $0xc8,%esi
mov    $0x0,%al
call   1030 <my_printf@plt>
lea    0xef8(%rip),%rdi
mov    $0xc8,%esi
mov    $0x0,%al
call   1030 <my_printf@plt>
lea    0xefb(%rip),%rdi
mov    $0xbebc200,%esi
mov    $0x0,%al
call   1030 <my_printf@plt>
lea    0xeff(%rip),%rdi
lea    0xf0a(%rip),%rsi
mov    $0x0,%al
call   1030 <my_printf@plt>
lea    0xf07(%rip),%rdi
mov    $0x1388,%esi
mov    $0x0,%al
call   1030 <my_printf@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<version>:
push   %rax
lea    0xee8(%rip),%rdi
lea    0xef8(%rip),%rsi
xor    %eax,%eax
call   1030 <my_printf@plt>
lea    0xef2(%rip),%rdi
mov    $0x3e9,%esi
xor    %eax,%eax
call   1030 <my_printf@plt>
lea    0xef3(%rip),%rdi
mov    $0x3e9,%esi
xor    %eax,%eax
call   1030 <my_printf@plt>
lea    0xef4(%rip),%rdi
mov    $0xc8,%esi
xor    %eax,%eax
call   1030 <my_printf@plt>
lea    0xef7(%rip),%rdi
mov    $0xc8,%esi
xor    %eax,%eax
call   1030 <my_printf@plt>
lea    0xefb(%rip),%rdi
mov    $0xc8,%esi
xor    %eax,%eax
call   1030 <my_printf@plt>
lea    0xefe(%rip),%rdi
mov    $0xbebc200,%esi
xor    %eax,%eax
call   1030 <my_printf@plt>
lea    0xf02(%rip),%rdi
lea    0xf0d(%rip),%rsi
xor    %eax,%eax
call   1030 <my_printf@plt>
lea    0xf0a(%rip),%rdi
mov    $0x1388,%esi
xor    %eax,%eax
pop    %rcx
jmp    1030 <my_printf@plt>

LLVM IR (-O0):
@.str = [23 x i8] c"#define BBSNAME\09\09\22%s\22\0A\00"
@.str.1 = [8 x i8] c"ISCABBS\00"
@.str.2 = [20 x i8] c"#define BBSUID\09\09%d\0A\00"
@.str.3 = [20 x i8] c"#define BBSGID\09\09%d\0A\00"
@.str.4 = [22 x i8] c"#define MAILMSGS\09\09%d\0A\00"
@.str.5 = [23 x i8] c"#define MSGSPERRM\09\09%d\0A\00"
@.str.6 = [22 x i8] c"#define MAXROOMS\09\09%d\0A\00"
@.str.7 = [23 x i8] c"#define MM_FILELEN\09%d\0A\00"
@.str.8 = [18 x i8] c"#define ROOT\09\09%s\0A\00"
@.str.9 = [11 x i8] c"/home/bbs/\00"
@.str.10 = [26 x i8] c"#define MAXTOTALUSERS\09%d\0A\00"
define void @version() {
%1 = call i32 (i8*, ...) @my_printf(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.1, i64 0, i64 0))
%2 = call i32 (i8*, ...) @my_printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.2, i64 0, i64 0), i32 1001)
%3 = call i32 (i8*, ...) @my_printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.3, i64 0, i64 0), i32 1001)
%4 = call i32 (i8*, ...) @my_printf(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.4, i64 0, i64 0), i32 200)
%5 = call i32 (i8*, ...) @my_printf(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.5, i64 0, i64 0), i32 200)
%6 = call i32 (i8*, ...) @my_printf(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.6, i64 0, i64 0), i32 200)
%7 = call i32 (i8*, ...) @my_printf(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.7, i64 0, i64 0), i32 200000000)
%8 = call i32 (i8*, ...) @my_printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.8, i64 0, i64 0), i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.9, i64 0, i64 0))
%9 = call i32 (i8*, ...) @my_printf(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.10, i64 0, i64 0), i32 5000)
ret void
}

LLVM IR (-O2):
@.str = [23 x i8] c"#define BBSNAME\09\09\22%s\22\0A\00"
@.str.1 = [8 x i8] c"ISCABBS\00"
@.str.2 = [20 x i8] c"#define BBSUID\09\09%d\0A\00"
@.str.3 = [20 x i8] c"#define BBSGID\09\09%d\0A\00"
@.str.4 = [22 x i8] c"#define MAILMSGS\09\09%d\0A\00"
@.str.5 = [23 x i8] c"#define MSGSPERRM\09\09%d\0A\00"
@.str.6 = [22 x i8] c"#define MAXROOMS\09\09%d\0A\00"
@.str.7 = [23 x i8] c"#define MM_FILELEN\09%d\0A\00"
@.str.8 = [18 x i8] c"#define ROOT\09\09%s\0A\00"
@.str.9 = [11 x i8] c"/home/bbs/\00"
@.str.10 = [26 x i8] c"#define MAXTOTALUSERS\09%d\0A\00"
define void @version() {
%1 = tail call i32 (i8*, ...) @my_printf(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.1, i64 0, i64 0))
%2 = tail call i32 (i8*, ...) @my_printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.2, i64 0, i64 0), i32 1001)
%3 = tail call i32 (i8*, ...) @my_printf(i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.3, i64 0, i64 0), i32 1001)
%4 = tail call i32 (i8*, ...) @my_printf(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.4, i64 0, i64 0), i32 200)
%5 = tail call i32 (i8*, ...) @my_printf(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.5, i64 0, i64 0), i32 200)
%6 = tail call i32 (i8*, ...) @my_printf(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.6, i64 0, i64 0), i32 200)
%7 = tail call i32 (i8*, ...) @my_printf(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.7, i64 0, i64 0), i32 200000000)
%8 = tail call i32 (i8*, ...) @my_printf(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.8, i64 0, i64 0), i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.9, i64 0, i64 0))
%9 = tail call i32 (i8*, ...) @my_printf(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.10, i64 0, i64 0), i32 5000)
ret void
}