#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*/ haeufigkeitsverteilung_maxima_char_array(char *, int, int *);
void haeufigkeitsverteilung_maxima_2dim_char_array(int zeilen, int spalten,
                                                   char **array, int *maxima) {
  for (int i = 0; i < zeilen; i++) {
    haeufigkeitsverteilung_maxima_char_array(array[i], spalten, maxima);
  }
}


x86 assembly (clang, -O0):
<haeufigkeitsverteilung_maxima_2dim_char_array>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
mov    %rdx,-0x10(%rbp)
mov    %rcx,-0x18(%rbp)
movl   $0x0,-0x1c(%rbp)
mov    -0x1c(%rbp),%eax
cmp    -0x4(%rbp),%eax
jge    115f <haeufigkeitsverteilung_maxima_2dim_char_array+0x4f>
mov    -0x10(%rbp),%rax
movslq -0x1c(%rbp),%rcx
mov    (%rax,%rcx,8),%rdi
mov    -0x8(%rbp),%esi
mov    -0x18(%rbp),%rdx
call   1030 <haeufigkeitsverteilung_maxima_char_array@plt>
mov    -0x1c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x1c(%rbp)
jmp    112d <haeufigkeitsverteilung_maxima_2dim_char_array+0x1d>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<haeufigkeitsverteilung_maxima_2dim_char_array>:
push   %rbp
push   %r15
push   %r14
push   %r12
push   %rbx
test   %edi,%edi
jle    1148 <haeufigkeitsverteilung_maxima_2dim_char_array+0x38>
mov    %rcx,%r14
mov    %rdx,%r15
mov    %esi,%r12d
mov    %edi,%ebx
xor    %ebp,%ebp
nopl   0x0(%rax)
mov    (%r15,%rbp,8),%rdi
mov    %r12d,%esi
mov    %r14,%rdx
call   1030 <haeufigkeitsverteilung_maxima_char_array@plt>
add    $0x1,%rbp
cmp    %rbp,%rbx
jne    1130 <haeufigkeitsverteilung_maxima_2dim_char_array+0x20>
pop    %rbx
pop    %r12
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
define void @haeufigkeitsverteilung_maxima_2dim_char_array(i32 %0, i32 %1, i8** %2, i32* %3) {
%5 = alloca i32
%6 = alloca i32
%7 = alloca i8**
%8 = alloca i32*
%9 = alloca i32
store i32 %0, i32* %5
store i32 %1, i32* %6
store i8** %2, i8*** %7
store i32* %3, i32** %8
store i32 0, i32* %9
br label %10
10: ; preds = %23, %4
%11 = load i32, i32* %9
%12 = load i32, i32* %5
%13 = icmp slt i32 %11, %12
br i1 %13, label %14, label %26
14: ; preds = %10
%15 = load i8**, i8*** %7
%16 = load i32, i32* %9
%17 = sext i32 %16 to i64
%18 = getelementptr inbounds i8*, i8** %15, i64 %17
%19 = load i8*, i8** %18
%20 = load i32, i32* %6
%21 = load i32*, i32** %8
%22 = call i32 @haeufigkeitsverteilung_maxima_char_array(i8* %19, i32 %20, i32* %21)
br label %23
23: ; preds = %14
%24 = load i32, i32* %9
%25 = add nsw i32 %24, 1
store i32 %25, i32* %9
br label %10
26: ; preds = %10
ret void
}

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