#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*/ dotest(int, char *);
int main() {
  dotest(1000, "M");
  dotest(4, "IV");
  dotest(1, "I");
  dotest(2008, "MMVIII");
  dotest(3999, "MMMCMXCIX");
  dotest(182, "CLXXXII");
  dotest(1990, "MCMXC");
  dotest(1875, "MDCCCLXXV");
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
mov    $0x3e8,%edi
lea    0xee0(%rip),%rsi
call   1030 <dotest@plt>
mov    $0x4,%edi
lea    0xed1(%rip),%rsi
call   1030 <dotest@plt>
mov    $0x1,%edi
lea    0xec8(%rip),%rsi
call   1030 <dotest@plt>
mov    $0x7d8,%edi
lea    0xeb2(%rip),%rsi
call   1030 <dotest@plt>
mov    $0xf9f,%edi
lea    0xea8(%rip),%rsi
call   1030 <dotest@plt>
mov    $0xb6,%edi
lea    0xea1(%rip),%rsi
call   1030 <dotest@plt>
mov    $0x7c6,%edi
lea    0xe98(%rip),%rsi
call   1030 <dotest@plt>
mov    $0x753,%edi
lea    0xe8d(%rip),%rsi
call   1030 <dotest@plt>
xor    %eax,%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
lea    0xee8(%rip),%rsi
mov    $0x3e8,%edi
call   1030 <dotest@plt>
lea    0xed9(%rip),%rsi
mov    $0x4,%edi
call   1030 <dotest@plt>
lea    0xed0(%rip),%rsi
mov    $0x1,%edi
call   1030 <dotest@plt>
lea    0xeba(%rip),%rsi
mov    $0x7d8,%edi
call   1030 <dotest@plt>
lea    0xeb0(%rip),%rsi
mov    $0xf9f,%edi
call   1030 <dotest@plt>
lea    0xea9(%rip),%rsi
mov    $0xb6,%edi
call   1030 <dotest@plt>
lea    0xea0(%rip),%rsi
mov    $0x7c6,%edi
call   1030 <dotest@plt>
lea    0xe95(%rip),%rsi
mov    $0x753,%edi
call   1030 <dotest@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
@.str = [2 x i8] c"M\00"
@.str.1 = [3 x i8] c"IV\00"
@.str.2 = [2 x i8] c"I\00"
@.str.3 = [7 x i8] c"MMVIII\00"
@.str.4 = [10 x i8] c"MMMCMXCIX\00"
@.str.5 = [8 x i8] c"CLXXXII\00"
@.str.6 = [6 x i8] c"MCMXC\00"
@.str.7 = [10 x i8] c"MDCCCLXXV\00"
define i32 @main() {
%1 = call i32 @dotest(i32 1000, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
%2 = call i32 @dotest(i32 4, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0))
%3 = call i32 @dotest(i32 1, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0))
%4 = call i32 @dotest(i32 2008, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.3, i64 0, i64 0))
%5 = call i32 @dotest(i32 3999, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.4, i64 0, i64 0))
%6 = call i32 @dotest(i32 182, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.5, i64 0, i64 0))
%7 = call i32 @dotest(i32 1990, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.6, i64 0, i64 0))
%8 = call i32 @dotest(i32 1875, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.7, i64 0, i64 0))
ret i32 0
}

LLVM IR (-O2):
@.str = [2 x i8] c"M\00"
@.str.1 = [3 x i8] c"IV\00"
@.str.2 = [2 x i8] c"I\00"
@.str.3 = [7 x i8] c"MMVIII\00"
@.str.4 = [10 x i8] c"MMMCMXCIX\00"
@.str.5 = [8 x i8] c"CLXXXII\00"
@.str.6 = [6 x i8] c"MCMXC\00"
@.str.7 = [10 x i8] c"MDCCCLXXV\00"
define i32 @main() {
%1 = tail call i32 @dotest(i32 1000, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
%2 = tail call i32 @dotest(i32 4, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0))
%3 = tail call i32 @dotest(i32 1, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0))
%4 = tail call i32 @dotest(i32 2008, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.3, i64 0, i64 0))
%5 = tail call i32 @dotest(i32 3999, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.4, i64 0, i64 0))
%6 = tail call i32 @dotest(i32 182, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.5, i64 0, i64 0))
%7 = tail call i32 @dotest(i32 1990, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.6, i64 0, i64 0))
%8 = tail call i32 @dotest(i32 1875, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.7, i64 0, i64 0))
ret i32 0
}