#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*/ __delay_ms(int);
int /*<<< orphan*/ lcdClean();
int /*<<< orphan*/ lcdSetPos(int /*<<< orphan*/, int);
int /*<<< orphan*/ lcdWriteStrC(char *);
void intro(void) {
  int i;
  lcdSetPos(0, 0);
  lcdWriteStrC("Jarvis V0.000001");
  lcdSetPos(0, 1);
  lcdWriteStrC("Singh Bè");
  for (i = 0; i < 100; i++)
    __delay_ms(50);
  lcdClean();
}


x86 assembly (clang, -O0):
<intro>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
xor    %esi,%esi
mov    %esi,%edi
call   1040 <lcdSetPos@plt>
lea    0xea8(%rip),%rdi
call   1050 <lcdWriteStrC@plt>
xor    %edi,%edi
mov    $0x1,%esi
call   1040 <lcdSetPos@plt>
lea    0xea1(%rip),%rdi
call   1050 <lcdWriteStrC@plt>
movl   $0x0,-0x4(%rbp)
cmpl   $0x64,-0x4(%rbp)
jge    119e <intro+0x5e>
mov    $0x32,%edi
call   1030 <__delay_ms@plt>
mov    -0x4(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x4(%rbp)
jmp    117c <intro+0x3c>
mov    $0x0,%al
call   1060 <lcdClean@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<intro>:
push   %rbx
xor    %edi,%edi
xor    %esi,%esi
call   1040 <lcdSetPos@plt>
lea    0xeaf(%rip),%rdi
call   1050 <lcdWriteStrC@plt>
xor    %edi,%edi
mov    $0x1,%esi
call   1040 <lcdSetPos@plt>
lea    0xea8(%rip),%rdi
call   1050 <lcdWriteStrC@plt>
mov    $0x64,%ebx
cs nopw 0x0(%rax,%rax,1)
nopl   (%rax)
mov    $0x32,%edi
call   1030 <__delay_ms@plt>
add    $0xffffffff,%ebx
jne    1180 <intro+0x40>
xor    %eax,%eax
pop    %rbx
jmp    1060 <lcdClean@plt>

LLVM IR (-O0):
@.str = [17 x i8] c"Jarvis V0.000001\00"
@.str.1 = [10 x i8] c"Singh B\C3\A8\00"
define void @intro() {
%1 = alloca i32
%2 = call i32 @lcdSetPos(i32 0, i32 0)
%3 = call i32 @lcdWriteStrC(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str, i64 0, i64 0))
%4 = call i32 @lcdSetPos(i32 0, i32 1)
%5 = call i32 @lcdWriteStrC(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.1, i64 0, i64 0))
store i32 0, i32* %1
br label %6
6: ; preds = %11, %0
%7 = load i32, i32* %1
%8 = icmp slt i32 %7, 100
br i1 %8, label %9, label %14
9: ; preds = %6
%10 = call i32 @__delay_ms(i32 50)
br label %11
11: ; preds = %9
%12 = load i32, i32* %1
%13 = add nsw i32 %12, 1
store i32 %13, i32* %1
br label %6
14: ; preds = %6
%15 = call i32 (...) @lcdClean()
ret void
}

LLVM IR (-O2):
@.str = [17 x i8] c"Jarvis V0.000001\00"
@.str.1 = [10 x i8] c"Singh B\C3\A8\00"
define void @intro() {
%1 = tail call i32 @lcdSetPos(i32 0, i32 0)
%2 = tail call i32 @lcdWriteStrC(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str, i64 0, i64 0))
%3 = tail call i32 @lcdSetPos(i32 0, i32 1)
%4 = tail call i32 @lcdWriteStrC(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.1, i64 0, i64 0))
br label %5
5: ; preds = %0, %5
%6 = phi i32 [ 0, %0 ], [ %8, %5 ]
%7 = tail call i32 @__delay_ms(i32 50)
%8 = add nuw nsw i32 %6, 1
%9 = icmp eq i32 %8, 100
br i1 %9, label %10, label %5
10: ; preds = %5
%11 = tail call i32 (...) @lcdClean()
ret void
}