#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_android(const char *droid) {
  if (strstr(droid, "11"))
    return alloc_string("Android 11");
  else if (strstr(droid, "10"))
    return alloc_string("Android 10");
  else if (strstr(droid, "9"))
    return alloc_string("Pie 9");
  else if (strstr(droid, "8.1"))
    return alloc_string("Oreo 8.1");
  else if (strstr(droid, "8.0"))
    return alloc_string("Oreo 8.0");
  else if (strstr(droid, "7.1"))
    return alloc_string("Nougat 7.1");
  else if (strstr(droid, "7.0"))
    return alloc_string("Nougat 7.0");
  else if (strstr(droid, "6.0.1"))
    return alloc_string("Marshmallow 6.0.1");
  else if (strstr(droid, "6.0"))
    return alloc_string("Marshmallow 6.0");
  else if (strstr(droid, "5.1"))
    return alloc_string("Lollipop 5.1");
  else if (strstr(droid, "5.0"))
    return alloc_string("Lollipop 5.0");
  else if (strstr(droid, "4.4"))
    return alloc_string("KitKat 4.4");
  else if (strstr(droid, "4.3"))
    return alloc_string("Jelly Bean 4.3");
  else if (strstr(droid, "4.2"))
    return alloc_string("Jelly Bean 4.2");
  else if (strstr(droid, "4.1"))
    return alloc_string("Jelly Bean 4.1");
  else if (strstr(droid, "4.0"))
    return alloc_string("Ice Cream Sandwich 4.0");
  else if (strstr(droid, "3."))
    return alloc_string("Honeycomb 3");
  else if (strstr(droid, "2.3"))
    return alloc_string("Gingerbread 2.3");
  else if (strstr(droid, "2.2"))
    return alloc_string("Froyo 2.2");
  else if (strstr(droid, "2.0") || strstr(droid, "2.1"))
    return alloc_string("Eclair 2");
  else if (strstr(droid, "1.6"))
    return alloc_string("Donut 1.6");
  else if (strstr(droid, "1.5"))
    return alloc_string("Cupcake 1.5");
  return alloc_string(droid);
}


