#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 *, char *);
void show_excuse(int match[], int m, char (*excuse)[70 + 1], int n) {
  int i;
  for (i = 0; i < n; ++i)
    if (match[i] == m)
      printf("%s\n", excuse[i]);
}


x86 assembly (clang, -O0):
<show_excuse>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
mov    %rdx,-0x18(%rbp)
mov    %ecx,-0x1c(%rbp)
movl   $0x0,-0x20(%rbp)
mov    -0x20(%rbp),%eax
cmp    -0x1c(%rbp),%eax
jge    117b <show_excuse+0x6b>
mov    -0x8(%rbp),%rax
movslq -0x20(%rbp),%rcx
mov    (%rax,%rcx,4),%eax
cmp    -0xc(%rbp),%eax
jne    1168 <show_excuse+0x58>
mov    -0x18(%rbp),%rsi
movslq -0x20(%rbp),%rax
imul   $0x47,%rax,%rax
add    %rax,%rsi
lea    0xe9d(%rip),%rdi
call   1030 <printf@plt>
jmp    116d <show_excuse+0x5d>
mov    -0x20(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x20(%rbp)
jmp    112d <show_excuse+0x1d>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<show_excuse>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
push   %rax
test   %ecx,%ecx
jle    1160 <show_excuse+0x50>
mov    %rdx,%rbx
mov    %esi,%r14d
mov    %rdi,%r12
mov    %ecx,%r13d
xor    %ebp,%ebp
lea    0xecc(%rip),%r15
jmp    114d <show_excuse+0x3d>
cs nopw 0x0(%rax,%rax,1)
add    $0x1,%rbp
add    $0x47,%rbx
cmp    %rbp,%r13
je     1160 <show_excuse+0x50>
cmp    %r14d,(%r12,%rbp,4)
jne    1140 <show_excuse+0x30>
mov    %r15,%rdi
mov    %rbx,%rsi
call   1030 <printf@plt>
jmp    1140 <show_excuse+0x30>
add    $0x8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [4 x i8] c"%s\0A\00"
define void @show_excuse(i32* %0, i32 %1, [71 x i8]* %2, i32 %3) {
%5 = alloca i32*
%6 = alloca i32
%7 = alloca [71 x i8]*
%8 = alloca i32
%9 = alloca i32
store i32* %0, i32** %5
store i32 %1, i32* %6
store [71 x i8]* %2, [71 x i8]** %7
store i32 %3, i32* %8
store i32 0, i32* %9
br label %10
10: ; preds = %30, %4
%11 = load i32, i32* %9
%12 = load i32, i32* %8
%13 = icmp slt i32 %11, %12
br i1 %13, label %14, label %33
14: ; preds = %10
%15 = load i32*, i32** %5
%16 = load i32, i32* %9
%17 = sext i32 %16 to i64
%18 = getelementptr inbounds i32, i32* %15, i64 %17
%19 = load i32, i32* %18
%20 = load i32, i32* %6
%21 = icmp eq i32 %19, %20
br i1 %21, label %22, label %29
22: ; preds = %14
%23 = load [71 x i8]*, [71 x i8]** %7
%24 = load i32, i32* %9
%25 = sext i32 %24 to i64
%26 = getelementptr inbounds [71 x i8], [71 x i8]* %23, i64 %25
%27 = getelementptr inbounds [71 x i8], [71 x i8]* %26, i64 0, i64 0
%28 = call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i8* %27)
br label %29
29: ; preds = %22, %14
br label %30
30: ; preds = %29
%31 = load i32, i32* %9
%32 = add nsw i32 %31, 1
store i32 %32, i32* %9
br label %10
33: ; preds = %10
ret void
}

LLVM IR (-O2):
@.str = [4 x i8] c"%s\0A\00"
define void @show_excuse(i32* nocapture %0, i32 %1, [71 x i8]* %2, i32 %3) {
%5 = icmp sgt i32 %3, 0
br i1 %5, label %6, label %19
6: ; preds = %4
%7 = zext i32 %3 to i64
br label %8
8: ; preds = %6, %16
%9 = phi i64 [ 0, %6 ], [ %17, %16 ]
%10 = getelementptr inbounds i32, i32* %0, i64 %9
%11 = load i32, i32* %10
%12 = icmp eq i32 %11, %1
br i1 %12, label %13, label %16
13: ; preds = %8
%14 = getelementptr inbounds [71 x i8], [71 x i8]* %2, i64 %9, i64 0
%15 = tail call i32 @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str, i64 0, i64 0), i8* %14)
br label %16
16: ; preds = %8, %13
%17 = add nuw nsw i64 %9, 1
%18 = icmp eq i64 %17, %7
br i1 %18, label %19, label %8
19: ; preds = %16, %4
ret void
}