#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 */
scalar_t__ ends_with(char const *, char *);
int is_audio(const char *file) {
  return (ends_with(file, ".mp3") || ends_with(file, ".flac") ||
          ends_with(file, ".wma") || ends_with(file, ".asf") ||
          ends_with(file, ".fla") || ends_with(file, ".flc") ||
          ends_with(file, ".m4a") || ends_with(file, ".aac") ||
          ends_with(file, ".mp4") || ends_with(file, ".m4p") ||
          ends_with(file, ".wav") || ends_with(file, ".ogg") ||
          ends_with(file, ".pcm") || ends_with(file, ".3gp"));
}


x86 assembly (clang, -O0):
<is_audio>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rdi
lea    0xed9(%rip),%rsi
call   1030 <ends_with@plt>
mov    %rax,%rcx
mov    $0x1,%al
cmp    $0x0,%rcx
mov    %al,-0x9(%rbp)
jne    12f0 <is_audio+0x1e0>
mov    -0x8(%rbp),%rdi
lea    0xebc(%rip),%rsi
call   1030 <ends_with@plt>
mov    %rax,%rcx
mov    $0x1,%al
cmp    $0x0,%rcx
mov    %al,-0x9(%rbp)
jne    12f0 <is_audio+0x1e0>
mov    -0x8(%rbp),%rdi
lea    0xea0(%rip),%rsi
call   1030 <ends_with@plt>
mov    %rax,%rcx
mov    $0x1,%al
cmp    $0x0,%rcx
mov    %al,-0x9(%rbp)
jne    12f0 <is_audio+0x1e0>
mov    -0x8(%rbp),%rdi
lea    0xe83(%rip),%rsi
call   1030 <ends_with@plt>
mov    %rax,%rcx
mov    $0x1,%al
cmp    $0x0,%rcx
mov    %al,-0x9(%rbp)
jne    12f0 <is_audio+0x1e0>
mov    -0x8(%rbp),%rdi
lea    0xe66(%rip),%rsi
call   1030 <ends_with@plt>
mov    %rax,%rcx
mov    $0x1,%al
cmp    $0x0,%rcx
mov    %al,-0x9(%rbp)
jne    12f0 <is_audio+0x1e0>
mov    -0x8(%rbp),%rdi
lea    0xe49(%rip),%rsi
call   1030 <ends_with@plt>
mov    %rax,%rcx
mov    $0x1,%al
cmp    $0x0,%rcx
mov    %al,-0x9(%rbp)
jne    12f0 <is_audio+0x1e0>
mov    -0x8(%rbp),%rdi
lea    0xe2c(%rip),%rsi
call   1030 <ends_with@plt>
mov    %rax,%rcx
mov    $0x1,%al
cmp    $0x0,%rcx
mov    %al,-0x9(%rbp)
jne    12f0 <is_audio+0x1e0>
mov    -0x8(%rbp),%rdi
lea    0xe0f(%rip),%rsi
call   1030 <ends_with@plt>
mov    %rax,%rcx
mov    $0x1,%al
cmp    $0x0,%rcx
mov    %al,-0x9(%rbp)
jne    12f0 <is_audio+0x1e0>
mov    -0x8(%rbp),%rdi
lea    0xdf2(%rip),%rsi
call   1030 <ends_with@plt>
mov    %rax,%rcx
mov    $0x1,%al
cmp    $0x0,%rcx
mov    %al,-0x9(%rbp)
jne    12f0 <is_audio+0x1e0>
mov    -0x8(%rbp),%rdi
lea    0xdd5(%rip),%rsi
call   1030 <ends_with@plt>
mov    %rax,%rcx
mov    $0x1,%al
cmp    $0x0,%rcx
mov    %al,-0x9(%rbp)
jne    12f0 <is_audio+0x1e0>
mov    -0x8(%rbp),%rdi
lea    0xdb8(%rip),%rsi
call   1030 <ends_with@plt>
mov    %rax,%rcx
mov    $0x1,%al
cmp    $0x0,%rcx
mov    %al,-0x9(%rbp)
jne    12f0 <is_audio+0x1e0>
mov    -0x8(%rbp),%rdi
lea    0xd9b(%rip),%rsi
call   1030 <ends_with@plt>
mov    %rax,%rcx
mov    $0x1,%al
cmp    $0x0,%rcx
mov    %al,-0x9(%rbp)
jne    12f0 <is_audio+0x1e0>
mov    -0x8(%rbp),%rdi
lea    0xd7e(%rip),%rsi
call   1030 <ends_with@plt>
mov    %rax,%rcx
mov    $0x1,%al
cmp    $0x0,%rcx
mov    %al,-0x9(%rbp)
jne    12f0 <is_audio+0x1e0>
mov    -0x8(%rbp),%rdi
lea    0xd61(%rip),%rsi
call   1030 <ends_with@plt>
cmp    $0x0,%rax
setne  %al
mov    %al,-0x9(%rbp)
mov    -0x9(%rbp),%al
and    $0x1,%al
movzbl %al,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<is_audio>:
push   %rbp
push   %rbx
push   %rax
mov    %rdi,%rbx
lea    0xee3(%rip),%rsi
call   1030 <ends_with@plt>
mov    $0x1,%ebp
test   %rax,%rax
jne    1250 <is_audio+0x140>
lea    0xece(%rip),%rsi
mov    %rbx,%rdi
call   1030 <ends_with@plt>
test   %rax,%rax
jne    1250 <is_audio+0x140>
lea    0xebc(%rip),%rsi
mov    %rbx,%rdi
call   1030 <ends_with@plt>
test   %rax,%rax
jne    1250 <is_audio+0x140>
lea    0xea9(%rip),%rsi
mov    %rbx,%rdi
call   1030 <ends_with@plt>
test   %rax,%rax
jne    1250 <is_audio+0x140>
lea    0xe96(%rip),%rsi
mov    %rbx,%rdi
call   1030 <ends_with@plt>
test   %rax,%rax
jne    1250 <is_audio+0x140>
lea    0xe83(%rip),%rsi
mov    %rbx,%rdi
call   1030 <ends_with@plt>
test   %rax,%rax
jne    1250 <is_audio+0x140>
lea    0xe70(%rip),%rsi
mov    %rbx,%rdi
call   1030 <ends_with@plt>
test   %rax,%rax
jne    1250 <is_audio+0x140>
lea    0xe5d(%rip),%rsi
mov    %rbx,%rdi
call   1030 <ends_with@plt>
test   %rax,%rax
jne    1250 <is_audio+0x140>
lea    0xe4e(%rip),%rsi
mov    %rbx,%rdi
call   1030 <ends_with@plt>
test   %rax,%rax
jne    1250 <is_audio+0x140>
lea    0xe3f(%rip),%rsi
mov    %rbx,%rdi
call   1030 <ends_with@plt>
test   %rax,%rax
jne    1250 <is_audio+0x140>
lea    0xe30(%rip),%rsi
mov    %rbx,%rdi
call   1030 <ends_with@plt>
test   %rax,%rax
jne    1250 <is_audio+0x140>
lea    0xe21(%rip),%rsi
mov    %rbx,%rdi
call   1030 <ends_with@plt>
test   %rax,%rax
jne    1250 <is_audio+0x140>
lea    0xe12(%rip),%rsi
mov    %rbx,%rdi
call   1030 <ends_with@plt>
test   %rax,%rax
jne    1250 <is_audio+0x140>
lea    0xe03(%rip),%rsi
mov    %rbx,%rdi
call   1030 <ends_with@plt>
xor    %ebp,%ebp
test   %rax,%rax
setne  %bpl
mov    %ebp,%eax
add    $0x8,%rsp
pop    %rbx
pop    %rbp
ret