x86 assembly (clang, -O0):
<get_real_android>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x10(%rbp)
mov    -0x10(%rbp),%rdi
lea    0xed1(%rip),%rsi
call   1040 <strstr@plt>
cmp    $0x0,%rax
je     115b <get_real_android+0x3b>
lea    0xeb3(%rip),%rdi
call   1030 <alloc_string@plt>
mov    %rax,-0x8(%rbp)
jmp    15c6 <get_real_android+0x4a6>
mov    -0x10(%rbp),%rdi
lea    0xead(%rip),%rsi
call   1040 <strstr@plt>
cmp    $0x0,%rax
je     118a <get_real_android+0x6a>
lea    0xe8f(%rip),%rdi
call   1030 <alloc_string@plt>
mov    %rax,-0x8(%rbp)
jmp    15c6 <get_real_android+0x4a6>
mov    -0x10(%rbp),%rdi
lea    0xe85(%rip),%rsi
call   1040 <strstr@plt>
cmp    $0x0,%rax
je     11b9 <get_real_android+0x99>
lea    0xe6b(%rip),%rdi
call   1030 <alloc_string@plt>
mov    %rax,-0x8(%rbp)
jmp    15c6 <get_real_android+0x4a6>
mov    -0x10(%rbp),%rdi
lea    0xe5d(%rip),%rsi
call   1040 <strstr@plt>
cmp    $0x0,%rax
je     11e8 <get_real_android+0xc8>
lea    0xe42(%rip),%rdi
call   1030 <alloc_string@plt>
mov    %rax,-0x8(%rbp)
jmp    15c6 <get_real_android+0x4a6>
mov    -0x10(%rbp),%rdi
lea    0xe37(%rip),%rsi
call   1040 <strstr@plt>
cmp    $0x0,%rax
je     1217 <get_real_android+0xf7>
lea    0xe1c(%rip),%rdi
call   1030 <alloc_string@plt>
mov    %rax,-0x8(%rbp)
jmp    15c6 <get_real_android+0x4a6>
mov    -0x10(%rbp),%rdi
lea    0xe13(%rip),%rsi
call   1040 <strstr@plt>
cmp    $0x0,%rax
je     1246 <get_real_android+0x126>
lea    0xdf6(%rip),%rdi
call   1030 <alloc_string@plt>
mov    %rax,-0x8(%rbp)
jmp    15c6 <get_real_android+0x4a6>
mov    -0x10(%rbp),%rdi
lea    0xdef(%rip),%rsi
call   1040 <strstr@plt>
cmp    $0x0,%rax
je     1275 <get_real_android+0x155>
lea    0xdd2(%rip),%rdi
call   1030 <alloc_string@plt>
mov    %rax,-0x8(%rbp)
jmp    15c6 <get_real_android+0x4a6>
mov    -0x10(%rbp),%rdi
lea    0xdd0(%rip),%rsi
call   1040 <strstr@plt>
cmp    $0x0,%rax
je     12a4 <get_real_android+0x184>
lea    0xdae(%rip),%rdi
call   1030 <alloc_string@plt>
mov    %rax,-0x8(%rbp)
jmp    15c6 <get_real_android+0x4a6>
mov    -0x10(%rbp),%rdi
lea    0xdb3(%rip),%rsi
call   1040 <strstr@plt>
cmp    $0x0,%rax
je     12d3 <get_real_android+0x1b3>
lea    0xd91(%rip),%rdi
call   1030 <alloc_string@plt>
mov    %rax,-0x8(%rbp)
jmp    15c6 <get_real_android+0x4a6>
mov    -0x10(%rbp),%rdi
lea    0xd91(%rip),%rsi
call   1040 <strstr@plt>
cmp    $0x0,%rax
je     1302 <get_real_android+0x1e2>
lea    0xd72(%rip),%rdi
call   1030 <alloc_string@plt>
mov    %rax,-0x8(%rbp)
jmp    15c6 <get_real_android+0x4a6>
mov    -0x10(%rbp),%rdi
lea    0xd6f(%rip),%rsi
call   1040 <strstr@plt>
cmp    $0x0,%rax
je     1331 <get_real_android+0x211>
lea    0xd50(%rip),%rdi
call   1030 <alloc_string@plt>
mov    %rax,-0x8(%rbp)
jmp    15c6 <get_real_android+0x4a6>
mov    -0x10(%rbp),%rdi
lea    0xd4b(%rip),%rsi
call   1040 <strstr@plt>
cmp    $0x0,%rax
je     1360 <get_real_android+0x240>
lea    0xd2e(%rip),%rdi
call   1030 <alloc_string@plt>
mov    %rax,-0x8(%rbp)
jmp    15c6 <get_real_android+0x4a6>
mov    -0x10(%rbp),%rdi
lea    0xd2b(%rip),%rsi
call   1040 <strstr@plt>
cmp    $0x0,%rax
je     138f <get_real_android+0x26f>
lea    0xd0a(%rip),%rdi
call   1030 <alloc_string@plt>
mov    %rax,-0x8(%rbp)
jmp    15c6 <get_real_android+0x4a6>
mov    -0x10(%rbp),%rdi
lea    0xd0b(%rip),%rsi
call   1040 <strstr@plt>
cmp    $0x0,%rax
je     13be <get_real_android+0x29e>
lea    0xcea(%rip),%rdi
call   1030 <alloc_string@plt>
mov    %rax,-0x8(%rbp)
jmp    15c6 <get_real_android+0x4a6>
mov    -0x10(%rbp),%rdi
lea    0xceb(%rip),%rsi
call   1040 <strstr@plt>
cmp    $0x0,%rax
je     13ed <get_real_android+0x2cd>
lea    0xcca(%rip),%rdi
call   1030 <alloc_string@plt>
mov    %rax,-0x8(%rbp)
jmp    15c6 <get_real_android+0x4a6>
mov    -0x10(%rbp),%rdi
lea    0xcd3(%rip),%rsi
call   1040 <strstr@plt>
cmp    $0x0,%rax
je     141c <get_real_android+0x2fc>
lea    0xcaa(%rip),%rdi
call   1030 <alloc_string@plt>
mov    %rax,-0x8(%rbp)
jmp    15c6 <get_real_android+0x4a6>
mov    -0x10(%rbp),%rdi
lea    0xca8(%rip),%rsi
call   1040 <strstr@plt>
cmp    $0x0,%rax
je     144b <get_real_android+0x32b>
lea    0xc95(%rip),%rdi
call   1030 <alloc_string@plt>
mov    %rax,-0x8(%rbp)
jmp    15c6 <get_real_android+0x4a6>
mov    -0x10(%rbp),%rdi
lea    0xc94(%rip),%rsi
call   1040 <strstr@plt>
cmp    $0x0,%rax
je     147a <get_real_android+0x35a>
lea    0xc72(%rip),%rdi
call   1030 <alloc_string@plt>
mov    %rax,-0x8(%rbp)
jmp    15c6 <get_real_android+0x4a6>
mov    -0x10(%rbp),%rdi
lea    0xc6f(%rip),%rsi
call   1040 <strstr@plt>
cmp    $0x0,%rax
je     14a9 <get_real_android+0x389>
lea    0xc53(%rip),%rdi
call   1030 <alloc_string@plt>
mov    %rax,-0x8(%rbp)
jmp    15c6 <get_real_android+0x4a6>
mov    -0x10(%rbp),%rdi
lea    0xc44(%rip),%rsi
call   1040 <strstr@plt>
cmp    $0x0,%rax
jne    14dd <get_real_android+0x3bd>
mov    -0x10(%rbp),%rdi
lea    0xc2e(%rip),%rsi
call   1040 <strstr@plt>
cmp    $0x0,%rax
je     14f2 <get_real_android+0x3d2>
lea    0xc1c(%rip),%rdi
call   1030 <alloc_string@plt>
mov    %rax,-0x8(%rbp)
jmp    15c6 <get_real_android+0x4a6>
mov    -0x10(%rbp),%rdi
lea    0xc12(%rip),%rsi
call   1040 <strstr@plt>
cmp    $0x0,%rax
je     1521 <get_real_android+0x401>
lea    0xbf6(%rip),%rdi
call   1030 <alloc_string@plt>
mov    %rax,-0x8(%rbp)
jmp    15c6 <get_real_android+0x4a6>
mov    -0x10(%rbp),%rdi
lea    0xbef(%rip),%rsi
call   1040 <strstr@plt>
cmp    $0x0,%rax
je     1550 <get_real_android+0x430>
lea    0xbd1(%rip),%rdi
call   1030 <alloc_string@plt>
mov    %rax,-0x8(%rbp)
jmp    15c6 <get_real_android+0x4a6>
jmp    1555 <get_real_android+0x435>
jmp    155a <get_real_android+0x43a>
jmp    155f <get_real_android+0x43f>
jmp    1564 <get_real_android+0x444>
jmp    1569 <get_real_android+0x449>
jmp    156e <get_real_android+0x44e>
jmp    1573 <get_real_android+0x453>
jmp    1578 <get_real_android+0x458>
jmp    157d <get_real_android+0x45d>
jmp    1582 <get_real_android+0x462>
jmp    1587 <get_real_android+0x467>
jmp    158c <get_real_android+0x46c>
jmp    1591 <get_real_android+0x471>
jmp    1596 <get_real_android+0x476>
jmp    159b <get_real_android+0x47b>
jmp    15a0 <get_real_android+0x480>
jmp    15a5 <get_real_android+0x485>
jmp    15aa <get_real_android+0x48a>
jmp    15af <get_real_android+0x48f>
jmp    15b4 <get_real_android+0x494>
jmp    15b9 <get_real_android+0x499>
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_android>:
push   %r14
push   %rbx
push   %rax
mov    %rdi,%r14
lea    0xeda(%rip),%rsi
call   1040 <strstr@plt>
test   %rax,%rax
je     1144 <get_real_android+0x24>
lea    0xec1(%rip),%rbx
jmp    13ea <get_real_android+0x2ca>
lea    0xec8(%rip),%rsi
mov    %r14,%rdi
call   1040 <strstr@plt>
test   %rax,%rax
je     1164 <get_real_android+0x44>
lea    0xeac(%rip),%rbx
jmp    13ea <get_real_android+0x2ca>
lea    0xeaf(%rip),%rsi
mov    %r14,%rdi
call   1040 <strstr@plt>
test   %rax,%rax
je     1184 <get_real_android+0x64>
lea    0xe97(%rip),%rbx
jmp    13ea <get_real_android+0x2ca>
lea    0xe96(%rip),%rsi
mov    %r14,%rdi
call   1040 <strstr@plt>
test   %rax,%rax
je     11a4 <get_real_android+0x84>
lea    0xe7d(%rip),%rbx
jmp    13ea <get_real_android+0x2ca>
lea    0xe7f(%rip),%rsi
mov    %r14,%rdi
call   1040 <strstr@plt>
test   %rax,%rax
je     11c4 <get_real_android+0xa4>
lea    0xe66(%rip),%rbx
jmp    13ea <get_real_android+0x2ca>
lea    0xe6a(%rip),%rsi
mov    %r14,%rdi
call   1040 <strstr@plt>
test   %rax,%rax
je     11e4 <get_real_android+0xc4>
lea    0xe4f(%rip),%rbx
jmp    13ea <get_real_android+0x2ca>
lea    0xe55(%rip),%rsi
mov    %r14,%rdi
call   1040 <strstr@plt>
test   %rax,%rax
je     1204 <get_real_android+0xe4>
lea    0xe3a(%rip),%rbx
jmp    13ea <get_real_android+0x2ca>
lea    0xe45(%rip),%rsi
mov    %r14,%rdi
call   1040 <strstr@plt>
test   %rax,%rax
je     1224 <get_real_android+0x104>
lea    0xe25(%rip),%rbx
jmp    13ea <get_real_android+0x2ca>
lea    0xe37(%rip),%rsi
mov    %r14,%rdi
call   1040 <strstr@plt>
test   %rax,%rax
je     1244 <get_real_android+0x124>
lea    0xe17(%rip),%rbx
jmp    13ea <get_real_android+0x2ca>
lea    0xe24(%rip),%rsi
mov    %r14,%rdi
call   1040 <strstr@plt>
test   %rax,%rax
je     1264 <get_real_android+0x144>
lea    0xe07(%rip),%rbx
jmp    13ea <get_real_android+0x2ca>
lea    0xe11(%rip),%rsi
mov    %r14,%rdi
call   1040 <strstr@plt>
test   %rax,%rax
je     1284 <get_real_android+0x164>
lea    0xdf4(%rip),%rbx
jmp    13ea <get_real_android+0x2ca>
lea    0xdfc(%rip),%rsi
mov    %r14,%rdi
call   1040 <strstr@plt>
test   %rax,%rax
je     12a4 <get_real_android+0x184>
lea    0xde1(%rip),%rbx
jmp    13ea <get_real_android+0x2ca>
lea    0xdeb(%rip),%rsi
mov    %r14,%rdi
call   1040 <strstr@plt>
test   %rax,%rax
je     12c4 <get_real_android+0x1a4>
lea    0xdcc(%rip),%rbx
jmp    13ea <get_real_android+0x2ca>
lea    0xdda(%rip),%rsi
mov    %r14,%rdi
call   1040 <strstr@plt>
test   %rax,%rax
je     12e4 <get_real_android+0x1c4>
lea    0xdbb(%rip),%rbx
jmp    13ea <get_real_android+0x2ca>
lea    0xdc9(%rip),%rsi
mov    %r14,%rdi
call   1040 <strstr@plt>
test   %rax,%rax
je     1304 <get_real_android+0x1e4>
lea    0xdaa(%rip),%rbx
jmp    13ea <get_real_android+0x2ca>
lea    0xdc0(%rip),%rsi
mov    %r14,%rdi
call   1040 <strstr@plt>
test   %rax,%rax
je     1324 <get_real_android+0x204>
lea    0xd99(%rip),%rbx
jmp    13ea <get_real_android+0x2ca>
lea    0xda4(%rip),%rsi
mov    %r14,%rdi
call   1040 <strstr@plt>
test   %rax,%rax
je     1344 <get_real_android+0x224>
lea    0xd93(%rip),%rbx
jmp    13ea <get_real_android+0x2ca>
lea    0xd9f(%rip),%rsi
mov    %r14,%rdi
call   1040 <strstr@plt>
test   %rax,%rax
je     1364 <get_real_android+0x244>
lea    0xd7f(%rip),%rbx
jmp    13ea <get_real_android+0x2ca>
lea    0xd89(%rip),%rsi
mov    %r14,%rdi
call   1040 <strstr@plt>
test   %rax,%rax
je     1381 <get_real_android+0x261>
lea    0xd6f(%rip),%rbx
jmp    13ea <get_real_android+0x2ca>
lea    0xd70(%rip),%rsi
mov    %r14,%rdi
call   1040 <strstr@plt>
lea    0xd69(%rip),%rbx
test   %rax,%rax
jne    13ea <get_real_android+0x2ca>
lea    0xd59(%rip),%rsi
mov    %r14,%rdi
call   1040 <strstr@plt>
test   %rax,%rax
jne    13ea <get_real_android+0x2ca>
lea    0xd58(%rip),%rsi
mov    %r14,%rdi
call   1040 <strstr@plt>
test   %rax,%rax
je     13cd <get_real_android+0x2ad>
lea    0xd3e(%rip),%rbx
jmp    13ea <get_real_android+0x2ca>
lea    0xd47(%rip),%rsi
mov    %r14,%rdi
call   1040 <strstr@plt>
test   %rax,%rax
lea    0xd2d(%rip),%rbx
cmove  %r14,%rbx
mov    %rbx,%rdi
add    $0x8,%rsp
pop    %rbx
pop    %r14
jmp    1030 <alloc_string@plt>

