char *ini_error(int errno) {
  static char *msg;
  switch (errno) {
  case 0:
    msg = "成功!";
    break;
  case -1:
    msg = "失败!";
    break;
  case -2:
    msg = "为表开辟内存空间出错!";
    break;
  case -3:
    msg = "为表中名称开辟内存空间出错!";
    break;
  case -4:
    msg = "为INI结构开辟内存空间出错!";
    break;
  case -5:
    msg = "为节点开辟内存空间出错!";
    break;
  case -6:
    msg = "为节点中键开辟内存空间出错!";
    break;
  case -7:
    msg = "为节点中值开辟内存空间出错!";
    break;
  case -8:
    msg = "未发现参数!";
    break;
  case -9:
    msg = "开辟内存出错!";
    break;
  case -10:
    msg = "创建文件出错!";
    break;
  case -11:
    msg = "打开文件出错!";
    break;
  case -12:
    msg = "为文件开辟缓冲区出错!";
    break;
  case -13:
    msg = "读取文件出错!";
    break;
  case -14:
    msg = "错误的节点!";
    break;
  case -15:
    msg = "错误的键!";
    break;
  case -16:
    msg = "未发现节点!";
    break;
  default:
    msg = "未知错误!";
  }
  return msg;
}


x86 assembly (clang, -O0):
<ini_error>:
push   %rbp
mov    %rsp,%rbp
mov    %edi,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x10,%eax
mov    %eax,%ecx
mov    %rcx,-0x10(%rbp)
sub    $0x10,%eax
ja     1273 <ini_error+0x173>
mov    -0x10(%rbp),%rax
lea    0xed9(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
jmp    *%rax
lea    0xf0d(%rip),%rax
mov    %rax,0x2eea(%rip)
jmp    1281 <ini_error+0x181>
lea    0xf02(%rip),%rax
mov    %rax,0x2ed7(%rip)
jmp    1281 <ini_error+0x181>
lea    0xef7(%rip),%rax
mov    %rax,0x2ec4(%rip)
jmp    1281 <ini_error+0x181>
lea    0xf04(%rip),%rax
mov    %rax,0x2eb1(%rip)
jmp    1281 <ini_error+0x181>
lea    0xf1a(%rip),%rax
mov    %rax,0x2e9e(%rip)
jmp    1281 <ini_error+0x181>
lea    0xf2d(%rip),%rax
mov    %rax,0x2e8b(%rip)
jmp    1281 <ini_error+0x181>
lea    0xf3d(%rip),%rax
mov    %rax,0x2e78(%rip)
jmp    1281 <ini_error+0x181>
lea    0xf53(%rip),%rax
mov    %rax,0x2e65(%rip)
jmp    1281 <ini_error+0x181>
lea    0xf69(%rip),%rax
mov    %rax,0x2e52(%rip)
jmp    1281 <ini_error+0x181>
lea    0xf67(%rip),%rax
mov    %rax,0x2e3f(%rip)
jmp    1281 <ini_error+0x181>
lea    0xf68(%rip),%rax
mov    %rax,0x2e2c(%rip)
jmp    1281 <ini_error+0x181>
lea    0xf69(%rip),%rax
mov    %rax,0x2e19(%rip)
jmp    1281 <ini_error+0x181>
lea    0xf6a(%rip),%rax
mov    %rax,0x2e06(%rip)
jmp    1281 <ini_error+0x181>
lea    0xf77(%rip),%rax
mov    %rax,0x2df3(%rip)
jmp    1281 <ini_error+0x181>
lea    0xf78(%rip),%rax
mov    %rax,0x2de0(%rip)
jmp    1281 <ini_error+0x181>
lea    0xf76(%rip),%rax
mov    %rax,0x2dcd(%rip)
jmp    1281 <ini_error+0x181>
lea    0xf71(%rip),%rax
mov    %rax,0x2dba(%rip)
jmp    1281 <ini_error+0x181>
lea    0xf6f(%rip),%rax
mov    %rax,0x2da7(%rip)
mov    0x2da0(%rip),%rax
pop    %rbp
ret

x86 assembly (clang, -O2):
<ini_error>:
add    $0x10,%edi
cmp    $0x10,%edi
ja     111a <ini_error+0x1a>
movslq %edi,%rax
lea    0x10a2(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
ret
lea    0x1084(%rip),%rax
ret

LLVM IR (-O0):
@ini_error.msg = internal global i8* null
@.str = [8 x i8] c"\E6\88\90\E5\8A\9F!\00"
@.str.1 = [8 x i8] c"\E5\A4\B1\E8\B4\A5!\00"
@.str.2 = [32 x i8] c"\E4\B8\BA\E8\A1\A8\E5\BC\80\E8\BE\9F\E5\86\85\E5\AD\98\E7\A9\BA\E9\97\B4\E5\87\BA\E9\94\99!\00"
@.str.3 = [41 x i8] c"\E4\B8\BA\E8\A1\A8\E4\B8\AD\E5\90\8D\E7\A7\B0\E5\BC\80\E8\BE\9F\E5\86\85\E5\AD\98\E7\A9\BA\E9\97\B4\E5\87\BA\E9\94\99!\00"
@.str.4 = [38 x i8] c"\E4\B8\BAINI\E7\BB\93\E6\9E\84\E5\BC\80\E8\BE\9F\E5\86\85\E5\AD\98\E7\A9\BA\E9\97\B4\E5\87\BA\E9\94\99!\00"
@.str.5 = [35 x i8] c"\E4\B8\BA\E8\8A\82\E7\82\B9\E5\BC\80\E8\BE\9F\E5\86\85\E5\AD\98\E7\A9\BA\E9\97\B4\E5\87\BA\E9\94\99!\00"
@.str.6 = [41 x i8] c"\E4\B8\BA\E8\8A\82\E7\82\B9\E4\B8\AD\E9\94\AE\E5\BC\80\E8\BE\9F\E5\86\85\E5\AD\98\E7\A9\BA\E9\97\B4\E5\87\BA\E9\94\99!\00"
@.str.7 = [41 x i8] c"\E4\B8\BA\E8\8A\82\E7\82\B9\E4\B8\AD\E5\80\BC\E5\BC\80\E8\BE\9F\E5\86\85\E5\AD\98\E7\A9\BA\E9\97\B4\E5\87\BA\E9\94\99!\00"
@.str.8 = [17 x i8] c"\E6\9C\AA\E5\8F\91\E7\8E\B0\E5\8F\82\E6\95\B0!\00"
@.str.9 = [20 x i8] c"\E5\BC\80\E8\BE\9F\E5\86\85\E5\AD\98\E5\87\BA\E9\94\99!\00"
@.str.10 = [20 x i8] c"\E5\88\9B\E5\BB\BA\E6\96\87\E4\BB\B6\E5\87\BA\E9\94\99!\00"
@.str.11 = [20 x i8] c"\E6\89\93\E5\BC\80\E6\96\87\E4\BB\B6\E5\87\BA\E9\94\99!\00"
@.str.12 = [32 x i8] c"\E4\B8\BA\E6\96\87\E4\BB\B6\E5\BC\80\E8\BE\9F\E7\BC\93\E5\86\B2\E5\8C\BA\E5\87\BA\E9\94\99!\00"
@.str.13 = [20 x i8] c"\E8\AF\BB\E5\8F\96\E6\96\87\E4\BB\B6\E5\87\BA\E9\94\99!\00"
@.str.14 = [17 x i8] c"\E9\94\99\E8\AF\AF\E7\9A\84\E8\8A\82\E7\82\B9!\00"
@.str.15 = [14 x i8] c"\E9\94\99\E8\AF\AF\E7\9A\84\E9\94\AE!\00"
@.str.16 = [17 x i8] c"\E6\9C\AA\E5\8F\91\E7\8E\B0\E8\8A\82\E7\82\B9!\00"
@.str.17 = [14 x i8] c"\E6\9C\AA\E7\9F\A5\E9\94\99\E8\AF\AF!\00"
define i8* @ini_error(i32 %0) {
%2 = alloca i32
store i32 %0, i32* %2
%3 = load i32, i32* %2
switch i32 %3, label %21 [
i32 0, label %4
i32 -1, label %5
i32 -2, label %6
i32 -3, label %7
i32 -4, label %8
i32 -5, label %9
i32 -6, label %10
i32 -7, label %11
i32 -8, label %12
i32 -9, label %13
i32 -10, label %14
i32 -11, label %15
i32 -12, label %16
i32 -13, label %17
i32 -14, label %18
i32 -15, label %19
i32 -16, label %20
]
4: ; preds = %1
store i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str, i64 0, i64 0), i8** @ini_error.msg
br label %22
5: ; preds = %1
store i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.1, i64 0, i64 0), i8** @ini_error.msg
br label %22
6: ; preds = %1
store i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.2, i64 0, i64 0), i8** @ini_error.msg
br label %22
7: ; preds = %1
store i8* getelementptr inbounds ([41 x i8], [41 x i8]* @.str.3, i64 0, i64 0), i8** @ini_error.msg
br label %22
8: ; preds = %1
store i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.4, i64 0, i64 0), i8** @ini_error.msg
br label %22
9: ; preds = %1
store i8* getelementptr inbounds ([35 x i8], [35 x i8]* @.str.5, i64 0, i64 0), i8** @ini_error.msg
br label %22
10: ; preds = %1
store i8* getelementptr inbounds ([41 x i8], [41 x i8]* @.str.6, i64 0, i64 0), i8** @ini_error.msg
br label %22
11: ; preds = %1
store i8* getelementptr inbounds ([41 x i8], [41 x i8]* @.str.7, i64 0, i64 0), i8** @ini_error.msg
br label %22
12: ; preds = %1
store i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.8, i64 0, i64 0), i8** @ini_error.msg
br label %22
13: ; preds = %1
store i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.9, i64 0, i64 0), i8** @ini_error.msg
br label %22
14: ; preds = %1
store i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.10, i64 0, i64 0), i8** @ini_error.msg
br label %22
15: ; preds = %1
store i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.11, i64 0, i64 0), i8** @ini_error.msg
br label %22
16: ; preds = %1
store i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.12, i64 0, i64 0), i8** @ini_error.msg
br label %22
17: ; preds = %1
store i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.13, i64 0, i64 0), i8** @ini_error.msg
br label %22
18: ; preds = %1
store i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.14, i64 0, i64 0), i8** @ini_error.msg
br label %22
19: ; preds = %1
store i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.15, i64 0, i64 0), i8** @ini_error.msg
br label %22
20: ; preds = %1
store i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.16, i64 0, i64 0), i8** @ini_error.msg
br label %22
21: ; preds = %1
store i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.17, i64 0, i64 0), i8** @ini_error.msg
br label %22
22: ; preds = %21, %20, %19, %18, %17, %16, %15, %14, %13, %12, %11, %10, %9, %8, %7, %6, %5, %4
%23 = load i8*, i8** @ini_error.msg
ret i8* %23
}

