#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*/ strcmp(char const *, char *);
void deduce_lv_set_size(const char *name, int *sys, int *dat, int *cac) {
  if (!strcmp(name, "android22")) {
    *sys = 256;
    *dat = 448;
    *cac = 200;
  } else if (!strcmp(name, "android23")) {
    *sys = 304;
    *dat = 504;
    *cac = 200;
  } else if (!strcmp(name, "android40")) {
    *sys = 352;
    *dat = 754;
    *cac = 200;
  } else if (!strcmp(name, "android41")) {
    *sys = 448;
    *dat = 754;
    *cac = 200;
  } else if (!strcmp(name, "android42")) {
    *sys = 448;
    *dat = 754;
    *cac = 200;
  }
}


x86 assembly (clang, -O0):
<deduce_lv_set_size>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    %rcx,-0x20(%rbp)
mov    -0x8(%rbp),%rdi
lea    0xecd(%rip),%rsi
call   1030 <strcmp@plt>
cmp    $0x0,%eax
jne    1164 <deduce_lv_set_size+0x54>
mov    -0x10(%rbp),%rax
movl   $0x100,(%rax)
mov    -0x18(%rbp),%rax
movl   $0x1c0,(%rax)
mov    -0x20(%rbp),%rax
movl   $0xc8,(%rax)
jmp    1263 <deduce_lv_set_size+0x153>
mov    -0x8(%rbp),%rdi
lea    0xe9b(%rip),%rsi
call   1030 <strcmp@plt>
cmp    $0x0,%eax
jne    11a0 <deduce_lv_set_size+0x90>
mov    -0x10(%rbp),%rax
movl   $0x130,(%rax)
mov    -0x18(%rbp),%rax
movl   $0x1f8,(%rax)
mov    -0x20(%rbp),%rax
movl   $0xc8,(%rax)
jmp    125e <deduce_lv_set_size+0x14e>
mov    -0x8(%rbp),%rdi
lea    0xe69(%rip),%rsi
call   1030 <strcmp@plt>
cmp    $0x0,%eax
jne    11dc <deduce_lv_set_size+0xcc>
mov    -0x10(%rbp),%rax
movl   $0x160,(%rax)
mov    -0x18(%rbp),%rax
movl   $0x2f2,(%rax)
mov    -0x20(%rbp),%rax
movl   $0xc8,(%rax)
jmp    1259 <deduce_lv_set_size+0x149>
mov    -0x8(%rbp),%rdi
lea    0xe37(%rip),%rsi
call   1030 <strcmp@plt>
cmp    $0x0,%eax
jne    1218 <deduce_lv_set_size+0x108>
mov    -0x10(%rbp),%rax
movl   $0x1c0,(%rax)
mov    -0x18(%rbp),%rax
movl   $0x2f2,(%rax)
mov    -0x20(%rbp),%rax
movl   $0xc8,(%rax)
jmp    1254 <deduce_lv_set_size+0x144>
mov    -0x8(%rbp),%rdi
lea    0xe05(%rip),%rsi
call   1030 <strcmp@plt>
cmp    $0x0,%eax
jne    124f <deduce_lv_set_size+0x13f>
mov    -0x10(%rbp),%rax
movl   $0x1c0,(%rax)
mov    -0x18(%rbp),%rax
movl   $0x2f2,(%rax)
mov    -0x20(%rbp),%rax
movl   $0xc8,(%rax)
jmp    1254 <deduce_lv_set_size+0x144>
jmp    1259 <deduce_lv_set_size+0x149>
jmp    125e <deduce_lv_set_size+0x14e>
jmp    1263 <deduce_lv_set_size+0x153>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<deduce_lv_set_size>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
push   %rax
mov    %rcx,%r14
mov    %rdx,%r15
mov    %rsi,%r12
mov    %rdi,%rbx
lea    0xed2(%rip),%rsi
call   1030 <strcmp@plt>
test   %eax,%eax
je     1190 <deduce_lv_set_size+0x80>
lea    0xecc(%rip),%rsi
mov    %rbx,%rdi
call   1030 <strcmp@plt>
test   %eax,%eax
je     119d <deduce_lv_set_size+0x8d>
lea    0xec3(%rip),%rsi
mov    %rbx,%rdi
call   1030 <strcmp@plt>
mov    $0x2f2,%r13d
test   %eax,%eax
je     11aa <deduce_lv_set_size+0x9a>
lea    0xeb4(%rip),%rsi
mov    %rbx,%rdi
call   1030 <strcmp@plt>
mov    $0x1c0,%ebp
test   %eax,%eax
je     11af <deduce_lv_set_size+0x9f>
lea    0xea6(%rip),%rsi
mov    %rbx,%rdi
call   1030 <strcmp@plt>
test   %eax,%eax
jne    11bd <deduce_lv_set_size+0xad>
jmp    11af <deduce_lv_set_size+0x9f>
mov    $0x1c0,%r13d
mov    $0x100,%ebp
jmp    11af <deduce_lv_set_size+0x9f>
mov    $0x1f8,%r13d
mov    $0x130,%ebp
jmp    11af <deduce_lv_set_size+0x9f>
mov    $0x160,%ebp
mov    %ebp,(%r12)
mov    %r13d,(%r15)
movl   $0xc8,(%r14)
add    $0x8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [10 x i8] c"android22\00"
@.str.1 = [10 x i8] c"android23\00"
@.str.2 = [10 x i8] c"android40\00"
@.str.3 = [10 x i8] c"android41\00"
@.str.4 = [10 x i8] c"android42\00"
define void @deduce_lv_set_size(i8* %0, i32* %1, i32* %2, i32* %3) {
%5 = alloca i8*
%6 = alloca i32*
%7 = alloca i32*
%8 = alloca i32*
store i8* %0, i8** %5
store i32* %1, i32** %6
store i32* %2, i32** %7
store i32* %3, i32** %8
%9 = load i8*, i8** %5
%10 = call i32 @strcmp(i8* %9, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str, i64 0, i64 0))
%11 = icmp ne i32 %10, 0
br i1 %11, label %16, label %12
12: ; preds = %4
%13 = load i32*, i32** %6
store i32 256, i32* %13
%14 = load i32*, i32** %7
store i32 448, i32* %14
%15 = load i32*, i32** %8
store i32 200, i32* %15
br label %52
16: ; preds = %4
%17 = load i8*, i8** %5
%18 = call i32 @strcmp(i8* %17, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.1, i64 0, i64 0))
%19 = icmp ne i32 %18, 0
br i1 %19, label %24, label %20
20: ; preds = %16
%21 = load i32*, i32** %6
store i32 304, i32* %21
%22 = load i32*, i32** %7
store i32 504, i32* %22
%23 = load i32*, i32** %8
store i32 200, i32* %23
br label %51
24: ; preds = %16
%25 = load i8*, i8** %5
%26 = call i32 @strcmp(i8* %25, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.2, i64 0, i64 0))
%27 = icmp ne i32 %26, 0
br i1 %27, label %32, label %28
28: ; preds = %24
%29 = load i32*, i32** %6
store i32 352, i32* %29
%30 = load i32*, i32** %7
store i32 754, i32* %30
%31 = load i32*, i32** %8
store i32 200, i32* %31
br label %50
32: ; preds = %24
%33 = load i8*, i8** %5
%34 = call i32 @strcmp(i8* %33, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.3, i64 0, i64 0))
%35 = icmp ne i32 %34, 0
br i1 %35, label %40, label %36
36: ; preds = %32
%37 = load i32*, i32** %6
store i32 448, i32* %37
%38 = load i32*, i32** %7
store i32 754, i32* %38
%39 = load i32*, i32** %8
store i32 200, i32* %39
br label %49
40: ; preds = %32
%41 = load i8*, i8** %5
%42 = call i32 @strcmp(i8* %41, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.4, i64 0, i64 0))
%43 = icmp ne i32 %42, 0
br i1 %43, label %48, label %44
44: ; preds = %40
%45 = load i32*, i32** %6
store i32 448, i32* %45
%46 = load i32*, i32** %7
store i32 754, i32* %46
%47 = load i32*, i32** %8
store i32 200, i32* %47
br label %48
48: ; preds = %44, %40
br label %49
49: ; preds = %48, %36
br label %50
50: ; preds = %49, %28
br label %51
51: ; preds = %50, %20
br label %52
52: ; preds = %51, %12
ret void
}