LLVM IR (-O0):
@.str = [5 x i8] c".mp3\00"
@.str.1 = [6 x i8] c".flac\00"
@.str.2 = [5 x i8] c".wma\00"
@.str.3 = [5 x i8] c".asf\00"
@.str.4 = [5 x i8] c".fla\00"
@.str.5 = [5 x i8] c".flc\00"
@.str.6 = [5 x i8] c".m4a\00"
@.str.7 = [5 x i8] c".aac\00"
@.str.8 = [5 x i8] c".mp4\00"
@.str.9 = [5 x i8] c".m4p\00"
@.str.10 = [5 x i8] c".wav\00"
@.str.11 = [5 x i8] c".ogg\00"
@.str.12 = [5 x i8] c".pcm\00"
@.str.13 = [5 x i8] c".3gp\00"
define i32 @is_audio(i8* %0) {
%2 = alloca i8*
store i8* %0, i8** %2
%3 = load i8*, i8** %2
%4 = call i64 @ends_with(i8* %3, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0))
%5 = icmp ne i64 %4, 0
br i1 %5, label %58, label %6
6: ; preds = %1
%7 = load i8*, i8** %2
%8 = call i64 @ends_with(i8* %7, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0))
%9 = icmp ne i64 %8, 0
br i1 %9, label %58, label %10
10: ; preds = %6
%11 = load i8*, i8** %2
%12 = call i64 @ends_with(i8* %11, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0))
%13 = icmp ne i64 %12, 0
br i1 %13, label %58, label %14
14: ; preds = %10
%15 = load i8*, i8** %2
%16 = call i64 @ends_with(i8* %15, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i64 0, i64 0))
%17 = icmp ne i64 %16, 0
br i1 %17, label %58, label %18
18: ; preds = %14
%19 = load i8*, i8** %2
%20 = call i64 @ends_with(i8* %19, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.4, i64 0, i64 0))
%21 = icmp ne i64 %20, 0
br i1 %21, label %58, label %22
22: ; preds = %18
%23 = load i8*, i8** %2
%24 = call i64 @ends_with(i8* %23, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.5, i64 0, i64 0))
%25 = icmp ne i64 %24, 0
br i1 %25, label %58, label %26
26: ; preds = %22
%27 = load i8*, i8** %2
%28 = call i64 @ends_with(i8* %27, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.6, i64 0, i64 0))
%29 = icmp ne i64 %28, 0
br i1 %29, label %58, label %30
30: ; preds = %26
%31 = load i8*, i8** %2
%32 = call i64 @ends_with(i8* %31, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.7, i64 0, i64 0))
%33 = icmp ne i64 %32, 0
br i1 %33, label %58, label %34
34: ; preds = %30
%35 = load i8*, i8** %2
%36 = call i64 @ends_with(i8* %35, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.8, i64 0, i64 0))
%37 = icmp ne i64 %36, 0
br i1 %37, label %58, label %38
38: ; preds = %34
%39 = load i8*, i8** %2
%40 = call i64 @ends_with(i8* %39, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.9, i64 0, i64 0))
%41 = icmp ne i64 %40, 0
br i1 %41, label %58, label %42
42: ; preds = %38
%43 = load i8*, i8** %2
%44 = call i64 @ends_with(i8* %43, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.10, i64 0, i64 0))
%45 = icmp ne i64 %44, 0
br i1 %45, label %58, label %46
46: ; preds = %42
%47 = load i8*, i8** %2
%48 = call i64 @ends_with(i8* %47, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.11, i64 0, i64 0))
%49 = icmp ne i64 %48, 0
br i1 %49, label %58, label %50
50: ; preds = %46
%51 = load i8*, i8** %2
%52 = call i64 @ends_with(i8* %51, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.12, i64 0, i64 0))
%53 = icmp ne i64 %52, 0
br i1 %53, label %58, label %54
54: ; preds = %50
%55 = load i8*, i8** %2
%56 = call i64 @ends_with(i8* %55, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.13, i64 0, i64 0))
%57 = icmp ne i64 %56, 0
br label %58
58: ; preds = %54, %50, %46, %42, %38, %34, %30, %26, %22, %18, %14, %10, %6, %1
%59 = phi i1 [ true, %50 ], [ true, %46 ], [ true, %42 ], [ true, %38 ], [ true, %34 ], [ true, %30 ], [ true, %26 ], [ true, %22 ], [ true, %18 ], [ true, %14 ], [ true, %10 ], [ true, %6 ], [ true, %1 ], [ %57, %54 ]
%60 = zext i1 %59 to i32
ret i32 %60
}

