#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 void UC_DependencyNode;

/* Variables and functions */
int /*<<< orphan*/ breakpoint();
int /*<<< orphan*/ printk(char *, ...);
int /*<<< orphan*/ show_stack(void *);
struct UC_DependencyNode *
copyUC_DependencyNode(struct UC_DependencyNode *sdep) {
  printk("Dependency management doesn't work yet\n");
  do {
    if (!(0)) {
      printk("kgdb assertion failed: %s\n", "BUG");
      show_stack(((void *)0));
      breakpoint();
    }
  } while (0);
  return ((void *)0);
}


x86 assembly (clang, -O0):
<copyUC_DependencyNode>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
lea    0xebd(%rip),%rdi
mov    $0x0,%al
call   1030 <printk@plt>
lea    0xed7(%rip),%rdi
lea    0xeeb(%rip),%rsi
mov    $0x0,%al
call   1030 <printk@plt>
xor    %eax,%eax
mov    %eax,%edi
call   1050 <show_stack@plt>
mov    $0x0,%al
call   1040 <breakpoint@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<copyUC_DependencyNode>:
push   %rax
lea    0xec8(%rip),%rdi
xor    %eax,%eax
call   1030 <printk@plt>
lea    0xee2(%rip),%rdi
lea    0xef6(%rip),%rsi
xor    %eax,%eax
call   1030 <printk@plt>
xor    %edi,%edi
call   1050 <show_stack@plt>
xor    %eax,%eax
call   1040 <breakpoint@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
%struct.UC_DependencyNode = type opaque
@.str = [40 x i8] c"Dependency management doesn't work yet\0A\00"
@.str.1 = [27 x i8] c"kgdb assertion failed: %s\0A\00"
@.str.2 = [4 x i8] c"BUG\00"
define %struct.UC_DependencyNode* @copyUC_DependencyNode(%struct.UC_DependencyNode* %0) {
%2 = alloca %struct.UC_DependencyNode*
store %struct.UC_DependencyNode* %0, %struct.UC_DependencyNode** %2
%3 = call i32 (i8*, ...) @printk(i8* getelementptr inbounds ([40 x i8], [40 x i8]* @.str, i64 0, i64 0))
br label %4
4: ; preds = %1
%5 = call i32 (i8*, ...) @printk(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0))
%6 = call i32 @show_stack(i8* null)
%7 = call i32 (...) @breakpoint()
br label %8
8: ; preds = %4
ret %struct.UC_DependencyNode* null
}

LLVM IR (-O2):
%struct.UC_DependencyNode = type opaque
@.str = [40 x i8] c"Dependency management doesn't work yet\0A\00"
@.str.1 = [27 x i8] c"kgdb assertion failed: %s\0A\00"
@.str.2 = [4 x i8] c"BUG\00"
define noalias %struct.UC_DependencyNode* @copyUC_DependencyNode(%struct.UC_DependencyNode* nocapture readnone %0) {
%2 = tail call i32 (i8*, ...) @printk(i8* getelementptr inbounds ([40 x i8], [40 x i8]* @.str, i64 0, i64 0))
%3 = tail call i32 (i8*, ...) @printk(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0))
%4 = tail call i32 @show_stack(i8* null)
%5 = tail call i32 (...) @breakpoint()
ret %struct.UC_DependencyNode* null
}