#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 fibheap {
  int dummy;
};

/* Variables and functions */
int /*<<< orphan*/ fh_deleteheap(struct fibheap *);
scalar_t__ fh_extractmin(struct fibheap *);
void *fh_insertkey(struct fibheap *, int /*<<< orphan*/, void *);
struct fibheap *fh_makekeyheap();
int fh_minkey(struct fibheap *);
int /*<<< orphan*/ fh_replacekey(struct fibheap *, void *, int);
int /*<<< orphan*/ printf(char *, ...);
int main(void) {
  struct fibheap *a;
  void *arr[10];
  int i;
  a = fh_makekeyheap();
  for (i = 1; i < 8; i++) {
    arr[i] = fh_insertkey(a, 0, (void *)i);
    printf("adding: 0 %d \n", i);
  }
  printf(" \n");
  fh_replacekey(a, arr[1], -2);
  fh_replacekey(a, arr[4], -3);
  fh_replacekey(a, arr[7], -5);
  printf("Wert(minkey) %d\n", fh_minkey(a));
  printf("Knoten: %d\n\n", (int)fh_extractmin(a));
  fh_replacekey(a, arr[3], -2);
  fh_replacekey(a, arr[6], -1);
  printf("Wert(minkey) %d\n", fh_minkey(a));
  printf("Knoten: %d\n\n", (int)fh_extractmin(a));
  fh_replacekey(a, arr[1], -9);
  fh_replacekey(a, arr[5], -3);
  printf("Wert(minkey) %d\n", fh_minkey(a));
  printf("Knoten: %d\n\n", (int)fh_extractmin(a));
  fh_replacekey(a, arr[2], -4);
  fh_replacekey(a, arr[5], -5);
  fh_replacekey(a, arr[6], -3);
  printf("Wert(minkey) %d\n", fh_minkey(a));
  printf("Knoten: %d\n\n", (int)fh_extractmin(a));
  fh_replacekey(a, arr[2], -6);
  fh_replacekey(a, arr[6], -6);
  printf("Wert(minkey) %d\n", fh_minkey(a));
  printf("Knoten: %d\n\n", (int)fh_extractmin(a));
  printf("Wert(minkey) %d\n", fh_minkey(a));
  printf("Knoten: %d\n\n", (int)fh_extractmin(a));
  printf("Wert(minkey) %d\n", fh_minkey(a));
  printf("Knoten: %d\n\n", (int)fh_extractmin(a));
  fh_deleteheap(a);
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x70,%rsp
movl   $0x0,-0x4(%rbp)
mov    $0x0,%al
call   1060 <fh_makekeyheap@plt>
mov    %rax,-0x10(%rbp)
movl   $0x1,-0x64(%rbp)
cmpl   $0x8,-0x64(%rbp)
jge    11d5 <main+0x65>
mov    -0x10(%rbp),%rdi
movslq -0x64(%rbp),%rdx
xor    %esi,%esi
call   1080 <fh_insertkey@plt>
mov    %rax,%rcx
movslq -0x64(%rbp),%rax
mov    %rcx,-0x60(%rbp,%rax,8)
mov    -0x64(%rbp),%esi
lea    0xe40(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x64(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x64(%rbp)
jmp    1191 <main+0x21>
lea    0xe30(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x10(%rbp),%rdi
mov    -0x58(%rbp),%rsi
mov    $0xfffffffe,%edx
call   1050 <fh_replacekey@plt>
mov    -0x10(%rbp),%rdi
mov    -0x40(%rbp),%rsi
mov    $0xfffffffd,%edx
call   1050 <fh_replacekey@plt>
mov    -0x10(%rbp),%rdi
mov    -0x28(%rbp),%rsi
mov    $0xfffffffb,%edx
call   1050 <fh_replacekey@plt>
mov    -0x10(%rbp),%rdi
call   1070 <fh_minkey@plt>
mov    %eax,%esi
lea    0xde4(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x10(%rbp),%rdi
call   1090 <fh_extractmin@plt>
mov    %eax,%esi
lea    0xddc(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x10(%rbp),%rdi
mov    -0x48(%rbp),%rsi
mov    $0xfffffffe,%edx
call   1050 <fh_replacekey@plt>
mov    -0x10(%rbp),%rdi
mov    -0x30(%rbp),%rsi
mov    $0xffffffff,%edx
call   1050 <fh_replacekey@plt>
mov    -0x10(%rbp),%rdi
call   1070 <fh_minkey@plt>
mov    %eax,%esi
lea    0xd8e(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x10(%rbp),%rdi
call   1090 <fh_extractmin@plt>
mov    %eax,%esi
lea    0xd86(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x10(%rbp),%rdi
mov    -0x58(%rbp),%rsi
mov    $0xfffffff7,%edx
call   1050 <fh_replacekey@plt>
mov    -0x10(%rbp),%rdi
mov    -0x38(%rbp),%rsi
mov    $0xfffffffd,%edx
call   1050 <fh_replacekey@plt>
mov    -0x10(%rbp),%rdi
call   1070 <fh_minkey@plt>
mov    %eax,%esi
lea    0xd38(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x10(%rbp),%rdi
call   1090 <fh_extractmin@plt>
mov    %eax,%esi
lea    0xd30(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x10(%rbp),%rdi
mov    -0x50(%rbp),%rsi
mov    $0xfffffffc,%edx
call   1050 <fh_replacekey@plt>
mov    -0x10(%rbp),%rdi
mov    -0x38(%rbp),%rsi
mov    $0xfffffffb,%edx
call   1050 <fh_replacekey@plt>
mov    -0x10(%rbp),%rdi
mov    -0x30(%rbp),%rsi
mov    $0xfffffffd,%edx
call   1050 <fh_replacekey@plt>
mov    -0x10(%rbp),%rdi
call   1070 <fh_minkey@plt>
mov    %eax,%esi
lea    0xcd0(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x10(%rbp),%rdi
call   1090 <fh_extractmin@plt>
mov    %eax,%esi
lea    0xcc8(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x10(%rbp),%rdi
mov    -0x50(%rbp),%rsi
mov    $0xfffffffa,%edx
call   1050 <fh_replacekey@plt>
mov    -0x10(%rbp),%rdi
mov    -0x30(%rbp),%rsi
mov    $0xfffffffa,%edx
call   1050 <fh_replacekey@plt>
mov    -0x10(%rbp),%rdi
call   1070 <fh_minkey@plt>
mov    %eax,%esi
lea    0xc7a(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x10(%rbp),%rdi
call   1090 <fh_extractmin@plt>
mov    %eax,%esi
lea    0xc72(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x10(%rbp),%rdi
call   1070 <fh_minkey@plt>
mov    %eax,%esi
lea    0xc48(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x10(%rbp),%rdi
call   1090 <fh_extractmin@plt>
mov    %eax,%esi
lea    0xc40(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x10(%rbp),%rdi
call   1070 <fh_minkey@plt>
mov    %eax,%esi
lea    0xc16(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x10(%rbp),%rdi
call   1090 <fh_extractmin@plt>
mov    %eax,%esi
lea    0xc0e(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x10(%rbp),%rdi
call   1030 <fh_deleteheap@plt>
xor    %eax,%eax
add    $0x70,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x18,%rsp
xor    %eax,%eax
call   1070 <fh_makekeyheap@plt>
mov    %rax,%rbx
mov    $0x1,%edx
mov    %rax,%rdi
xor    %esi,%esi
call   1090 <fh_insertkey@plt>
mov    %rax,%r14
lea    0xe4f(%rip),%r13
mov    %r13,%rdi
mov    $0x1,%esi
xor    %eax,%eax
call   1050 <printf@plt>
mov    $0x2,%edx
mov    %rbx,%rdi
xor    %esi,%esi
call   1090 <fh_insertkey@plt>
mov    %rax,0x10(%rsp)
mov    %r13,%rdi
mov    $0x2,%esi
xor    %eax,%eax
call   1050 <printf@plt>
mov    $0x3,%edx
mov    %rbx,%rdi
xor    %esi,%esi
call   1090 <fh_insertkey@plt>
mov    %rax,(%rsp)
mov    %r13,%rdi
mov    $0x3,%esi
xor    %eax,%eax
call   1050 <printf@plt>
mov    $0x4,%edx
mov    %rbx,%rdi
xor    %esi,%esi
call   1090 <fh_insertkey@plt>
mov    %rax,%r15
mov    %r13,%rdi
mov    $0x4,%esi
xor    %eax,%eax
call   1050 <printf@plt>
mov    $0x5,%edx
mov    %rbx,%rdi
xor    %esi,%esi
call   1090 <fh_insertkey@plt>
mov    %rax,0x8(%rsp)
mov    %r13,%rdi
mov    $0x5,%esi
xor    %eax,%eax
call   1050 <printf@plt>
mov    $0x6,%edx
mov    %rbx,%rdi
xor    %esi,%esi
call   1090 <fh_insertkey@plt>
mov    %rax,%r12
mov    %r13,%rdi
mov    $0x6,%esi
xor    %eax,%eax
call   1050 <printf@plt>
mov    $0x7,%edx
mov    %rbx,%rdi
xor    %esi,%esi
call   1090 <fh_insertkey@plt>
mov    %rax,%rbp
mov    %r13,%rdi
mov    $0x7,%esi
xor    %eax,%eax
call   1050 <printf@plt>
lea    0xd9b(%rip),%rdi
call   1040 <puts@plt>
mov    %rbx,%rdi
mov    %r14,%rsi
mov    $0xfffffffe,%edx
call   1060 <fh_replacekey@plt>
mov    %rbx,%rdi
mov    %r15,%rsi
mov    $0xfffffffd,%edx
call   1060 <fh_replacekey@plt>
mov    %rbx,%rdi
mov    %rbp,%rsi
mov    $0xfffffffb,%edx
call   1060 <fh_replacekey@plt>
mov    %rbx,%rdi
call   1080 <fh_minkey@plt>
lea    0xd39(%rip),%r15
mov    %r15,%rdi
mov    %eax,%esi
xor    %eax,%eax
call   1050 <printf@plt>
mov    %rbx,%rdi
call   10a0 <fh_extractmin@plt>
lea    0xd2f(%rip),%r13
mov    %r13,%rdi
mov    %eax,%esi
xor    %eax,%eax
call   1050 <printf@plt>
mov    %rbx,%rdi
mov    (%rsp),%rsi
mov    $0xfffffffe,%edx
call   1060 <fh_replacekey@plt>
mov    %rbx,%rdi
mov    %r12,%rsi
mov    $0xffffffff,%edx
call   1060 <fh_replacekey@plt>
mov    %rbx,%rdi
call   1080 <fh_minkey@plt>
mov    %r15,%rdi
mov    %eax,%esi
xor    %eax,%eax
call   1050 <printf@plt>
mov    %rbx,%rdi
call   10a0 <fh_extractmin@plt>
mov    %r13,%rdi
mov    %eax,%esi
xor    %eax,%eax
call   1050 <printf@plt>
mov    %rbx,%rdi
mov    %r14,%rsi
mov    $0xfffffff7,%edx
call   1060 <fh_replacekey@plt>
mov    %rbx,%rdi
mov    0x8(%rsp),%rbp
mov    %rbp,%rsi
mov    $0xfffffffd,%edx
call   1060 <fh_replacekey@plt>
mov    %rbx,%rdi
call   1080 <fh_minkey@plt>
mov    %r15,%rdi
mov    %eax,%esi
xor    %eax,%eax
call   1050 <printf@plt>
mov    %rbx,%rdi
call   10a0 <fh_extractmin@plt>
mov    %r13,%rdi
mov    %eax,%esi
xor    %eax,%eax
call   1050 <printf@plt>
mov    %rbx,%rdi
mov    0x10(%rsp),%r14
mov    %r14,%rsi
mov    $0xfffffffc,%edx
call   1060 <fh_replacekey@plt>
mov    %rbx,%rdi
mov    %rbp,%rsi
mov    $0xfffffffb,%edx
call   1060 <fh_replacekey@plt>
mov    %rbx,%rdi
mov    %r12,%rsi
mov    $0xfffffffd,%edx
call   1060 <fh_replacekey@plt>
mov    %rbx,%rdi
call   1080 <fh_minkey@plt>
mov    %r15,%rdi
mov    %eax,%esi
xor    %eax,%eax
call   1050 <printf@plt>
mov    %rbx,%rdi
call   10a0 <fh_extractmin@plt>
mov    %r13,%rdi
mov    %eax,%esi
xor    %eax,%eax
call   1050 <printf@plt>
mov    %rbx,%rdi
mov    %r14,%rsi
mov    $0xfffffffa,%edx
call   1060 <fh_replacekey@plt>
mov    %rbx,%rdi
mov    %r12,%rsi
mov    $0xfffffffa,%edx
call   1060 <fh_replacekey@plt>
mov    %rbx,%rdi
call   1080 <fh_minkey@plt>
mov    %r15,%rdi
mov    %eax,%esi
xor    %eax,%eax
call   1050 <printf@plt>
mov    %rbx,%rdi
call   10a0 <fh_extractmin@plt>
mov    %r13,%rdi
mov    %eax,%esi
xor    %eax,%eax
call   1050 <printf@plt>
mov    %rbx,%rdi
call   1080 <fh_minkey@plt>
mov    %r15,%rdi
mov    %eax,%esi
xor    %eax,%eax
call   1050 <printf@plt>
mov    %rbx,%rdi
call   10a0 <fh_extractmin@plt>
mov    %r13,%rdi
mov    %eax,%esi
xor    %eax,%eax
call   1050 <printf@plt>
mov    %rbx,%rdi
call   1080 <fh_minkey@plt>
mov    %r15,%rdi
mov    %eax,%esi
xor    %eax,%eax
call   1050 <printf@plt>
mov    %rbx,%rdi
call   10a0 <fh_extractmin@plt>
mov    %r13,%rdi
mov    %eax,%esi
xor    %eax,%eax
call   1050 <printf@plt>
mov    %rbx,%rdi
call   1030 <fh_deleteheap@plt>
xor    %eax,%eax
add    $0x18,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
%struct.fibheap = type { i32 }
@.str = [15 x i8] c"adding: 0 %d \0A\00"
@.str.1 = [3 x i8] c" \0A\00"
@.str.2 = [17 x i8] c"Wert(minkey) %d\0A\00"
@.str.3 = [13 x i8] c"Knoten: %d\0A\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca %struct.fibheap*
%3 = alloca [10 x i8*]
%4 = alloca i32
store i32 0, i32* %1
%5 = call %struct.fibheap* (...) @fh_makekeyheap()
store %struct.fibheap* %5, %struct.fibheap** %2
store i32 1, i32* %4
br label %6
6: ; preds = %20, %0
%7 = load i32, i32* %4
%8 = icmp slt i32 %7, 8
br i1 %8, label %9, label %23
9: ; preds = %6
%10 = load %struct.fibheap*, %struct.fibheap** %2
%11 = load i32, i32* %4
%12 = sext i32 %11 to i64
%13 = inttoptr i64 %12 to i8*
%14 = call i8* @fh_insertkey(%struct.fibheap* %10, i32 0, i8* %13)
%15 = load i32, i32* %4
%16 = sext i32 %15 to i64
%17 = getelementptr inbounds [10 x i8*], [10 x i8*]* %3, i64 0, i64 %16
store i8* %14, i8** %17
%18 = load i32, i32* %4
%19 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str, i64 0, i64 0), i32 %18)
br label %20
20: ; preds = %9
%21 = load i32, i32* %4
%22 = add nsw i32 %21, 1
store i32 %22, i32* %4
br label %6
23: ; preds = %6
%24 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0))
%25 = load %struct.fibheap*, %struct.fibheap** %2
%26 = getelementptr inbounds [10 x i8*], [10 x i8*]* %3, i64 0, i64 1
%27 = load i8*, i8** %26
%28 = call i32 @fh_replacekey(%struct.fibheap* %25, i8* %27, i32 -2)
%29 = load %struct.fibheap*, %struct.fibheap** %2
%30 = getelementptr inbounds [10 x i8*], [10 x i8*]* %3, i64 0, i64 4
%31 = load i8*, i8** %30
%32 = call i32 @fh_replacekey(%struct.fibheap* %29, i8* %31, i32 -3)
%33 = load %struct.fibheap*, %struct.fibheap** %2
%34 = getelementptr inbounds [10 x i8*], [10 x i8*]* %3, i64 0, i64 7
%35 = load i8*, i8** %34
%36 = call i32 @fh_replacekey(%struct.fibheap* %33, i8* %35, i32 -5)
%37 = load %struct.fibheap*, %struct.fibheap** %2
%38 = call i32 @fh_minkey(%struct.fibheap* %37)
%39 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.2, i64 0, i64 0), i32 %38)
%40 = load %struct.fibheap*, %struct.fibheap** %2
%41 = call i64 @fh_extractmin(%struct.fibheap* %40)
%42 = trunc i64 %41 to i32
%43 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.3, i64 0, i64 0), i32 %42)
%44 = load %struct.fibheap*, %struct.fibheap** %2
%45 = getelementptr inbounds [10 x i8*], [10 x i8*]* %3, i64 0, i64 3
%46 = load i8*, i8** %45
%47 = call i32 @fh_replacekey(%struct.fibheap* %44, i8* %46, i32 -2)
%48 = load %struct.fibheap*, %struct.fibheap** %2
%49 = getelementptr inbounds [10 x i8*], [10 x i8*]* %3, i64 0, i64 6
%50 = load i8*, i8** %49
%51 = call i32 @fh_replacekey(%struct.fibheap* %48, i8* %50, i32 -1)
%52 = load %struct.fibheap*, %struct.fibheap** %2
%53 = call i32 @fh_minkey(%struct.fibheap* %52)
%54 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.2, i64 0, i64 0), i32 %53)
%55 = load %struct.fibheap*, %struct.fibheap** %2
%56 = call i64 @fh_extractmin(%struct.fibheap* %55)
%57 = trunc i64 %56 to i32
%58 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.3, i64 0, i64 0), i32 %57)
%59 = load %struct.fibheap*, %struct.fibheap** %2
%60 = getelementptr inbounds [10 x i8*], [10 x i8*]* %3, i64 0, i64 1
%61 = load i8*, i8** %60
%62 = call i32 @fh_replacekey(%struct.fibheap* %59, i8* %61, i32 -9)
%63 = load %struct.fibheap*, %struct.fibheap** %2
%64 = getelementptr inbounds [10 x i8*], [10 x i8*]* %3, i64 0, i64 5
%65 = load i8*, i8** %64
%66 = call i32 @fh_replacekey(%struct.fibheap* %63, i8* %65, i32 -3)
%67 = load %struct.fibheap*, %struct.fibheap** %2
%68 = call i32 @fh_minkey(%struct.fibheap* %67)
%69 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.2, i64 0, i64 0), i32 %68)
%70 = load %struct.fibheap*, %struct.fibheap** %2
%71 = call i64 @fh_extractmin(%struct.fibheap* %70)
%72 = trunc i64 %71 to i32
%73 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.3, i64 0, i64 0), i32 %72)
%74 = load %struct.fibheap*, %struct.fibheap** %2
%75 = getelementptr inbounds [10 x i8*], [10 x i8*]* %3, i64 0, i64 2
%76 = load i8*, i8** %75
%77 = call i32 @fh_replacekey(%struct.fibheap* %74, i8* %76, i32 -4)
%78 = load %struct.fibheap*, %struct.fibheap** %2
%79 = getelementptr inbounds [10 x i8*], [10 x i8*]* %3, i64 0, i64 5
%80 = load i8*, i8** %79
%81 = call i32 @fh_replacekey(%struct.fibheap* %78, i8* %80, i32 -5)
%82 = load %struct.fibheap*, %struct.fibheap** %2
%83 = getelementptr inbounds [10 x i8*], [10 x i8*]* %3, i64 0, i64 6
%84 = load i8*, i8** %83
%85 = call i32 @fh_replacekey(%struct.fibheap* %82, i8* %84, i32 -3)
%86 = load %struct.fibheap*, %struct.fibheap** %2
%87 = call i32 @fh_minkey(%struct.fibheap* %86)
%88 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.2, i64 0, i64 0), i32 %87)
%89 = load %struct.fibheap*, %struct.fibheap** %2
%90 = call i64 @fh_extractmin(%struct.fibheap* %89)
%91 = trunc i64 %90 to i32
%92 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.3, i64 0, i64 0), i32 %91)
%93 = load %struct.fibheap*, %struct.fibheap** %2
%94 = getelementptr inbounds [10 x i8*], [10 x i8*]* %3, i64 0, i64 2
%95 = load i8*, i8** %94
%96 = call i32 @fh_replacekey(%struct.fibheap* %93, i8* %95, i32 -6)
%97 = load %struct.fibheap*, %struct.fibheap** %2
%98 = getelementptr inbounds [10 x i8*], [10 x i8*]* %3, i64 0, i64 6
%99 = load i8*, i8** %98
%100 = call i32 @fh_replacekey(%struct.fibheap* %97, i8* %99, i32 -6)
%101 = load %struct.fibheap*, %struct.fibheap** %2
%102 = call i32 @fh_minkey(%struct.fibheap* %101)
%103 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.2, i64 0, i64 0), i32 %102)
%104 = load %struct.fibheap*, %struct.fibheap** %2
%105 = call i64 @fh_extractmin(%struct.fibheap* %104)
%106 = trunc i64 %105 to i32
%107 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.3, i64 0, i64 0), i32 %106)
%108 = load %struct.fibheap*, %struct.fibheap** %2
%109 = call i32 @fh_minkey(%struct.fibheap* %108)
%110 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.2, i64 0, i64 0), i32 %109)
%111 = load %struct.fibheap*, %struct.fibheap** %2
%112 = call i64 @fh_extractmin(%struct.fibheap* %111)
%113 = trunc i64 %112 to i32
%114 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.3, i64 0, i64 0), i32 %113)
%115 = load %struct.fibheap*, %struct.fibheap** %2
%116 = call i32 @fh_minkey(%struct.fibheap* %115)
%117 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.2, i64 0, i64 0), i32 %116)
%118 = load %struct.fibheap*, %struct.fibheap** %2
%119 = call i64 @fh_extractmin(%struct.fibheap* %118)
%120 = trunc i64 %119 to i32
%121 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.3, i64 0, i64 0), i32 %120)
%122 = load %struct.fibheap*, %struct.fibheap** %2
%123 = call i32 @fh_deleteheap(%struct.fibheap* %122)
ret i32 0
}

