#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 */
int /*<<< orphan*/ clrscr();
int /*<<< orphan*/ getch();
int /*<<< orphan*/ printf(char *, ...);
int /*<<< orphan*/ scanf(char *, int *, ...);
int /*<<< orphan*/ shortpath(int, int **, int, int, int *, int *);
int main() {
  clrscr();
  int i, j, s, t, NODES, flag = -1;
  do {
    flag++;
    if (flag)
      printf("No. of nodes should lie b/w 0 & 20.\nEnter no. of nodes : ");
    else
      printf("Enter no. of nodes : ");
    scanf("%d", &NODES);
  } while ((NODES <= 0) || (NODES > 20));
  int weight[NODES][NODES], precede[NODES], pd;
  printf("Enter weight matrix :\n\n");
  for (i = 0; i < NODES; i++)
    for (j = 0; j < NODES; j++) {
      printf("weight [%d][%d] : ", i, j);
      scanf("%d", &weight[i][j]);
    }
  flag = -1;
  do {
    flag++;
    if (flag)
      printf("Enter VALID starting and ending node : ");
    else
      printf("Enter starting node and the ending node : ");
    scanf("%d%d", &s, &t);
  } while (((s < 0) || (s >= NODES)) || ((t < 0) || (t >= NODES)));
  shortpath(NODES, weight, s, t, &pd, precede);
  printf("\nThe shortest path from node %d to %d is : %d", s, t, pd);
  getch();
  return (0);
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x70,%rsp
movl   $0x0,-0x4(%rbp)
mov    $0x0,%al
call   1030 <clrscr@plt>
movl   $0xffffffff,-0x1c(%rbp)
mov    -0x1c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x1c(%rbp)
cmpl   $0x0,-0x1c(%rbp)
je     1193 <main+0x43>
lea    0xe79(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
jmp    11a1 <main+0x51>
lea    0xe8a(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xf40(%rip),%rdi
lea    -0x18(%rbp),%rsi
mov    $0x0,%al
call   1060 <scanf@plt>
mov    $0x1,%al
cmpl   $0x0,-0x18(%rbp)
mov    %al,-0x45(%rbp)
jle    11cc <main+0x7c>
cmpl   $0x14,-0x18(%rbp)
setg   %al
mov    %al,-0x45(%rbp)
mov    -0x45(%rbp),%al
test   $0x1,%al
jne    116d <main+0x1d>
mov    -0x18(%rbp),%eax
mov    %rax,-0x60(%rbp)
mov    %rsp,%rcx
mov    %rcx,-0x28(%rbp)
mov    %rax,%rcx
imul   %rcx,%rcx
lea    0xf(,%rcx,4),%rdx
and    $0xfffffffffffffff0,%rdx
mov    %rsp,%rcx
sub    %rdx,%rcx
mov    %rcx,-0x58(%rbp)
mov    %rcx,%rsp
mov    %rax,-0x30(%rbp)
mov    %rax,-0x38(%rbp)
mov    -0x18(%rbp),%eax
lea    0xf(,%rax,4),%rdx
and    $0xfffffffffffffff0,%rdx
mov    %rsp,%rcx
sub    %rdx,%rcx
mov    %rcx,-0x50(%rbp)
mov    %rcx,%rsp
mov    %rax,-0x40(%rbp)
lea    0xe06(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
movl   $0x0,-0x8(%rbp)
mov    -0x8(%rbp),%eax
cmp    -0x18(%rbp),%eax
jge    12c6 <main+0x176>
movl   $0x0,-0xc(%rbp)
mov    -0xc(%rbp),%eax
cmp    -0x18(%rbp),%eax
jge    12b3 <main+0x163>
mov    -0x8(%rbp),%esi
mov    -0xc(%rbp),%edx
lea    0xde4(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x60(%rbp),%rcx
mov    -0x58(%rbp),%rsi
movslq -0x8(%rbp),%rax
imul   %rcx,%rax
shl    $0x2,%rax
add    %rax,%rsi
movslq -0xc(%rbp),%rax
shl    $0x2,%rax
add    %rax,%rsi
lea    0xe4a(%rip),%rdi
mov    $0x0,%al
call   1060 <scanf@plt>
mov    -0xc(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xc(%rbp)
jmp    1255 <main+0x105>
jmp    12b8 <main+0x168>
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
jmp    1242 <main+0xf2>
movl   $0xffffffff,-0x1c(%rbp)
mov    -0x1c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x1c(%rbp)
cmpl   $0x0,-0x1c(%rbp)
je     12f3 <main+0x1a3>
lea    0xd7e(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
jmp    1301 <main+0x1b1>
lea    0xd93(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    0xdb0(%rip),%rdi
lea    -0x10(%rbp),%rsi
lea    -0x14(%rbp),%rdx
mov    $0x0,%al
call   1060 <scanf@plt>
mov    $0x1,%al
cmpl   $0x0,-0x10(%rbp)
mov    %al,-0x61(%rbp)
jl     1358 <main+0x208>
mov    -0x10(%rbp),%ecx
mov    $0x1,%al
cmp    -0x18(%rbp),%ecx
mov    %al,-0x61(%rbp)
jge    1358 <main+0x208>
mov    $0x1,%al
cmpl   $0x0,-0x14(%rbp)
mov    %al,-0x62(%rbp)
jl     1352 <main+0x202>
mov    -0x14(%rbp),%eax
cmp    -0x18(%rbp),%eax
setge  %al
mov    %al,-0x62(%rbp)
mov    -0x62(%rbp),%al
mov    %al,-0x61(%rbp)
mov    -0x61(%rbp),%al
test   $0x1,%al
jne    12cd <main+0x17d>
mov    -0x50(%rbp),%r9
mov    -0x58(%rbp),%rsi
mov    -0x18(%rbp),%edi
mov    -0x10(%rbp),%edx
mov    -0x14(%rbp),%ecx
lea    -0x44(%rbp),%r8
call   1050 <shortpath@plt>
mov    -0x10(%rbp),%esi
mov    -0x14(%rbp),%edx
mov    -0x44(%rbp),%ecx
lea    0xd30(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    $0x0,%al
call   1070 <getch@plt>
movl   $0x0,-0x4(%rbp)
mov    -0x28(%rbp),%rax
mov    %rax,%rsp
mov    -0x4(%rbp),%eax
mov    %rbp,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
mov    %rsp,%rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x38,%rsp
xor    %eax,%eax
call   1030 <clrscr@plt>
lea    0xea5(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
lea    0xf43(%rip),%rdi
lea    -0x2c(%rbp),%rsi
xor    %eax,%eax
call   1070 <scanf@plt>
mov    -0x2c(%rbp),%eax
lea    -0x15(%rax),%ecx
cmp    $0xffffffeb,%ecx
ja     11e2 <main+0x82>
lea    0xe56(%rip),%r14
lea    0xf1f(%rip),%r15
lea    -0x2c(%rbp),%rbx
cs nopw 0x0(%rax,%rax,1)
nop
mov    %r14,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    %r15,%rdi
mov    %rbx,%rsi
xor    %eax,%eax
call   1070 <scanf@plt>
mov    -0x2c(%rbp),%eax
lea    -0x15(%rax),%ecx
cmp    $0xffffffec,%ecx
jb     11c0 <main+0x60>
mov    %rsp,-0x58(%rbp)
mov    %eax,%eax
mov    %rax,-0x48(%rbp)
imul   %rax,%rax
mov    %rsp,%rcx
lea    0xf(,%rax,4),%rax
and    $0xfffffffffffffff0,%rax
sub    %rax,%rcx
mov    %rcx,-0x40(%rbp)
mov    %rcx,%rsp
mov    -0x2c(%rbp),%eax
mov    %rsp,%rcx
lea    0xf(,%rax,4),%rax
and    $0xfffffffffffffff0,%rax
sub    %rax,%rcx
mov    %rcx,-0x50(%rbp)
mov    %rcx,%rsp
lea    0xea7(%rip),%rdi
call   1040 <puts@plt>
mov    -0x2c(%rbp),%eax
test   %eax,%eax
jle    12b3 <main+0x153>
shlq   $0x2,-0x48(%rbp)
lea    0xdf6(%rip),%r12
lea    0xe85(%rip),%r13
mov    -0x40(%rbp),%r14
xor    %ebx,%ebx
jmp    1270 <main+0x110>
cs nopw 0x0(%rax,%rax,1)
nopl   (%rax)
movslq %eax,%rcx
add    $0x1,%rbx
add    -0x48(%rbp),%r14
cmp    %rcx,%rbx
jge    12b3 <main+0x153>
test   %eax,%eax
jle    1260 <main+0x100>
mov    %r14,-0x60(%rbp)
xor    %r15d,%r15d
nopl   0x0(%rax,%rax,1)
mov    %r12,%rdi
mov    %ebx,%esi
mov    %r15d,%edx
xor    %eax,%eax
call   1050 <printf@plt>
mov    %r13,%rdi
mov    %r14,%rsi
xor    %eax,%eax
call   1070 <scanf@plt>
add    $0x1,%r15
movslq -0x2c(%rbp),%rax
add    $0x4,%r14
cmp    %rax,%r15
jl     1280 <main+0x120>
mov    -0x60(%rbp),%r14
jmp    1260 <main+0x100>
lea    0xd93(%rip),%r15
lea    0xddf(%rip),%r12
lea    -0x34(%rbp),%r13
lea    -0x30(%rbp),%rbx
xor    %r14d,%r14d
nopl   0x0(%rax)
sub    $0x1,%r14d
mov    %r15,%rdi
lea    0xd97(%rip),%rax
cmovb  %rax,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    %r12,%rdi
mov    %r13,%rsi
mov    %rbx,%rdx
xor    %eax,%eax
call   1070 <scanf@plt>
mov    -0x34(%rbp),%edx
test   %edx,%edx
js     12d0 <main+0x170>
mov    -0x2c(%rbp),%edi
cmp    %edi,%edx
jge    12d0 <main+0x170>
mov    -0x30(%rbp),%ecx
test   %ecx,%ecx
js     12d0 <main+0x170>
cmp    %edi,%ecx
jge    12d0 <main+0x170>
lea    -0x38(%rbp),%r8
mov    -0x40(%rbp),%rsi
mov    -0x50(%rbp),%r9
call   1060 <shortpath@plt>
mov    -0x34(%rbp),%esi
mov    -0x30(%rbp),%edx
mov    -0x38(%rbp),%ecx
lea    0xd72(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
xor    %eax,%eax
call   1080 <getch@plt>
mov    -0x58(%rbp),%rsp
xor    %eax,%eax
lea    -0x28(%rbp),%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [58 x i8] c"No. of nodes should lie b/w 0 & 20.\0AEnter no. of nodes : \00"
@.str.1 = [22 x i8] c"Enter no. of nodes : \00"
@.str.2 = [3 x i8] c"%d\00"
@.str.3 = [24 x i8] c"Enter weight matrix :\0A\0A\00"
@.str.4 = [19 x i8] c"weight [%d][%d] : \00"
@.str.5 = [40 x i8] c"Enter VALID starting and ending node : \00"
@.str.6 = [43 x i8] c"Enter starting node and the ending node : \00"
@.str.7 = [5 x i8] c"%d%d\00"
@.str.8 = [46 x i8] c"\0AThe shortest path from node %d to %d is : %d\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
%4 = alloca i32
%5 = alloca i32
%6 = alloca i32
%7 = alloca i32
%8 = alloca i8*
%9 = alloca i64
%10 = alloca i64
%11 = alloca i64
%12 = alloca i32
store i32 0, i32* %1
%13 = call i32 (...) @clrscr()
store i32 -1, i32* %7
br label %14
14: ; preds = %31, %0
%15 = load i32, i32* %7
%16 = add nsw i32 %15, 1
store i32 %16, i32* %7
%17 = load i32, i32* %7
%18 = icmp ne i32 %17, 0
br i1 %18, label %19, label %21
19: ; preds = %14
%20 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([58 x i8], [58 x i8]* @.str, i64 0, i64 0))
br label %23
21: ; preds = %14
%22 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([22 x i8], [22 x i8]* @.str.1, i64 0, i64 0))
br label %23
23: ; preds = %21, %19
%24 = call i32 (i8*, i32*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), i32* %6)
br label %25
25: ; preds = %23
%26 = load i32, i32* %6
%27 = icmp sle i32 %26, 0
br i1 %27, label %31, label %28
28: ; preds = %25
%29 = load i32, i32* %6
%30 = icmp sgt i32 %29, 20
br label %31
31: ; preds = %28, %25
%32 = phi i1 [ true, %25 ], [ %30, %28 ]
br i1 %32, label %14, label %33
33: ; preds = %31
%34 = load i32, i32* %6
%35 = zext i32 %34 to i64
%36 = load i32, i32* %6
%37 = zext i32 %36 to i64
%38 = call i8* @llvm.stacksave()
store i8* %38, i8** %8
%39 = mul nuw i64 %35, %37
%40 = alloca i32, i64 %39
store i64 %35, i64* %9
store i64 %37, i64* %10
%41 = load i32, i32* %6
%42 = zext i32 %41 to i64
%43 = alloca i32, i64 %42
store i64 %42, i64* %11
%44 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.3, i64 0, i64 0))
store i32 0, i32* %2
br label %45
45: ; preds = %70, %33
%46 = load i32, i32* %2
%47 = load i32, i32* %6
%48 = icmp slt i32 %46, %47
br i1 %48, label %49, label %73
49: ; preds = %45
store i32 0, i32* %3
br label %50
50: ; preds = %66, %49
%51 = load i32, i32* %3
%52 = load i32, i32* %6
%53 = icmp slt i32 %51, %52
br i1 %53, label %54, label %69
54: ; preds = %50
%55 = load i32, i32* %2
%56 = load i32, i32* %3
%57 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.4, i64 0, i64 0), i32 %55, i32 %56)
%58 = load i32, i32* %2
%59 = sext i32 %58 to i64
%60 = mul nsw i64 %59, %37
%61 = getelementptr inbounds i32, i32* %40, i64 %60
%62 = load i32, i32* %3
%63 = sext i32 %62 to i64
%64 = getelementptr inbounds i32, i32* %61, i64 %63
%65 = call i32 (i8*, i32*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), i32* %64)
br label %66
66: ; preds = %54
%67 = load i32, i32* %3
%68 = add nsw i32 %67, 1
store i32 %68, i32* %3
br label %50
69: ; preds = %50
br label %70
70: ; preds = %69
%71 = load i32, i32* %2
%72 = add nsw i32 %71, 1
store i32 %72, i32* %2
br label %45
73: ; preds = %45
store i32 -1, i32* %7
br label %74
74: ; preds = %101, %73
%75 = load i32, i32* %7
%76 = add nsw i32 %75, 1
store i32 %76, i32* %7
%77 = load i32, i32* %7
%78 = icmp ne i32 %77, 0
br i1 %78, label %79, label %81
79: ; preds = %74
%80 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([40 x i8], [40 x i8]* @.str.5, i64 0, i64 0))
br label %83
81: ; preds = %74
%82 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([43 x i8], [43 x i8]* @.str.6, i64 0, i64 0))
br label %83
83: ; preds = %81, %79
%84 = call i32 (i8*, i32*, ...) @scanf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.7, i64 0, i64 0), i32* %4, i32* %5)
br label %85
85: ; preds = %83
%86 = load i32, i32* %4
%87 = icmp slt i32 %86, 0
br i1 %87, label %101, label %88
88: ; preds = %85
%89 = load i32, i32* %4
%90 = load i32, i32* %6
%91 = icmp sge i32 %89, %90
br i1 %91, label %101, label %92
92: ; preds = %88
%93 = load i32, i32* %5
%94 = icmp slt i32 %93, 0
br i1 %94, label %99, label %95
95: ; preds = %92
%96 = load i32, i32* %5
%97 = load i32, i32* %6
%98 = icmp sge i32 %96, %97
br label %99
99: ; preds = %95, %92
%100 = phi i1 [ true, %92 ], [ %98, %95 ]
br label %101
101: ; preds = %99, %88, %85
%102 = phi i1 [ true, %88 ], [ true, %85 ], [ %100, %99 ]
br i1 %102, label %74, label %103
103: ; preds = %101
%104 = load i32, i32* %6
%105 = bitcast i32* %40 to i32**
%106 = load i32, i32* %4
%107 = load i32, i32* %5
%108 = call i32 @shortpath(i32 %104, i32** %105, i32 %106, i32 %107, i32* %12, i32* %43)
%109 = load i32, i32* %4
%110 = load i32, i32* %5
%111 = load i32, i32* %12
%112 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([46 x i8], [46 x i8]* @.str.8, i64 0, i64 0), i32 %109, i32 %110, i32 %111)
%113 = call i32 (...) @getch()
store i32 0, i32* %1
%114 = load i8*, i8** %8
%115 = load i32, i32* %1
ret i32 %115
}

