#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*/ lcd_clear(int);
int /*<<< orphan*/ lcd_msg(char *);
void lcd_welmes() {
  char msg1[] = "IC%";
  char msg2[] = "TESTER%";
  char msg3[] = "BY%";
  char msg4[] = "AS DS GS%";
  lcd_clear(0x87);
  lcd_msg(msg1);
  lcd_clear(0xc5);
  lcd_msg(msg2);
  lcd_clear(0x97);
  lcd_msg(msg3);
  lcd_clear(0xd4);
  lcd_msg(msg4);
}


x86 assembly (clang, -O0):
<lcd_welmes>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    0xed2(%rip),%eax
mov    %eax,-0x4(%rbp)
mov    0xecc(%rip),%rax
mov    %rax,-0xc(%rbp)
mov    0xeca(%rip),%eax
mov    %eax,-0x10(%rbp)
mov    0xec4(%rip),%rax
mov    %rax,-0x1a(%rbp)
mov    0xec1(%rip),%ax
mov    %ax,-0x12(%rbp)
mov    $0x87,%edi
call   1040 <lcd_clear@plt>
lea    -0x4(%rbp),%rdi
call   1030 <lcd_msg@plt>
mov    $0xc5,%edi
call   1040 <lcd_clear@plt>
lea    -0xc(%rbp),%rdi
call   1030 <lcd_msg@plt>
mov    $0x97,%edi
call   1040 <lcd_clear@plt>
lea    -0x10(%rbp),%rdi
call   1030 <lcd_msg@plt>
mov    $0xd4,%edi
call   1040 <lcd_clear@plt>
lea    -0x1a(%rbp),%rdi
call   1030 <lcd_msg@plt>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<lcd_welmes>:
sub    $0x28,%rsp
movl   $0x254349,0xc(%rsp)
movabs $0x25524554534554,%rax
mov    %rax,0x20(%rsp)
movl   $0x255942,0x8(%rsp)
movabs $0x5347205344205341,%rax
20 47 53
mov    %rax,0x10(%rsp)
movw   $0x25,0x18(%rsp)
mov    $0x87,%edi
call   1040 <lcd_clear@plt>
lea    0xc(%rsp),%rdi
call   1030 <lcd_msg@plt>
mov    $0xc5,%edi
call   1040 <lcd_clear@plt>
lea    0x20(%rsp),%rdi
call   1030 <lcd_msg@plt>
mov    $0x97,%edi
call   1040 <lcd_clear@plt>
lea    0x8(%rsp),%rdi
call   1030 <lcd_msg@plt>
mov    $0xd4,%edi
call   1040 <lcd_clear@plt>
lea    0x10(%rsp),%rdi
call   1030 <lcd_msg@plt>
add    $0x28,%rsp
ret

LLVM IR (-O0):
@__const.lcd_welmes.msg1 = [4 x i8] c"IC%\00"
@__const.lcd_welmes.msg2 = [8 x i8] c"TESTER%\00"
@__const.lcd_welmes.msg3 = [4 x i8] c"BY%\00"
@__const.lcd_welmes.msg4 = [10 x i8] c"AS DS GS%\00"
define void @lcd_welmes() {
%1 = alloca [4 x i8]
%2 = alloca [8 x i8]
%3 = alloca [4 x i8]
%4 = alloca [10 x i8]
%5 = bitcast [4 x i8]* %1 to i8*
%6 = bitcast [8 x i8]* %2 to i8*
%7 = bitcast [4 x i8]* %3 to i8*
%8 = bitcast [10 x i8]* %4 to i8*
%9 = call i32 @lcd_clear(i32 135)
%10 = getelementptr inbounds [4 x i8], [4 x i8]* %1, i64 0, i64 0
%11 = call i32 @lcd_msg(i8* %10)
%12 = call i32 @lcd_clear(i32 197)
%13 = getelementptr inbounds [8 x i8], [8 x i8]* %2, i64 0, i64 0
%14 = call i32 @lcd_msg(i8* %13)
%15 = call i32 @lcd_clear(i32 151)
%16 = getelementptr inbounds [4 x i8], [4 x i8]* %3, i64 0, i64 0
%17 = call i32 @lcd_msg(i8* %16)
%18 = call i32 @lcd_clear(i32 212)
%19 = getelementptr inbounds [10 x i8], [10 x i8]* %4, i64 0, i64 0
%20 = call i32 @lcd_msg(i8* %19)
ret void
}

LLVM IR (-O2):
@__const.lcd_welmes.msg4 = [10 x i8] c"AS DS GS%\00"
define void @lcd_welmes() {
%1 = alloca i32
%2 = alloca i64
%3 = alloca i32
%4 = alloca [10 x i8]
%5 = bitcast i32* %1 to i8*
store i32 2442057, i32* %1
%6 = bitcast i64* %2 to i8*
store i64 10505031859258708, i64* %2
%7 = bitcast i32* %3 to i8*
store i32 2447682, i32* %3
%8 = getelementptr inbounds [10 x i8], [10 x i8]* %4, i64 0, i64 0
%9 = tail call i32 @lcd_clear(i32 135)
%10 = call i32 @lcd_msg(i8* %5)
%11 = call i32 @lcd_clear(i32 197)
%12 = call i32 @lcd_msg(i8* %6)
%13 = call i32 @lcd_clear(i32 151)
%14 = call i32 @lcd_msg(i8* %7)
%15 = call i32 @lcd_clear(i32 212)
%16 = call i32 @lcd_msg(i8* %8)
ret void
}