#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*/ assertStr(char *, char *);
int /*<<< orphan*/ assertStrI(char *, char *);
int finishTestCase();
int /*<<< orphan*/ initTestCase(char *);
int test3(void) {
  initTestCase("Test string");
  assertStr("World Hello", "World Hello");
  assertStrI("World Hello", "WorlD hEllo");
  assertStrI("world HellO_", "WorlD hEllo_");
  return finishTestCase();
}


x86 assembly (clang, -O0):
<test3>:
push   %rbp
mov    %rsp,%rbp
lea    0xeb5(%rip),%rdi
call   1030 <initTestCase@plt>
lea    0xeb5(%rip),%rsi
mov    %rsi,%rdi
call   1040 <assertStr@plt>
lea    0xea6(%rip),%rdi
lea    0xeab(%rip),%rsi
call   1050 <assertStrI@plt>
lea    0xeab(%rip),%rdi
lea    0xeb1(%rip),%rsi
call   1050 <assertStrI@plt>
mov    $0x0,%al
call   1060 <finishTestCase@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<test3>:
push   %rbx
lea    0xeb8(%rip),%rdi
call   1030 <initTestCase@plt>
lea    0xeb8(%rip),%rbx
mov    %rbx,%rdi
mov    %rbx,%rsi
call   1040 <assertStr@plt>
lea    0xeb2(%rip),%rsi
mov    %rbx,%rdi
call   1050 <assertStrI@plt>
lea    0xeaf(%rip),%rdi
lea    0xeb5(%rip),%rsi
call   1050 <assertStrI@plt>
xor    %eax,%eax
pop    %rbx
jmp    1060 <finishTestCase@plt>

LLVM IR (-O0):
@.str = [12 x i8] c"Test string\00"
@.str.1 = [12 x i8] c"World Hello\00"
@.str.2 = [12 x i8] c"WorlD hEllo\00"
@.str.3 = [13 x i8] c"world HellO_\00"
@.str.4 = [13 x i8] c"WorlD hEllo_\00"
define i32 @test3() {
%1 = call i32 @initTestCase(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str, i64 0, i64 0))
%2 = call i32 @assertStr(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.1, i64 0, i64 0))
%3 = call i32 @assertStrI(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.2, i64 0, i64 0))
%4 = call i32 @assertStrI(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.4, i64 0, i64 0))
%5 = call i32 (...) @finishTestCase()
ret i32 %5
}

LLVM IR (-O2):
@.str = [12 x i8] c"Test string\00"
@.str.1 = [12 x i8] c"World Hello\00"
@.str.2 = [12 x i8] c"WorlD hEllo\00"
@.str.3 = [13 x i8] c"world HellO_\00"
@.str.4 = [13 x i8] c"WorlD hEllo_\00"
define i32 @test3() {
%1 = tail call i32 @initTestCase(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str, i64 0, i64 0))
%2 = tail call i32 @assertStr(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.1, i64 0, i64 0))
%3 = tail call i32 @assertStrI(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.2, i64 0, i64 0))
%4 = tail call i32 @assertStrI(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.4, i64 0, i64 0))
%5 = tail call i32 (...) @finishTestCase()
ret i32 %5
}