#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 *);
scalar_t__ strcmp(char *, char *);
void check_publisher(char *publisher) {
  if (strcmp(publisher, "55583") == 0)
    printf("Alyson Books");
  else if (strcmp(publisher, "933346") == 0)
    printf("Bluebridge");
  else if (strcmp(publisher, "4210") == 0)
    printf("FUNimation Productions, Ltd.");
  else if (strcmp(publisher, "01") == 0)
    printf("Pyramid Books");
}


x86 assembly (clang, -O0):
<check_publisher>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rdi
lea    0xec9(%rip),%rsi
call   1040 <strcmp@plt>
cmp    $0x0,%rax
jne    1157 <check_publisher+0x37>
lea    0xeb9(%rip),%rdi
call   1030 <printf@plt>
jmp    11e2 <check_publisher+0xc2>
mov    -0x8(%rbp),%rdi
lea    0xeb1(%rip),%rsi
call   1040 <strcmp@plt>
cmp    $0x0,%rax
jne    1182 <check_publisher+0x62>
lea    0xea2(%rip),%rdi
call   1030 <printf@plt>
jmp    11dd <check_publisher+0xbd>
mov    -0x8(%rbp),%rdi
lea    0xe98(%rip),%rsi
call   1040 <strcmp@plt>
cmp    $0x0,%rax
jne    11ad <check_publisher+0x8d>
lea    0xe87(%rip),%rdi
call   1030 <printf@plt>
jmp    11d8 <check_publisher+0xb8>
mov    -0x8(%rbp),%rdi
lea    0xe8f(%rip),%rsi
call   1040 <strcmp@plt>
cmp    $0x0,%rax
jne    11d3 <check_publisher+0xb3>
lea    0xe7c(%rip),%rdi
call   1030 <printf@plt>
jmp    11d8 <check_publisher+0xb8>
jmp    11dd <check_publisher+0xbd>
jmp    11e2 <check_publisher+0xc2>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<check_publisher>:
push   %rbx
mov    %rdi,%rbx
lea    0xed5(%rip),%rsi
call   1040 <strcmp@plt>
test   %rax,%rax
je     1173 <check_publisher+0x53>
lea    0xed7(%rip),%rsi
mov    %rbx,%rdi
call   1040 <strcmp@plt>
test   %rax,%rax
je     1180 <check_publisher+0x60>
lea    0xed5(%rip),%rsi
mov    %rbx,%rdi
call   1040 <strcmp@plt>
test   %rax,%rax
je     118d <check_publisher+0x6d>
lea    0xee3(%rip),%rsi
mov    %rbx,%rdi
call   1040 <strcmp@plt>
test   %rax,%rax
je     119a <check_publisher+0x7a>
pop    %rbx
ret
lea    0xe8c(%rip),%rdi
pop    %rbx
jmp    1030 <printf@plt>
lea    0xe93(%rip),%rdi
pop    %rbx
jmp    1030 <printf@plt>
lea    0xe96(%rip),%rdi
pop    %rbx
jmp    1030 <printf@plt>
lea    0xea9(%rip),%rdi
pop    %rbx
jmp    1030 <printf@plt>

LLVM IR (-O0):
@.str = [6 x i8] c"55583\00"
@.str.1 = [13 x i8] c"Alyson Books\00"
@.str.2 = [7 x i8] c"933346\00"
@.str.3 = [11 x i8] c"Bluebridge\00"
@.str.4 = [5 x i8] c"4210\00"
@.str.5 = [29 x i8] c"FUNimation Productions, Ltd.\00"
@.str.6 = [3 x i8] c"01\00"
@.str.7 = [14 x i8] c"Pyramid Books\00"
define void @check_publisher(i8* %0) {
%2 = alloca i8*
store i8* %0, i8** %2
%3 = load i8*, i8** %2
%4 = call i64 @strcmp(i8* %3, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0))
%5 = icmp eq i64 %4, 0
br i1 %5, label %6, label %8
6: ; preds = %1
%7 = call i32 @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.1, i64 0, i64 0))
br label %29
8: ; preds = %1
%9 = load i8*, i8** %2
%10 = call i64 @strcmp(i8* %9, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.2, i64 0, i64 0))
%11 = icmp eq i64 %10, 0
br i1 %11, label %12, label %14
12: ; preds = %8
%13 = call i32 @printf(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.3, i64 0, i64 0))
br label %28
14: ; preds = %8
%15 = load i8*, i8** %2
%16 = call i64 @strcmp(i8* %15, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.4, i64 0, i64 0))
%17 = icmp eq i64 %16, 0
br i1 %17, label %18, label %20
18: ; preds = %14
%19 = call i32 @printf(i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.5, i64 0, i64 0))
br label %27
20: ; preds = %14
%21 = load i8*, i8** %2
%22 = call i64 @strcmp(i8* %21, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.6, i64 0, i64 0))
%23 = icmp eq i64 %22, 0
br i1 %23, label %24, label %26
24: ; preds = %20
%25 = call i32 @printf(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.7, i64 0, i64 0))
br label %26
26: ; preds = %24, %20
br label %27
27: ; preds = %26, %18
br label %28
28: ; preds = %27, %12
br label %29
29: ; preds = %28, %6
ret void
}

LLVM IR (-O2):
@.str = [6 x i8] c"55583\00"
@.str.1 = [13 x i8] c"Alyson Books\00"
@.str.2 = [7 x i8] c"933346\00"
@.str.3 = [11 x i8] c"Bluebridge\00"
@.str.4 = [5 x i8] c"4210\00"
@.str.5 = [29 x i8] c"FUNimation Productions, Ltd.\00"
@.str.6 = [3 x i8] c"01\00"
@.str.7 = [14 x i8] c"Pyramid Books\00"
define void @check_publisher(i8* %0) {
%2 = tail call i64 @strcmp(i8* %0, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0))
%3 = icmp eq i64 %2, 0
br i1 %3, label %13, label %4
4: ; preds = %1
%5 = tail call i64 @strcmp(i8* %0, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.2, i64 0, i64 0))
%6 = icmp eq i64 %5, 0
br i1 %6, label %13, label %7
7: ; preds = %4
%8 = tail call i64 @strcmp(i8* %0, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.4, i64 0, i64 0))
%9 = icmp eq i64 %8, 0
br i1 %9, label %13, label %10
10: ; preds = %7
%11 = tail call i64 @strcmp(i8* %0, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.6, i64 0, i64 0))
%12 = icmp eq i64 %11, 0
br i1 %12, label %13, label %16
13: ; preds = %10, %7, %4, %1
%14 = phi i8* [ getelementptr inbounds ([13 x i8], [13 x i8]* @.str.1, i64 0, i64 0), %1 ], [ getelementptr inbounds ([11 x i8], [11 x i8]* @.str.3, i64 0, i64 0), %4 ], [ getelementptr inbounds ([29 x i8], [29 x i8]* @.str.5, i64 0, i64 0), %7 ], [ getelementptr inbounds ([14 x i8], [14 x i8]* @.str.7, i64 0, i64 0), %10 ]
%15 = tail call i32 @printf(i8* dereferenceable(1) %14)
br label %16
16: ; preds = %13, %10
ret void
}