#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*/ bar(int ***);
void foo(int a[10][10][10], int **b, int x) {
  int c[10][10][0];
  int d[0];
  char e[12];
#pragma omp parallel reduction(+ : a[:4][:0][:7])
  bar(a);
#pragma omp parallel reduction(+ : b[:7] [0:0][:0])
  bar(a);
#pragma omp parallel reduction(+ : c[:][:] [0:])
  bar(a);
#pragma omp parallel reduction(+ : a[:4][:0][:x])
  bar(a);
#pragma omp parallel reduction(+ : b[:x] [0:0][:0])
  bar(a);
#pragma omp parallel reduction(+ : c[:][:x] [0:])
  bar(a);
#pragma omp parallel reduction(+ : d)
  bar(a);
#pragma omp parallel reduction(+ : a [0:4])
  bar(a);
#pragma omp parallel reduction(+ : a [2:4])
  bar(a);
#pragma omp parallel reduction(+ : e [2:4])
  bar(a);
#pragma omp parallel reduction(+ : a [x:4])
  bar(a);
#pragma omp parallel reduction(+ : e [x:4])
  bar(a);
#pragma omp parallel reduction(+ : a [x:x])
  bar(a);
#pragma omp parallel reduction(+ : e [x:x])
  bar(a);
#pragma omp parallel reduction(+ : a [0.5:2])
  bar(a);
#pragma omp parallel reduction(+ : a [0:2.5])
  bar(a);
#pragma omp parallel reduction(+ : f[:] [0:2])
  bar(a);
#pragma omp parallel reduction(+ : a[:] [0:10])
  bar(a);
#pragma omp parallel reduction(+ : a[:10] [0:12])
  bar(a);
#pragma omp parallel reduction(+ : b [0:10] [0:10])
  bar(a);
#pragma omp parallel reduction(+ : a [0:2] [0:9])
  bar(a);
#pragma omp parallel reduction(+ : f)
  bar(a);
#pragma omp parallel reduction(+ : g)
  bar(a);
}


x86 assembly (clang, -O0):
<foo>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %edx,-0x14(%rbp)
mov    -0x8(%rbp),%rdi
call   1030 <bar@plt>
mov    -0x8(%rbp),%rdi
call   1030 <bar@plt>
mov    -0x8(%rbp),%rdi
call   1030 <bar@plt>
mov    -0x8(%rbp),%rdi
call   1030 <bar@plt>
mov    -0x8(%rbp),%rdi
call   1030 <bar@plt>
mov    -0x8(%rbp),%rdi
call   1030 <bar@plt>
mov    -0x8(%rbp),%rdi
call   1030 <bar@plt>
mov    -0x8(%rbp),%rdi
call   1030 <bar@plt>
mov    -0x8(%rbp),%rdi
call   1030 <bar@plt>
mov    -0x8(%rbp),%rdi
call   1030 <bar@plt>
mov    -0x8(%rbp),%rdi
call   1030 <bar@plt>
mov    -0x8(%rbp),%rdi
call   1030 <bar@plt>
mov    -0x8(%rbp),%rdi
call   1030 <bar@plt>
mov    -0x8(%rbp),%rdi
call   1030 <bar@plt>
mov    -0x8(%rbp),%rdi
call   1030 <bar@plt>
mov    -0x8(%rbp),%rdi
call   1030 <bar@plt>
mov    -0x8(%rbp),%rdi
call   1030 <bar@plt>
mov    -0x8(%rbp),%rdi
call   1030 <bar@plt>
mov    -0x8(%rbp),%rdi
call   1030 <bar@plt>
mov    -0x8(%rbp),%rdi
call   1030 <bar@plt>
mov    -0x8(%rbp),%rdi
call   1030 <bar@plt>
mov    -0x8(%rbp),%rdi
call   1030 <bar@plt>
mov    -0x8(%rbp),%rdi
call   1030 <bar@plt>
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<foo>:
push   %rbx
mov    %rdi,%rbx
call   1030 <bar@plt>
mov    %rbx,%rdi
call   1030 <bar@plt>
mov    %rbx,%rdi
call   1030 <bar@plt>
mov    %rbx,%rdi
call   1030 <bar@plt>
mov    %rbx,%rdi
call   1030 <bar@plt>
mov    %rbx,%rdi
call   1030 <bar@plt>
mov    %rbx,%rdi
call   1030 <bar@plt>
mov    %rbx,%rdi
call   1030 <bar@plt>
mov    %rbx,%rdi
call   1030 <bar@plt>
mov    %rbx,%rdi
call   1030 <bar@plt>
mov    %rbx,%rdi
call   1030 <bar@plt>
mov    %rbx,%rdi
call   1030 <bar@plt>
mov    %rbx,%rdi
call   1030 <bar@plt>
mov    %rbx,%rdi
call   1030 <bar@plt>
mov    %rbx,%rdi
call   1030 <bar@plt>
mov    %rbx,%rdi
call   1030 <bar@plt>
mov    %rbx,%rdi
call   1030 <bar@plt>
mov    %rbx,%rdi
call   1030 <bar@plt>
mov    %rbx,%rdi
call   1030 <bar@plt>
mov    %rbx,%rdi
call   1030 <bar@plt>
mov    %rbx,%rdi
call   1030 <bar@plt>
mov    %rbx,%rdi
call   1030 <bar@plt>
mov    %rbx,%rdi
pop    %rbx
jmp    1030 <bar@plt>

