#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*/ max(int, int);
int min(int, int /*<<< orphan*/);
void computeMinSoundIntensity(int adjMat[][100], int numV) {
  int i, j, k;
  for (k = 0; k < numV; k++)
    for (i = 0; i < numV; i++)
      for (j = 0; j < numV; j++) {
        adjMat[i][j] = min(adjMat[i][j], max(adjMat[i][k], adjMat[j][k]));
      }
}


x86 assembly (clang, -O0):
<computeMinSoundIntensity>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
movl   $0x0,-0x18(%rbp)
mov    -0x18(%rbp),%eax
cmp    -0xc(%rbp),%eax
jge    1214 <computeMinSoundIntensity+0xf4>
movl   $0x0,-0x10(%rbp)
mov    -0x10(%rbp),%eax
cmp    -0xc(%rbp),%eax
jge    1201 <computeMinSoundIntensity+0xe1>
movl   $0x0,-0x14(%rbp)
mov    -0x14(%rbp),%eax
cmp    -0xc(%rbp),%eax
jge    11ee <computeMinSoundIntensity+0xce>
mov    -0x8(%rbp),%rax
movslq -0x10(%rbp),%rcx
imul   $0x190,%rcx,%rcx
add    %rcx,%rax
movslq -0x14(%rbp),%rcx
mov    (%rax,%rcx,4),%eax
mov    %eax,-0x1c(%rbp)
mov    -0x8(%rbp),%rax
movslq -0x10(%rbp),%rcx
imul   $0x190,%rcx,%rcx
add    %rcx,%rax
movslq -0x18(%rbp),%rcx
mov    (%rax,%rcx,4),%edi
mov    -0x8(%rbp),%rax
movslq -0x14(%rbp),%rcx
imul   $0x190,%rcx,%rcx
add    %rcx,%rax
movslq -0x18(%rbp),%rcx
mov    (%rax,%rcx,4),%esi
call   1040 <max@plt>
mov    -0x1c(%rbp),%edi
mov    %eax,%esi
call   1030 <min@plt>
mov    %eax,%edx
mov    -0x8(%rbp),%rax
movslq -0x10(%rbp),%rcx
imul   $0x190,%rcx,%rcx
add    %rcx,%rax
movslq -0x14(%rbp),%rcx
mov    %edx,(%rax,%rcx,4)
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
jmp    115c <computeMinSoundIntensity+0x3c>
jmp    11f3 <computeMinSoundIntensity+0xd3>
mov    -0x10(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x10(%rbp)
jmp    1149 <computeMinSoundIntensity+0x29>
jmp    1206 <computeMinSoundIntensity+0xe6>
mov    -0x18(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x18(%rbp)
jmp    1136 <computeMinSoundIntensity+0x16>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<computeMinSoundIntensity>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x28,%rsp
mov    %rdi,0x8(%rsp)
test   %esi,%esi
jle    11f2 <computeMinSoundIntensity+0xd2>
mov    %esi,%r13d
xor    %eax,%eax
mov    %rax,0x10(%rsp)
mov    0x8(%rsp),%rax
mov    %rax,0x18(%rsp)
nop
mov    0x8(%rsp),%rbx
xor    %eax,%eax
nopw   0x0(%rax,%rax,1)
mov    %rax,0x20(%rsp)
imul   $0x190,%rax,%rax
add    0x8(%rsp),%rax
mov    0x10(%rsp),%rcx
lea    (%rax,%rcx,4),%r15
mov    0x18(%rsp),%r12
xor    %r14d,%r14d
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
mov    (%rbx,%r14,4),%ebp
mov    (%r15),%edi
mov    (%r12),%esi
call   1040 <max@plt>
mov    %ebp,%edi
mov    %eax,%esi
call   1030 <min@plt>
mov    %eax,(%rbx,%r14,4)
add    $0x1,%r14
add    $0x190,%r12
cmp    %r14,%r13
jne    1190 <computeMinSoundIntensity+0x70>
mov    0x20(%rsp),%rax
add    $0x1,%rax
add    $0x190,%rbx
cmp    %r13,%rax
jne    1160 <computeMinSoundIntensity+0x40>
mov    0x10(%rsp),%rcx
add    $0x1,%rcx
addq   $0x4,0x18(%rsp)
mov    %rcx,%rax
mov    %rcx,0x10(%rsp)
cmp    %r13,%rcx
jne    1150 <computeMinSoundIntensity+0x30>
add    $0x28,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
define void @computeMinSoundIntensity([100 x i32]* %0, i32 %1) {
%3 = alloca [100 x i32]*
%4 = alloca i32
%5 = alloca i32
%6 = alloca i32
%7 = alloca i32
store [100 x i32]* %0, [100 x i32]** %3
store i32 %1, i32* %4
store i32 0, i32* %7
br label %8
8: ; preds = %64, %2
%9 = load i32, i32* %7
%10 = load i32, i32* %4
%11 = icmp slt i32 %9, %10
br i1 %11, label %12, label %67
12: ; preds = %8
store i32 0, i32* %5
br label %13
13: ; preds = %60, %12
%14 = load i32, i32* %5
%15 = load i32, i32* %4
%16 = icmp slt i32 %14, %15
br i1 %16, label %17, label %63
17: ; preds = %13
store i32 0, i32* %6
br label %18
18: ; preds = %56, %17
%19 = load i32, i32* %6
%20 = load i32, i32* %4
%21 = icmp slt i32 %19, %20
br i1 %21, label %22, label %59
22: ; preds = %18
%23 = load [100 x i32]*, [100 x i32]** %3
%24 = load i32, i32* %5
%25 = sext i32 %24 to i64
%26 = getelementptr inbounds [100 x i32], [100 x i32]* %23, i64 %25
%27 = load i32, i32* %6
%28 = sext i32 %27 to i64
%29 = getelementptr inbounds [100 x i32], [100 x i32]* %26, i64 0, i64 %28
%30 = load i32, i32* %29
%31 = load [100 x i32]*, [100 x i32]** %3
%32 = load i32, i32* %5
%33 = sext i32 %32 to i64
%34 = getelementptr inbounds [100 x i32], [100 x i32]* %31, i64 %33
%35 = load i32, i32* %7
%36 = sext i32 %35 to i64
%37 = getelementptr inbounds [100 x i32], [100 x i32]* %34, i64 0, i64 %36
%38 = load i32, i32* %37
%39 = load [100 x i32]*, [100 x i32]** %3
%40 = load i32, i32* %6
%41 = sext i32 %40 to i64
%42 = getelementptr inbounds [100 x i32], [100 x i32]* %39, i64 %41
%43 = load i32, i32* %7
%44 = sext i32 %43 to i64
%45 = getelementptr inbounds [100 x i32], [100 x i32]* %42, i64 0, i64 %44
%46 = load i32, i32* %45
%47 = call i32 @max(i32 %38, i32 %46)
%48 = call i32 @min(i32 %30, i32 %47)
%49 = load [100 x i32]*, [100 x i32]** %3
%50 = load i32, i32* %5
%51 = sext i32 %50 to i64
%52 = getelementptr inbounds [100 x i32], [100 x i32]* %49, i64 %51
%53 = load i32, i32* %6
%54 = sext i32 %53 to i64
%55 = getelementptr inbounds [100 x i32], [100 x i32]* %52, i64 0, i64 %54
store i32 %48, i32* %55
br label %56
56: ; preds = %22
%57 = load i32, i32* %6
%58 = add nsw i32 %57, 1
store i32 %58, i32* %6
br label %18
59: ; preds = %18
br label %60
60: ; preds = %59
%61 = load i32, i32* %5
%62 = add nsw i32 %61, 1
store i32 %62, i32* %5
br label %13
63: ; preds = %13
br label %64
64: ; preds = %63
%65 = load i32, i32* %7
%66 = add nsw i32 %65, 1
store i32 %66, i32* %7
br label %8
67: ; preds = %8
ret void
}

LLVM IR (-O2):
define void @computeMinSoundIntensity([100 x i32]* nocapture %0, i32 %1) {
%3 = icmp sgt i32 %1, 0
br i1 %3, label %4, label %28
4: ; preds = %2
%5 = zext i32 %1 to i64
br label %6
6: ; preds = %25, %4
%7 = phi i64 [ 0, %4 ], [ %26, %25 ]
br label %8
8: ; preds = %22, %6
%9 = phi i64 [ 0, %6 ], [ %23, %22 ]
%10 = getelementptr inbounds [100 x i32], [100 x i32]* %0, i64 %9, i64 %7
br label %11
11: ; preds = %8, %11
%12 = phi i64 [ 0, %8 ], [ %20, %11 ]
%13 = getelementptr inbounds [100 x i32], [100 x i32]* %0, i64 %9, i64 %12
%14 = load i32, i32* %13
%15 = load i32, i32* %10
%16 = getelementptr inbounds [100 x i32], [100 x i32]* %0, i64 %12, i64 %7
%17 = load i32, i32* %16
%18 = tail call i32 @max(i32 %15, i32 %17)
%19 = tail call i32 @min(i32 %14, i32 %18)
store i32 %19, i32* %13
%20 = add nuw nsw i64 %12, 1
%21 = icmp eq i64 %20, %5
br i1 %21, label %22, label %11
22: ; preds = %11
%23 = add nuw nsw i64 %9, 1
%24 = icmp eq i64 %23, %5
br i1 %24, label %25, label %8
25: ; preds = %22
%26 = add nuw nsw i64 %7, 1
%27 = icmp eq i64 %26, %5
br i1 %27, label %28, label %6
28: ; preds = %25, %2
ret void
}