LLVM IR (-O2):
@.str = [8 x i8] c"\E6\88\90\E5\8A\9F!\00"
@.str.1 = [8 x i8] c"\E5\A4\B1\E8\B4\A5!\00"
@.str.2 = [32 x i8] c"\E4\B8\BA\E8\A1\A8\E5\BC\80\E8\BE\9F\E5\86\85\E5\AD\98\E7\A9\BA\E9\97\B4\E5\87\BA\E9\94\99!\00"
@.str.3 = [41 x i8] c"\E4\B8\BA\E8\A1\A8\E4\B8\AD\E5\90\8D\E7\A7\B0\E5\BC\80\E8\BE\9F\E5\86\85\E5\AD\98\E7\A9\BA\E9\97\B4\E5\87\BA\E9\94\99!\00"
@.str.4 = [38 x i8] c"\E4\B8\BAINI\E7\BB\93\E6\9E\84\E5\BC\80\E8\BE\9F\E5\86\85\E5\AD\98\E7\A9\BA\E9\97\B4\E5\87\BA\E9\94\99!\00"
@.str.5 = [35 x i8] c"\E4\B8\BA\E8\8A\82\E7\82\B9\E5\BC\80\E8\BE\9F\E5\86\85\E5\AD\98\E7\A9\BA\E9\97\B4\E5\87\BA\E9\94\99!\00"
@.str.6 = [41 x i8] c"\E4\B8\BA\E8\8A\82\E7\82\B9\E4\B8\AD\E9\94\AE\E5\BC\80\E8\BE\9F\E5\86\85\E5\AD\98\E7\A9\BA\E9\97\B4\E5\87\BA\E9\94\99!\00"
@.str.7 = [41 x i8] c"\E4\B8\BA\E8\8A\82\E7\82\B9\E4\B8\AD\E5\80\BC\E5\BC\80\E8\BE\9F\E5\86\85\E5\AD\98\E7\A9\BA\E9\97\B4\E5\87\BA\E9\94\99!\00"
@.str.8 = [17 x i8] c"\E6\9C\AA\E5\8F\91\E7\8E\B0\E5\8F\82\E6\95\B0!\00"
@.str.9 = [20 x i8] c"\E5\BC\80\E8\BE\9F\E5\86\85\E5\AD\98\E5\87\BA\E9\94\99!\00"
@.str.10 = [20 x i8] c"\E5\88\9B\E5\BB\BA\E6\96\87\E4\BB\B6\E5\87\BA\E9\94\99!\00"
@.str.11 = [20 x i8] c"\E6\89\93\E5\BC\80\E6\96\87\E4\BB\B6\E5\87\BA\E9\94\99!\00"
@.str.12 = [32 x i8] c"\E4\B8\BA\E6\96\87\E4\BB\B6\E5\BC\80\E8\BE\9F\E7\BC\93\E5\86\B2\E5\8C\BA\E5\87\BA\E9\94\99!\00"
@.str.13 = [20 x i8] c"\E8\AF\BB\E5\8F\96\E6\96\87\E4\BB\B6\E5\87\BA\E9\94\99!\00"
@.str.14 = [17 x i8] c"\E9\94\99\E8\AF\AF\E7\9A\84\E8\8A\82\E7\82\B9!\00"
@.str.15 = [14 x i8] c"\E9\94\99\E8\AF\AF\E7\9A\84\E9\94\AE!\00"
@.str.16 = [17 x i8] c"\E6\9C\AA\E5\8F\91\E7\8E\B0\E8\8A\82\E7\82\B9!\00"
@.str.17 = [14 x i8] c"\E6\9C\AA\E7\9F\A5\E9\94\99\E8\AF\AF!\00"
@reltable.ini_error = [17 x i32] [i32 trunc (i64 sub (i64 ptrtoint ([17 x i8]* @.str.16 to i64), i64 ptrtoint ([17 x i32]* @reltable.ini_error to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([14 x i8]* @.str.15 to i64), i64 ptrtoint ([17 x i32]* @reltable.ini_error to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([17 x i8]* @.str.14 to i64), i64 ptrtoint ([17 x i32]* @reltable.ini_error to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([20 x i8]* @.str.13 to i64), i64 ptrtoint ([17 x i32]* @reltable.ini_error to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([32 x i8]* @.str.12 to i64), i64 ptrtoint ([17 x i32]* @reltable.ini_error to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([20 x i8]* @.str.11 to i64), i64 ptrtoint ([17 x i32]* @reltable.ini_error to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([20 x i8]* @.str.10 to i64), i64 ptrtoint ([17 x i32]* @reltable.ini_error to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([20 x i8]* @.str.9 to i64), i64 ptrtoint ([17 x i32]* @reltable.ini_error to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([17 x i8]* @.str.8 to i64), i64 ptrtoint ([17 x i32]* @reltable.ini_error to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([41 x i8]* @.str.7 to i64), i64 ptrtoint ([17 x i32]* @reltable.ini_error to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([41 x i8]* @.str.6 to i64), i64 ptrtoint ([17 x i32]* @reltable.ini_error to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([35 x i8]* @.str.5 to i64), i64 ptrtoint ([17 x i32]* @reltable.ini_error to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([38 x i8]* @.str.4 to i64), i64 ptrtoint ([17 x i32]* @reltable.ini_error to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([41 x i8]* @.str.3 to i64), i64 ptrtoint ([17 x i32]* @reltable.ini_error to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([32 x i8]* @.str.2 to i64), i64 ptrtoint ([17 x i32]* @reltable.ini_error to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([8 x i8]* @.str.1 to i64), i64 ptrtoint ([17 x i32]* @reltable.ini_error to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([8 x i8]* @.str to i64), i64 ptrtoint ([17 x i32]* @reltable.ini_error to i64)) to i32)]
define i8* @ini_error(i32 %0) {
%2 = add i32 %0, 16
%3 = icmp ult i32 %2, 17
br i1 %3, label %4, label %8
4: ; preds = %1
%5 = sext i32 %2 to i64
%6 = shl i64 %5, 2
%7 = call i8* @llvm.load.relative.i64(i8* bitcast ([17 x i32]* @reltable.ini_error to i8*), i64 %6)
br label %8
8: ; preds = %1, %4
%9 = phi i8* [ %7, %4 ], [ getelementptr inbounds ([14 x i8], [14 x i8]* @.str.17, i64 0, i64 0), %1 ]
ret i8* %9
}