#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 */
char *alloc_string(char const *);
scalar_t__ strstr(char const *, char *);
char *get_real_mac_osx(const char *osx) {
  if (strstr(osx, "10.10"))
    return alloc_string("OS X Yosemite");
  else if (strstr(osx, "10.9"))
    return alloc_string("OS X Mavericks");
  else if (strstr(osx, "10.8"))
    return alloc_string("OS X Mountain Lion");
  else if (strstr(osx, "10.7"))
    return alloc_string("OS X Lion");
  else if (strstr(osx, "10.6"))
    return alloc_string("OS X Snow Leopard");
  else if (strstr(osx, "10.5"))
    return alloc_string("OS X Leopard");
  else if (strstr(osx, "10.4"))
    return alloc_string("OS X Tiger");
  else if (strstr(osx, "10.3"))
    return alloc_string("OS X Panther");
  else if (strstr(osx, "10.2"))
    return alloc_string("OS X Jaguar");
  else if (strstr(osx, "10.1"))
    return alloc_string("OS X Puma");
  else if (strstr(osx, "10.0"))
    return alloc_string("OS X Cheetah");
  return alloc_string(osx);
}


x86 assembly (clang, -O0):
<get_real_mac_osx>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x10(%rbp)
mov    -0x10(%rbp),%rdi
lea    0xec9(%rip),%rsi
call   1040 <strstr@plt>
cmp    $0x0,%rax
je     115b <get_real_mac_osx+0x3b>
lea    0xeb9(%rip),%rdi
call   1030 <alloc_string@plt>
mov    %rax,-0x8(%rbp)
jmp    1370 <get_real_mac_osx+0x250>
mov    -0x10(%rbp),%rdi
lea    0xeae(%rip),%rsi
call   1040 <strstr@plt>
cmp    $0x0,%rax
je     118a <get_real_mac_osx+0x6a>
lea    0xe9d(%rip),%rdi
call   1030 <alloc_string@plt>
mov    %rax,-0x8(%rbp)
jmp    1370 <get_real_mac_osx+0x250>
mov    -0x10(%rbp),%rdi
lea    0xe93(%rip),%rsi
call   1040 <strstr@plt>
cmp    $0x0,%rax
je     11b9 <get_real_mac_osx+0x99>
lea    0xe82(%rip),%rdi
call   1030 <alloc_string@plt>
mov    %rax,-0x8(%rbp)
jmp    1370 <get_real_mac_osx+0x250>
mov    -0x10(%rbp),%rdi
lea    0xe7c(%rip),%rsi
call   1040 <strstr@plt>
cmp    $0x0,%rax
je     11e8 <get_real_mac_osx+0xc8>
lea    0xe6b(%rip),%rdi
call   1030 <alloc_string@plt>
mov    %rax,-0x8(%rbp)
jmp    1370 <get_real_mac_osx+0x250>
mov    -0x10(%rbp),%rdi
lea    0xe5c(%rip),%rsi
call   1040 <strstr@plt>
cmp    $0x0,%rax
je     1217 <get_real_mac_osx+0xf7>
lea    0xe4b(%rip),%rdi
call   1030 <alloc_string@plt>
mov    %rax,-0x8(%rbp)
jmp    1370 <get_real_mac_osx+0x250>
mov    -0x10(%rbp),%rdi
lea    0xe44(%rip),%rsi
call   1040 <strstr@plt>
cmp    $0x0,%rax
je     1246 <get_real_mac_osx+0x126>
lea    0xe33(%rip),%rdi
call   1030 <alloc_string@plt>
mov    %rax,-0x8(%rbp)
jmp    1370 <get_real_mac_osx+0x250>
mov    -0x10(%rbp),%rdi
lea    0xe27(%rip),%rsi
call   1040 <strstr@plt>
cmp    $0x0,%rax
je     1275 <get_real_mac_osx+0x155>
lea    0xe16(%rip),%rdi
call   1030 <alloc_string@plt>
mov    %rax,-0x8(%rbp)
jmp    1370 <get_real_mac_osx+0x250>
mov    -0x10(%rbp),%rdi
lea    0xe08(%rip),%rsi
call   1040 <strstr@plt>
cmp    $0x0,%rax
je     12a4 <get_real_mac_osx+0x184>
lea    0xdf7(%rip),%rdi
call   1030 <alloc_string@plt>
mov    %rax,-0x8(%rbp)
jmp    1370 <get_real_mac_osx+0x250>
mov    -0x10(%rbp),%rdi
lea    0xdeb(%rip),%rsi
call   1040 <strstr@plt>
cmp    $0x0,%rax
je     12d3 <get_real_mac_osx+0x1b3>
lea    0xdda(%rip),%rdi
call   1030 <alloc_string@plt>
mov    %rax,-0x8(%rbp)
jmp    1370 <get_real_mac_osx+0x250>
mov    -0x10(%rbp),%rdi
lea    0xdcd(%rip),%rsi
call   1040 <strstr@plt>
cmp    $0x0,%rax
je     1302 <get_real_mac_osx+0x1e2>
lea    0xdbc(%rip),%rdi
call   1030 <alloc_string@plt>
mov    %rax,-0x8(%rbp)
jmp    1370 <get_real_mac_osx+0x250>
mov    -0x10(%rbp),%rdi
lea    0xdad(%rip),%rsi
call   1040 <strstr@plt>
cmp    $0x0,%rax
je     1331 <get_real_mac_osx+0x211>
lea    0xd9c(%rip),%rdi
call   1030 <alloc_string@plt>
mov    %rax,-0x8(%rbp)
jmp    1370 <get_real_mac_osx+0x250>
jmp    1336 <get_real_mac_osx+0x216>
jmp    133b <get_real_mac_osx+0x21b>
jmp    1340 <get_real_mac_osx+0x220>
jmp    1345 <get_real_mac_osx+0x225>
jmp    134a <get_real_mac_osx+0x22a>
jmp    134f <get_real_mac_osx+0x22f>
jmp    1354 <get_real_mac_osx+0x234>
jmp    1359 <get_real_mac_osx+0x239>
jmp    135e <get_real_mac_osx+0x23e>
jmp    1363 <get_real_mac_osx+0x243>
mov    -0x10(%rbp),%rdi
call   1030 <alloc_string@plt>
mov    %rax,-0x8(%rbp)
mov    -0x8(%rbp),%rax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<get_real_mac_osx>:
push   %rbx
mov    %rdi,%rbx
lea    0xed5(%rip),%rsi
call   1040 <strstr@plt>
test   %rax,%rax
je     1142 <get_real_mac_osx+0x22>
lea    0xeca(%rip),%rdi
pop    %rbx
jmp    1030 <alloc_string@plt>
lea    0xecb(%rip),%rsi
mov    %rbx,%rdi
call   1040 <strstr@plt>
test   %rax,%rax
je     1163 <get_real_mac_osx+0x43>
lea    0xebc(%rip),%rdi
pop    %rbx
jmp    1030 <alloc_string@plt>
lea    0xebe(%rip),%rsi
mov    %rbx,%rdi
call   1040 <strstr@plt>
test   %rax,%rax
je     1184 <get_real_mac_osx+0x64>
lea    0xeaf(%rip),%rdi
pop    %rbx
jmp    1030 <alloc_string@plt>
lea    0xeb5(%rip),%rsi
mov    %rbx,%rdi
call   1040 <strstr@plt>
test   %rax,%rax
je     11a5 <get_real_mac_osx+0x85>
lea    0xea6(%rip),%rdi
pop    %rbx
jmp    1030 <alloc_string@plt>
lea    0xea3(%rip),%rsi
mov    %rbx,%rdi
call   1040 <strstr@plt>
test   %rax,%rax
je     11c6 <get_real_mac_osx+0xa6>
lea    0xe94(%rip),%rdi
pop    %rbx
jmp    1030 <alloc_string@plt>
lea    0xe99(%rip),%rsi
mov    %rbx,%rdi
call   1040 <strstr@plt>
test   %rax,%rax
je     11e7 <get_real_mac_osx+0xc7>
lea    0xe8a(%rip),%rdi
pop    %rbx
jmp    1030 <alloc_string@plt>
lea    0xe8a(%rip),%rsi
mov    %rbx,%rdi
call   1040 <strstr@plt>
test   %rax,%rax
je     1208 <get_real_mac_osx+0xe8>
lea    0xe7b(%rip),%rdi
pop    %rbx
jmp    1030 <alloc_string@plt>
lea    0xe79(%rip),%rsi
mov    %rbx,%rdi
call   1040 <strstr@plt>
test   %rax,%rax
je     1229 <get_real_mac_osx+0x109>
lea    0xe6a(%rip),%rdi
pop    %rbx
jmp    1030 <alloc_string@plt>
lea    0xe6a(%rip),%rsi
mov    %rbx,%rdi
call   1040 <strstr@plt>
test   %rax,%rax
je     124a <get_real_mac_osx+0x12a>
lea    0xe5b(%rip),%rdi
pop    %rbx
jmp    1030 <alloc_string@plt>
lea    0xe5a(%rip),%rsi
mov    %rbx,%rdi
call   1040 <strstr@plt>
test   %rax,%rax
je     126b <get_real_mac_osx+0x14b>
lea    0xe4b(%rip),%rdi
pop    %rbx
jmp    1030 <alloc_string@plt>
lea    0xe48(%rip),%rsi
mov    %rbx,%rdi
call   1040 <strstr@plt>
test   %rax,%rax
lea    0xe3b(%rip),%rdi
cmove  %rbx,%rdi
pop    %rbx
jmp    1030 <alloc_string@plt>

