#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*/ LCDStr(int, unsigned char *, int);
void lcd_test() {
  LCDStr(0, (unsigned char *)"**** RISSNER ****", 0);
  LCDStr(1, (unsigned char *)"++++ rissner ++++", 0);
  LCDStr(2, (unsigned char *)"//// RISSNER ////", 0);
  LCDStr(3, (unsigned char *)"**** rissner ****", 1);
  LCDStr(4, (unsigned char *)"++++ RISSNER ++++", 1);
  LCDStr(5, (unsigned char *)"//// rissner ////", 1);
}


x86 assembly (clang, -O0):
<lcd_test>:
push   %rbp
mov    %rsp,%rbp
xor    %edx,%edx
lea    0xee3(%rip),%rsi
mov    %edx,%edi
call   1030 <LCDStr@plt>
mov    $0x1,%edi
lea    0xee2(%rip),%rsi
xor    %edx,%edx
call   1030 <LCDStr@plt>
mov    $0x2,%edi
lea    0xee1(%rip),%rsi
xor    %edx,%edx
call   1030 <LCDStr@plt>
mov    $0x3,%edi
lea    0xee0(%rip),%rsi
mov    $0x1,%edx
call   1030 <LCDStr@plt>
mov    $0x4,%edi
lea    0xedc(%rip),%rsi
mov    $0x1,%edx
call   1030 <LCDStr@plt>
mov    $0x5,%edi
lea    0xed8(%rip),%rsi
mov    $0x1,%edx
call   1030 <LCDStr@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<lcd_test>:
push   %rax
lea    0xee8(%rip),%rsi
xor    %edi,%edi
xor    %edx,%edx
call   1030 <LCDStr@plt>
lea    0xeea(%rip),%rsi
mov    $0x1,%edi
xor    %edx,%edx
call   1030 <LCDStr@plt>
lea    0xee9(%rip),%rsi
mov    $0x2,%edi
xor    %edx,%edx
call   1030 <LCDStr@plt>
lea    0xee8(%rip),%rsi
mov    $0x3,%edi
mov    $0x1,%edx
call   1030 <LCDStr@plt>
lea    0xee4(%rip),%rsi
mov    $0x4,%edi
mov    $0x1,%edx
call   1030 <LCDStr@plt>
lea    0xee0(%rip),%rsi
mov    $0x5,%edi
mov    $0x1,%edx
pop    %rax
jmp    1030 <LCDStr@plt>

LLVM IR (-O0):
@.str = [18 x i8] c"**** RISSNER ****\00"
@.str.1 = [18 x i8] c"++++ rissner ++++\00"
@.str.2 = [18 x i8] c"//// RISSNER ////\00"
@.str.3 = [18 x i8] c"**** rissner ****\00"
@.str.4 = [18 x i8] c"++++ RISSNER ++++\00"
@.str.5 = [18 x i8] c"//// rissner ////\00"
define void @lcd_test() {
%1 = call i32 @LCDStr(i32 0, i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str, i64 0, i64 0), i32 0)
%2 = call i32 @LCDStr(i32 1, i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.1, i64 0, i64 0), i32 0)
%3 = call i32 @LCDStr(i32 2, i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.2, i64 0, i64 0), i32 0)
%4 = call i32 @LCDStr(i32 3, i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.3, i64 0, i64 0), i32 1)
%5 = call i32 @LCDStr(i32 4, i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.4, i64 0, i64 0), i32 1)
%6 = call i32 @LCDStr(i32 5, i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.5, i64 0, i64 0), i32 1)
ret void
}

LLVM IR (-O2):
@.str = [18 x i8] c"**** RISSNER ****\00"
@.str.1 = [18 x i8] c"++++ rissner ++++\00"
@.str.2 = [18 x i8] c"//// RISSNER ////\00"
@.str.3 = [18 x i8] c"**** rissner ****\00"
@.str.4 = [18 x i8] c"++++ RISSNER ++++\00"
@.str.5 = [18 x i8] c"//// rissner ////\00"
define void @lcd_test() {
%1 = tail call i32 @LCDStr(i32 0, i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str, i64 0, i64 0), i32 0)
%2 = tail call i32 @LCDStr(i32 1, i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.1, i64 0, i64 0), i32 0)
%3 = tail call i32 @LCDStr(i32 2, i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.2, i64 0, i64 0), i32 0)
%4 = tail call i32 @LCDStr(i32 3, i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.3, i64 0, i64 0), i32 1)
%5 = tail call i32 @LCDStr(i32 4, i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.4, i64 0, i64 0), i32 1)
%6 = tail call i32 @LCDStr(i32 5, i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.5, i64 0, i64 0), i32 1)
ret void
}