LLVM IR (-O2):
%struct.fibheap = type { i32 }
@.str = [15 x i8] c"adding: 0 %d \0A\00"
@.str.2 = [17 x i8] c"Wert(minkey) %d\0A\00"
@.str.3 = [13 x i8] c"Knoten: %d\0A\0A\00"
@str = [2 x i8] c" \00"
define i32 @main() {
%1 = tail call %struct.fibheap* (...) @fh_makekeyheap()
%2 = tail call i8* @fh_insertkey(%struct.fibheap* %1, i32 0, i8* inttoptr (i64 1 to i8*))
%3 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([15 x i8], [15 x i8]* @.str, i64 0, i64 0), i32 1)
%4 = tail call i8* @fh_insertkey(%struct.fibheap* %1, i32 0, i8* inttoptr (i64 2 to i8*))
%5 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([15 x i8], [15 x i8]* @.str, i64 0, i64 0), i32 2)
%6 = tail call i8* @fh_insertkey(%struct.fibheap* %1, i32 0, i8* inttoptr (i64 3 to i8*))
%7 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([15 x i8], [15 x i8]* @.str, i64 0, i64 0), i32 3)
%8 = tail call i8* @fh_insertkey(%struct.fibheap* %1, i32 0, i8* inttoptr (i64 4 to i8*))
%9 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([15 x i8], [15 x i8]* @.str, i64 0, i64 0), i32 4)
%10 = tail call i8* @fh_insertkey(%struct.fibheap* %1, i32 0, i8* inttoptr (i64 5 to i8*))
%11 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([15 x i8], [15 x i8]* @.str, i64 0, i64 0), i32 5)
%12 = tail call i8* @fh_insertkey(%struct.fibheap* %1, i32 0, i8* inttoptr (i64 6 to i8*))
%13 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([15 x i8], [15 x i8]* @.str, i64 0, i64 0), i32 6)
%14 = tail call i8* @fh_insertkey(%struct.fibheap* %1, i32 0, i8* inttoptr (i64 7 to i8*))
%15 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([15 x i8], [15 x i8]* @.str, i64 0, i64 0), i32 7)
%16 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([2 x i8], [2 x i8]* @str, i64 0, i64 0))
%17 = tail call i32 @fh_replacekey(%struct.fibheap* %1, i8* %2, i32 -2)
%18 = tail call i32 @fh_replacekey(%struct.fibheap* %1, i8* %8, i32 -3)
%19 = tail call i32 @fh_replacekey(%struct.fibheap* %1, i8* %14, i32 -5)
%20 = tail call i32 @fh_minkey(%struct.fibheap* %1)
%21 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([17 x i8], [17 x i8]* @.str.2, i64 0, i64 0), i32 %20)
%22 = tail call i64 @fh_extractmin(%struct.fibheap* %1)
%23 = trunc i64 %22 to i32
%24 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([13 x i8], [13 x i8]* @.str.3, i64 0, i64 0), i32 %23)
%25 = tail call i32 @fh_replacekey(%struct.fibheap* %1, i8* %6, i32 -2)
%26 = tail call i32 @fh_replacekey(%struct.fibheap* %1, i8* %12, i32 -1)
%27 = tail call i32 @fh_minkey(%struct.fibheap* %1)
%28 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([17 x i8], [17 x i8]* @.str.2, i64 0, i64 0), i32 %27)
%29 = tail call i64 @fh_extractmin(%struct.fibheap* %1)
%30 = trunc i64 %29 to i32
%31 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([13 x i8], [13 x i8]* @.str.3, i64 0, i64 0), i32 %30)
%32 = tail call i32 @fh_replacekey(%struct.fibheap* %1, i8* %2, i32 -9)
%33 = tail call i32 @fh_replacekey(%struct.fibheap* %1, i8* %10, i32 -3)
%34 = tail call i32 @fh_minkey(%struct.fibheap* %1)
%35 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([17 x i8], [17 x i8]* @.str.2, i64 0, i64 0), i32 %34)
%36 = tail call i64 @fh_extractmin(%struct.fibheap* %1)
%37 = trunc i64 %36 to i32
%38 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([13 x i8], [13 x i8]* @.str.3, i64 0, i64 0), i32 %37)
%39 = tail call i32 @fh_replacekey(%struct.fibheap* %1, i8* %4, i32 -4)
%40 = tail call i32 @fh_replacekey(%struct.fibheap* %1, i8* %10, i32 -5)
%41 = tail call i32 @fh_replacekey(%struct.fibheap* %1, i8* %12, i32 -3)
%42 = tail call i32 @fh_minkey(%struct.fibheap* %1)
%43 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([17 x i8], [17 x i8]* @.str.2, i64 0, i64 0), i32 %42)
%44 = tail call i64 @fh_extractmin(%struct.fibheap* %1)
%45 = trunc i64 %44 to i32
%46 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([13 x i8], [13 x i8]* @.str.3, i64 0, i64 0), i32 %45)
%47 = tail call i32 @fh_replacekey(%struct.fibheap* %1, i8* %4, i32 -6)
%48 = tail call i32 @fh_replacekey(%struct.fibheap* %1, i8* %12, i32 -6)
%49 = tail call i32 @fh_minkey(%struct.fibheap* %1)
%50 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([17 x i8], [17 x i8]* @.str.2, i64 0, i64 0), i32 %49)
%51 = tail call i64 @fh_extractmin(%struct.fibheap* %1)
%52 = trunc i64 %51 to i32
%53 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([13 x i8], [13 x i8]* @.str.3, i64 0, i64 0), i32 %52)
%54 = tail call i32 @fh_minkey(%struct.fibheap* %1)
%55 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([17 x i8], [17 x i8]* @.str.2, i64 0, i64 0), i32 %54)
%56 = tail call i64 @fh_extractmin(%struct.fibheap* %1)
%57 = trunc i64 %56 to i32
%58 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([13 x i8], [13 x i8]* @.str.3, i64 0, i64 0), i32 %57)
%59 = tail call i32 @fh_minkey(%struct.fibheap* %1)
%60 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([17 x i8], [17 x i8]* @.str.2, i64 0, i64 0), i32 %59)
%61 = tail call i64 @fh_extractmin(%struct.fibheap* %1)
%62 = trunc i64 %61 to i32
%63 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([13 x i8], [13 x i8]* @.str.3, i64 0, i64 0), i32 %62)
%64 = tail call i32 @fh_deleteheap(%struct.fibheap* %1)
ret i32 0
}