LLVM IR (-O0):
define void @foo([10 x [10 x i32]]* %0, i32** %1, i32 %2) {
%4 = alloca [10 x [10 x i32]]*
%5 = alloca i32**
%6 = alloca i32
%7 = alloca [10 x [10 x [0 x i32]]]
%8 = alloca [0 x i32]
%9 = alloca [12 x i8]
store [10 x [10 x i32]]* %0, [10 x [10 x i32]]** %4
store i32** %1, i32*** %5
store i32 %2, i32* %6
%10 = load [10 x [10 x i32]]*, [10 x [10 x i32]]** %4
%11 = bitcast [10 x [10 x i32]]* %10 to i32***
%12 = call i32 @bar(i32*** %11)
%13 = load [10 x [10 x i32]]*, [10 x [10 x i32]]** %4
%14 = bitcast [10 x [10 x i32]]* %13 to i32***
%15 = call i32 @bar(i32*** %14)
%16 = load [10 x [10 x i32]]*, [10 x [10 x i32]]** %4
%17 = bitcast [10 x [10 x i32]]* %16 to i32***
%18 = call i32 @bar(i32*** %17)
%19 = load [10 x [10 x i32]]*, [10 x [10 x i32]]** %4
%20 = bitcast [10 x [10 x i32]]* %19 to i32***
%21 = call i32 @bar(i32*** %20)
%22 = load [10 x [10 x i32]]*, [10 x [10 x i32]]** %4
%23 = bitcast [10 x [10 x i32]]* %22 to i32***
%24 = call i32 @bar(i32*** %23)
%25 = load [10 x [10 x i32]]*, [10 x [10 x i32]]** %4
%26 = bitcast [10 x [10 x i32]]* %25 to i32***
%27 = call i32 @bar(i32*** %26)
%28 = load [10 x [10 x i32]]*, [10 x [10 x i32]]** %4
%29 = bitcast [10 x [10 x i32]]* %28 to i32***
%30 = call i32 @bar(i32*** %29)
%31 = load [10 x [10 x i32]]*, [10 x [10 x i32]]** %4
%32 = bitcast [10 x [10 x i32]]* %31 to i32***
%33 = call i32 @bar(i32*** %32)
%34 = load [10 x [10 x i32]]*, [10 x [10 x i32]]** %4
%35 = bitcast [10 x [10 x i32]]* %34 to i32***
%36 = call i32 @bar(i32*** %35)
%37 = load [10 x [10 x i32]]*, [10 x [10 x i32]]** %4
%38 = bitcast [10 x [10 x i32]]* %37 to i32***
%39 = call i32 @bar(i32*** %38)
%40 = load [10 x [10 x i32]]*, [10 x [10 x i32]]** %4
%41 = bitcast [10 x [10 x i32]]* %40 to i32***
%42 = call i32 @bar(i32*** %41)
%43 = load [10 x [10 x i32]]*, [10 x [10 x i32]]** %4
%44 = bitcast [10 x [10 x i32]]* %43 to i32***
%45 = call i32 @bar(i32*** %44)
%46 = load [10 x [10 x i32]]*, [10 x [10 x i32]]** %4
%47 = bitcast [10 x [10 x i32]]* %46 to i32***
%48 = call i32 @bar(i32*** %47)
%49 = load [10 x [10 x i32]]*, [10 x [10 x i32]]** %4
%50 = bitcast [10 x [10 x i32]]* %49 to i32***
%51 = call i32 @bar(i32*** %50)
%52 = load [10 x [10 x i32]]*, [10 x [10 x i32]]** %4
%53 = bitcast [10 x [10 x i32]]* %52 to i32***
%54 = call i32 @bar(i32*** %53)
%55 = load [10 x [10 x i32]]*, [10 x [10 x i32]]** %4
%56 = bitcast [10 x [10 x i32]]* %55 to i32***
%57 = call i32 @bar(i32*** %56)
%58 = load [10 x [10 x i32]]*, [10 x [10 x i32]]** %4
%59 = bitcast [10 x [10 x i32]]* %58 to i32***
%60 = call i32 @bar(i32*** %59)
%61 = load [10 x [10 x i32]]*, [10 x [10 x i32]]** %4
%62 = bitcast [10 x [10 x i32]]* %61 to i32***
%63 = call i32 @bar(i32*** %62)
%64 = load [10 x [10 x i32]]*, [10 x [10 x i32]]** %4
%65 = bitcast [10 x [10 x i32]]* %64 to i32***
%66 = call i32 @bar(i32*** %65)
%67 = load [10 x [10 x i32]]*, [10 x [10 x i32]]** %4
%68 = bitcast [10 x [10 x i32]]* %67 to i32***
%69 = call i32 @bar(i32*** %68)
%70 = load [10 x [10 x i32]]*, [10 x [10 x i32]]** %4
%71 = bitcast [10 x [10 x i32]]* %70 to i32***
%72 = call i32 @bar(i32*** %71)
%73 = load [10 x [10 x i32]]*, [10 x [10 x i32]]** %4
%74 = bitcast [10 x [10 x i32]]* %73 to i32***
%75 = call i32 @bar(i32*** %74)
%76 = load [10 x [10 x i32]]*, [10 x [10 x i32]]** %4
%77 = bitcast [10 x [10 x i32]]* %76 to i32***
%78 = call i32 @bar(i32*** %77)
ret void
}

