#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*/ abort();
int /*<<< orphan*/ fflush(int /*<<< orphan*/);
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *, char *, int, char *);
int /*<<< orphan*/ stderr;
void worker(void *arg) {
  do {
    if (!((void *)34 == arg)) {
      fprintf(stderr, "assertion failed in %s on line %d : %s\n",
              "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/"
              "2022-01-22/02-19-57/repos/ASMlover/study/refs/heads/master/c/"
              "devil/test/devil_test_thread.c",
              37, "(void*)34 == arg");
      fflush(stderr);
      abort();
    }
  } while (0);
}


x86 assembly (clang, -O0):
<worker>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    $0x22,%eax
cmp    -0x8(%rbp),%rax
je     1188 <worker+0x58>
mov    0x2e8e(%rip),%rax
mov    (%rax),%edi
lea    0xea5(%rip),%rsi
lea    0xec6(%rip),%rdx
mov    $0x25,%ecx
lea    0xf56(%rip),%r8
call   1040 <fprintf@plt>
mov    0x2e66(%rip),%rax
mov    (%rax),%edi
call   1050 <fflush@plt>
mov    $0x0,%al
call   1030 <abort@plt>
jmp    118d <worker+0x5d>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<worker>:
cmp    $0x22,%rdi
jne    1137 <worker+0x7>
ret
push   %rbx
mov    0x2ea1(%rip),%rbx
mov    (%rbx),%edi
lea    0xeb8(%rip),%rsi
lea    0xed9(%rip),%rdx
lea    0xf6e(%rip),%r8
mov    $0x25,%ecx
call   1040 <fprintf@plt>
mov    (%rbx),%edi
call   1050 <fflush@plt>
xor    %eax,%eax
call   1030 <abort@plt>

LLVM IR (-O0):
@stderr = global i32 0
@.str = [40 x i8] c"assertion failed in %s on line %d : %s\0A\00"
@.str.1 = [156 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/ASMlover/study/refs/heads/master/c/devil/test/devil_test_thread.c\00"
@.str.2 = [17 x i8] c"(void*)34 == arg\00"
define void @worker(i8* %0) {
%2 = alloca i8*
store i8* %0, i8** %2
br label %3
3: ; preds = %1
%4 = load i8*, i8** %2
%5 = icmp eq i8* inttoptr (i64 34 to i8*), %4
br i1 %5, label %12, label %6
6: ; preds = %3
%7 = load i32, i32* @stderr
%8 = call i32 @fprintf(i32 %7, i8* getelementptr inbounds ([40 x i8], [40 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([156 x i8], [156 x i8]* @.str.1, i64 0, i64 0), i32 37, i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.2, i64 0, i64 0))
%9 = load i32, i32* @stderr
%10 = call i32 @fflush(i32 %9)
%11 = call i32 (...) @abort()
unreachable
12: ; preds = %3
br label %13
13: ; preds = %12
ret void
}

LLVM IR (-O2):
@stderr = global i32 0
@.str = [40 x i8] c"assertion failed in %s on line %d : %s\0A\00"
@.str.1 = [156 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/ASMlover/study/refs/heads/master/c/devil/test/devil_test_thread.c\00"
@.str.2 = [17 x i8] c"(void*)34 == arg\00"
define void @worker(i8* readnone %0) {
%2 = icmp eq i8* %0, inttoptr (i64 34 to i8*)
br i1 %2, label %9, label %3
3: ; preds = %1
%4 = load i32, i32* @stderr
%5 = tail call i32 @fprintf(i32 %4, i8* getelementptr inbounds ([40 x i8], [40 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([156 x i8], [156 x i8]* @.str.1, i64 0, i64 0), i32 37, i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.2, i64 0, i64 0))
%6 = load i32, i32* @stderr
%7 = tail call i32 @fflush(i32 %6)
%8 = tail call i32 (...) @abort()
unreachable
9: ; preds = %1
ret void
}