#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 */
char *helloWorld();
int /*<<< orphan*/ printf(char *, char *, char *);
int /*<<< orphan*/ puts(char *);
scalar_t__ strcmp(char *, char *);
void case_helloWorld() {
  puts("$$ASSERT_BEGIN|"
       "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/"
       "2022-01-22/02-19-57/repos/plinnie/thingspector/refs/heads/master/test/"
       "test1/inspect/tests/test_helloworld.c"
       "|"
       "31");
  if ((strcmp((helloWorld()), ("Hello world")) == 0)) {
    puts("$$ASSERT_END|OK");
  } else {
    printf("$$ASSERT_END|"
           "Expected "
           "helloWorld()"
           " to return \"%s\" but was \"%s\""
           "\n",
           "Hello world", helloWorld());
  };
}


x86 assembly (clang, -O0):
<case_helloWorld>:
push   %rbp
mov    %rsp,%rbp
lea    0xeb5(%rip),%rdi
call   1030 <puts@plt>
mov    $0x0,%al
call   1050 <helloWorld@plt>
mov    %rax,%rdi
lea    0xf5d(%rip),%rsi
call   1060 <strcmp@plt>
cmp    $0x0,%rax
jne    1181 <case_helloWorld+0x41>
lea    0xf53(%rip),%rdi
call   1030 <puts@plt>
jmp    119e <case_helloWorld+0x5e>
mov    $0x0,%al
call   1050 <helloWorld@plt>
mov    %rax,%rdx
lea    0xf48(%rip),%rdi
lea    0xf25(%rip),%rsi
call   1040 <printf@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<case_helloWorld>:
push   %rax
lea    0xeb8(%rip),%rdi
call   1030 <puts@plt>
xor    %eax,%eax
call   1050 <helloWorld@plt>
lea    0xf63(%rip),%rsi
mov    %rax,%rdi
call   1060 <strcmp@plt>
test   %rax,%rax
je     1186 <case_helloWorld+0x46>
xor    %eax,%eax
call   1050 <helloWorld@plt>
lea    0xf64(%rip),%rdi
lea    0xf41(%rip),%rsi
mov    %rax,%rdx
pop    %rax
jmp    1040 <printf@plt>
lea    0xf3d(%rip),%rdi
pop    %rax
jmp    1030 <puts@plt>

LLVM IR (-O0):
@.str = [190 x i8] c"$$ASSERT_BEGIN|/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/plinnie/thingspector/refs/heads/master/test/test1/inspect/tests/test_helloworld.c|31\00"
@.str.1 = [12 x i8] c"Hello world\00"
@.str.2 = [16 x i8] c"$$ASSERT_END|OK\00"
@.str.3 = [64 x i8] c"$$ASSERT_END|Expected helloWorld() to return \22%s\22 but was \22%s\22\0A\00"
define void @case_helloWorld() {
%1 = call i32 @puts(i8* getelementptr inbounds ([190 x i8], [190 x i8]* @.str, i64 0, i64 0))
%2 = call i8* (...) @helloWorld()
%3 = call i64 @strcmp(i8* %2, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.1, i64 0, i64 0))
%4 = icmp eq i64 %3, 0
br i1 %4, label %5, label %7
5: ; preds = %0
%6 = call i32 @puts(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.2, i64 0, i64 0))
br label %10
7: ; preds = %0
%8 = call i8* (...) @helloWorld()
%9 = call i32 @printf(i8* getelementptr inbounds ([64 x i8], [64 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.1, i64 0, i64 0), i8* %8)
br label %10
10: ; preds = %7, %5
ret void
}

LLVM IR (-O2):
@.str = [190 x i8] c"$$ASSERT_BEGIN|/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/plinnie/thingspector/refs/heads/master/test/test1/inspect/tests/test_helloworld.c|31\00"
@.str.1 = [12 x i8] c"Hello world\00"
@.str.2 = [16 x i8] c"$$ASSERT_END|OK\00"
@.str.3 = [64 x i8] c"$$ASSERT_END|Expected helloWorld() to return \22%s\22 but was \22%s\22\0A\00"
define void @case_helloWorld() {
%1 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([190 x i8], [190 x i8]* @.str, i64 0, i64 0))
%2 = tail call i8* (...) @helloWorld()
%3 = tail call i64 @strcmp(i8* %2, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.1, i64 0, i64 0))
%4 = icmp eq i64 %3, 0
br i1 %4, label %5, label %7
5: ; preds = %0
%6 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([16 x i8], [16 x i8]* @.str.2, i64 0, i64 0))
br label %10
7: ; preds = %0
%8 = tail call i8* (...) @helloWorld()
%9 = tail call i32 @printf(i8* getelementptr inbounds ([64 x i8], [64 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.1, i64 0, i64 0), i8* %8)
br label %10
10: ; preds = %7, %5
ret void
}