#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*/ nxtDisplayCenteredBigTextLine(int, char *);
int /*<<< orphan*/ nxtDisplayCenteredTextLine(int, char *);
int /*<<< orphan*/ wait1Msec(int);
void displayInstructions() {
  nxtDisplayCenteredTextLine(0, "HiTechnic");
  nxtDisplayCenteredBigTextLine(1, "IR Seekr");
  nxtDisplayCenteredTextLine(3, "Test 1");
  nxtDisplayCenteredTextLine(5, "Press enter to");
  nxtDisplayCenteredTextLine(6, "switch between");
  nxtDisplayCenteredTextLine(7, "600 and 1200 Hz");
  wait1Msec(2000);
}


x86 assembly (clang, -O0):
<displayInstructions>:
push   %rbp
mov    %rsp,%rbp
xor    %edi,%edi
lea    0xec3(%rip),%rsi
call   1040 <nxtDisplayCenteredTextLine@plt>
mov    $0x1,%edi
lea    0xebc(%rip),%rsi
call   1030 <nxtDisplayCenteredBigTextLine@plt>
mov    $0x3,%edi
lea    0xeb4(%rip),%rsi
call   1040 <nxtDisplayCenteredTextLine@plt>
mov    $0x5,%edi
lea    0xeaa(%rip),%rsi
call   1040 <nxtDisplayCenteredTextLine@plt>
mov    $0x6,%edi
lea    0xea8(%rip),%rsi
call   1040 <nxtDisplayCenteredTextLine@plt>
mov    $0x7,%edi
lea    0xea6(%rip),%rsi
call   1040 <nxtDisplayCenteredTextLine@plt>
mov    $0x7d0,%edi
call   1050 <wait1Msec@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<displayInstructions>:
push   %rax
lea    0xec8(%rip),%rsi
xor    %edi,%edi
call   1040 <nxtDisplayCenteredTextLine@plt>
lea    0xec4(%rip),%rsi
mov    $0x1,%edi
call   1030 <nxtDisplayCenteredBigTextLine@plt>
lea    0xebc(%rip),%rsi
mov    $0x3,%edi
call   1040 <nxtDisplayCenteredTextLine@plt>
lea    0xeb2(%rip),%rsi
mov    $0x5,%edi
call   1040 <nxtDisplayCenteredTextLine@plt>
lea    0xeb0(%rip),%rsi
mov    $0x6,%edi
call   1040 <nxtDisplayCenteredTextLine@plt>
lea    0xeae(%rip),%rsi
mov    $0x7,%edi
call   1040 <nxtDisplayCenteredTextLine@plt>
mov    $0x7d0,%edi
pop    %rax
jmp    1050 <wait1Msec@plt>

LLVM IR (-O0):
@.str = [10 x i8] c"HiTechnic\00"
@.str.1 = [9 x i8] c"IR Seekr\00"
@.str.2 = [7 x i8] c"Test 1\00"
@.str.3 = [15 x i8] c"Press enter to\00"
@.str.4 = [15 x i8] c"switch between\00"
@.str.5 = [16 x i8] c"600 and 1200 Hz\00"
define void @displayInstructions() {
%1 = call i32 @nxtDisplayCenteredTextLine(i32 0, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str, i64 0, i64 0))
%2 = call i32 @nxtDisplayCenteredBigTextLine(i32 1, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.1, i64 0, i64 0))
%3 = call i32 @nxtDisplayCenteredTextLine(i32 3, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.2, i64 0, i64 0))
%4 = call i32 @nxtDisplayCenteredTextLine(i32 5, i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.3, i64 0, i64 0))
%5 = call i32 @nxtDisplayCenteredTextLine(i32 6, i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.4, i64 0, i64 0))
%6 = call i32 @nxtDisplayCenteredTextLine(i32 7, i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.5, i64 0, i64 0))
%7 = call i32 @wait1Msec(i32 2000)
ret void
}

LLVM IR (-O2):
@.str = [10 x i8] c"HiTechnic\00"
@.str.1 = [9 x i8] c"IR Seekr\00"
@.str.2 = [7 x i8] c"Test 1\00"
@.str.3 = [15 x i8] c"Press enter to\00"
@.str.4 = [15 x i8] c"switch between\00"
@.str.5 = [16 x i8] c"600 and 1200 Hz\00"
define void @displayInstructions() {
%1 = tail call i32 @nxtDisplayCenteredTextLine(i32 0, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str, i64 0, i64 0))
%2 = tail call i32 @nxtDisplayCenteredBigTextLine(i32 1, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.1, i64 0, i64 0))
%3 = tail call i32 @nxtDisplayCenteredTextLine(i32 3, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.2, i64 0, i64 0))
%4 = tail call i32 @nxtDisplayCenteredTextLine(i32 5, i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.3, i64 0, i64 0))
%5 = tail call i32 @nxtDisplayCenteredTextLine(i32 6, i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.4, i64 0, i64 0))
%6 = tail call i32 @nxtDisplayCenteredTextLine(i32 7, i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.5, i64 0, i64 0))
%7 = tail call i32 @wait1Msec(i32 2000)
ret void
}