#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 UC_DependencyNode {
  int dummy;
};
struct UC_Continuation {
  int dummy;
};

/* Variables and functions */
int /*<<< orphan*/ breakpoint();
int /*<<< orphan*/ printk(char *, ...);
int /*<<< orphan*/ show_stack(void *);
void updateUC_ContinuationAndDependency(struct UC_Continuation *cont,
                                        struct UC_DependencyNode *dep) {
  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);
}


x86 assembly (clang, -O0):
<updateUC_ContinuationAndDependency>:
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>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<updateUC_ContinuationAndDependency>:
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
pop    %rcx
jmp    1040 <breakpoint@plt>

LLVM IR (-O0):
%struct.UC_Continuation = type { i32 }
%struct.UC_DependencyNode = 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 void @updateUC_ContinuationAndDependency(%struct.UC_Continuation* %0, %struct.UC_DependencyNode* %1) {
%3 = alloca %struct.UC_Continuation*
%4 = alloca %struct.UC_DependencyNode*
store %struct.UC_Continuation* %0, %struct.UC_Continuation** %3
store %struct.UC_DependencyNode* %1, %struct.UC_DependencyNode** %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 void
}

LLVM IR (-O2):
%struct.UC_Continuation = type { i32 }
%struct.UC_DependencyNode = 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 void @updateUC_ContinuationAndDependency(%struct.UC_Continuation* nocapture readnone %0, %struct.UC_DependencyNode* 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 void
}