#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 */
scalar_t__ assert_fail();
int /*<<< orphan*/ assert_msg_fail();
scalar_t__ assert_msg_pass();
scalar_t__ assert_pass();
int /*<<< orphan*/ fail();
int /*<<< orphan*/ *strnstr(int /*<<< orphan*/, char *, int);
char *test_asserts() {
  do {
    if (!(assert_msg_pass() == 0))
      return "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/"
             "2022-01-22/02-19-57/repos/marshall/mintest/refs/heads/master/"
             "tests/test_asserts.c"
             ":"
             "41"
             ": "
             "assert_msg_pass() == 0";
  } while (0);
  do {
    if (!(strnstr(assert_msg_fail(), "fail_msg", 128) != NULL))
      return "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/"
             "2022-01-22/02-19-57/repos/marshall/mintest/refs/heads/master/"
             "tests/test_asserts.c"
             ":"
             "42"
             ": "
             "strnstr(assert_msg_fail(), \"fail_msg\", 128) != NULL";
  } while (0);
  do {
    if (!(assert_pass() == 0))
      return "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/"
             "2022-01-22/02-19-57/repos/marshall/mintest/refs/heads/master/"
             "tests/test_asserts.c"
             ":"
             "43"
             ": "
             "assert_pass() == 0";
  } while (0);
  do {
    if (!(assert_fail() != 0))
      return "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/"
             "2022-01-22/02-19-57/repos/marshall/mintest/refs/heads/master/"
             "tests/test_asserts.c"
             ":"
             "44"
             ": "
             "assert_fail() != 0";
  } while (0);
  do {
    if (!(strnstr(fail(), "I fail", 128) != NULL))
      return "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/"
             "2022-01-22/02-19-57/repos/marshall/mintest/refs/heads/master/"
             "tests/test_asserts.c"
             ":"
             "45"
             ": "
             "strnstr(fail(), \"I fail\", 128) != NULL";
  } while (0);
  return 0;
}


