#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*/ printf(char *, int, int, int);
void main() {
  int rows = 5, cols = 3,
      arr[5][3] = {
          {15, 40, 36}, {50, 60, 32}, {70, 56, 23}, {15, 35, 25}, {60, 55, 96}};
  int i, j, c, max, min, mark, d;
  for (i = 0; i < rows; i++) {
    mark = 0;
    d = 0;
    max = arr[i][mark];
    for (j = 1; j < cols; j++) {
      if (arr[i][j] > max) {
        mark = j;
        max = arr[i][j];
      }
    }
    min = arr[i][mark];
    for (c = 0; c < rows; c++) {
      if (min > arr[c][mark])
        d = 1;
    }
    if (d == 0)
      printf("The special point is:a[%d][%d]=%d", i, mark, min);
  }
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x70,%rsp
movl   $0x5,-0x4(%rbp)
movl   $0x3,-0x8(%rbp)
lea    -0x50(%rbp),%rdi
lea    0xebf(%rip),%rsi
mov    $0x3c,%edx
call   1040 <memcpy@plt>
movl   $0x0,-0x54(%rbp)
mov    -0x54(%rbp),%eax
cmp    -0x4(%rbp),%eax
jge    1280 <main+0x160>
movl   $0x0,-0x68(%rbp)
movl   $0x0,-0x6c(%rbp)
movslq -0x54(%rbp),%rcx
lea    -0x50(%rbp),%rax
imul   $0xc,%rcx,%rcx
add    %rcx,%rax
movslq -0x68(%rbp),%rcx
mov    (%rax,%rcx,4),%eax
mov    %eax,-0x60(%rbp)
movl   $0x1,-0x58(%rbp)
mov    -0x58(%rbp),%eax
cmp    -0x8(%rbp),%eax
jge    11e9 <main+0xc9>
movslq -0x54(%rbp),%rcx
lea    -0x50(%rbp),%rax
imul   $0xc,%rcx,%rcx
add    %rcx,%rax
movslq -0x58(%rbp),%rcx
mov    (%rax,%rcx,4),%eax
cmp    -0x60(%rbp),%eax
jle    11d6 <main+0xb6>
mov    -0x58(%rbp),%eax
mov    %eax,-0x68(%rbp)
movslq -0x54(%rbp),%rcx
lea    -0x50(%rbp),%rax
imul   $0xc,%rcx,%rcx
add    %rcx,%rax
movslq -0x58(%rbp),%rcx
mov    (%rax,%rcx,4),%eax
mov    %eax,-0x60(%rbp)
jmp    11db <main+0xbb>
mov    -0x58(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x58(%rbp)
jmp    118c <main+0x6c>
movslq -0x54(%rbp),%rcx
lea    -0x50(%rbp),%rax
imul   $0xc,%rcx,%rcx
add    %rcx,%rax
movslq -0x68(%rbp),%rcx
mov    (%rax,%rcx,4),%eax
mov    %eax,-0x64(%rbp)
movl   $0x0,-0x5c(%rbp)
mov    -0x5c(%rbp),%eax
cmp    -0x4(%rbp),%eax
jge    124e <main+0x12e>
mov    -0x64(%rbp),%eax
movslq -0x5c(%rbp),%rdx
lea    -0x50(%rbp),%rcx
imul   $0xc,%rdx,%rdx
add    %rdx,%rcx
movslq -0x68(%rbp),%rdx
cmp    (%rcx,%rdx,4),%eax
jle    123b <main+0x11b>
movl   $0x1,-0x6c(%rbp)
jmp    1240 <main+0x120>
mov    -0x5c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x5c(%rbp)
jmp    1209 <main+0xe9>
cmpl   $0x0,-0x6c(%rbp)
jne    126d <main+0x14d>
mov    -0x54(%rbp),%esi
mov    -0x68(%rbp),%edx
mov    -0x64(%rbp),%ecx
lea    0xdd4(%rip),%rdi
call   1030 <printf@plt>
jmp    1272 <main+0x152>
mov    -0x54(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x54(%rbp)
jmp    1152 <main+0x32>
add    $0x70,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r12
push   %rbx
lea    0xee1(%rip),%r15
xor    %ebx,%ebx
mov    $0x2,%r12d
lea    0xf0e(%rip),%r14
mov    %r15,%rbp
jmp    114e <main+0x3e>
cs nopw 0x0(%rax,%rax,1)
nopl   (%rax)
add    $0x1,%rbx
add    $0xc,%rbp
cmp    $0x5,%rbx
je     1197 <main+0x87>
mov    0x0(%rbp),%eax
mov    0x4(%rbp),%ecx
xor    %edx,%edx
cmp    %eax,%ecx
setg   %dl
cmovg  %ecx,%eax
cmp    %eax,0x8(%rbp)
cmovg  %r12d,%edx
mov    0x0(%rbp,%rdx,4),%ecx
cmp    0x30(%r15,%rdx,4),%ecx
jg     1140 <main+0x30>
cmp    0x24(%r15,%rdx,4),%ecx
jg     1140 <main+0x30>
cmp    0x18(%r15,%rdx,4),%ecx
jg     1140 <main+0x30>
cmp    0xc(%r15,%rdx,4),%ecx
jg     1140 <main+0x30>
cmp    (%r15,%rdx,4),%ecx
jg     1140 <main+0x30>
mov    %r14,%rdi
mov    %ebx,%esi
call   1030 <printf@plt>
jmp    1140 <main+0x30>
pop    %rbx
pop    %r12
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@__const.main.arr = [5 x [3 x i32]] [[3 x i32] [i32 15, i32 40, i32 36], [3 x i32] [i32 50, i32 60, i32 32], [3 x i32] [i32 70, i32 56, i32 23], [3 x i32] [i32 15, i32 35, i32 25], [3 x i32] [i32 60, i32 55, i32 96]]
@.str = [34 x i8] c"The special point is:a[%d][%d]=%d\00"
define void @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca [5 x [3 x i32]]
%4 = alloca i32
%5 = alloca i32
%6 = alloca i32
%7 = alloca i32
%8 = alloca i32
%9 = alloca i32
%10 = alloca i32
store i32 5, i32* %1
store i32 3, i32* %2
%11 = bitcast [5 x [3 x i32]]* %3 to i8*
store i32 0, i32* %4
br label %12
12: ; preds = %87, %0
%13 = load i32, i32* %4
%14 = load i32, i32* %1
%15 = icmp slt i32 %13, %14
br i1 %15, label %16, label %90
16: ; preds = %12
store i32 0, i32* %9
store i32 0, i32* %10
%17 = load i32, i32* %4
%18 = sext i32 %17 to i64
%19 = getelementptr inbounds [5 x [3 x i32]], [5 x [3 x i32]]* %3, i64 0, i64 %18
%20 = load i32, i32* %9
%21 = sext i32 %20 to i64
%22 = getelementptr inbounds [3 x i32], [3 x i32]* %19, i64 0, i64 %21
%23 = load i32, i32* %22
store i32 %23, i32* %7
store i32 1, i32* %5
br label %24
24: ; preds = %48, %16
%25 = load i32, i32* %5
%26 = load i32, i32* %2
%27 = icmp slt i32 %25, %26
br i1 %27, label %28, label %51
28: ; preds = %24
%29 = load i32, i32* %4
%30 = sext i32 %29 to i64
%31 = getelementptr inbounds [5 x [3 x i32]], [5 x [3 x i32]]* %3, i64 0, i64 %30
%32 = load i32, i32* %5
%33 = sext i32 %32 to i64
%34 = getelementptr inbounds [3 x i32], [3 x i32]* %31, i64 0, i64 %33
%35 = load i32, i32* %34
%36 = load i32, i32* %7
%37 = icmp sgt i32 %35, %36
br i1 %37, label %38, label %47
38: ; preds = %28
%39 = load i32, i32* %5
store i32 %39, i32* %9
%40 = load i32, i32* %4
%41 = sext i32 %40 to i64
%42 = getelementptr inbounds [5 x [3 x i32]], [5 x [3 x i32]]* %3, i64 0, i64 %41
%43 = load i32, i32* %5
%44 = sext i32 %43 to i64
%45 = getelementptr inbounds [3 x i32], [3 x i32]* %42, i64 0, i64 %44
%46 = load i32, i32* %45
store i32 %46, i32* %7
br label %47
47: ; preds = %38, %28
br label %48
48: ; preds = %47
%49 = load i32, i32* %5
%50 = add nsw i32 %49, 1
store i32 %50, i32* %5
br label %24
51: ; preds = %24
%52 = load i32, i32* %4
%53 = sext i32 %52 to i64
%54 = getelementptr inbounds [5 x [3 x i32]], [5 x [3 x i32]]* %3, i64 0, i64 %53
%55 = load i32, i32* %9
%56 = sext i32 %55 to i64
%57 = getelementptr inbounds [3 x i32], [3 x i32]* %54, i64 0, i64 %56
%58 = load i32, i32* %57
store i32 %58, i32* %8
store i32 0, i32* %6
br label %59
59: ; preds = %75, %51
%60 = load i32, i32* %6
%61 = load i32, i32* %1
%62 = icmp slt i32 %60, %61
br i1 %62, label %63, label %78
63: ; preds = %59
%64 = load i32, i32* %8
%65 = load i32, i32* %6
%66 = sext i32 %65 to i64
%67 = getelementptr inbounds [5 x [3 x i32]], [5 x [3 x i32]]* %3, i64 0, i64 %66
%68 = load i32, i32* %9
%69 = sext i32 %68 to i64
%70 = getelementptr inbounds [3 x i32], [3 x i32]* %67, i64 0, i64 %69
%71 = load i32, i32* %70
%72 = icmp sgt i32 %64, %71
br i1 %72, label %73, label %74
73: ; preds = %63
store i32 1, i32* %10
br label %74
74: ; preds = %73, %63
br label %75
75: ; preds = %74
%76 = load i32, i32* %6
%77 = add nsw i32 %76, 1
store i32 %77, i32* %6
br label %59
78: ; preds = %59
%79 = load i32, i32* %10
%80 = icmp eq i32 %79, 0
br i1 %80, label %81, label %86
81: ; preds = %78
%82 = load i32, i32* %4
%83 = load i32, i32* %9
%84 = load i32, i32* %8
%85 = call i32 @printf(i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str, i64 0, i64 0), i32 %82, i32 %83, i32 %84)
br label %86
86: ; preds = %81, %78
br label %87
87: ; preds = %86
%88 = load i32, i32* %4
%89 = add nsw i32 %88, 1
store i32 %89, i32* %4
br label %12
90: ; preds = %12
ret void
}

LLVM IR (-O2):
@__const.main.arr = [5 x [3 x i32]] [[3 x i32] [i32 15, i32 40, i32 36], [3 x i32] [i32 50, i32 60, i32 32], [3 x i32] [i32 70, i32 56, i32 23], [3 x i32] [i32 15, i32 35, i32 25], [3 x i32] [i32 60, i32 55, i32 96]]
@.str = [34 x i8] c"The special point is:a[%d][%d]=%d\00"
define void @main() {
br label %1
1: ; preds = %0, %39
%2 = phi i64 [ 0, %0 ], [ %40, %39 ]
%3 = getelementptr inbounds [5 x [3 x i32]], [5 x [3 x i32]]* @__const.main.arr, i64 0, i64 %2, i64 0
%4 = load i32, i32* %3
%5 = getelementptr inbounds [5 x [3 x i32]], [5 x [3 x i32]]* @__const.main.arr, i64 0, i64 %2, i64 1
%6 = load i32, i32* %5
%7 = icmp sgt i32 %6, %4
%8 = select i1 %7, i32 %6, i32 %4
%9 = zext i1 %7 to i32
%10 = getelementptr inbounds [5 x [3 x i32]], [5 x [3 x i32]]* @__const.main.arr, i64 0, i64 %2, i64 2
%11 = load i32, i32* %10
%12 = icmp sgt i32 %11, %8
%13 = select i1 %12, i32 2, i32 %9
%14 = zext i32 %13 to i64
%15 = getelementptr inbounds [5 x [3 x i32]], [5 x [3 x i32]]* @__const.main.arr, i64 0, i64 %2, i64 %14
%16 = load i32, i32* %15
%17 = getelementptr inbounds [5 x [3 x i32]], [5 x [3 x i32]]* @__const.main.arr, i64 0, i64 0, i64 %14
%18 = load i32, i32* %17
%19 = icmp sle i32 %16, %18
%20 = getelementptr inbounds [5 x [3 x i32]], [5 x [3 x i32]]* @__const.main.arr, i64 0, i64 1, i64 %14
%21 = load i32, i32* %20
%22 = icmp sle i32 %16, %21
%23 = getelementptr inbounds [5 x [3 x i32]], [5 x [3 x i32]]* @__const.main.arr, i64 0, i64 2, i64 %14
%24 = load i32, i32* %23
%25 = icmp sle i32 %16, %24
%26 = getelementptr inbounds [5 x [3 x i32]], [5 x [3 x i32]]* @__const.main.arr, i64 0, i64 3, i64 %14
%27 = load i32, i32* %26
%28 = icmp sle i32 %16, %27
%29 = getelementptr inbounds [5 x [3 x i32]], [5 x [3 x i32]]* @__const.main.arr, i64 0, i64 4, i64 %14
%30 = load i32, i32* %29
%31 = icmp sle i32 %16, %30
%32 = select i1 %31, i1 %28, i1 false
%33 = select i1 %32, i1 %25, i1 false
%34 = select i1 %33, i1 %22, i1 false
%35 = select i1 %34, i1 %19, i1 false
br i1 %35, label %36, label %39
36: ; preds = %1
%37 = trunc i64 %2 to i32
%38 = tail call i32 @printf(i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str, i64 0, i64 0), i32 %37, i32 %13, i32 %16)
br label %39
39: ; preds = %1, %36
%40 = add nuw nsw i64 %2, 1
%41 = icmp eq i64 %40, 5
br i1 %41, label %42, label %1
42: ; preds = %39
ret void
}