LLVM IR (-O0):
@.str = [3 x i8] c"11\00"
@.str.1 = [11 x i8] c"Android 11\00"
@.str.2 = [3 x i8] c"10\00"
@.str.3 = [11 x i8] c"Android 10\00"
@.str.4 = [2 x i8] c"9\00"
@.str.5 = [6 x i8] c"Pie 9\00"
@.str.6 = [4 x i8] c"8.1\00"
@.str.7 = [9 x i8] c"Oreo 8.1\00"
@.str.8 = [4 x i8] c"8.0\00"
@.str.9 = [9 x i8] c"Oreo 8.0\00"
@.str.10 = [4 x i8] c"7.1\00"
@.str.11 = [11 x i8] c"Nougat 7.1\00"
@.str.12 = [4 x i8] c"7.0\00"
@.str.13 = [11 x i8] c"Nougat 7.0\00"
@.str.14 = [6 x i8] c"6.0.1\00"
@.str.15 = [18 x i8] c"Marshmallow 6.0.1\00"
@.str.16 = [4 x i8] c"6.0\00"
@.str.17 = [16 x i8] c"Marshmallow 6.0\00"
@.str.18 = [4 x i8] c"5.1\00"
@.str.19 = [13 x i8] c"Lollipop 5.1\00"
@.str.20 = [4 x i8] c"5.0\00"
@.str.21 = [13 x i8] c"Lollipop 5.0\00"
@.str.22 = [4 x i8] c"4.4\00"
@.str.23 = [11 x i8] c"KitKat 4.4\00"
@.str.24 = [4 x i8] c"4.3\00"
@.str.25 = [15 x i8] c"Jelly Bean 4.3\00"
@.str.26 = [4 x i8] c"4.2\00"
@.str.27 = [15 x i8] c"Jelly Bean 4.2\00"
@.str.28 = [4 x i8] c"4.1\00"
@.str.29 = [15 x i8] c"Jelly Bean 4.1\00"
@.str.30 = [4 x i8] c"4.0\00"
@.str.31 = [23 x i8] c"Ice Cream Sandwich 4.0\00"
@.str.32 = [3 x i8] c"3.\00"
@.str.33 = [12 x i8] c"Honeycomb 3\00"
@.str.34 = [4 x i8] c"2.3\00"
@.str.35 = [16 x i8] c"Gingerbread 2.3\00"
@.str.36 = [4 x i8] c"2.2\00"
@.str.37 = [10 x i8] c"Froyo 2.2\00"
@.str.38 = [4 x i8] c"2.0\00"
@.str.39 = [4 x i8] c"2.1\00"
@.str.40 = [9 x i8] c"Eclair 2\00"
@.str.41 = [4 x i8] c"1.6\00"
@.str.42 = [10 x i8] c"Donut 1.6\00"
@.str.43 = [4 x i8] c"1.5\00"
@.str.44 = [12 x i8] c"Cupcake 1.5\00"
define i8* @get_real_android(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 ([3 x i8], [3 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 ([11 x i8], [11 x i8]* @.str.1, i64 0, i64 0))
store i8* %8, i8** %2
br label %163
9: ; preds = %1
%10 = load i8*, i8** %3
%11 = call i64 @strstr(i8* %10, i8* getelementptr inbounds ([3 x i8], [3 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 ([11 x i8], [11 x i8]* @.str.3, i64 0, i64 0))
store i8* %14, i8** %2
br label %163
15: ; preds = %9
%16 = load i8*, i8** %3
%17 = call i64 @strstr(i8* %16, i8* getelementptr inbounds ([2 x i8], [2 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 ([6 x i8], [6 x i8]* @.str.5, i64 0, i64 0))
store i8* %20, i8** %2
br label %163
21: ; preds = %15
%22 = load i8*, i8** %3
%23 = call i64 @strstr(i8* %22, i8* getelementptr inbounds ([4 x i8], [4 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 ([9 x i8], [9 x i8]* @.str.7, i64 0, i64 0))
store i8* %26, i8** %2
br label %163
27: ; preds = %21
%28 = load i8*, i8** %3
%29 = call i64 @strstr(i8* %28, i8* getelementptr inbounds ([4 x i8], [4 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 ([9 x i8], [9 x i8]* @.str.9, i64 0, i64 0))
store i8* %32, i8** %2
br label %163
33: ; preds = %27
%34 = load i8*, i8** %3
%35 = call i64 @strstr(i8* %34, i8* getelementptr inbounds ([4 x i8], [4 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 ([11 x i8], [11 x i8]* @.str.11, i64 0, i64 0))
store i8* %38, i8** %2
br label %163
39: ; preds = %33
%40 = load i8*, i8** %3
%41 = call i64 @strstr(i8* %40, i8* getelementptr inbounds ([4 x i8], [4 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 %163
45: ; preds = %39
%46 = load i8*, i8** %3
%47 = call i64 @strstr(i8* %46, i8* getelementptr inbounds ([6 x i8], [6 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 ([18 x i8], [18 x i8]* @.str.15, i64 0, i64 0))
store i8* %50, i8** %2
br label %163
51: ; preds = %45
%52 = load i8*, i8** %3
%53 = call i64 @strstr(i8* %52, i8* getelementptr inbounds ([4 x i8], [4 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 ([16 x i8], [16 x i8]* @.str.17, i64 0, i64 0))
store i8* %56, i8** %2
br label %163
57: ; preds = %51
%58 = load i8*, i8** %3
%59 = call i64 @strstr(i8* %58, i8* getelementptr inbounds ([4 x i8], [4 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 ([13 x i8], [13 x i8]* @.str.19, i64 0, i64 0))
store i8* %62, i8** %2
br label %163
63: ; preds = %57
%64 = load i8*, i8** %3
%65 = call i64 @strstr(i8* %64, i8* getelementptr inbounds ([4 x i8], [4 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 %163
69: ; preds = %63
%70 = load i8*, i8** %3
%71 = call i64 @strstr(i8* %70, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.22, i64 0, i64 0))
%72 = icmp ne i64 %71, 0
br i1 %72, label %73, label %75
73: ; preds = %69
%74 = call i8* @alloc_string(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.23, i64 0, i64 0))
store i8* %74, i8** %2
br label %163
75: ; preds = %69
%76 = load i8*, i8** %3
%77 = call i64 @strstr(i8* %76, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.24, i64 0, i64 0))
%78 = icmp ne i64 %77, 0
br i1 %78, label %79, label %81
79: ; preds = %75
%80 = call i8* @alloc_string(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.25, i64 0, i64 0))
store i8* %80, i8** %2
br label %163
81: ; preds = %75
%82 = load i8*, i8** %3
%83 = call i64 @strstr(i8* %82, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.26, i64 0, i64 0))
%84 = icmp ne i64 %83, 0
br i1 %84, label %85, label %87
85: ; preds = %81
%86 = call i8* @alloc_string(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.27, i64 0, i64 0))
store i8* %86, i8** %2
br label %163
87: ; preds = %81
%88 = load i8*, i8** %3
%89 = call i64 @strstr(i8* %88, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.28, i64 0, i64 0))
%90 = icmp ne i64 %89, 0
br i1 %90, label %91, label %93
91: ; preds = %87
%92 = call i8* @alloc_string(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.29, i64 0, i64 0))
store i8* %92, i8** %2
br label %163
93: ; preds = %87
%94 = load i8*, i8** %3
%95 = call i64 @strstr(i8* %94, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.30, i64 0, i64 0))
%96 = icmp ne i64 %95, 0
br i1 %96, label %97, label %99
97: ; preds = %93
%98 = call i8* @alloc_string(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.31, i64 0, i64 0))
store i8* %98, i8** %2
br label %163
99: ; preds = %93
%100 = load i8*, i8** %3
%101 = call i64 @strstr(i8* %100, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.32, i64 0, i64 0))
%102 = icmp ne i64 %101, 0
br i1 %102, label %103, label %105
103: ; preds = %99
%104 = call i8* @alloc_string(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.33, i64 0, i64 0))
store i8* %104, i8** %2
br label %163
105: ; preds = %99
%106 = load i8*, i8** %3
%107 = call i64 @strstr(i8* %106, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.34, i64 0, i64 0))
%108 = icmp ne i64 %107, 0
br i1 %108, label %109, label %111
109: ; preds = %105
%110 = call i8* @alloc_string(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.35, i64 0, i64 0))
store i8* %110, i8** %2
br label %163
111: ; preds = %105
%112 = load i8*, i8** %3
%113 = call i64 @strstr(i8* %112, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.36, i64 0, i64 0))
%114 = icmp ne i64 %113, 0
br i1 %114, label %115, label %117
115: ; preds = %111
%116 = call i8* @alloc_string(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.37, i64 0, i64 0))
store i8* %116, i8** %2
br label %163
117: ; preds = %111
%118 = load i8*, i8** %3
%119 = call i64 @strstr(i8* %118, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.38, i64 0, i64 0))
%120 = icmp ne i64 %119, 0
br i1 %120, label %125, label %121
121: ; preds = %117
%122 = load i8*, i8** %3
%123 = call i64 @strstr(i8* %122, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.39, i64 0, i64 0))
%124 = icmp ne i64 %123, 0
br i1 %124, label %125, label %127
125: ; preds = %121, %117
%126 = call i8* @alloc_string(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.40, i64 0, i64 0))
store i8* %126, i8** %2
br label %163
127: ; preds = %121
%128 = load i8*, i8** %3
%129 = call i64 @strstr(i8* %128, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.41, i64 0, i64 0))
%130 = icmp ne i64 %129, 0
br i1 %130, label %131, label %133
131: ; preds = %127
%132 = call i8* @alloc_string(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.42, i64 0, i64 0))
store i8* %132, i8** %2
br label %163
133: ; preds = %127
%134 = load i8*, i8** %3
%135 = call i64 @strstr(i8* %134, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.43, i64 0, i64 0))
%136 = icmp ne i64 %135, 0
br i1 %136, label %137, label %139
137: ; preds = %133
%138 = call i8* @alloc_string(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.44, i64 0, i64 0))
store i8* %138, i8** %2
br label %163
139: ; preds = %133
br label %140
140: ; preds = %139
br label %141
141: ; preds = %140
br label %142
142: ; preds = %141
br label %143
143: ; preds = %142
br label %144
144: ; preds = %143
br label %145
145: ; preds = %144
br label %146
146: ; preds = %145
br label %147
147: ; preds = %146
br label %148
148: ; preds = %147
br label %149
149: ; preds = %148
br label %150
150: ; preds = %149
br label %151
151: ; preds = %150
br label %152
152: ; preds = %151
br label %153
153: ; preds = %152
br label %154
154: ; preds = %153
br label %155
155: ; preds = %154
br label %156
156: ; preds = %155
br label %157
157: ; preds = %156
br label %158
158: ; preds = %157
br label %159
159: ; preds = %158
br label %160
160: ; preds = %159
%161 = load i8*, i8** %3
%162 = call i8* @alloc_string(i8* %161)
store i8* %162, i8** %2
br label %163
163: ; preds = %160, %137, %131, %125, %115, %109, %103, %97, %91, %85, %79, %73, %67, %61, %55, %49, %43, %37, %31, %25, %19, %13, %7
%164 = load i8*, i8** %2
ret i8* %164
}