x86 assembly (clang, -O0):
<test_asserts>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    $0x0,%al
call   1080 <assert_msg_pass@plt>
cmp    $0x0,%rax
je     1189 <test_asserts+0x29>
lea    0xe80(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    1268 <test_asserts+0x108>
jmp    118e <test_asserts+0x2e>
jmp    1193 <test_asserts+0x33>
mov    $0x0,%al
call   1060 <assert_msg_fail@plt>
mov    %eax,%edi
lea    0xf0a(%rip),%rsi
mov    $0x80,%edx
call   1070 <strnstr@plt>
cmp    $0x0,%rax
jne    11c7 <test_asserts+0x67>
lea    0xef8(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    1268 <test_asserts+0x108>
jmp    11cc <test_asserts+0x6c>
jmp    11d1 <test_asserts+0x71>
mov    $0x0,%al
call   1050 <assert_pass@plt>
cmp    $0x0,%rax
je     11f2 <test_asserts+0x92>
lea    0xf97(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    1268 <test_asserts+0x108>
jmp    11f7 <test_asserts+0x97>
jmp    11fc <test_asserts+0x9c>
mov    $0x0,%al
call   1030 <assert_fail@plt>
cmp    $0x0,%rax
jne    121d <test_asserts+0xbd>
lea    0x1015(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    1268 <test_asserts+0x108>
jmp    1222 <test_asserts+0xc2>
jmp    1227 <test_asserts+0xc7>
mov    $0x0,%al
call   1040 <fail@plt>
mov    %eax,%edi
lea    0x109b(%rip),%rsi
mov    $0x80,%edx
call   1070 <strnstr@plt>
cmp    $0x0,%rax
jne    125b <test_asserts+0xfb>
lea    0x1087(%rip),%rax
mov    %rax,-0x8(%rbp)
jmp    1268 <test_asserts+0x108>
jmp    1260 <test_asserts+0x100>
movq   $0x0,-0x8(%rbp)
mov    -0x8(%rbp),%rax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<test_asserts>:
push   %rbx
xor    %eax,%eax
call   1080 <assert_msg_pass@plt>
test   %rax,%rax
je     1179 <test_asserts+0x19>
lea    0xe8c(%rip),%rbx
mov    %rbx,%rax
pop    %rbx
ret
xor    %eax,%eax
call   1060 <assert_msg_fail@plt>
lea    0xf26(%rip),%rsi
mov    %eax,%edi
mov    $0x80,%edx
call   1070 <strnstr@plt>
test   %rax,%rax
je     11ad <test_asserts+0x4d>
xor    %eax,%eax
call   1050 <assert_pass@plt>
test   %rax,%rax
je     11b6 <test_asserts+0x56>
lea    0xfd5(%rip),%rbx
jmp    1174 <test_asserts+0x14>
lea    0xf02(%rip),%rbx
jmp    1174 <test_asserts+0x14>
xor    %eax,%eax
call   1030 <assert_fail@plt>
test   %rax,%rax
je     11ee <test_asserts+0x8e>
xor    %ebx,%ebx
xor    %eax,%eax
call   1040 <fail@plt>
lea    0x1100(%rip),%rsi
mov    %eax,%edi
mov    $0x80,%edx
call   1070 <strnstr@plt>
test   %rax,%rax
lea    0x10f1(%rip),%rax
cmove  %rax,%rbx
jmp    1174 <test_asserts+0x14>
lea    0x1034(%rip),%rbx
jmp    1174 <test_asserts+0x14>

LLVM IR (-O0):
@.str = [173 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/marshall/mintest/refs/heads/master/tests/test_asserts.c:41: assert_msg_pass() == 0\00"
@.str.1 = [9 x i8] c"fail_msg\00"
@.str.2 = [202 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/marshall/mintest/refs/heads/master/tests/test_asserts.c:42: strnstr(assert_msg_fail(), \22fail_msg\22, 128) != NULL\00"
@.str.3 = [169 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/marshall/mintest/refs/heads/master/tests/test_asserts.c:43: assert_pass() == 0\00"
@.str.4 = [169 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/marshall/mintest/refs/heads/master/tests/test_asserts.c:44: assert_fail() != 0\00"
@.str.5 = [7 x i8] c"I fail\00"
@.str.6 = [189 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/marshall/mintest/refs/heads/master/tests/test_asserts.c:45: strnstr(fail(), \22I fail\22, 128) != NULL\00"
define i8* @test_asserts() {
%1 = alloca i8*
br label %2
2: ; preds = %0
%3 = call i64 (...) @assert_msg_pass()
%4 = icmp eq i64 %3, 0
br i1 %4, label %6, label %5
5: ; preds = %2
store i8* getelementptr inbounds ([173 x i8], [173 x i8]* @.str, i64 0, i64 0), i8** %1
br label %34
6: ; preds = %2
br label %7
7: ; preds = %6
br label %8
8: ; preds = %7
%9 = call i32 (...) @assert_msg_fail()
%10 = call i32* @strnstr(i32 %9, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.1, i64 0, i64 0), i32 128)
%11 = icmp ne i32* %10, null
br i1 %11, label %13, label %12
12: ; preds = %8
store i8* getelementptr inbounds ([202 x i8], [202 x i8]* @.str.2, i64 0, i64 0), i8** %1
br label %34
13: ; preds = %8
br label %14
14: ; preds = %13
br label %15
15: ; preds = %14
%16 = call i64 (...) @assert_pass()
%17 = icmp eq i64 %16, 0
br i1 %17, label %19, label %18
18: ; preds = %15
store i8* getelementptr inbounds ([169 x i8], [169 x i8]* @.str.3, i64 0, i64 0), i8** %1
br label %34
19: ; preds = %15
br label %20
20: ; preds = %19
br label %21
21: ; preds = %20
%22 = call i64 (...) @assert_fail()
%23 = icmp ne i64 %22, 0
br i1 %23, label %25, label %24
24: ; preds = %21
store i8* getelementptr inbounds ([169 x i8], [169 x i8]* @.str.4, i64 0, i64 0), i8** %1
br label %34
25: ; preds = %21
br label %26
26: ; preds = %25
br label %27
27: ; preds = %26
%28 = call i32 (...) @fail()
%29 = call i32* @strnstr(i32 %28, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.5, i64 0, i64 0), i32 128)
%30 = icmp ne i32* %29, null
br i1 %30, label %32, label %31
31: ; preds = %27
store i8* getelementptr inbounds ([189 x i8], [189 x i8]* @.str.6, i64 0, i64 0), i8** %1
br label %34
32: ; preds = %27
br label %33
33: ; preds = %32
store i8* null, i8** %1
br label %34
34: ; preds = %33, %31, %24, %18, %12, %5
%35 = load i8*, i8** %1
ret i8* %35
}

LLVM IR (-O2):
@.str = [173 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/marshall/mintest/refs/heads/master/tests/test_asserts.c:41: assert_msg_pass() == 0\00"
@.str.1 = [9 x i8] c"fail_msg\00"
@.str.2 = [202 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/marshall/mintest/refs/heads/master/tests/test_asserts.c:42: strnstr(assert_msg_fail(), \22fail_msg\22, 128) != NULL\00"
@.str.3 = [169 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/marshall/mintest/refs/heads/master/tests/test_asserts.c:43: assert_pass() == 0\00"
@.str.4 = [169 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/marshall/mintest/refs/heads/master/tests/test_asserts.c:44: assert_fail() != 0\00"
@.str.5 = [7 x i8] c"I fail\00"
@.str.6 = [189 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/marshall/mintest/refs/heads/master/tests/test_asserts.c:45: strnstr(fail(), \22I fail\22, 128) != NULL\00"
define i8* @test_asserts() {
%1 = tail call i64 (...) @assert_msg_pass()
%2 = icmp eq i64 %1, 0
br i1 %2, label %3, label %18
3: ; preds = %0
%4 = tail call i32 (...) @assert_msg_fail()
%5 = tail call i32* @strnstr(i32 %4, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.1, i64 0, i64 0), i32 128)
%6 = icmp eq i32* %5, null
br i1 %6, label %18, label %7
7: ; preds = %3
%8 = tail call i64 (...) @assert_pass()
%9 = icmp eq i64 %8, 0
br i1 %9, label %10, label %18
10: ; preds = %7
%11 = tail call i64 (...) @assert_fail()
%12 = icmp eq i64 %11, 0
br i1 %12, label %18, label %13
13: ; preds = %10
%14 = tail call i32 (...) @fail()
%15 = tail call i32* @strnstr(i32 %14, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.5, i64 0, i64 0), i32 128)
%16 = icmp eq i32* %15, null
%17 = select i1 %16, i8* getelementptr inbounds ([189 x i8], [189 x i8]* @.str.6, i64 0, i64 0), i8* null
br label %18
18: ; preds = %13, %10, %7, %3, %0
%19 = phi i8* [ getelementptr inbounds ([173 x i8], [173 x i8]* @.str, i64 0, i64 0), %0 ], [ getelementptr inbounds ([202 x i8], [202 x i8]* @.str.2, i64 0, i64 0), %3 ], [ getelementptr inbounds ([169 x i8], [169 x i8]* @.str.3, i64 0, i64 0), %7 ], [ getelementptr inbounds ([169 x i8], [169 x i8]* @.str.4, i64 0, i64 0), %10 ], [ %17, %13 ]
ret i8* %19
}