LLVM IR (-O2):
@.str = [10 x i8] c"android22\00"
@.str.1 = [10 x i8] c"android23\00"
@.str.2 = [10 x i8] c"android40\00"
@.str.3 = [10 x i8] c"android41\00"
@.str.4 = [10 x i8] c"android42\00"
define void @deduce_lv_set_size(i8* nocapture %0, i32* nocapture writeonly %1, i32* nocapture writeonly %2, i32* nocapture writeonly %3) {
%5 = tail call i32 @strcmp(i8* dereferenceable(1) %0, i8* dereferenceable(10) getelementptr inbounds ([10 x i8], [10 x i8]* @.str, i64 0, i64 0))
%6 = icmp eq i32 %5, 0
br i1 %6, label %19, label %7
7: ; preds = %4
%8 = tail call i32 @strcmp(i8* dereferenceable(1) %0, i8* dereferenceable(10) getelementptr inbounds ([10 x i8], [10 x i8]* @.str.1, i64 0, i64 0))
%9 = icmp eq i32 %8, 0
br i1 %9, label %19, label %10
10: ; preds = %7
%11 = tail call i32 @strcmp(i8* dereferenceable(1) %0, i8* dereferenceable(10) getelementptr inbounds ([10 x i8], [10 x i8]* @.str.2, i64 0, i64 0))
%12 = icmp eq i32 %11, 0
br i1 %12, label %19, label %13
13: ; preds = %10
%14 = tail call i32 @strcmp(i8* dereferenceable(1) %0, i8* dereferenceable(10) getelementptr inbounds ([10 x i8], [10 x i8]* @.str.3, i64 0, i64 0))
%15 = icmp eq i32 %14, 0
br i1 %15, label %19, label %16
16: ; preds = %13
%17 = tail call i32 @strcmp(i8* dereferenceable(1) %0, i8* dereferenceable(10) getelementptr inbounds ([10 x i8], [10 x i8]* @.str.4, i64 0, i64 0))
%18 = icmp eq i32 %17, 0
br i1 %18, label %19, label %22
19: ; preds = %16, %13, %10, %7, %4
%20 = phi i32 [ 256, %4 ], [ 304, %7 ], [ 352, %10 ], [ 448, %13 ], [ 448, %16 ]
%21 = phi i32 [ 448, %4 ], [ 504, %7 ], [ 754, %10 ], [ 754, %13 ], [ 754, %16 ]
store i32 %20, i32* %1
store i32 %21, i32* %2
store i32 200, i32* %3
br label %22
22: ; preds = %19, %16
ret void
}