#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 *);
void log_aximddns_message(int status) {
  if (status == 0)
    printf("Message:Setting success\n");
  else if (status == (-100 - 101))
    printf("Error Message:The user name has been used\n");
  else if (status == (-100 - 102))
    printf("Error Message:The user name is net allow to use\n");
  else if (status == (-100 - 103))
    printf("Error Message:Network timeout\n");
  else if (status == (-100 - 104))
    printf("Error Message:AXIMDDNS is busy\n");
  else if (status == (-100 - 105))
    printf("Error Message:Your serial number or mac address is error\n");
  else if (status == (-100 - 107) || status == (-300 - 1) ||
           status == (-300 - 2) || status == (-300 - 3) || status == (-300 - 4))
    printf("Error Message:Setting failure\n");
}


x86 assembly (clang, -O0):
<log_aximddns_message>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
cmpl   $0x0,-0x4(%rbp)
jne    1136 <log_aximddns_message+0x26>
lea    0xed4(%rip),%rdi
call   1030 <printf@plt>
jmp    1237 <log_aximddns_message+0x127>
cmpl   $0xffffff37,-0x4(%rbp)
jne    1154 <log_aximddns_message+0x44>
lea    0xecf(%rip),%rdi
call   1030 <printf@plt>
jmp    1232 <log_aximddns_message+0x122>
cmpl   $0xffffff36,-0x4(%rbp)
jne    1172 <log_aximddns_message+0x62>
lea    0xedc(%rip),%rdi
call   1030 <printf@plt>
jmp    122d <log_aximddns_message+0x11d>
cmpl   $0xffffff35,-0x4(%rbp)
jne    1190 <log_aximddns_message+0x80>
lea    0xeef(%rip),%rdi
call   1030 <printf@plt>
jmp    1228 <log_aximddns_message+0x118>
cmpl   $0xffffff34,-0x4(%rbp)
jne    11ae <log_aximddns_message+0x9e>
lea    0xef0(%rip),%rdi
call   1030 <printf@plt>
jmp    1223 <log_aximddns_message+0x113>
cmpl   $0xffffff33,-0x4(%rbp)
jne    11cc <log_aximddns_message+0xbc>
lea    0xef2(%rip),%rdi
call   1030 <printf@plt>
jmp    121e <log_aximddns_message+0x10e>
cmpl   $0xffffff31,-0x4(%rbp)
je     120d <log_aximddns_message+0xfd>
cmpl   $0xfffffed3,-0x4(%rbp)
je     120d <log_aximddns_message+0xfd>
cmpl   $0xfffffed2,-0x4(%rbp)
je     120d <log_aximddns_message+0xfd>
cmpl   $0xfffffed1,-0x4(%rbp)
je     120d <log_aximddns_message+0xfd>
cmpl   $0xfffffed0,-0x4(%rbp)
jne    1219 <log_aximddns_message+0x109>
lea    0xeda(%rip),%rdi
call   1030 <printf@plt>
jmp    121e <log_aximddns_message+0x10e>
jmp    1223 <log_aximddns_message+0x113>
jmp    1228 <log_aximddns_message+0x118>
jmp    122d <log_aximddns_message+0x11d>
jmp    1232 <log_aximddns_message+0x122>
jmp    1237 <log_aximddns_message+0x127>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<log_aximddns_message>:
lea    0xcf(%rdi),%eax
cmp    $0x6,%eax
ja     1137 <log_aximddns_message+0x27>
lea    0xede(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
jmp    *%rax
lea    0xf08(%rip),%rdi
jmp    1030 <puts@plt>
lea    0x130(%rdi),%eax
cmp    $0x4,%eax
jae    114e <log_aximddns_message+0x3e>
lea    0xed3(%rip),%rdi
jmp    1030 <puts@plt>
test   %edi,%edi
jne    115e <log_aximddns_message+0x4e>
lea    0xfb1(%rip),%rdi
jmp    1030 <puts@plt>
ret
lea    0xf0d(%rip),%rdi
jmp    1030 <puts@plt>
lea    0xf20(%rip),%rdi
jmp    1030 <puts@plt>
lea    0xf32(%rip),%rdi
jmp    1030 <puts@plt>
lea    0xf56(%rip),%rdi
jmp    1030 <puts@plt>

LLVM IR (-O0):
@.str = [25 x i8] c"Message:Setting success\0A\00"
@.str.1 = [43 x i8] c"Error Message:The user name has been used\0A\00"
@.str.2 = [49 x i8] c"Error Message:The user name is net allow to use\0A\00"
@.str.3 = [31 x i8] c"Error Message:Network timeout\0A\00"
@.str.4 = [32 x i8] c"Error Message:AXIMDDNS is busy\0A\00"
@.str.5 = [58 x i8] c"Error Message:Your serial number or mac address is error\0A\00"
@.str.6 = [31 x i8] c"Error Message:Setting failure\0A\00"
define void @log_aximddns_message(i32 %0) {
%2 = alloca i32
store i32 %0, i32* %2
%3 = load i32, i32* %2
%4 = icmp eq i32 %3, 0
br i1 %4, label %5, label %7
5: ; preds = %1
%6 = call i32 @printf(i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str, i64 0, i64 0))
br label %55
7: ; preds = %1
%8 = load i32, i32* %2
%9 = icmp eq i32 %8, -201
br i1 %9, label %10, label %12
10: ; preds = %7
%11 = call i32 @printf(i8* getelementptr inbounds ([43 x i8], [43 x i8]* @.str.1, i64 0, i64 0))
br label %54
12: ; preds = %7
%13 = load i32, i32* %2
%14 = icmp eq i32 %13, -202
br i1 %14, label %15, label %17
15: ; preds = %12
%16 = call i32 @printf(i8* getelementptr inbounds ([49 x i8], [49 x i8]* @.str.2, i64 0, i64 0))
br label %53
17: ; preds = %12
%18 = load i32, i32* %2
%19 = icmp eq i32 %18, -203
br i1 %19, label %20, label %22
20: ; preds = %17
%21 = call i32 @printf(i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str.3, i64 0, i64 0))
br label %52
22: ; preds = %17
%23 = load i32, i32* %2
%24 = icmp eq i32 %23, -204
br i1 %24, label %25, label %27
25: ; preds = %22
%26 = call i32 @printf(i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.4, i64 0, i64 0))
br label %51
27: ; preds = %22
%28 = load i32, i32* %2
%29 = icmp eq i32 %28, -205
br i1 %29, label %30, label %32
30: ; preds = %27
%31 = call i32 @printf(i8* getelementptr inbounds ([58 x i8], [58 x i8]* @.str.5, i64 0, i64 0))
br label %50
32: ; preds = %27
%33 = load i32, i32* %2
%34 = icmp eq i32 %33, -207
br i1 %34, label %47, label %35
35: ; preds = %32
%36 = load i32, i32* %2
%37 = icmp eq i32 %36, -301
br i1 %37, label %47, label %38
38: ; preds = %35
%39 = load i32, i32* %2
%40 = icmp eq i32 %39, -302
br i1 %40, label %47, label %41
41: ; preds = %38
%42 = load i32, i32* %2
%43 = icmp eq i32 %42, -303
br i1 %43, label %47, label %44
44: ; preds = %41
%45 = load i32, i32* %2
%46 = icmp eq i32 %45, -304
br i1 %46, label %47, label %49
47: ; preds = %44, %41, %38, %35, %32
%48 = call i32 @printf(i8* getelementptr inbounds ([31 x i8], [31 x i8]* @.str.6, i64 0, i64 0))
br label %49
49: ; preds = %47, %44
br label %50
50: ; preds = %49, %30
br label %51
51: ; preds = %50, %25
br label %52
52: ; preds = %51, %20
br label %53
53: ; preds = %52, %15
br label %54
54: ; preds = %53, %10
br label %55
55: ; preds = %54, %5
ret void
}

