#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*/ recognize(double **, double *, double *, int, int);
void groupRecognize(double **neurons, double **images, double **result,
                    int num_images, int rec_images_num, int data_dim) {
  int i;
  for (i = 0; i < num_images; i++) {
    recognize(neurons, images[i], result[i], rec_images_num, data_dim);
  }
}


x86 assembly (clang, -O0):
<groupRecognize>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    %ecx,-0x1c(%rbp)
mov    %r8d,-0x20(%rbp)
mov    %r9d,-0x24(%rbp)
movl   $0x0,-0x28(%rbp)
mov    -0x28(%rbp),%eax
cmp    -0x1c(%rbp),%eax
jge    1178 <groupRecognize+0x68>
mov    -0x8(%rbp),%rdi
mov    -0x10(%rbp),%rax
movslq -0x28(%rbp),%rcx
mov    (%rax,%rcx,8),%rsi
mov    -0x18(%rbp),%rax
movslq -0x28(%rbp),%rcx
mov    (%rax,%rcx,8),%rdx
mov    -0x20(%rbp),%ecx
mov    -0x24(%rbp),%r8d
call   1030 <recognize@plt>
mov    -0x28(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x28(%rbp)
jmp    1136 <groupRecognize+0x26>
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<groupRecognize>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
push   %rax
test   %ecx,%ecx
jle    1161 <groupRecognize+0x51>
mov    %r9d,%r15d
mov    %r8d,%r12d
mov    %rdx,%r13
mov    %rsi,%rbx
mov    %rdi,%rbp
mov    %ecx,%eax
mov    %rax,(%rsp)
xor    %r14d,%r14d
nopw   0x0(%rax,%rax,1)
mov    (%rbx,%r14,8),%rsi
mov    0x0(%r13,%r14,8),%rdx
mov    %rbp,%rdi
mov    %r12d,%ecx
mov    %r15d,%r8d
call   1030 <recognize@plt>
add    $0x1,%r14
cmp    %r14,(%rsp)
jne    1140 <groupRecognize+0x30>
add    $0x8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
define void @groupRecognize(double** %0, double** %1, double** %2, i32 %3, i32 %4, i32 %5) {
%7 = alloca double**
%8 = alloca double**
%9 = alloca double**
%10 = alloca i32
%11 = alloca i32
%12 = alloca i32
%13 = alloca i32
store double** %0, double*** %7
store double** %1, double*** %8
store double** %2, double*** %9
store i32 %3, i32* %10
store i32 %4, i32* %11
store i32 %5, i32* %12
store i32 0, i32* %13
br label %14
14: ; preds = %33, %6
%15 = load i32, i32* %13
%16 = load i32, i32* %10
%17 = icmp slt i32 %15, %16
br i1 %17, label %18, label %36
18: ; preds = %14
%19 = load double**, double*** %7
%20 = load double**, double*** %8
%21 = load i32, i32* %13
%22 = sext i32 %21 to i64
%23 = getelementptr inbounds double*, double** %20, i64 %22
%24 = load double*, double** %23
%25 = load double**, double*** %9
%26 = load i32, i32* %13
%27 = sext i32 %26 to i64
%28 = getelementptr inbounds double*, double** %25, i64 %27
%29 = load double*, double** %28
%30 = load i32, i32* %11
%31 = load i32, i32* %12
%32 = call i32 @recognize(double** %19, double* %24, double* %29, i32 %30, i32 %31)
br label %33
33: ; preds = %18
%34 = load i32, i32* %13
%35 = add nsw i32 %34, 1
store i32 %35, i32* %13
br label %14
36: ; preds = %14
ret void
}

LLVM IR (-O2):
define void @groupRecognize(double** %0, double** nocapture %1, double** nocapture %2, i32 %3, i32 %4, i32 %5) {
%7 = icmp sgt i32 %3, 0
br i1 %7, label %8, label %19
8: ; preds = %6
%9 = zext i32 %3 to i64
br label %10
10: ; preds = %8, %10
%11 = phi i64 [ 0, %8 ], [ %17, %10 ]
%12 = getelementptr inbounds double*, double** %1, i64 %11
%13 = load double*, double** %12
%14 = getelementptr inbounds double*, double** %2, i64 %11
%15 = load double*, double** %14
%16 = tail call i32 @recognize(double** %0, double* %13, double* %15, i32 %4, i32 %5)
%17 = add nuw nsw i64 %11, 1
%18 = icmp eq i64 %17, %9
br i1 %18, label %19, label %10
19: ; preds = %10, %6
ret void
}