#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 */
bool compare_letter_counts(int *letters_a, int *letters_b) {
  for (int c = 0; c < 26; c++) {
    if (letters_a[c] != letters_b[c])
      return false;
  }
  return true;
}


x86 assembly (clang, -O0):
<compare_letter_counts>:
push   %rbp
mov    %rsp,%rbp
mov    %rdi,-0x10(%rbp)
mov    %rsi,-0x18(%rbp)
movl   $0x0,-0x1c(%rbp)
cmpl   $0x1a,-0x1c(%rbp)
jge    1158 <compare_letter_counts+0x58>
mov    -0x10(%rbp),%rax
movslq -0x1c(%rbp),%rcx
mov    (%rax,%rcx,4),%eax
mov    -0x18(%rbp),%rcx
movslq -0x1c(%rbp),%rdx
cmp    (%rcx,%rdx,4),%eax
je     1145 <compare_letter_counts+0x45>
movl   $0x0,-0x4(%rbp)
jmp    115f <compare_letter_counts+0x5f>
jmp    114a <compare_letter_counts+0x4a>
mov    -0x1c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x1c(%rbp)
jmp    1113 <compare_letter_counts+0x13>
movl   $0x1,-0x4(%rbp)
mov    -0x4(%rbp),%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<compare_letter_counts>:
mov    (%rdi),%ecx
mov    $0x1,%r8b
cmp    (%rsi),%ecx
jne    1143 <compare_letter_counts+0x43>
mov    $0xffffffffffffffff,%rcx
mov    0x8(%rdi,%rcx,4),%edx
cmp    0x8(%rsi,%rcx,4),%edx
jne    1143 <compare_letter_counts+0x43>
cmp    $0x17,%rcx
je     1137 <compare_letter_counts+0x37>
mov    0xc(%rdi,%rcx,4),%eax
lea    0x2(%rcx),%rdx
cmp    0xc(%rsi,%rcx,4),%eax
mov    %rdx,%rcx
je     1110 <compare_letter_counts+0x10>
cmp    $0x19,%rdx
jmp    113f <compare_letter_counts+0x3f>
add    $0x2,%rcx
cmp    $0x19,%rcx
setb   %r8b
xor    $0x1,%r8b
movzbl %r8b,%eax
ret

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

LLVM IR (-O2):
define i32 @compare_letter_counts(i32* nocapture %0, i32* nocapture %1) {
%3 = load i32, i32* %0
%4 = load i32, i32* %1
%5 = icmp eq i32 %3, %4
br i1 %5, label %6, label %27
6: ; preds = %2, %17
%7 = phi i64 [ %15, %17 ], [ 0, %2 ]
%8 = or i64 %7, 1
%9 = getelementptr inbounds i32, i32* %0, i64 %8
%10 = load i32, i32* %9
%11 = getelementptr inbounds i32, i32* %1, i64 %8
%12 = load i32, i32* %11
%13 = icmp eq i32 %10, %12
br i1 %13, label %14, label %27
14: ; preds = %6
%15 = add nuw nsw i64 %7, 2
%16 = icmp eq i64 %15, 26
br i1 %16, label %25, label %17
17: ; preds = %14
%18 = getelementptr inbounds i32, i32* %0, i64 %15
%19 = load i32, i32* %18
%20 = getelementptr inbounds i32, i32* %1, i64 %15
%21 = load i32, i32* %20
%22 = icmp eq i32 %19, %21
br i1 %22, label %6, label %23
23: ; preds = %17
%24 = icmp ult i64 %8, 25
br label %27
25: ; preds = %14
%26 = icmp ult i64 %8, 25
br label %27
27: ; preds = %23, %25, %6, %2
%28 = phi i1 [ true, %2 ], [ %24, %23 ], [ %26, %25 ], [ true, %6 ]
%29 = xor i1 %28, true
%30 = zext i1 %29 to i32
ret i32 %30
}