LLVM IR (-O2):
define void @foo([10 x [10 x i32]]* %0, i32** nocapture readnone %1, i32 %2) {
%4 = bitcast [10 x [10 x i32]]* %0 to i32***
%5 = tail call i32 @bar(i32*** %4)
%6 = tail call i32 @bar(i32*** %4)
%7 = tail call i32 @bar(i32*** %4)
%8 = tail call i32 @bar(i32*** %4)
%9 = tail call i32 @bar(i32*** %4)
%10 = tail call i32 @bar(i32*** %4)
%11 = tail call i32 @bar(i32*** %4)
%12 = tail call i32 @bar(i32*** %4)
%13 = tail call i32 @bar(i32*** %4)
%14 = tail call i32 @bar(i32*** %4)
%15 = tail call i32 @bar(i32*** %4)
%16 = tail call i32 @bar(i32*** %4)
%17 = tail call i32 @bar(i32*** %4)
%18 = tail call i32 @bar(i32*** %4)
%19 = tail call i32 @bar(i32*** %4)
%20 = tail call i32 @bar(i32*** %4)
%21 = tail call i32 @bar(i32*** %4)
%22 = tail call i32 @bar(i32*** %4)
%23 = tail call i32 @bar(i32*** %4)
%24 = tail call i32 @bar(i32*** %4)
%25 = tail call i32 @bar(i32*** %4)
%26 = tail call i32 @bar(i32*** %4)
%27 = tail call i32 @bar(i32*** %4)
ret void
}