LLVM IR (-O2):
@str = [30 x i8] c"Error Message:Setting failure\00"
@str.7 = [57 x i8] c"Error Message:Your serial number or mac address is error\00"
@str.8 = [31 x i8] c"Error Message:AXIMDDNS is busy\00"
@str.9 = [30 x i8] c"Error Message:Network timeout\00"
@str.10 = [48 x i8] c"Error Message:The user name is net allow to use\00"
@str.11 = [42 x i8] c"Error Message:The user name has been used\00"
@str.12 = [24 x i8] c"Message:Setting success\00"
define void @log_aximddns_message(i32 %0) {
switch i32 %0, label %11 [
i32 0, label %8
i32 -201, label %2
i32 -202, label %3
i32 -203, label %4
i32 -204, label %5
i32 -205, label %6
i32 -207, label %7
i32 -301, label %7
i32 -302, label %7
i32 -303, label %7
i32 -304, label %7
]
2: ; preds = %1
br label %8
3: ; preds = %1
br label %8
4: ; preds = %1
br label %8
5: ; preds = %1
br label %8
6: ; preds = %1
br label %8
7: ; preds = %1, %1, %1, %1, %1
br label %8
8: ; preds = %1, %3, %5, %7, %6, %4, %2
%9 = phi i8* [ getelementptr inbounds ([42 x i8], [42 x i8]* @str.11, i64 0, i64 0), %2 ], [ getelementptr inbounds ([30 x i8], [30 x i8]* @str.9, i64 0, i64 0), %4 ], [ getelementptr inbounds ([57 x i8], [57 x i8]* @str.7, i64 0, i64 0), %6 ], [ getelementptr inbounds ([30 x i8], [30 x i8]* @str, i64 0, i64 0), %7 ], [ getelementptr inbounds ([31 x i8], [31 x i8]* @str.8, i64 0, i64 0), %5 ], [ getelementptr inbounds ([48 x i8], [48 x i8]* @str.10, i64 0, i64 0), %3 ], [ getelementptr inbounds ([24 x i8], [24 x i8]* @str.12, i64 0, i64 0), %1 ]
%10 = tail call i32 @puts(i8* dereferenceable(1) %9)
br label %11
11: ; preds = %8, %1
ret void
}