#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__ isAbbr(char *, char *);
int /*<<< orphan*/ printf(char *, char *);
int main(int argc, char **argv) {
  printf("1: %s\n", isAbbr("LOCALIZATION", "L10N") ? "TRUE" : "FALSE");
  printf("1: %s\n", isAbbr("LOCALIZATION", "6Z4N") ? "TRUE" : "FALSE");
  printf("2: %s\n", isAbbr("LOCALIZATION", "L9N") ? "TRUE" : "FALSE");
  printf("3: %s\n", isAbbr("LOCALIZATION", "L10Q") ? "TRUE" : "FALSE");
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
lea    0xeca(%rip),%rdi
lea    0xed0(%rip),%rsi
call   1040 <isAbbr@plt>
mov    %rax,%rcx
lea    0xecb(%rip),%rsi
lea    0xebf(%rip),%rax
cmp    $0x0,%rcx
cmovne %rax,%rsi
lea    0xe97(%rip),%rdi
call   1030 <printf@plt>
lea    0xe92(%rip),%rdi
lea    0xea8(%rip),%rsi
call   1040 <isAbbr@plt>
mov    %rax,%rcx
lea    0xe93(%rip),%rsi
lea    0xe87(%rip),%rax
cmp    $0x0,%rcx
cmovne %rax,%rsi
lea    0xe5f(%rip),%rdi
call   1030 <printf@plt>
lea    0xe5a(%rip),%rdi
lea    0xe7c(%rip),%rsi
call   1040 <isAbbr@plt>
mov    %rax,%rcx
lea    0xe5b(%rip),%rsi
lea    0xe4f(%rip),%rax
cmp    $0x0,%rcx
cmovne %rax,%rsi
lea    0xe50(%rip),%rdi
call   1030 <printf@plt>
lea    0xe22(%rip),%rdi
lea    0xe4f(%rip),%rsi
call   1040 <isAbbr@plt>
mov    %rax,%rcx
lea    0xe23(%rip),%rsi
lea    0xe17(%rip),%rax
cmp    $0x0,%rcx
cmovne %rax,%rsi
lea    0xe23(%rip),%rdi
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %r15
push   %r14
push   %r12
push   %rbx
push   %rax
lea    0xed8(%rip),%r14
lea    0xede(%rip),%rsi
mov    %r14,%rdi
call   1040 <isAbbr@plt>
test   %rax,%rax
lea    0xed6(%rip),%r12
lea    0xeca(%rip),%rbx
mov    %rbx,%rsi
cmove  %r12,%rsi
lea    0xea3(%rip),%r15
mov    %r15,%rdi
call   1030 <printf@plt>
lea    0xeb8(%rip),%rsi
mov    %r14,%rdi
call   1040 <isAbbr@plt>
test   %rax,%rax
mov    %rbx,%rsi
cmove  %r12,%rsi
mov    %r15,%rdi
call   1030 <printf@plt>
lea    0xea3(%rip),%rsi
mov    %r14,%rdi
call   1040 <isAbbr@plt>
test   %rax,%rax
mov    %rbx,%rsi
cmove  %r12,%rsi
lea    0xe83(%rip),%rdi
call   1030 <printf@plt>
lea    0xe89(%rip),%rsi
mov    %r14,%rdi
call   1040 <isAbbr@plt>
test   %rax,%rax
cmove  %r12,%rbx
lea    0xe6c(%rip),%rdi
mov    %rbx,%rsi
call   1030 <printf@plt>
xor    %eax,%eax
add    $0x8,%rsp
pop    %rbx
pop    %r12
pop    %r14
pop    %r15
ret

LLVM IR (-O0):
@.str = [7 x i8] c"1: %s\0A\00"
@.str.1 = [13 x i8] c"LOCALIZATION\00"
@.str.2 = [5 x i8] c"L10N\00"
@.str.3 = [5 x i8] c"TRUE\00"
@.str.4 = [6 x i8] c"FALSE\00"
@.str.5 = [5 x i8] c"6Z4N\00"
@.str.6 = [7 x i8] c"2: %s\0A\00"
@.str.7 = [4 x i8] c"L9N\00"
@.str.8 = [7 x i8] c"3: %s\0A\00"
@.str.9 = [5 x i8] c"L10Q\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
%6 = call i64 @isAbbr(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0))
%7 = icmp ne i64 %6, 0
%8 = zext i1 %7 to i64
%9 = select i1 %7, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.4, i64 0, i64 0)
%10 = call i32 @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0), i8* %9)
%11 = call i64 @isAbbr(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.5, i64 0, i64 0))
%12 = icmp ne i64 %11, 0
%13 = zext i1 %12 to i64
%14 = select i1 %12, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.4, i64 0, i64 0)
%15 = call i32 @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0), i8* %14)
%16 = call i64 @isAbbr(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.7, i64 0, i64 0))
%17 = icmp ne i64 %16, 0
%18 = zext i1 %17 to i64
%19 = select i1 %17, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.4, i64 0, i64 0)
%20 = call i32 @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.6, i64 0, i64 0), i8* %19)
%21 = call i64 @isAbbr(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.9, i64 0, i64 0))
%22 = icmp ne i64 %21, 0
%23 = zext i1 %22 to i64
%24 = select i1 %22, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.4, i64 0, i64 0)
%25 = call i32 @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.8, i64 0, i64 0), i8* %24)
ret i32 0
}

LLVM IR (-O2):
@.str = [7 x i8] c"1: %s\0A\00"
@.str.1 = [13 x i8] c"LOCALIZATION\00"
@.str.2 = [5 x i8] c"L10N\00"
@.str.3 = [5 x i8] c"TRUE\00"
@.str.4 = [6 x i8] c"FALSE\00"
@.str.5 = [5 x i8] c"6Z4N\00"
@.str.6 = [7 x i8] c"2: %s\0A\00"
@.str.7 = [4 x i8] c"L9N\00"
@.str.8 = [7 x i8] c"3: %s\0A\00"
@.str.9 = [5 x i8] c"L10Q\00"
define i32 @main(i32 %0, i8** nocapture readnone %1) {
%3 = tail call i64 @isAbbr(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0))
%4 = icmp eq i64 %3, 0
%5 = select i1 %4, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i64 0, i64 0)
%6 = tail call i32 @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0), i8* %5)
%7 = tail call i64 @isAbbr(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.5, i64 0, i64 0))
%8 = icmp eq i64 %7, 0
%9 = select i1 %8, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i64 0, i64 0)
%10 = tail call i32 @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str, i64 0, i64 0), i8* %9)
%11 = tail call i64 @isAbbr(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.7, i64 0, i64 0))
%12 = icmp eq i64 %11, 0
%13 = select i1 %12, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i64 0, i64 0)
%14 = tail call i32 @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.6, i64 0, i64 0), i8* %13)
%15 = tail call i64 @isAbbr(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.9, i64 0, i64 0))
%16 = icmp eq i64 %15, 0
%17 = select i1 %16, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i64 0, i64 0)
%18 = tail call i32 @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.8, i64 0, i64 0), i8* %17)
ret i32 0
}