LLVM IR (-O2):
@.str = [3 x i8] c"11\00"
@.str.1 = [11 x i8] c"Android 11\00"
@.str.2 = [3 x i8] c"10\00"
@.str.3 = [11 x i8] c"Android 10\00"
@.str.4 = [2 x i8] c"9\00"
@.str.5 = [6 x i8] c"Pie 9\00"
@.str.6 = [4 x i8] c"8.1\00"
@.str.7 = [9 x i8] c"Oreo 8.1\00"
@.str.8 = [4 x i8] c"8.0\00"
@.str.9 = [9 x i8] c"Oreo 8.0\00"
@.str.10 = [4 x i8] c"7.1\00"
@.str.11 = [11 x i8] c"Nougat 7.1\00"
@.str.12 = [4 x i8] c"7.0\00"
@.str.13 = [11 x i8] c"Nougat 7.0\00"
@.str.14 = [6 x i8] c"6.0.1\00"
@.str.15 = [18 x i8] c"Marshmallow 6.0.1\00"
@.str.16 = [4 x i8] c"6.0\00"
@.str.17 = [16 x i8] c"Marshmallow 6.0\00"
@.str.18 = [4 x i8] c"5.1\00"
@.str.19 = [13 x i8] c"Lollipop 5.1\00"
@.str.20 = [4 x i8] c"5.0\00"
@.str.21 = [13 x i8] c"Lollipop 5.0\00"
@.str.22 = [4 x i8] c"4.4\00"
@.str.23 = [11 x i8] c"KitKat 4.4\00"
@.str.24 = [4 x i8] c"4.3\00"
@.str.25 = [15 x i8] c"Jelly Bean 4.3\00"
@.str.26 = [4 x i8] c"4.2\00"
@.str.27 = [15 x i8] c"Jelly Bean 4.2\00"
@.str.28 = [4 x i8] c"4.1\00"
@.str.29 = [15 x i8] c"Jelly Bean 4.1\00"
@.str.30 = [4 x i8] c"4.0\00"
@.str.31 = [23 x i8] c"Ice Cream Sandwich 4.0\00"
@.str.32 = [3 x i8] c"3.\00"
@.str.33 = [12 x i8] c"Honeycomb 3\00"
@.str.34 = [4 x i8] c"2.3\00"
@.str.35 = [16 x i8] c"Gingerbread 2.3\00"
@.str.36 = [4 x i8] c"2.2\00"
@.str.37 = [10 x i8] c"Froyo 2.2\00"
@.str.38 = [4 x i8] c"2.0\00"
@.str.39 = [4 x i8] c"2.1\00"
@.str.40 = [9 x i8] c"Eclair 2\00"
@.str.41 = [4 x i8] c"1.6\00"
@.str.42 = [10 x i8] c"Donut 1.6\00"
@.str.43 = [4 x i8] c"1.5\00"
@.str.44 = [12 x i8] c"Cupcake 1.5\00"
define i8* @get_real_android(i8* %0) {
%2 = tail call i64 @strstr(i8* %0, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0))
%3 = icmp eq i64 %2, 0
br i1 %3, label %4, label %71
4: ; preds = %1
%5 = tail call i64 @strstr(i8* %0, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0))
%6 = icmp eq i64 %5, 0
br i1 %6, label %7, label %71
7: ; preds = %4
%8 = tail call i64 @strstr(i8* %0, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.4, i64 0, i64 0))
%9 = icmp eq i64 %8, 0
br i1 %9, label %10, label %71
10: ; preds = %7
%11 = tail call i64 @strstr(i8* %0, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.6, i64 0, i64 0))
%12 = icmp eq i64 %11, 0
br i1 %12, label %13, label %71
13: ; preds = %10
%14 = tail call i64 @strstr(i8* %0, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.8, i64 0, i64 0))
%15 = icmp eq i64 %14, 0
br i1 %15, label %16, label %71
16: ; preds = %13
%17 = tail call i64 @strstr(i8* %0, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.10, i64 0, i64 0))
%18 = icmp eq i64 %17, 0
br i1 %18, label %19, label %71
19: ; preds = %16
%20 = tail call i64 @strstr(i8* %0, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.12, i64 0, i64 0))
%21 = icmp eq i64 %20, 0
br i1 %21, label %22, label %71
22: ; preds = %19
%23 = tail call i64 @strstr(i8* %0, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.14, i64 0, i64 0))
%24 = icmp eq i64 %23, 0
br i1 %24, label %25, label %71
25: ; preds = %22
%26 = tail call i64 @strstr(i8* %0, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.16, i64 0, i64 0))
%27 = icmp eq i64 %26, 0
br i1 %27, label %28, label %71
28: ; preds = %25
%29 = tail call i64 @strstr(i8* %0, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.18, i64 0, i64 0))
%30 = icmp eq i64 %29, 0
br i1 %30, label %31, label %71
31: ; preds = %28
%32 = tail call i64 @strstr(i8* %0, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.20, i64 0, i64 0))
%33 = icmp eq i64 %32, 0
br i1 %33, label %34, label %71
34: ; preds = %31
%35 = tail call i64 @strstr(i8* %0, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.22, i64 0, i64 0))
%36 = icmp eq i64 %35, 0
br i1 %36, label %37, label %71
37: ; preds = %34
%38 = tail call i64 @strstr(i8* %0, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.24, i64 0, i64 0))
%39 = icmp eq i64 %38, 0
br i1 %39, label %40, label %71
40: ; preds = %37
%41 = tail call i64 @strstr(i8* %0, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.26, i64 0, i64 0))
%42 = icmp eq i64 %41, 0
br i1 %42, label %43, label %71
43: ; preds = %40
%44 = tail call i64 @strstr(i8* %0, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.28, i64 0, i64 0))
%45 = icmp eq i64 %44, 0
br i1 %45, label %46, label %71
46: ; preds = %43
%47 = tail call i64 @strstr(i8* %0, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.30, i64 0, i64 0))
%48 = icmp eq i64 %47, 0
br i1 %48, label %49, label %71
49: ; preds = %46
%50 = tail call i64 @strstr(i8* %0, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.32, i64 0, i64 0))
%51 = icmp eq i64 %50, 0
br i1 %51, label %52, label %71
52: ; preds = %49
%53 = tail call i64 @strstr(i8* %0, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.34, i64 0, i64 0))
%54 = icmp eq i64 %53, 0
br i1 %54, label %55, label %71
55: ; preds = %52
%56 = tail call i64 @strstr(i8* %0, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.36, i64 0, i64 0))
%57 = icmp eq i64 %56, 0
br i1 %57, label %58, label %71
58: ; preds = %55
%59 = tail call i64 @strstr(i8* %0, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.38, i64 0, i64 0))
%60 = icmp eq i64 %59, 0
br i1 %60, label %61, label %71
61: ; preds = %58
%62 = tail call i64 @strstr(i8* %0, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.39, i64 0, i64 0))
%63 = icmp eq i64 %62, 0
br i1 %63, label %64, label %71
64: ; preds = %61
%65 = tail call i64 @strstr(i8* %0, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.41, i64 0, i64 0))
%66 = icmp eq i64 %65, 0
br i1 %66, label %67, label %71
67: ; preds = %64
%68 = tail call i64 @strstr(i8* %0, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.43, i64 0, i64 0))
%69 = icmp eq i64 %68, 0
%70 = select i1 %69, i8* %0, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.44, i64 0, i64 0)
br label %71
71: ; preds = %67, %64, %58, %61, %55, %52, %49, %46, %43, %40, %37, %34, %31, %28, %25, %22, %19, %16, %13, %10, %7, %4, %1
%72 = phi i8* [ getelementptr inbounds ([11 x i8], [11 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 ([6 x i8], [6 x i8]* @.str.5, i64 0, i64 0), %7 ], [ getelementptr inbounds ([9 x i8], [9 x i8]* @.str.7, i64 0, i64 0), %10 ], [ getelementptr inbounds ([9 x i8], [9 x i8]* @.str.9, i64 0, i64 0), %13 ], [ getelementptr inbounds ([11 x i8], [11 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 ([18 x i8], [18 x i8]* @.str.15, i64 0, i64 0), %22 ], [ getelementptr inbounds ([16 x i8], [16 x i8]* @.str.17, i64 0, i64 0), %25 ], [ getelementptr inbounds ([13 x i8], [13 x i8]* @.str.19, i64 0, i64 0), %28 ], [ getelementptr inbounds ([13 x i8], [13 x i8]* @.str.21, i64 0, i64 0), %31 ], [ getelementptr inbounds ([11 x i8], [11 x i8]* @.str.23, i64 0, i64 0), %34 ], [ getelementptr inbounds ([15 x i8], [15 x i8]* @.str.25, i64 0, i64 0), %37 ], [ getelementptr inbounds ([15 x i8], [15 x i8]* @.str.27, i64 0, i64 0), %40 ], [ getelementptr inbounds ([15 x i8], [15 x i8]* @.str.29, i64 0, i64 0), %43 ], [ getelementptr inbounds ([23 x i8], [23 x i8]* @.str.31, i64 0, i64 0), %46 ], [ getelementptr inbounds ([12 x i8], [12 x i8]* @.str.33, i64 0, i64 0), %49 ], [ getelementptr inbounds ([16 x i8], [16 x i8]* @.str.35, i64 0, i64 0), %52 ], [ getelementptr inbounds ([10 x i8], [10 x i8]* @.str.37, i64 0, i64 0), %55 ], [ getelementptr inbounds ([9 x i8], [9 x i8]* @.str.40, i64 0, i64 0), %61 ], [ getelementptr inbounds ([9 x i8], [9 x i8]* @.str.40, i64 0, i64 0), %58 ], [ getelementptr inbounds ([10 x i8], [10 x i8]* @.str.42, i64 0, i64 0), %64 ], [ %70, %67 ]
%73 = tail call i8* @alloc_string(i8* %72)
ret i8* %73
}