#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 *helloWorldAgain();
int /*<<< orphan*/ printf(char *, char *, char *);
int /*<<< orphan*/ puts(char *);
scalar_t__ strcmp(char *, char *);
void case_helloWorldAgain() {
  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"
       "|"
       "49");
  if ((strcmp((helloWorldAgain()), ("Hello world")) == 0)) {
    puts("$$ASSERT_END|OK");
  } else {
    printf("$$ASSERT_END|"
           "Expected "
           "helloWorldAgain()"
           " to return \"%s\" but was \"%s\""
           "\n",
           "Hello world", helloWorldAgain());
  };
}


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

x86 assembly (clang, -O2):
<case_helloWorldAgain>:
push   %rax
lea    0xeb8(%rip),%rdi
call   1040 <puts@plt>
xor    %eax,%eax
call   1030 <helloWorldAgain@plt>
lea    0xf63(%rip),%rsi
mov    %rax,%rdi
call   1060 <strcmp@plt>
test   %rax,%rax
je     1186 <case_helloWorldAgain+0x46>
xor    %eax,%eax
call   1030 <helloWorldAgain@plt>
lea    0xf64(%rip),%rdi
lea    0xf41(%rip),%rsi
mov    %rax,%rdx
pop    %rax
jmp    1050 <printf@plt>
lea    0xf3d(%rip),%rdi
pop    %rax
jmp    1040 <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|49\00"
@.str.1 = [12 x i8] c"Hello world\00"
@.str.2 = [16 x i8] c"$$ASSERT_END|OK\00"
@.str.3 = [69 x i8] c"$$ASSERT_END|Expected helloWorldAgain() to return \22%s\22 but was \22%s\22\0A\00"
define void @case_helloWorldAgain() {
%1 = call i32 @puts(i8* getelementptr inbounds ([190 x i8], [190 x i8]* @.str, i64 0, i64 0))
%2 = call i8* (...) @helloWorldAgain()
%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* (...) @helloWorldAgain()
%9 = call i32 @printf(i8* getelementptr inbounds ([69 x i8], [69 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|49\00"
@.str.1 = [12 x i8] c"Hello world\00"
@.str.2 = [16 x i8] c"$$ASSERT_END|OK\00"
@.str.3 = [69 x i8] c"$$ASSERT_END|Expected helloWorldAgain() to return \22%s\22 but was \22%s\22\0A\00"
define void @case_helloWorldAgain() {
%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* (...) @helloWorldAgain()
%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* (...) @helloWorldAgain()
%9 = tail call i32 @printf(i8* getelementptr inbounds ([69 x i8], [69 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
}