LLVM IR (-O0):
@.str = [6 x i8] c"10.10\00"
@.str.1 = [14 x i8] c"OS X Yosemite\00"
@.str.2 = [5 x i8] c"10.9\00"
@.str.3 = [15 x i8] c"OS X Mavericks\00"
@.str.4 = [5 x i8] c"10.8\00"
@.str.5 = [19 x i8] c"OS X Mountain Lion\00"
@.str.6 = [5 x i8] c"10.7\00"
@.str.7 = [10 x i8] c"OS X Lion\00"
@.str.8 = [5 x i8] c"10.6\00"
@.str.9 = [18 x i8] c"OS X Snow Leopard\00"
@.str.10 = [5 x i8] c"10.5\00"
@.str.11 = [13 x i8] c"OS X Leopard\00"
@.str.12 = [5 x i8] c"10.4\00"
@.str.13 = [11 x i8] c"OS X Tiger\00"
@.str.14 = [5 x i8] c"10.3\00"
@.str.15 = [13 x i8] c"OS X Panther\00"
@.str.16 = [5 x i8] c"10.2\00"
@.str.17 = [12 x i8] c"OS X Jaguar\00"
@.str.18 = [5 x i8] c"10.1\00"
@.str.19 = [10 x i8] c"OS X Puma\00"
@.str.20 = [5 x i8] c"10.0\00"
@.str.21 = [13 x i8] c"OS X Cheetah\00"
define i8* @get_real_mac_osx(i8* %0) {
%2 = alloca i8*
%3 = alloca i8*
store i8* %0, i8** %3
%4 = load i8*, i8** %3
%5 = call i64 @strstr(i8* %4, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0))
%6 = icmp ne i64 %5, 0
br i1 %6, label %7, label %9
7: ; preds = %1
%8 = call i8* @alloc_string(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.1, i64 0, i64 0))
store i8* %8, i8** %2
br label %82
9: ; preds = %1
%10 = load i8*, i8** %3
%11 = call i64 @strstr(i8* %10, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0))
%12 = icmp ne i64 %11, 0
br i1 %12, label %13, label %15
13: ; preds = %9
%14 = call i8* @alloc_string(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.3, i64 0, i64 0))
store i8* %14, i8** %2
br label %82
15: ; preds = %9
%16 = load i8*, i8** %3
%17 = call i64 @strstr(i8* %16, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.4, i64 0, i64 0))
%18 = icmp ne i64 %17, 0
br i1 %18, label %19, label %21
19: ; preds = %15
%20 = call i8* @alloc_string(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.5, i64 0, i64 0))
store i8* %20, i8** %2
br label %82
21: ; preds = %15
%22 = load i8*, i8** %3
%23 = call i64 @strstr(i8* %22, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.6, i64 0, i64 0))
%24 = icmp ne i64 %23, 0
br i1 %24, label %25, label %27
25: ; preds = %21
%26 = call i8* @alloc_string(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.7, i64 0, i64 0))
store i8* %26, i8** %2
br label %82
27: ; preds = %21
%28 = load i8*, i8** %3
%29 = call i64 @strstr(i8* %28, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.8, i64 0, i64 0))
%30 = icmp ne i64 %29, 0
br i1 %30, label %31, label %33
31: ; preds = %27
%32 = call i8* @alloc_string(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.9, i64 0, i64 0))
store i8* %32, i8** %2
br label %82
33: ; preds = %27
%34 = load i8*, i8** %3
%35 = call i64 @strstr(i8* %34, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.10, i64 0, i64 0))
%36 = icmp ne i64 %35, 0
br i1 %36, label %37, label %39
37: ; preds = %33
%38 = call i8* @alloc_string(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.11, i64 0, i64 0))
store i8* %38, i8** %2
br label %82
39: ; preds = %33
%40 = load i8*, i8** %3
%41 = call i64 @strstr(i8* %40, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.12, i64 0, i64 0))
%42 = icmp ne i64 %41, 0
br i1 %42, label %43, label %45
43: ; preds = %39
%44 = call i8* @alloc_string(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.13, i64 0, i64 0))
store i8* %44, i8** %2
br label %82
45: ; preds = %39
%46 = load i8*, i8** %3
%47 = call i64 @strstr(i8* %46, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.14, i64 0, i64 0))
%48 = icmp ne i64 %47, 0
br i1 %48, label %49, label %51
49: ; preds = %45
%50 = call i8* @alloc_string(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.15, i64 0, i64 0))
store i8* %50, i8** %2
br label %82
51: ; preds = %45
%52 = load i8*, i8** %3
%53 = call i64 @strstr(i8* %52, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.16, i64 0, i64 0))
%54 = icmp ne i64 %53, 0
br i1 %54, label %55, label %57
55: ; preds = %51
%56 = call i8* @alloc_string(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.17, i64 0, i64 0))
store i8* %56, i8** %2
br label %82
57: ; preds = %51
%58 = load i8*, i8** %3
%59 = call i64 @strstr(i8* %58, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.18, i64 0, i64 0))
%60 = icmp ne i64 %59, 0
br i1 %60, label %61, label %63
61: ; preds = %57
%62 = call i8* @alloc_string(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.19, i64 0, i64 0))
store i8* %62, i8** %2
br label %82
63: ; preds = %57
%64 = load i8*, i8** %3
%65 = call i64 @strstr(i8* %64, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.20, i64 0, i64 0))
%66 = icmp ne i64 %65, 0
br i1 %66, label %67, label %69
67: ; preds = %63
%68 = call i8* @alloc_string(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.21, i64 0, i64 0))
store i8* %68, i8** %2
br label %82
69: ; preds = %63
br label %70
70: ; preds = %69
br label %71
71: ; preds = %70
br label %72
72: ; preds = %71
br label %73
73: ; preds = %72
br label %74
74: ; preds = %73
br label %75
75: ; preds = %74
br label %76
76: ; preds = %75
br label %77
77: ; preds = %76
br label %78
78: ; preds = %77
br label %79
79: ; preds = %78
%80 = load i8*, i8** %3
%81 = call i8* @alloc_string(i8* %80)
store i8* %81, i8** %2
br label %82
82: ; preds = %79, %67, %61, %55, %49, %43, %37, %31, %25, %19, %13, %7
%83 = load i8*, i8** %2
ret i8* %83
}

