#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*/ _log(int, char *, int, char *, char const *, char const *,
                        int);
int /*<<< orphan*/ abort();
void _np_assert(const char *cond, const char *file, int line, int panic) {
  do {
    _log(5,
         "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/"
         "2022-01-22/02-19-57/repos/kenshinx/nproxy/refs/heads/master/src/"
         "util.c",
         81, "assert '%s' failed @ (%s, %d)", cond, file, line);
  } while (0);
  if (panic) {
    abort();
  }
}


x86 assembly (clang, -O0):
<_np_assert>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %edx,-0x14(%rbp)
mov    %ecx,-0x18(%rbp)
mov    -0x8(%rbp),%r8
mov    -0x10(%rbp),%r9
mov    -0x14(%rbp),%eax
mov    $0x5,%edi
lea    0xeb3(%rip),%rsi
mov    $0x51,%edx
lea    0xf2e(%rip),%rcx
mov    %eax,(%rsp)
call   1040 <_log@plt>
cmpl   $0x0,-0x18(%rbp)
je     1172 <_np_assert+0x52>
mov    $0x0,%al
call   1030 <abort@plt>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<_np_assert>:
push   %rbx
sub    $0x10,%rsp
mov    %ecx,%ebx
mov    %rsi,%r9
mov    %rdi,%r8
mov    %edx,(%rsp)
lea    0xec9(%rip),%rsi
lea    0xf49(%rip),%rcx
mov    $0x5,%edi
mov    $0x51,%edx
call   1040 <_log@plt>
test   %ebx,%ebx
jne    1157 <_np_assert+0x37>
add    $0x10,%rsp
pop    %rbx
ret
xor    %eax,%eax
call   1030 <abort@plt>

LLVM IR (-O0):
@.str = [135 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/kenshinx/nproxy/refs/heads/master/src/util.c\00"
@.str.1 = [30 x i8] c"assert '%s' failed @ (%s, %d)\00"
define void @_np_assert(i8* %0, i8* %1, i32 %2, i32 %3) {
%5 = alloca i8*
%6 = alloca i8*
%7 = alloca i32
%8 = alloca i32
store i8* %0, i8** %5
store i8* %1, i8** %6
store i32 %2, i32* %7
store i32 %3, i32* %8
br label %9
9: ; preds = %4
%10 = load i8*, i8** %5
%11 = load i8*, i8** %6
%12 = load i32, i32* %7
%13 = call i32 @_log(i32 5, i8* getelementptr inbounds ([135 x i8], [135 x i8]* @.str, i64 0, i64 0), i32 81, i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.1, i64 0, i64 0), i8* %10, i8* %11, i32 %12)
br label %14
14: ; preds = %9
%15 = load i32, i32* %8
%16 = icmp ne i32 %15, 0
br i1 %16, label %17, label %19
17: ; preds = %14
%18 = call i32 (...) @abort()
unreachable
19: ; preds = %14
ret void
}

LLVM IR (-O2):
@.str = [135 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/kenshinx/nproxy/refs/heads/master/src/util.c\00"
@.str.1 = [30 x i8] c"assert '%s' failed @ (%s, %d)\00"
define void @_np_assert(i8* %0, i8* %1, i32 %2, i32 %3) {
%5 = tail call i32 @_log(i32 5, i8* getelementptr inbounds ([135 x i8], [135 x i8]* @.str, i64 0, i64 0), i32 81, i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.1, i64 0, i64 0), i8* %0, i8* %1, i32 %2)
%6 = icmp eq i32 %3, 0
br i1 %6, label %9, label %7
7: ; preds = %4
%8 = tail call i32 (...) @abort()
unreachable
9: ; preds = %4
ret void
}