#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 */
typedef int uint64_t;

/* Variables and functions */
int /*<<< orphan*/ exit(int);
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *, int, char const *);
int /*<<< orphan*/ stderr;
void pshdl_assertThat_bool_EAssert_s(bool assumption, uint64_t assertLevel,
                                     const char *message) {
  if (!assumption) {
    fprintf(stderr, "as %llu '%s'\n", assertLevel, message);
    if (assertLevel < 2) {
      exit(assertLevel + 1);
    }
  }
}


x86 assembly (clang, -O0):
<pshdl_assertThat_bool_EAssert_s>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
mov    %rdx,-0x10(%rbp)
cmpl   $0x0,-0x4(%rbp)
jne    1172 <pshdl_assertThat_bool_EAssert_s+0x52>
mov    0x2e9d(%rip),%rax
mov    (%rax),%edi
mov    -0x8(%rbp),%edx
mov    -0x10(%rbp),%rcx
lea    0xead(%rip),%rsi
call   1030 <fprintf@plt>
cmpl   $0x2,-0x8(%rbp)
jge    116d <pshdl_assertThat_bool_EAssert_s+0x4d>
mov    -0x8(%rbp),%edi
add    $0x1,%edi
call   1040 <exit@plt>
jmp    1172 <pshdl_assertThat_bool_EAssert_s+0x52>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<pshdl_assertThat_bool_EAssert_s>:
push   %rbx
test   %edi,%edi
jne    1146 <pshdl_assertThat_bool_EAssert_s+0x26>
mov    %rdx,%rcx
mov    %esi,%ebx
mov    0x2eaf(%rip),%rax
mov    (%rax),%edi
lea    0xec6(%rip),%rsi
mov    %ebx,%edx
call   1030 <fprintf@plt>
cmp    $0x1,%ebx
jle    1148 <pshdl_assertThat_bool_EAssert_s+0x28>
pop    %rbx
ret
add    $0x1,%ebx
mov    %ebx,%edi
call   1040 <exit@plt>

LLVM IR (-O0):
@stderr = global i32 0
@.str = [14 x i8] c"as %llu '%s'\0A\00"
define void @pshdl_assertThat_bool_EAssert_s(i32 %0, i32 %1, i8* %2) {
%4 = alloca i32
%5 = alloca i32
%6 = alloca i8*
store i32 %0, i32* %4
store i32 %1, i32* %5
store i8* %2, i8** %6
%7 = load i32, i32* %4
%8 = icmp ne i32 %7, 0
br i1 %8, label %21, label %9
9: ; preds = %3
%10 = load i32, i32* @stderr
%11 = load i32, i32* %5
%12 = load i8*, i8** %6
%13 = call i32 @fprintf(i32 %10, i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str, i64 0, i64 0), i32 %11, i8* %12)
%14 = load i32, i32* %5
%15 = icmp slt i32 %14, 2
br i1 %15, label %16, label %20
16: ; preds = %9
%17 = load i32, i32* %5
%18 = add nsw i32 %17, 1
%19 = call i32 @exit(i32 %18)
unreachable
20: ; preds = %9
br label %21
21: ; preds = %20, %3
ret void
}

LLVM IR (-O2):
@stderr = global i32 0
@.str = [14 x i8] c"as %llu '%s'\0A\00"
define void @pshdl_assertThat_bool_EAssert_s(i32 %0, i32 %1, i8* %2) {
%4 = icmp eq i32 %0, 0
br i1 %4, label %5, label %12
5: ; preds = %3
%6 = load i32, i32* @stderr
%7 = tail call i32 @fprintf(i32 %6, i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str, i64 0, i64 0), i32 %1, i8* %2)
%8 = icmp slt i32 %1, 2
br i1 %8, label %9, label %12
9: ; preds = %5
%10 = add nsw i32 %1, 1
%11 = tail call i32 @exit(i32 %10)
unreachable
12: ; preds = %5, %3
ret void
}