#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 < 10; i++) {
    arr[i] = fh_insertkey(a, 0, (void *)i);
    printf("adding: 0 %d \n", i);
  }
  printf(" \n");
  fh_replacekey(a, arr[1], -38);
  fh_replacekey(a, arr[7], -34);
  printf("wert(minkey) %d\n", fh_minkey(a));
  printf("Knoten: %d\n\n", (int)fh_extractmin(a));
  fh_replacekey(a, arr[2], -55);
  fh_replacekey(a, arr[5], -56);
  printf("Wert(minkey) %d\n", fh_minkey(a));
  printf("Knoten: %d\n\n", (int)fh_extractmin(a));
  fh_replacekey(a, arr[4], -1);
  fh_replacekey(a, arr[2], -102);
  fh_replacekey(a, arr[6], -1);
  fh_replacekey(a, arr[9], -1);
  fh_replacekey(a, arr[8], -4);
  printf("Wert(minkey) %d\n", fh_minkey(a));
  printf("Knoten: %d\n\n", (int)fh_extractmin(a));
  fh_replacekey(a, arr[3], -74);
  fh_replacekey(a, arr[8], -55);
  fh_replacekey(a, arr[4], -2);
  printf("Wert(minkey) %d\n", fh_minkey(a));
  printf("Knoten: %d\n\n", (int)fh_extractmin(a));
  fh_replacekey(a, arr[4], -3);
  fh_replacekey(a, arr[6], -2);
  fh_replacekey(a, arr[7], -99);
  printf("Wert(minkey) %d\n", fh_minkey(a));
  printf("Knoten: %d\n\n", (int)fh_extractmin(a));
  fh_replacekey(a, arr[6], -3);
  fh_replacekey(a, arr[4], -4);
  fh_replacekey(a, arr[8], -94);
  fh_replacekey(a, arr[9], -2);
  printf("Wert(minkey) %d\n", fh_minkey(a));
  printf("Knoten: %d\n\n", (int)fh_extractmin(a));
  fh_replacekey(a, arr[6], -4);
  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   $0xa,-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    $0xffffffda,%edx
