#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 */
struct sock {
  int dummy;
};
struct WireUC_Dependency {
  int dummy;
};
typedef void UC_DependencyLink;

/* Variables and functions */
int /*<<< orphan*/ breakpoint();
int /*<<< orphan*/ printk(char *, ...);
int /*<<< orphan*/ show_stack(void *);
struct UC_DependencyLink *
unmarshallUC_Dependency(struct sock *sk, struct WireUC_Dependency *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):
<unmarshallUC_Dependency>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
lea    0xeb9(%rip),%rdi
mov    $0x0,%al
call   1030 <printk@plt>
lea    0xed3(%rip),%rdi
lea    0xee7(%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):
<unmarshallUC_Dependency>:
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_DependencyLink = type opaque
%struct.sock = type { i32 }
%struct.WireUC_Dependency = type { i32 }
@.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_DependencyLink* @unmarshallUC_Dependency(%struct.sock* %0, %struct.WireUC_Dependency* %1) {
%3 = alloca %struct.sock*
%4 = alloca %struct.WireUC_Dependency*
store %struct.sock* %0, %struct.sock** %3
store %struct.WireUC_Dependency* %1, %struct.WireUC_Dependency** %4
%5 = call i32 (i8*, ...) @printk(i8* getelementptr inbounds ([40 x i8], [40 x i8]* @.str, i64 0, i64 0))
br label %6
6: ; preds = %2
%7 = 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))
%8 = call i32 @show_stack(i8* null)
%9 = call i32 (...) @breakpoint()
br label %10
10: ; preds = %6
ret %struct.UC_DependencyLink* null
}

LLVM IR (-O2):
%struct.UC_DependencyLink = type opaque
%struct.sock = type { i32 }
%struct.WireUC_Dependency = type { i32 }
@.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_DependencyLink* @unmarshallUC_Dependency(%struct.sock* nocapture readnone %0, %struct.WireUC_Dependency* nocapture readnone %1) {
%3 = tail call i32 (i8*, ...) @printk(i8* getelementptr inbounds ([40 x i8], [40 x i8]* @.str, i64 0, i64 0))
%4 = 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))
%5 = tail call i32 @show_stack(i8* null)
%6 = tail call i32 (...) @breakpoint()
ret %struct.UC_DependencyLink* null
}