LLVM IR (-O2):
@.str = [5 x i8] c".mp3\00"
@.str.1 = [6 x i8] c".flac\00"
@.str.2 = [5 x i8] c".wma\00"
@.str.3 = [5 x i8] c".asf\00"
@.str.4 = [5 x i8] c".fla\00"
@.str.5 = [5 x i8] c".flc\00"
@.str.6 = [5 x i8] c".m4a\00"
@.str.7 = [5 x i8] c".aac\00"
@.str.8 = [5 x i8] c".mp4\00"
@.str.9 = [5 x i8] c".m4p\00"
@.str.10 = [5 x i8] c".wav\00"
@.str.11 = [5 x i8] c".ogg\00"
@.str.12 = [5 x i8] c".pcm\00"
@.str.13 = [5 x i8] c".3gp\00"
define i32 @is_audio(i8* %0) {
%2 = tail call i64 @ends_with(i8* %0, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0))
%3 = icmp eq i64 %2, 0
br i1 %3, label %4, label %44
4: ; preds = %1
%5 = tail call i64 @ends_with(i8* %0, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0))
%6 = icmp eq i64 %5, 0
br i1 %6, label %7, label %44
7: ; preds = %4
%8 = tail call i64 @ends_with(i8* %0, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0))
%9 = icmp eq i64 %8, 0
br i1 %9, label %10, label %44
10: ; preds = %7
%11 = tail call i64 @ends_with(i8* %0, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i64 0, i64 0))
%12 = icmp eq i64 %11, 0
br i1 %12, label %13, label %44
13: ; preds = %10
%14 = tail call i64 @ends_with(i8* %0, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.4, i64 0, i64 0))
%15 = icmp eq i64 %14, 0
br i1 %15, label %16, label %44
16: ; preds = %13
%17 = tail call i64 @ends_with(i8* %0, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.5, i64 0, i64 0))
%18 = icmp eq i64 %17, 0
br i1 %18, label %19, label %44
19: ; preds = %16
%20 = tail call i64 @ends_with(i8* %0, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.6, i64 0, i64 0))
%21 = icmp eq i64 %20, 0
br i1 %21, label %22, label %44
22: ; preds = %19
%23 = tail call i64 @ends_with(i8* %0, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.7, i64 0, i64 0))
%24 = icmp eq i64 %23, 0
br i1 %24, label %25, label %44
25: ; preds = %22
%26 = tail call i64 @ends_with(i8* %0, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.8, i64 0, i64 0))
%27 = icmp eq i64 %26, 0
br i1 %27, label %28, label %44
28: ; preds = %25
%29 = tail call i64 @ends_with(i8* %0, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.9, i64 0, i64 0))
%30 = icmp eq i64 %29, 0
br i1 %30, label %31, label %44
31: ; preds = %28
%32 = tail call i64 @ends_with(i8* %0, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.10, i64 0, i64 0))
%33 = icmp eq i64 %32, 0
br i1 %33, label %34, label %44
34: ; preds = %31
%35 = tail call i64 @ends_with(i8* %0, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.11, i64 0, i64 0))
%36 = icmp eq i64 %35, 0
br i1 %36, label %37, label %44
37: ; preds = %34
%38 = tail call i64 @ends_with(i8* %0, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.12, i64 0, i64 0))
%39 = icmp eq i64 %38, 0
br i1 %39, label %40, label %44
40: ; preds = %37
%41 = tail call i64 @ends_with(i8* %0, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.13, i64 0, i64 0))
%42 = icmp ne i64 %41, 0
%43 = zext i1 %42 to i32
br label %44
44: ; preds = %40, %37, %34, %31, %28, %25, %22, %19, %16, %13, %10, %7, %4, %1
%45 = phi i32 [ 1, %37 ], [ 1, %34 ], [ 1, %31 ], [ 1, %28 ], [ 1, %25 ], [ 1, %22 ], [ 1, %19 ], [ 1, %16 ], [ 1, %13 ], [ 1, %10 ], [ 1, %7 ], [ 1, %4 ], [ 1, %1 ], [ %43, %40 ]
ret i32 %45
}