call   1050 <fh_replacekey@plt>
mov    -0x10(%rbp),%rdi
mov    -0x28(%rbp),%rsi
mov    $0xffffffde,%edx
call   1050 <fh_replacekey@plt>
mov    -0x10(%rbp),%rdi
call   1070 <fh_minkey@plt>
mov    %eax,%esi
lea    0xdf6(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x10(%rbp),%rdi
call   1090 <fh_extractmin@plt>
mov    %eax,%esi
lea    0xdee(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x10(%rbp),%rdi
mov    -0x50(%rbp),%rsi
mov    $0xffffffc9,%edx
call   1050 <fh_replacekey@plt>
mov    -0x10(%rbp),%rdi
mov    -0x38(%rbp),%rsi
mov    $0xffffffc8,%edx
call   1050 <fh_replacekey@plt>
mov    -0x10(%rbp),%rdi
call   1070 <fh_minkey@plt>
mov    %eax,%esi
lea    0xdbe(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x10(%rbp),%rdi
call   1090 <fh_extractmin@plt>
mov    %eax,%esi
lea    0xd98(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x10(%rbp),%rdi
mov    -0x40(%rbp),%rsi
mov    $0xffffffff,%edx
call   1050 <fh_replacekey@plt>
mov    -0x10(%rbp),%rdi
mov    -0x50(%rbp),%rsi
mov    $0xffffff9a,%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
mov    -0x18(%rbp),%rsi
mov    $0xffffffff,%edx
call   1050 <fh_replacekey@plt>
mov    -0x10(%rbp),%rdi
mov    -0x20(%rbp),%rsi
mov    $0xfffffffc,%edx
call   1050 <fh_replacekey@plt>
mov    -0x10(%rbp),%rdi
call   1070 <fh_minkey@plt>
mov    %eax,%esi
lea    0xd32(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x10(%rbp),%rdi
call   1090 <fh_extractmin@plt>
mov    %eax,%esi
lea    0xd0c(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x10(%rbp),%rdi
mov    -0x48(%rbp),%rsi
mov    $0xffffffb6,%edx
call   1050 <fh_replacekey@plt>
mov    -0x10(%rbp),%rdi
mov    -0x20(%rbp),%rsi
mov    $0xffffffc9,%edx
call   1050 <fh_replacekey@plt>
mov    -0x10(%rbp),%rdi
mov    -0x40(%rbp),%rsi
mov    $0xfffffffe,%edx
call   1050 <fh_replacekey@plt>
mov    -0x10(%rbp),%rdi
call   1070 <fh_minkey@plt>
mov    %eax,%esi
lea    0xcca(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x10(%rbp),%rdi
call   1090 <fh_extractmin@plt>
mov    %eax,%esi
lea    0xca4(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x10(%rbp),%rdi
mov    -0x40(%rbp),%rsi
mov    $0xfffffffd,%edx
call   1050 <fh_replacekey@plt>
mov    -0x10(%rbp),%rdi
mov    -0x30(%rbp),%rsi
mov    $0xfffffffe,%edx
call   1050 <fh_replacekey@plt>
mov    -0x10(%rbp),%rdi
mov    -0x28(%rbp),%rsi
mov    $0xffffff9d,%edx
call   1050 <fh_replacekey@plt>
mov    -0x10(%rbp),%rdi
call   1070 <fh_minkey@plt>
mov    %eax,%esi
lea    0xc62(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x10(%rbp),%rdi
call   1090 <fh_extractmin@plt>
mov    %eax,%esi
lea    0xc3c(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x10(%rbp),%rdi
mov    -0x30(%rbp),%rsi
mov    $0xfffffffd,%edx
call   1050 <fh_replacekey@plt>
mov    -0x10(%rbp),%rdi
mov    -0x40(%rbp),%rsi
mov    $0xfffffffc,%edx
call   1050 <fh_replacekey@plt>
mov    -0x10(%rbp),%rdi
mov    -0x20(%rbp),%rsi
mov    $0xffffffa2,%edx
call   1050 <fh_replacekey@plt>
mov    -0x10(%rbp),%rdi
mov    -0x18(%rbp),%rsi
mov    $0xfffffffe,%edx
call   1050 <fh_replacekey@plt>
mov    -0x10(%rbp),%rdi
call   1070 <fh_minkey@plt>
mov    %eax,%esi
lea    0xbe8(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x10(%rbp),%rdi
call   1090 <fh_extractmin@plt>
mov    %eax,%esi
lea    0xbc2(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x10(%rbp),%rdi
mov    -0x30(%rbp),%rsi
mov    $0xfffffffc,%edx
call   1050 <fh_replacekey@plt>
mov    -0x10(%rbp),%rdi
call   1070 <fh_minkey@plt>
mov    %eax,%esi
lea    0xba4(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x10(%rbp),%rdi
call   1090 <fh_extractmin@plt>
mov    %eax,%esi
lea    0xb7e(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x10(%rbp),%rdi
call   1070 <fh_minkey@plt>
mov    %eax,%esi
lea    0xb72(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x10(%rbp),%rdi
call   1090 <fh_extractmin@plt>
mov    %eax,%esi
lea    0xb4c(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x10(%rbp),%rdi
call   1070 <fh_minkey@plt>
mov    %eax,%esi
lea    0xb40(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x10(%rbp),%rdi
call   1090 <fh_extractmin@plt>
mov    %eax,%esi
lea    0xb1a(%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    $0x38,%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,%r12
lea    0xe4f(%rip),%r15
mov    %r15,%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,0x18(%rsp)
mov    %r15,%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,0x30(%rsp)
mov    %r15,%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,0x20(%rsp)
mov    %r15,%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,%r13
mov    %r15,%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,0x10(%rsp)
mov    %r15,%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    %rax,0x28(%rsp)
mov    %r15,%rdi
mov    $0x7,%esi
xor    %eax,%eax
call   1050 <printf@plt>
mov    $0x8,%edx
mov    %rbx,%rdi
xor    %esi,%esi
call   1090 <fh_insertkey@plt>
mov    %rax,(%rsp)
mov    %r15,%rdi
mov    $0x8,%esi
xor    %eax,%eax
call   1050 <printf@plt>
mov    $0x9,%edx
mov    %rbx,%rdi
xor    %esi,%esi
call   1090 <fh_insertkey@plt>
mov    %rax,%r14
mov    %rax,0x8(%rsp)
mov    %r15,%rdi
mov    $0x9,%esi
xor    %eax,%eax
call   1050 <printf@plt>
lea    0xd5c(%rip),%rdi
call   1040 <puts@plt>
mov    %rbx,%rdi
mov    %r12,%rsi
mov    $0xffffffda,%edx
call   1060 <fh_replacekey@plt>
mov    %rbx,%rdi
mov    %rbp,%rsi
mov    $0xffffffde,%edx
call   1060 <fh_replacekey@plt>
mov    %rbx,%rdi
call   1080 <fh_minkey@plt>
lea    0xcf9(%rip),%rdi
mov    %eax,%esi
xor    %eax,%eax
call   1050 <printf@plt>
mov    %rbx,%rdi
call   10a0 <fh_extractmin@plt>
lea    0xcf2(%rip),%r15
mov    %r15,%rdi
mov    %eax,%esi
xor    %eax,%eax
call   1050 <printf@plt>
mov    %rbx,%rdi
mov    0x18(%rsp),%rbp
mov    %rbp,%rsi
mov    $0xffffffc9,%edx
call   1060 <fh_replacekey@plt>
mov    %rbx,%rdi
mov    %r13,%rsi
mov    $0xffffffc8,%edx
call   1060 <fh_replacekey@plt>
mov    %rbx,%rdi
call   1080 <fh_minkey@plt>
lea    0xcbf(%rip),%r13
mov    %r13,%rdi
mov    %eax,%esi
xor    %eax,%eax
call   1050 <printf@plt>
mov    %rbx,%rdi
call   10a0 <fh_extractmin@plt>
mov    %r15,%rdi
mov    %eax,%esi
xor    %eax,%eax
call   1050 <printf@plt>
mov    %rbx,%rdi
mov    0x20(%rsp),%r12
mov    %r12,%rsi
mov    $0xffffffff,%edx
call   1060 <fh_replacekey@plt>
mov    %rbx,%rdi
mov    %rbp,%rsi
mov    $0xffffff9a,%edx
call   1060 <fh_replacekey@plt>
mov    %rbx,%rdi
mov    0x10(%rsp),%r15
mov    %r15,%rsi
mov    $0xffffffff,%edx
call   1060 <fh_replacekey@plt>
mov    %rbx,%rdi
mov    %r14,%rsi
mov    $0xffffffff,%edx
call   1060 <fh_replacekey@plt>
mov    %rbx,%rdi
mov    (%rsp),%rbp
mov    %rbp,%rsi
mov    $0xfffffffc,%edx
call   1060 <fh_replacekey@plt>
mov    %rbx,%rdi
call   1080 <fh_minkey@plt>
mov    %r13,%rdi
mov    %eax,%esi
xor    %eax,%eax
call   1050 <printf@plt>
mov    %rbx,%rdi
call   10a0 <fh_extractmin@plt>
lea    0xc11(%rip),%rdi
mov    %rdi,%r14
mov    %eax,%esi
xor    %eax,%eax
call   1050 <printf@plt>
mov    %rbx,%rdi
mov    0x30(%rsp),%rsi
mov    $0xffffffb6,%edx
call   1060 <fh_replacekey@plt>
mov    %rbx,%rdi
mov    %rbp,%rsi
mov    $0xffffffc9,%edx
call   1060 <fh_replacekey@plt>
mov    %rbx,%rdi
mov    %r12,%rsi
mov    $0xfffffffe,%edx
call   1060 <fh_replacekey@plt>
mov    %rbx,%rdi
call   1080 <fh_minkey@plt>
mov    %r13,%rdi
mov    %eax,%esi
xor    %eax,%eax
call   1050 <printf@plt>
mov    %rbx,%rdi
call   10a0 <fh_extractmin@plt>
mov    %r14,%rdi
mov    %r14,%rbp
mov    %eax,%esi
xor    %eax,%eax
call   1050 <printf@plt>
mov    %rbx,%rdi
mov    %r12,%rsi
mov    $0xfffffffd,%edx
call   1060 <fh_replacekey@plt>
mov    %rbx,%rdi
mov    %r15,%rsi
mov    $0xfffffffe,%edx
call   1060 <fh_replacekey@plt>
mov    %rbx,%rdi
mov    0x28(%rsp),%rsi
mov    $0xffffff9d,%edx
call   1060 <fh_replacekey@plt>
mov    %rbx,%rdi
call   1080 <fh_minkey@plt>
mov    %r13,%rdi
mov    %eax,%esi
xor    %eax,%eax
call   1050 <printf@plt>
mov    %rbx,%rdi
call   10a0 <fh_extractmin@plt>
mov    %r14,%rdi
mov    %eax,%esi
xor    %eax,%eax
call   1050 <printf@plt>
mov    %rbx,%rdi
mov    %r15,%rsi
mov    $0xfffffffd,%edx
call   1060 <fh_replacekey@plt>
mov    %rbx,%rdi
mov    %r12,%rsi
mov    $0xfffffffc,%edx
call   1060 <fh_replacekey@plt>
mov    %rbx,%rdi
mov    (%rsp),%rsi
mov    $0xffffffa2,%edx
call   1060 <fh_replacekey@plt>
mov    %rbx,%rdi
mov    0x8(%rsp),%rsi
mov    $0xfffffffe,%edx
call   1060 <fh_replacekey@plt>
mov    %rbx,%rdi
call   1080 <fh_minkey@plt>
lea    0xb09(%rip),%r14
mov    %r14,%rdi
mov    %eax,%esi
xor    %eax,%eax
call   1050 <printf@plt>
mov    %rbx,%rdi
call   10a0 <fh_extractmin@plt>
mov    %rbp,%rdi
mov    %eax,%esi
xor    %eax,%eax
call   1050 <printf@plt>
mov    %rbx,%rdi
mov    %r15,%rsi
mov    $0xfffffffc,%edx
call   1060 <fh_replacekey@plt>
mov    %rbx,%rdi
call   1080 <fh_minkey@plt>
mov    %r14,%rdi
mov    %eax,%esi
xor    %eax,%eax
call   1050 <printf@plt>
mov    %rbx,%rdi
call   10a0 <fh_extractmin@plt>
mov    %rbp,%rdi
mov    %eax,%esi
xor    %eax,%eax
call   1050 <printf@plt>
mov    %rbx,%rdi
call   1080 <fh_minkey@plt>
mov    %r14,%rdi
mov    %eax,%esi
xor    %eax,%eax
call   1050 <printf@plt>
mov    %rbx,%rdi
call   10a0 <fh_extractmin@plt>
mov    %rbp,%rdi
mov    %eax,%esi
xor    %eax,%eax
call   1050 <printf@plt>
mov    %rbx,%rdi
call   1080 <fh_minkey@plt>
mov    %r14,%rdi
mov    %eax,%esi
xor    %eax,%eax
call   1050 <printf@plt>
mov    %rbx,%rdi
call   10a0 <fh_extractmin@plt>
mov    %rbp,%rdi
mov    %eax,%esi
xor    %eax,%eax
call   1050 <printf@plt>
mov    %rbx,%rdi
call   1030 <fh_deleteheap@plt>
xor    %eax,%eax
add    $0x38,%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"
@.str.4 = [17 x i8] c"Wert(minkey) %d\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, 10
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 -38)
%29 = load %struct.fibheap*, %struct.fibheap** %2
%30 = getelementptr inbounds [10 x i8*], [10 x i8*]* %3, i64 0, i64 7
%31 = load i8*, i8** %30
%32 = call i32 @fh_replacekey(%struct.fibheap* %29, i8* %31, i32 -34)
%33 = load %struct.fibheap*, %struct.fibheap** %2
%34 = call i32 @fh_minkey(%struct.fibheap* %33)
%35 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.2, i64 0, i64 0), i32 %34)
%36 = load %struct.fibheap*, %struct.fibheap** %2
%37 = call i64 @fh_extractmin(%struct.fibheap* %36)
%38 = trunc i64 %37 to i32
%39 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.3, i64 0, i64 0), i32 %38)
%40 = load %struct.fibheap*, %struct.fibheap** %2
%41 = getelementptr inbounds [10 x i8*], [10 x i8*]* %3, i64 0, i64 2
%42 = load i8*, i8** %41
%43 = call i32 @fh_replacekey(%struct.fibheap* %40, i8* %42, i32 -55)
%44 = load %struct.fibheap*, %struct.fibheap** %2
%45 = getelementptr inbounds [10 x i8*], [10 x i8*]* %3, i64 0, i64 5
%46 = load i8*, i8** %45
%47 = call i32 @fh_replacekey(%struct.fibheap* %44, i8* %46, i32 -56)
%48 = load %struct.fibheap*, %struct.fibheap** %2
%49 = call i32 @fh_minkey(%struct.fibheap* %48)
%50 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.4, i64 0, i64 0), i32 %49)
%51 = load %struct.fibheap*, %struct.fibheap** %2
%52 = call i64 @fh_extractmin(%struct.fibheap* %51)
%53 = trunc i64 %52 to i32
%54 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.3, i64 0, i64 0), i32 %53)
%55 = load %struct.fibheap*, %struct.fibheap** %2
%56 = getelementptr inbounds [10 x i8*], [10 x i8*]* %3, i64 0, i64 4
%57 = load i8*, i8** %56
%58 = call i32 @fh_replacekey(%struct.fibheap* %55, i8* %57, i32 -1)
%59 = load %struct.fibheap*, %struct.fibheap** %2
%60 = getelementptr inbounds [10 x i8*], [10 x i8*]* %3, i64 0, i64 2
%61 = load i8*, i8** %60
%62 = call i32 @fh_replacekey(%struct.fibheap* %59, i8* %61, i32 -102)
%63 = load %struct.fibheap*, %struct.fibheap** %2
%64 = getelementptr inbounds [10 x i8*], [10 x i8*]* %3, i64 0, i64 6
%65 = load i8*, i8** %64
%66 = call i32 @fh_replacekey(%struct.fibheap* %63, i8* %65, i32 -1)
%67 = load %struct.fibheap*, %struct.fibheap** %2
%68 = getelementptr inbounds [10 x i8*], [10 x i8*]* %3, i64 0, i64 9
%69 = load i8*, i8** %68
%70 = call i32 @fh_replacekey(%struct.fibheap* %67, i8* %69, i32 -1)
%71 = load %struct.fibheap*, %struct.fibheap** %2
%72 = getelementptr inbounds [10 x i8*], [10 x i8*]* %3, i64 0, i64 8
%73 = load i8*, i8** %72
%74 = call i32 @fh_replacekey(%struct.fibheap* %71, i8* %73, i32 -4)
%75 = load %struct.fibheap*, %struct.fibheap** %2
%76 = call i32 @fh_minkey(%struct.fibheap* %75)
%77 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.4, i64 0, i64 0), i32 %76)
%78 = load %struct.fibheap*, %struct.fibheap** %2
%79 = call i64 @fh_extractmin(%struct.fibheap* %78)
%80 = trunc i64 %79 to i32
%81 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.3, i64 0, i64 0), i32 %80)
%82 = load %struct.fibheap*, %struct.fibheap** %2
%83 = getelementptr inbounds [10 x i8*], [10 x i8*]* %3, i64 0, i64 3
%84 = load i8*, i8** %83
%85 = call i32 @fh_replacekey(%struct.fibheap* %82, i8* %84, i32 -74)
%86 = load %struct.fibheap*, %struct.fibheap** %2
%87 = getelementptr inbounds [10 x i8*], [10 x i8*]* %3, i64 0, i64 8
%88 = load i8*, i8** %87
%89 = call i32 @fh_replacekey(%struct.fibheap* %86, i8* %88, i32 -55)
%90 = load %struct.fibheap*, %struct.fibheap** %2
%91 = getelementptr inbounds [10 x i8*], [10 x i8*]* %3, i64 0, i64 4
%92 = load i8*, i8** %91
%93 = call i32 @fh_replacekey(%struct.fibheap* %90, i8* %92, i32 -2)
%94 = load %struct.fibheap*, %struct.fibheap** %2
%95 = call i32 @fh_minkey(%struct.fibheap* %94)
%96 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.4, i64 0, i64 0), i32 %95)
%97 = load %struct.fibheap*, %struct.fibheap** %2
%98 = call i64 @fh_extractmin(%struct.fibheap* %97)
%99 = trunc i64 %98 to i32
%100 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.3, i64 0, i64 0), i32 %99)
%101 = load %struct.fibheap*, %struct.fibheap** %2
%102 = getelementptr inbounds [10 x i8*], [10 x i8*]* %3, i64 0, i64 4
%103 = load i8*, i8** %102
%104 = call i32 @fh_replacekey(%struct.fibheap* %101, i8* %103, i32 -3)
%105 = load %struct.fibheap*, %struct.fibheap** %2
%106 = getelementptr inbounds [10 x i8*], [10 x i8*]* %3, i64 0, i64 6
%107 = load i8*, i8** %106
%108 = call i32 @fh_replacekey(%struct.fibheap* %105, i8* %107, i32 -2)
%109 = load %struct.fibheap*, %struct.fibheap** %2
%110 = getelementptr inbounds [10 x i8*], [10 x i8*]* %3, i64 0, i64 7
%111 = load i8*, i8** %110
%112 = call i32 @fh_replacekey(%struct.fibheap* %109, i8* %111, i32 -99)
%113 = load %struct.fibheap*, %struct.fibheap** %2
%114 = call i32 @fh_minkey(%struct.fibheap* %113)
%115 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.4, i64 0, i64 0), i32 %114)
%116 = load %struct.fibheap*, %struct.fibheap** %2
%117 = call i64 @fh_extractmin(%struct.fibheap* %116)
%118 = trunc i64 %117 to i32
%119 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.3, i64 0, i64 0), i32 %118)
%120 = load %struct.fibheap*, %struct.fibheap** %2
%121 = getelementptr inbounds [10 x i8*], [10 x i8*]* %3, i64 0, i64 6
%122 = load i8*, i8** %121
%123 = call i32 @fh_replacekey(%struct.fibheap* %120, i8* %122, i32 -3)
%124 = load %struct.fibheap*, %struct.fibheap** %2
%125 = getelementptr inbounds [10 x i8*], [10 x i8*]* %3, i64 0, i64 4
%126 = load i8*, i8** %125
%127 = call i32 @fh_replacekey(%struct.fibheap* %124, i8* %126, i32 -4)
%128 = load %struct.fibheap*, %struct.fibheap** %2
%129 = getelementptr inbounds [10 x i8*], [10 x i8*]* %3, i64 0, i64 8
%130 = load i8*, i8** %129
%131 = call i32 @fh_replacekey(%struct.fibheap* %128, i8* %130, i32 -94)
%132 = load %struct.fibheap*, %struct.fibheap** %2
%133 = getelementptr inbounds [10 x i8*], [10 x i8*]* %3, i64 0, i64 9
%134 = load i8*, i8** %133
%135 = call i32 @fh_replacekey(%struct.fibheap* %132, i8* %134, i32 -2)
%136 = load %struct.fibheap*, %struct.fibheap** %2
%137 = call i32 @fh_minkey(%struct.fibheap* %136)
%138 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.4, i64 0, i64 0), i32 %137)
%139 = load %struct.fibheap*, %struct.fibheap** %2
%140 = call i64 @fh_extractmin(%struct.fibheap* %139)
%141 = trunc i64 %140 to i32
%142 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.3, i64 0, i64 0), i32 %141)
%143 = load %struct.fibheap*, %struct.fibheap** %2
%144 = getelementptr inbounds [10 x i8*], [10 x i8*]* %3, i64 0, i64 6
%145 = load i8*, i8** %144
%146 = call i32 @fh_replacekey(%struct.fibheap* %143, i8* %145, i32 -4)
%147 = load %struct.fibheap*, %struct.fibheap** %2
%148 = call i32 @fh_minkey(%struct.fibheap* %147)
%149 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.4, i64 0, i64 0), i32 %148)
%150 = load %struct.fibheap*, %struct.fibheap** %2
%151 = call i64 @fh_extractmin(%struct.fibheap* %150)
%152 = trunc i64 %151 to i32
%153 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.3, i64 0, i64 0), i32 %152)
%154 = load %struct.fibheap*, %struct.fibheap** %2
%155 = call i32 @fh_minkey(%struct.fibheap* %154)
%156 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.4, i64 0, i64 0), i32 %155)
%157 = load %struct.fibheap*, %struct.fibheap** %2
%158 = call i64 @fh_extractmin(%struct.fibheap* %157)
%159 = trunc i64 %158 to i32
%160 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.3, i64 0, i64 0), i32 %159)
%161 = load %struct.fibheap*, %struct.fibheap** %2
%162 = call i32 @fh_minkey(%struct.fibheap* %161)
%163 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.4, i64 0, i64 0), i32 %162)
%164 = load %struct.fibheap*, %struct.fibheap** %2
%165 = call i64 @fh_extractmin(%struct.fibheap* %164)
%166 = trunc i64 %165 to i32
%167 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.3, i64 0, i64 0), i32 %166)
%168 = load %struct.fibheap*, %struct.fibheap** %2
%169 = call i32 @fh_deleteheap(%struct.fibheap* %168)
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.4 = [17 x i8] c"Wert(minkey) %d\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 i8* @fh_insertkey(%struct.fibheap* %1, i32 0, i8* inttoptr (i64 8 to i8*))
%17 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([15 x i8], [15 x i8]* @.str, i64 0, i64 0), i32 8)
%18 = tail call i8* @fh_insertkey(%struct.fibheap* %1, i32 0, i8* inttoptr (i64 9 to i8*))
%19 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([15 x i8], [15 x i8]* @.str, i64 0, i64 0), i32 9)
%20 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([2 x i8], [2 x i8]* @str, i64 0, i64 0))
%21 = tail call i32 @fh_replacekey(%struct.fibheap* %1, i8* %2, i32 -38)
%22 = tail call i32 @fh_replacekey(%struct.fibheap* %1, i8* %14, i32 -34)
%23 = tail call i32 @fh_minkey(%struct.fibheap* %1)
%24 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([17 x i8], [17 x i8]* @.str.2, i64 0, i64 0), i32 %23)
%25 = tail call i64 @fh_extractmin(%struct.fibheap* %1)
%26 = trunc i64 %25 to i32
%27 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([13 x i8], [13 x i8]* @.str.3, i64 0, i64 0), i32 %26)
%28 = tail call i32 @fh_replacekey(%struct.fibheap* %1, i8* %4, i32 -55)
%29 = tail call i32 @fh_replacekey(%struct.fibheap* %1, i8* %10, i32 -56)
%30 = tail call i32 @fh_minkey(%struct.fibheap* %1)
%31 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([17 x i8], [17 x i8]* @.str.4, i64 0, i64 0), i32 %30)
%32 = tail call i64 @fh_extractmin(%struct.fibheap* %1)
%33 = trunc i64 %32 to i32
%34 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([13 x i8], [13 x i8]* @.str.3, i64 0, i64 0), i32 %33)
%35 = tail call i32 @fh_replacekey(%struct.fibheap* %1, i8* %8, i32 -1)
%36 = tail call i32 @fh_replacekey(%struct.fibheap* %1, i8* %4, i32 -102)
%37 = tail call i32 @fh_replacekey(%struct.fibheap* %1, i8* %12, i32 -1)
%38 = tail call i32 @fh_replacekey(%struct.fibheap* %1, i8* %18, i32 -1)
%39 = tail call i32 @fh_replacekey(%struct.fibheap* %1, i8* %16, i32 -4)
%40 = tail call i32 @fh_minkey(%struct.fibheap* %1)
%41 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([17 x i8], [17 x i8]* @.str.4, i64 0, i64 0), i32 %40)
%42 = tail call i64 @fh_extractmin(%struct.fibheap* %1)
%43 = trunc i64 %42 to i32
%44 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([13 x i8], [13 x i8]* @.str.3, i64 0, i64 0), i32 %43)
%45 = tail call i32 @fh_replacekey(%struct.fibheap* %1, i8* %6, i32 -74)
%46 = tail call i32 @fh_replacekey(%struct.fibheap* %1, i8* %16, i32 -55)
%47 = tail call i32 @fh_replacekey(%struct.fibheap* %1, i8* %8, i32 -2)
%48 = tail call i32 @fh_minkey(%struct.fibheap* %1)
%49 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([17 x i8], [17 x i8]* @.str.4, i64 0, i64 0), i32 %48)
%50 = tail call i64 @fh_extractmin(%struct.fibheap* %1)
%51 = trunc i64 %50 to i32
%52 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([13 x i8], [13 x i8]* @.str.3, i64 0, i64 0), i32 %51)
%53 = tail call i32 @fh_replacekey(%struct.fibheap* %1, i8* %8, i32 -3)
%54 = tail call i32 @fh_replacekey(%struct.fibheap* %1, i8* %12, i32 -2)
%55 = tail call i32 @fh_replacekey(%struct.fibheap* %1, i8* %14, i32 -99)
%56 = tail call i32 @fh_minkey(%struct.fibheap* %1)
%57 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([17 x i8], [17 x i8]* @.str.4, i64 0, i64 0), i32 %56)
%58 = tail call i64 @fh_extractmin(%struct.fibheap* %1)
%59 = trunc i64 %58 to i32
%60 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([13 x i8], [13 x i8]* @.str.3, i64 0, i64 0), i32 %59)
%61 = tail call i32 @fh_replacekey(%struct.fibheap* %1, i8* %12, i32 -3)
%62 = tail call i32 @fh_replacekey(%struct.fibheap* %1, i8* %8, i32 -4)
%63 = tail call i32 @fh_replacekey(%struct.fibheap* %1, i8* %16, i32 -94)
%64 = tail call i32 @fh_replacekey(%struct.fibheap* %1, i8* %18, i32 -2)
%65 = tail call i32 @fh_minkey(%struct.fibheap* %1)
%66 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([17 x i8], [17 x i8]* @.str.4, i64 0, i64 0), i32 %65)
%67 = tail call i64 @fh_extractmin(%struct.fibheap* %1)
%68 = trunc i64 %67 to i32
%69 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([13 x i8], [13 x i8]* @.str.3, i64 0, i64 0), i32 %68)
%70 = tail call i32 @fh_replacekey(%struct.fibheap* %1, i8* %12, i32 -4)
%71 = tail call i32 @fh_minkey(%struct.fibheap* %1)
%72 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([17 x i8], [17 x i8]* @.str.4, i64 0, i64 0), i32 %71)
%73 = tail call i64 @fh_extractmin(%struct.fibheap* %1)
%74 = trunc i64 %73 to i32
%75 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([13 x i8], [13 x i8]* @.str.3, i64 0, i64 0), i32 %74)
%76 = tail call i32 @fh_minkey(%struct.fibheap* %1)
%77 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([17 x i8], [17 x i8]* @.str.4, i64 0, i64 0), i32 %76)
%78 = tail call i64 @fh_extractmin(%struct.fibheap* %1)
%79 = trunc i64 %78 to i32
%80 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([13 x i8], [13 x i8]* @.str.3, i64 0, i64 0), i32 %79)
%81 = tail call i32 @fh_minkey(%struct.fibheap* %1)
%82 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([17 x i8], [17 x i8]* @.str.4, i64 0, i64 0), i32 %81)
%83 = tail call i64 @fh_extractmin(%struct.fibheap* %1)
%84 = trunc i64 %83 to i32
%85 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([13 x i8], [13 x i8]* @.str.3, i64 0, i64 0), i32 %84)
%86 = tail call i32 @fh_deleteheap(%struct.fibheap* %1)
ret i32 0
}