LLVM IR (-O2):
@.str = [58 x i8] c"No. of nodes should lie b/w 0 & 20.\0AEnter no. of nodes : \00"
@.str.1 = [22 x i8] c"Enter no. of nodes : \00"
@.str.2 = [3 x i8] c"%d\00"
@.str.4 = [19 x i8] c"weight [%d][%d] : \00"
@.str.5 = [40 x i8] c"Enter VALID starting and ending node : \00"
@.str.6 = [43 x i8] c"Enter starting node and the ending node : \00"
@.str.7 = [5 x i8] c"%d%d\00"
@.str.8 = [46 x i8] c"\0AThe shortest path from node %d to %d is : %d\00"
@str = [23 x i8] c"Enter weight matrix :\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
%4 = alloca i32
%5 = tail call i32 (...) @clrscr()
%6 = bitcast i32* %1 to i8*
%7 = bitcast i32* %2 to i8*
%8 = bitcast i32* %3 to i8*
%9 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([22 x i8], [22 x i8]* @.str.1, i64 0, i64 0))
%10 = call i32 (i8*, i32*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), i32* %3)
%11 = load i32, i32* %3
%12 = add i32 %11, -21
%13 = icmp ult i32 %12, -20
br i1 %13, label %14, label %20
14: ; preds = %0, %14
%15 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([58 x i8], [58 x i8]* @.str, i64 0, i64 0))
%16 = call i32 (i8*, i32*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), i32* %3)
%17 = load i32, i32* %3
%18 = add i32 %17, -21
%19 = icmp ult i32 %18, -20
br i1 %19, label %14, label %20
20: ; preds = %14, %0
%21 = phi i32 [ %11, %0 ], [ %17, %14 ]
%22 = zext i32 %21 to i64
%23 = call i8* @llvm.stacksave()
%24 = mul nuw nsw i64 %22, %22
%25 = alloca i32, i64 %24
%26 = load i32, i32* %3
%27 = zext i32 %26 to i64
%28 = alloca i32, i64 %27
%29 = bitcast i32* %4 to i8*
%30 = call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([23 x i8], [23 x i8]* @str, i64 0, i64 0))
%31 = load i32, i32* %3
%32 = icmp sgt i32 %31, 0
br i1 %32, label %33, label %56
33: ; preds = %20, %51
%34 = phi i32 [ %52, %51 ], [ %31, %20 ]
%35 = phi i64 [ %54, %51 ], [ 0, %20 ]
%36 = icmp sgt i32 %34, 0
br i1 %36, label %37, label %51
37: ; preds = %33
%38 = mul nuw nsw i64 %35, %22
%39 = getelementptr inbounds i32, i32* %25, i64 %38
%40 = trunc i64 %35 to i32
br label %41
41: ; preds = %37, %41
%42 = phi i64 [ 0, %37 ], [ %47, %41 ]
%43 = trunc i64 %42 to i32
%44 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([19 x i8], [19 x i8]* @.str.4, i64 0, i64 0), i32 %40, i32 %43)
%45 = getelementptr inbounds i32, i32* %39, i64 %42
%46 = call i32 (i8*, i32*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), i32* %45)
%47 = add nuw nsw i64 %42, 1
%48 = load i32, i32* %3
%49 = sext i32 %48 to i64
%50 = icmp slt i64 %47, %49
br i1 %50, label %41, label %51
51: ; preds = %41, %33
%52 = phi i32 [ %34, %33 ], [ %48, %41 ]
%53 = sext i32 %52 to i64
%54 = add nuw nsw i64 %35, 1
%55 = icmp slt i64 %54, %53
br i1 %55, label %33, label %56
56: ; preds = %51, %20
br label %57
57: ; preds = %74, %56
%58 = phi i32 [ -1, %56 ], [ %59, %74 ]
%59 = add nsw i32 %58, 1
%60 = icmp eq i32 %59, 0
%61 = select i1 %60, i8* getelementptr inbounds ([43 x i8], [43 x i8]* @.str.6, i64 0, i64 0), i8* getelementptr inbounds ([40 x i8], [40 x i8]* @.str.5, i64 0, i64 0)
%62 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) %61)
%63 = call i32 (i8*, i32*, ...) @scanf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.7, i64 0, i64 0), i32* %1, i32* %2)
%64 = load i32, i32* %1
%65 = icmp slt i32 %64, 0
br i1 %65, label %74, label %66
66: ; preds = %57
%67 = load i32, i32* %3
%68 = icmp slt i32 %64, %67
br i1 %68, label %69, label %74
69: ; preds = %66
%70 = load i32, i32* %2
%71 = icmp slt i32 %70, 0
%72 = icmp sge i32 %70, %67
%73 = select i1 %71, i1 true, i1 %72
br i1 %73, label %74, label %75
74: ; preds = %69, %66, %57
br label %57
75: ; preds = %69
%76 = bitcast i32* %25 to i32**
%77 = call i32 @shortpath(i32 %67, i32** %76, i32 %64, i32 %70, i32* %4, i32* %28)
%78 = load i32, i32* %1
%79 = load i32, i32* %2
%80 = load i32, i32* %4
%81 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([46 x i8], [46 x i8]* @.str.8, i64 0, i64 0), i32 %78, i32 %79, i32 %80)
%82 = call i32 (...) @getch()
ret i32 0
}