#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 */

/* Variables and functions */
scalar_t__ CLOCKS_PER_SEC;
double clock();
short dijkstra(short *, int, int, int /*<<< orphan*/, short *, short *, short *,
               short *, int);
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *, int, short, ...);
scalar_t__ malloc(int);
int /*<<< orphan*/ stderr;
int main(void) {
  double start, end;
  double interval;
  int zoneCount = 5;
  short *graph;
  short *temp1, *temp2, *temp3;
  short *costZone;
  short zone;
  graph = (short *)malloc(zoneCount * 3 * sizeof(short));
  temp1 = (short *)malloc(zoneCount * sizeof(short));
  temp2 = (short *)malloc(zoneCount * sizeof(short));
  temp3 = (short *)malloc(zoneCount * 2 * sizeof(short));
  costZone = (short *)malloc(zoneCount * sizeof(short));
  for (int i = 0; i < zoneCount * 3; i++) {
    graph[i] = -1;
  }
  graph[0 * 3 + 0] = 1;
  graph[1 * 3 + 0] = 0;
  graph[1 * 3 + 1] = 2;
  graph[1 * 3 + 2] = 3;
  graph[2 * 3 + 0] = 1;
  graph[2 * 3 + 1] = 4;
  graph[3 * 3 + 0] = 1;
  graph[3 * 3 + 1] = 4;
  graph[4 * 3 + 0] = 2;
  graph[4 * 3 + 1] = 3;
  start = clock();
  for (int i = 0; i < zoneCount; i++)
    costZone[i] = 1;
  costZone[3] = 5;
  for (int i = 0; i < 10000; i++)
    zone = dijkstra(graph, zoneCount, 4, 0, temp3, temp2, temp1, costZone, 1);
  end = clock() - start;
  interval = end / (double)CLOCKS_PER_SEC;
  fprintf(stderr, "clock cycles: %f seconds elapsed: %f \n", end, interval);
  fprintf(stderr, "next zone towards %3hd from %3hd: %3hd \n", 0, 4, zone);
  fprintf(stderr, "path from %3hd back to %3hd \n", 4, 0);
  for (int i = 0; i < zoneCount; i++) {
    fprintf(stderr, "%3d %3hd \n", i, temp1[i]);
  }
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x80,%rsp
movl   $0x0,-0x4(%rbp)
movl   $0x5,-0x24(%rbp)
imul   $0x3,-0x24(%rbp),%eax
cltq
shl    $0x1,%rax
mov    %eax,%edi
call   1050 <malloc@plt>
mov    %rax,-0x30(%rbp)
movslq -0x24(%rbp),%rax
shl    $0x1,%rax
mov    %eax,%edi
call   1050 <malloc@plt>
mov    %rax,-0x38(%rbp)
movslq -0x24(%rbp),%rax
shl    $0x1,%rax
mov    %eax,%edi
call   1050 <malloc@plt>
mov    %rax,-0x40(%rbp)
mov    -0x24(%rbp),%eax
shl    $0x1,%eax
cltq
shl    $0x1,%rax
mov    %eax,%edi
call   1050 <malloc@plt>
mov    %rax,-0x48(%rbp)
movslq -0x24(%rbp),%rax
shl    $0x1,%rax
mov    %eax,%edi
call   1050 <malloc@plt>
mov    %rax,-0x50(%rbp)
movl   $0x0,-0x58(%rbp)
mov    -0x58(%rbp),%eax
imul   $0x3,-0x24(%rbp),%ecx
cmp    %ecx,%eax
jge    11f0 <main+0xb0>
mov    -0x30(%rbp),%rax
movslq -0x58(%rbp),%rcx
movw   $0xffff,(%rax,%rcx,2)
mov    -0x58(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x58(%rbp)
jmp    11c5 <main+0x85>
mov    -0x30(%rbp),%rax
movw   $0x1,(%rax)
mov    -0x30(%rbp),%rax
movw   $0x0,0x6(%rax)
mov    -0x30(%rbp),%rax
movw   $0x2,0x8(%rax)
mov    -0x30(%rbp),%rax
movw   $0x3,0xa(%rax)
mov    -0x30(%rbp),%rax
movw   $0x1,0xc(%rax)
mov    -0x30(%rbp),%rax
movw   $0x4,0xe(%rax)
mov    -0x30(%rbp),%rax
movw   $0x1,0x12(%rax)
mov    -0x30(%rbp),%rax
movw   $0x4,0x14(%rax)
mov    -0x30(%rbp),%rax
movw   $0x2,0x18(%rax)
mov    -0x30(%rbp),%rax
movw   $0x3,0x1a(%rax)
mov    $0x0,%al
call   1030 <clock@plt>
movsd  %xmm0,-0x10(%rbp)
movl   $0x0,-0x5c(%rbp)
mov    -0x5c(%rbp),%eax
cmp    -0x24(%rbp),%eax
jge    128e <main+0x14e>
mov    -0x50(%rbp),%rax
movslq -0x5c(%rbp),%rcx
movw   $0x1,(%rax,%rcx,2)
mov    -0x5c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x5c(%rbp)
jmp    1266 <main+0x126>
mov    -0x50(%rbp),%rax
movw   $0x5,0x6(%rax)
movl   $0x0,-0x60(%rbp)
cmpl   $0x2710,-0x60(%rbp)
jge    12f2 <main+0x1b2>
mov    -0x30(%rbp),%rdi
mov    -0x24(%rbp),%esi
mov    -0x48(%rbp),%r8
mov    -0x40(%rbp),%r9
mov    -0x38(%rbp),%r10
mov    -0x50(%rbp),%rax
mov    $0x4,%edx
xor    %ecx,%ecx
mov    %r10,(%rsp)
mov    %rax,0x8(%rsp)
movl   $0x1,0x10(%rsp)
call   1060 <dijkstra@plt>
mov    %ax,-0x52(%rbp)
mov    -0x60(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x60(%rbp)
jmp    129f <main+0x15f>
xor    %eax,%eax
call   1030 <clock@plt>
movsd  -0x10(%rbp),%xmm1
subsd  %xmm1,%xmm0
movsd  %xmm0,-0x18(%rbp)
movsd  -0x18(%rbp),%xmm0
mov    0x2cd5(%rip),%rax
cvtsi2sdq (%rax),%xmm1
divsd  %xmm1,%xmm0
movsd  %xmm0,-0x20(%rbp)
mov    0x2cb0(%rip),%rax
mov    (%rax),%edi
cvttsd2si -0x18(%rbp),%edx
movsd  -0x20(%rbp),%xmm0
cvttsd2si %xmm0,%eax
lea    0xcc1(%rip),%rsi
movswl %ax,%ecx
mov    $0x0,%al
call   1040 <fprintf@plt>
mov    0x2c88(%rip),%rax
mov    (%rax),%edi
movswl -0x52(%rbp),%r8d
lea    0xcc9(%rip),%rsi
xor    %edx,%edx
mov    $0x4,%ecx
mov    $0x0,%al
call   1040 <fprintf@plt>
mov    0x2c65(%rip),%rax
mov    (%rax),%edi
lea    0xcd4(%rip),%rsi
mov    $0x4,%edx
xor    %ecx,%ecx
mov    $0x0,%al
call   1040 <fprintf@plt>
movl   $0x0,-0x64(%rbp)
mov    -0x64(%rbp),%eax
cmp    -0x24(%rbp),%eax
jge    13d1 <main+0x291>
mov    0x2c34(%rip),%rax
mov    (%rax),%edi
mov    -0x64(%rbp),%edx
mov    -0x38(%rbp),%rax
movslq -0x64(%rbp),%rcx
lea    0xcb6(%rip),%rsi
movswl (%rax,%rcx,2),%ecx
mov    $0x0,%al
call   1040 <fprintf@plt>
mov    -0x64(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x64(%rbp)
jmp    1391 <main+0x251>
mov    -0x4(%rbp),%eax
add    $0x80,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
push   %rax
mov    $0x1e,%edi
call   1050 <malloc@plt>
mov    %rax,%r12
mov    $0xa,%edi
call   1050 <malloc@plt>
mov    %rax,%r14
mov    $0xa,%edi
call   1050 <malloc@plt>
mov    %rax,%r15
mov    $0x14,%edi
call   1050 <malloc@plt>
mov    %rax,%r13
mov    $0xa,%edi
call   1050 <malloc@plt>
mov    %rax,%rbx
pcmpeqd %xmm0,%xmm0
movdqu %xmm0,(%r12)
movdqu %xmm0,0xe(%r12)
movw   $0x1,(%r12)
movabs $0x1000300020000,%rax
mov    %rax,0x6(%r12)
movw   $0x4,0xe(%r12)
movl   $0x40001,0x12(%r12)
movl   $0x30002,0x18(%r12)
xor    %eax,%eax
call   1030 <clock@plt>
movq   %xmm0,(%rsp)
movabs $0x5000100010001,%rax
mov    %rax,(%rbx)
movw   $0x1,0x8(%rbx)
mov    $0x2710,%ebp
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
sub    $0x8,%rsp
mov    %r12,%rdi
mov    $0x5,%esi
mov    $0x4,%edx
xor    %ecx,%ecx
mov    %r13,%r8
mov    %r15,%r9
push   $0x1
push   %rbx
push   %r14
call   1060 <dijkstra@plt>
add    $0x20,%rsp
add    $0xffffffff,%ebp
jne    1200 <main+0xc0>
movswl %ax,%ebx
xor    %eax,%eax
call   1030 <clock@plt>
subsd  (%rsp),%xmm0
mov    0x2da6(%rip),%rax
cvtsi2sdq (%rax),%xmm1
mov    0x2d8a(%rip),%r15
mov    (%r15),%edi
cvttsd2si %xmm0,%edx
divsd  %xmm1,%xmm0
cvttsd2si %xmm0,%eax
movswl %ax,%ecx
lea    0xd99(%rip),%rsi
xor    %eax,%eax
call   1040 <fprintf@plt>
mov    (%r15),%edi
lea    0xdaf(%rip),%rsi
xor    %edx,%edx
mov    $0x4,%ecx
mov    %ebx,%r8d
xor    %eax,%eax
call   1040 <fprintf@plt>
mov    (%r15),%edi
lea    0xdbd(%rip),%rsi
mov    $0x4,%edx
xor    %ecx,%ecx
xor    %eax,%eax
call   1040 <fprintf@plt>
mov    (%r15),%edi
movswl (%r14),%ecx
lea    0xdbf(%rip),%rbx
mov    %rbx,%rsi
xor    %edx,%edx
xor    %eax,%eax
call   1040 <fprintf@plt>
mov    (%r15),%edi
movswl 0x2(%r14),%ecx
mov    %rbx,%rsi
mov    $0x1,%edx
xor    %eax,%eax
call   1040 <fprintf@plt>
mov    (%r15),%edi
movswl 0x4(%r14),%ecx
mov    %rbx,%rsi
mov    $0x2,%edx
xor    %eax,%eax
call   1040 <fprintf@plt>
mov    (%r15),%edi
movswl 0x6(%r14),%ecx
mov    %rbx,%rsi
mov    $0x3,%edx
xor    %eax,%eax
call   1040 <fprintf@plt>
mov    (%r15),%edi
movswl 0x8(%r14),%ecx
mov    %rbx,%rsi
mov    $0x4,%edx
xor    %eax,%eax
call   1040 <fprintf@plt>
xor    %eax,%eax
add    $0x8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@CLOCKS_PER_SEC = global i64 0
@stderr = global i32 0
@.str = [39 x i8] c"clock cycles: %f seconds elapsed: %f \0A\00"
@.str.1 = [41 x i8] c"next zone towards %3hd from %3hd: %3hd \0A\00"
@.str.2 = [30 x i8] c"path from %3hd back to %3hd \0A\00"
@.str.3 = [11 x i8] c"%3d %3hd \0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca double
%3 = alloca double
%4 = alloca double
%5 = alloca i32
%6 = alloca i16*
%7 = alloca i16*
%8 = alloca i16*
%9 = alloca i16*
%10 = alloca i16*
%11 = alloca i16
%12 = alloca i32
%13 = alloca i32
%14 = alloca i32
%15 = alloca i32
store i32 0, i32* %1
store i32 5, i32* %5
%16 = load i32, i32* %5
%17 = mul nsw i32 %16, 3
%18 = sext i32 %17 to i64
%19 = mul i64 %18, 2
%20 = trunc i64 %19 to i32
%21 = call i64 @malloc(i32 %20)
%22 = inttoptr i64 %21 to i16*
store i16* %22, i16** %6
%23 = load i32, i32* %5
%24 = sext i32 %23 to i64
%25 = mul i64 %24, 2
%26 = trunc i64 %25 to i32
%27 = call i64 @malloc(i32 %26)
%28 = inttoptr i64 %27 to i16*
store i16* %28, i16** %7
%29 = load i32, i32* %5
%30 = sext i32 %29 to i64
%31 = mul i64 %30, 2
%32 = trunc i64 %31 to i32
%33 = call i64 @malloc(i32 %32)
%34 = inttoptr i64 %33 to i16*
store i16* %34, i16** %8
%35 = load i32, i32* %5
%36 = mul nsw i32 %35, 2
%37 = sext i32 %36 to i64
%38 = mul i64 %37, 2
%39 = trunc i64 %38 to i32
%40 = call i64 @malloc(i32 %39)
%41 = inttoptr i64 %40 to i16*
store i16* %41, i16** %9
%42 = load i32, i32* %5
%43 = sext i32 %42 to i64
%44 = mul i64 %43, 2
%45 = trunc i64 %44 to i32
%46 = call i64 @malloc(i32 %45)
%47 = inttoptr i64 %46 to i16*
store i16* %47, i16** %10
store i32 0, i32* %12
br label %48
48: ; preds = %58, %0
%49 = load i32, i32* %12
%50 = load i32, i32* %5
%51 = mul nsw i32 %50, 3
%52 = icmp slt i32 %49, %51
br i1 %52, label %53, label %61
53: ; preds = %48
%54 = load i16*, i16** %6
%55 = load i32, i32* %12
%56 = sext i32 %55 to i64
%57 = getelementptr inbounds i16, i16* %54, i64 %56
store i16 -1, i16* %57
br label %58
58: ; preds = %53
%59 = load i32, i32* %12
%60 = add nsw i32 %59, 1
store i32 %60, i32* %12
br label %48
61: ; preds = %48
%62 = load i16*, i16** %6
%63 = getelementptr inbounds i16, i16* %62, i64 0
store i16 1, i16* %63
%64 = load i16*, i16** %6
%65 = getelementptr inbounds i16, i16* %64, i64 3
store i16 0, i16* %65
%66 = load i16*, i16** %6
%67 = getelementptr inbounds i16, i16* %66, i64 4
store i16 2, i16* %67
%68 = load i16*, i16** %6
%69 = getelementptr inbounds i16, i16* %68, i64 5
store i16 3, i16* %69
%70 = load i16*, i16** %6
%71 = getelementptr inbounds i16, i16* %70, i64 6
store i16 1, i16* %71
%72 = load i16*, i16** %6
%73 = getelementptr inbounds i16, i16* %72, i64 7
store i16 4, i16* %73
%74 = load i16*, i16** %6
%75 = getelementptr inbounds i16, i16* %74, i64 9
store i16 1, i16* %75
%76 = load i16*, i16** %6
%77 = getelementptr inbounds i16, i16* %76, i64 10
store i16 4, i16* %77
%78 = load i16*, i16** %6
%79 = getelementptr inbounds i16, i16* %78, i64 12
store i16 2, i16* %79
%80 = load i16*, i16** %6
%81 = getelementptr inbounds i16, i16* %80, i64 13
store i16 3, i16* %81
%82 = call double (...) @clock()
store double %82, double* %2
store i32 0, i32* %13
br label %83
83: ; preds = %92, %61
%84 = load i32, i32* %13
%85 = load i32, i32* %5
%86 = icmp slt i32 %84, %85
br i1 %86, label %87, label %95
87: ; preds = %83
%88 = load i16*, i16** %10
%89 = load i32, i32* %13
%90 = sext i32 %89 to i64
%91 = getelementptr inbounds i16, i16* %88, i64 %90
store i16 1, i16* %91
br label %92
92: ; preds = %87
%93 = load i32, i32* %13
%94 = add nsw i32 %93, 1
store i32 %94, i32* %13
br label %83
95: ; preds = %83
%96 = load i16*, i16** %10
%97 = getelementptr inbounds i16, i16* %96, i64 3
store i16 5, i16* %97
store i32 0, i32* %14
br label %98
98: ; preds = %109, %95
%99 = load i32, i32* %14
%100 = icmp slt i32 %99, 10000
br i1 %100, label %101, label %112
101: ; preds = %98
%102 = load i16*, i16** %6
%103 = load i32, i32* %5
%104 = load i16*, i16** %9
%105 = load i16*, i16** %8
%106 = load i16*, i16** %7
%107 = load i16*, i16** %10
%108 = call signext i16 @dijkstra(i16* %102, i32 %103, i32 4, i32 0, i16* %104, i16* %105, i16* %106, i16* %107, i32 1)
store i16 %108, i16* %11
br label %109
109: ; preds = %101
%110 = load i32, i32* %14
%111 = add nsw i32 %110, 1
store i32 %111, i32* %14
br label %98
112: ; preds = %98
%113 = call double (...) @clock()
%114 = load double, double* %2
%115 = fsub double %113, %114
store double %115, double* %3
%116 = load double, double* %3
%117 = load i64, i64* @CLOCKS_PER_SEC
%118 = sitofp i64 %117 to double
%119 = fdiv double %116, %118
store double %119, double* %4
%120 = load i32, i32* @stderr
%121 = load double, double* %3
%122 = fptosi double %121 to i32
%123 = load double, double* %4
%124 = fptosi double %123 to i16
%125 = call i32 (i32, i8*, i32, i16, ...) @fprintf(i32 %120, i8* getelementptr inbounds ([39 x i8], [39 x i8]* @.str, i64 0, i64 0), i32 %122, i16 signext %124)
%126 = load i32, i32* @stderr
%127 = load i16, i16* %11
%128 = sext i16 %127 to i32
%129 = call i32 (i32, i8*, i32, i16, ...) @fprintf(i32 %126, i8* getelementptr inbounds ([41 x i8], [41 x i8]* @.str.1, i64 0, i64 0), i32 0, i16 signext 4, i32 %128)
%130 = load i32, i32* @stderr
%131 = call i32 (i32, i8*, i32, i16, ...) @fprintf(i32 %130, i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.2, i64 0, i64 0), i32 4, i16 signext 0)
store i32 0, i32* %15
br label %132
132: ; preds = %145, %112
%133 = load i32, i32* %15
%134 = load i32, i32* %5
%135 = icmp slt i32 %133, %134
br i1 %135, label %136, label %148
136: ; preds = %132
%137 = load i32, i32* @stderr
%138 = load i32, i32* %15
%139 = load i16*, i16** %7
%140 = load i32, i32* %15
%141 = sext i32 %140 to i64
%142 = getelementptr inbounds i16, i16* %139, i64 %141
%143 = load i16, i16* %142
%144 = call i32 (i32, i8*, i32, i16, ...) @fprintf(i32 %137, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.3, i64 0, i64 0), i32 %138, i16 signext %143)
br label %145
145: ; preds = %136
%146 = load i32, i32* %15
%147 = add nsw i32 %146, 1
store i32 %147, i32* %15
br label %132
148: ; preds = %132
%149 = load i32, i32* %1
ret i32 %149
}

LLVM IR (-O2):
@CLOCKS_PER_SEC = global i64 0
@stderr = global i32 0
@.str = [39 x i8] c"clock cycles: %f seconds elapsed: %f \0A\00"
@.str.1 = [41 x i8] c"next zone towards %3hd from %3hd: %3hd \0A\00"
@.str.2 = [30 x i8] c"path from %3hd back to %3hd \0A\00"
@.str.3 = [11 x i8] c"%3d %3hd \0A\00"
define i32 @main() {
%1 = tail call i64 @malloc(i32 30)
%2 = inttoptr i64 %1 to i16*
%3 = inttoptr i64 %1 to i8*
%4 = tail call i64 @malloc(i32 10)
%5 = tail call i64 @malloc(i32 10)
%6 = tail call i64 @malloc(i32 20)
%7 = tail call i64 @malloc(i32 10)
%8 = inttoptr i64 %5 to i16*
%9 = inttoptr i64 %7 to i16*
store i16 1, i16* %2
%10 = getelementptr inbounds i16, i16* %2, i64 3
store i16 0, i16* %10
%11 = getelementptr inbounds i16, i16* %2, i64 4
store i16 2, i16* %11
%12 = getelementptr inbounds i16, i16* %2, i64 5
store i16 3, i16* %12
%13 = getelementptr inbounds i16, i16* %2, i64 6
store i16 1, i16* %13
%14 = getelementptr inbounds i16, i16* %2, i64 7
store i16 4, i16* %14
%15 = getelementptr inbounds i16, i16* %2, i64 9
store i16 1, i16* %15
%16 = getelementptr inbounds i16, i16* %2, i64 10
store i16 4, i16* %16
%17 = getelementptr inbounds i16, i16* %2, i64 12
store i16 2, i16* %17
%18 = getelementptr inbounds i16, i16* %2, i64 13
store i16 3, i16* %18
%19 = tail call double (...) @clock()
store i16 1, i16* %9
%20 = getelementptr inbounds i16, i16* %9, i64 1
store i16 1, i16* %20
%21 = getelementptr inbounds i16, i16* %9, i64 2
store i16 1, i16* %21
%22 = getelementptr inbounds i16, i16* %9, i64 3
%23 = getelementptr inbounds i16, i16* %9, i64 4
store i16 1, i16* %23
%24 = inttoptr i64 %4 to i16*
%25 = inttoptr i64 %6 to i16*
store i16 5, i16* %22
br label %60
26: ; preds = %60
%27 = sext i16 %62 to i32
%28 = tail call double (...) @clock()
%29 = fsub double %28, %19
%30 = load i64, i64* @CLOCKS_PER_SEC
%31 = sitofp i64 %30 to double
%32 = fdiv double %29, %31
%33 = load i32, i32* @stderr
%34 = fptosi double %29 to i32
%35 = fptosi double %32 to i16
%36 = tail call i32 (i32, i8*, i32, i16, ...) @fprintf(i32 %33, i8* getelementptr inbounds ([39 x i8], [39 x i8]* @.str, i64 0, i64 0), i32 %34, i16 signext %35)
%37 = load i32, i32* @stderr
%38 = tail call i32 (i32, i8*, i32, i16, ...) @fprintf(i32 %37, i8* getelementptr inbounds ([41 x i8], [41 x i8]* @.str.1, i64 0, i64 0), i32 0, i16 signext 4, i32 %27)
%39 = load i32, i32* @stderr
%40 = tail call i32 (i32, i8*, i32, i16, ...) @fprintf(i32 %39, i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.2, i64 0, i64 0), i32 4, i16 signext 0)
%41 = load i32, i32* @stderr
%42 = load i16, i16* %24
%43 = tail call i32 (i32, i8*, i32, i16, ...) @fprintf(i32 %41, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.3, i64 0, i64 0), i32 0, i16 signext %42)
%44 = load i32, i32* @stderr
%45 = getelementptr inbounds i16, i16* %24, i64 1
%46 = load i16, i16* %45
%47 = tail call i32 (i32, i8*, i32, i16, ...) @fprintf(i32 %44, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.3, i64 0, i64 0), i32 1, i16 signext %46)
%48 = load i32, i32* @stderr
%49 = getelementptr inbounds i16, i16* %24, i64 2
%50 = load i16, i16* %49
%51 = tail call i32 (i32, i8*, i32, i16, ...) @fprintf(i32 %48, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.3, i64 0, i64 0), i32 2, i16 signext %50)
%52 = load i32, i32* @stderr
%53 = getelementptr inbounds i16, i16* %24, i64 3
%54 = load i16, i16* %53
%55 = tail call i32 (i32, i8*, i32, i16, ...) @fprintf(i32 %52, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.3, i64 0, i64 0), i32 3, i16 signext %54)
%56 = load i32, i32* @stderr
%57 = getelementptr inbounds i16, i16* %24, i64 4
%58 = load i16, i16* %57
%59 = tail call i32 (i32, i8*, i32, i16, ...) @fprintf(i32 %56, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.3, i64 0, i64 0), i32 4, i16 signext %58)
ret i32 0
60: ; preds = %0, %60
%61 = phi i32 [ 0, %0 ], [ %63, %60 ]
%62 = tail call signext i16 @dijkstra(i16* %2, i32 5, i32 4, i32 0, i16* %25, i16* %8, i16* %24, i16* %9, i32 1)
%63 = add nuw nsw i32 %61, 1
%64 = icmp eq i32 %63, 10000
br i1 %64, label %26, label %60
}