LLVM IR (-O2):
@.str = [6 x i8] c"10.10\00"
@.str.1 = [14 x i8] c"OS X Yosemite\00"
@.str.2 = [5 x i8] c"10.9\00"
@.str.3 = [15 x i8] c"OS X Mavericks\00"
@.str.4 = [5 x i8] c"10.8\00"
@.str.5 = [19 x i8] c"OS X Mountain Lion\00"
@.str.6 = [5 x i8] c"10.7\00"
@.str.7 = [10 x i8] c"OS X Lion\00"
@.str.8 = [5 x i8] c"10.6\00"
@.str.9 = [18 x i8] c"OS X Snow Leopard\00"
@.str.10 = [5 x i8] c"10.5\00"
@.str.11 = [13 x i8] c"OS X Leopard\00"
@.str.12 = [5 x i8] c"10.4\00"
@.str.13 = [11 x i8] c"OS X Tiger\00"
@.str.14 = [5 x i8] c"10.3\00"
@.str.15 = [13 x i8] c"OS X Panther\00"
@.str.16 = [5 x i8] c"10.2\00"
@.str.17 = [12 x i8] c"OS X Jaguar\00"
@.str.18 = [5 x i8] c"10.1\00"
@.str.19 = [10 x i8] c"OS X Puma\00"
@.str.20 = [5 x i8] c"10.0\00"
@.str.21 = [13 x i8] c"OS X Cheetah\00"
define i8* @get_real_mac_osx(i8* %0) {
%2 = tail call i64 @strstr(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 %4, label %35
4: ; preds = %1
%5 = tail call i64 @strstr(i8* %0, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0))
%6 = icmp eq i64 %5, 0
br i1 %6, label %7, label %35
7: ; preds = %4
%8 = tail call i64 @strstr(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 %10, label %35
10: ; preds = %7
%11 = tail call i64 @strstr(i8* %0, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.6, i64 0, i64 0))
%12 = icmp eq i64 %11, 0
br i1 %12, label %13, label %35
13: ; preds = %10
%14 = tail call i64 @strstr(i8* %0, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.8, i64 0, i64 0))
%15 = icmp eq i64 %14, 0
br i1 %15, label %16, label %35
16: ; preds = %13
%17 = tail call i64 @strstr(i8* %0, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.10, i64 0, i64 0))
%18 = icmp eq i64 %17, 0
br i1 %18, label %19, label %35
19: ; preds = %16
%20 = tail call i64 @strstr(i8* %0, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.12, i64 0, i64 0))
%21 = icmp eq i64 %20, 0
br i1 %21, label %22, label %35
22: ; preds = %19
%23 = tail call i64 @strstr(i8* %0, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.14, i64 0, i64 0))
%24 = icmp eq i64 %23, 0
br i1 %24, label %25, label %35
25: ; preds = %22
%26 = tail call i64 @strstr(i8* %0, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.16, i64 0, i64 0))
%27 = icmp eq i64 %26, 0
br i1 %27, label %28, label %35
28: ; preds = %25
%29 = tail call i64 @strstr(i8* %0, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.18, i64 0, i64 0))
%30 = icmp eq i64 %29, 0
br i1 %30, label %31, label %35
31: ; preds = %28
%32 = tail call i64 @strstr(i8* %0, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.20, i64 0, i64 0))
%33 = icmp eq i64 %32, 0
%34 = select i1 %33, i8* %0, i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.21, i64 0, i64 0)
br label %35
35: ; preds = %31, %28, %25, %22, %19, %16, %13, %10, %7, %4, %1
%36 = phi i8* [ getelementptr inbounds ([14 x i8], [14 x i8]* @.str.1, i64 0, i64 0), %1 ], [ getelementptr inbounds ([15 x i8], [15 x i8]* @.str.3, i64 0, i64 0), %4 ], [ getelementptr inbounds ([19 x i8], [19 x i8]* @.str.5, i64 0, i64 0), %7 ], [ getelementptr inbounds ([10 x i8], [10 x i8]* @.str.7, i64 0, i64 0), %10 ], [ getelementptr inbounds ([18 x i8], [18 x i8]* @.str.9, i64 0, i64 0), %13 ], [ getelementptr inbounds ([13 x i8], [13 x i8]* @.str.11, i64 0, i64 0), %16 ], [ getelementptr inbounds ([11 x i8], [11 x i8]* @.str.13, i64 0, i64 0), %19 ], [ getelementptr inbounds ([13 x i8], [13 x i8]* @.str.15, i64 0, i64 0), %22 ], [ getelementptr inbounds ([12 x i8], [12 x i8]* @.str.17, i64 0, i64 0), %25 ], [ getelementptr inbounds ([10 x i8], [10 x i8]* @.str.19, i64 0, i64 0), %28 ], [ %34, %31 ]
%37 = tail call i8* @alloc_string(i8* %36)
ret i8* %37
}