#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 map_parameter_meterological_aerosol(int, int, int, int);
int map_parameter_meterological_cloud(int, int, int, int);
int map_parameter_meterological_longwaveradiation(int, int, int, int);
int map_parameter_meterological_mass(int, int, int, int);
int map_parameter_meterological_moisture(int, int, int, int);
int map_parameter_meterological_momentum(int, int, int, int);
int map_parameter_meterological_nuclear_radiology(int, int, int, int);
int map_parameter_meterological_physical_atmospheric_property(int, int, int,
                                                              int);
int map_parameter_meterological_radar(int, int, int, int);
int map_parameter_meterological_shortwaveradiation(int, int, int, int);
int map_parameter_meterological_temperature(int, int, int, int);
int map_parameter_meterological_thermodynamic_stability_index(int, int, int,
                                                              int);
int map_parameter_meterological_tracegas(int, int, int, int);
int map_parameter_meterological(int center, int disc, int param_cat,
                                int param_num) {
  switch (param_cat) {
  case 0:
    return map_parameter_meterological_temperature(center, disc, param_cat,
                                                   param_num);
  case 1:
    return map_parameter_meterological_moisture(center, disc, param_cat,
                                                param_num);
  case 2:
    return map_parameter_meterological_momentum(center, disc, param_cat,
                                                param_num);
  case 3:
    return map_parameter_meterological_mass(center, disc, param_cat, param_num);
  case 4:
    return map_parameter_meterological_shortwaveradiation(center, disc,
                                                          param_cat, param_num);
  case 5:
    return map_parameter_meterological_longwaveradiation(center, disc,
                                                         param_cat, param_num);
  case 6:
    return map_parameter_meterological_cloud(center, disc, param_cat,
                                             param_num);
  case 7:
    return map_parameter_meterological_thermodynamic_stability_index(
        center, disc, param_cat, param_num);
  case 13:
    return map_parameter_meterological_aerosol(center, disc, param_cat,
                                               param_num);
  case 14:
    return map_parameter_meterological_tracegas(center, disc, param_cat,
                                                param_num);
  case 15:
    return map_parameter_meterological_radar(center, disc, param_cat,
                                             param_num);
  case 18:
    return map_parameter_meterological_nuclear_radiology(center, disc,
                                                         param_cat, param_num);
  case 19:
    return map_parameter_meterological_physical_atmospheric_property(
        center, disc, param_cat, param_num);
  default:
    break;
  }
  return -1;
}


x86 assembly (clang, -O0):
<map_parameter_meterological>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %edi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
mov    %edx,-0x10(%rbp)
mov    %ecx,-0x14(%rbp)
mov    -0x10(%rbp),%eax
mov    %rax,-0x20(%rbp)
sub    $0x13,%rax
ja     134e <map_parameter_meterological+0x17e>
mov    -0x20(%rbp),%rax
lea    0xe00(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
jmp    *%rax
mov    -0x8(%rbp),%edi
mov    -0xc(%rbp),%esi
mov    -0x10(%rbp),%edx
mov    -0x14(%rbp),%ecx
call   10d0 <map_parameter_meterological_temperature@plt>
mov    %eax,-0x4(%rbp)
jmp    135a <map_parameter_meterological+0x18a>
mov    -0x8(%rbp),%edi
mov    -0xc(%rbp),%esi
mov    -0x10(%rbp),%edx
mov    -0x14(%rbp),%ecx
call   1070 <map_parameter_meterological_moisture@plt>
mov    %eax,-0x4(%rbp)
jmp    135a <map_parameter_meterological+0x18a>
mov    -0x8(%rbp),%edi
mov    -0xc(%rbp),%esi
mov    -0x10(%rbp),%edx
mov    -0x14(%rbp),%ecx
call   1040 <map_parameter_meterological_momentum@plt>
mov    %eax,-0x4(%rbp)
jmp    135a <map_parameter_meterological+0x18a>
mov    -0x8(%rbp),%edi
mov    -0xc(%rbp),%esi
mov    -0x10(%rbp),%edx
mov    -0x14(%rbp),%ecx
call   1060 <map_parameter_meterological_mass@plt>
mov    %eax,-0x4(%rbp)
jmp    135a <map_parameter_meterological+0x18a>
mov    -0x8(%rbp),%edi
mov    -0xc(%rbp),%esi
mov    -0x10(%rbp),%edx
mov    -0x14(%rbp),%ecx
call   1030 <map_parameter_meterological_shortwaveradiation@plt>
mov    %eax,-0x4(%rbp)
jmp    135a <map_parameter_meterological+0x18a>
mov    -0x8(%rbp),%edi
mov    -0xc(%rbp),%esi
mov    -0x10(%rbp),%edx
mov    -0x14(%rbp),%ecx
call   1080 <map_parameter_meterological_longwaveradiation@plt>
mov    %eax,-0x4(%rbp)
jmp    135a <map_parameter_meterological+0x18a>
mov    -0x8(%rbp),%edi
mov    -0xc(%rbp),%esi
mov    -0x10(%rbp),%edx
mov    -0x14(%rbp),%ecx
call   10b0 <map_parameter_meterological_cloud@plt>
mov    %eax,-0x4(%rbp)
jmp    135a <map_parameter_meterological+0x18a>
mov    -0x8(%rbp),%edi
mov    -0xc(%rbp),%esi
mov    -0x10(%rbp),%edx
mov    -0x14(%rbp),%ecx
call   1090 <map_parameter_meterological_thermodynamic_stability_index@plt>
mov    %eax,-0x4(%rbp)
jmp    135a <map_parameter_meterological+0x18a>
mov    -0x8(%rbp),%edi
mov    -0xc(%rbp),%esi
mov    -0x10(%rbp),%edx
mov    -0x14(%rbp),%ecx
call   10f0 <map_parameter_meterological_aerosol@plt>
mov    %eax,-0x4(%rbp)
jmp    135a <map_parameter_meterological+0x18a>
mov    -0x8(%rbp),%edi
mov    -0xc(%rbp),%esi
mov    -0x10(%rbp),%edx
mov    -0x14(%rbp),%ecx
call   1050 <map_parameter_meterological_tracegas@plt>
mov    %eax,-0x4(%rbp)
jmp    135a <map_parameter_meterological+0x18a>
mov    -0x8(%rbp),%edi
mov    -0xc(%rbp),%esi
mov    -0x10(%rbp),%edx
mov    -0x14(%rbp),%ecx
call   10e0 <map_parameter_meterological_radar@plt>
mov    %eax,-0x4(%rbp)
jmp    135a <map_parameter_meterological+0x18a>
mov    -0x8(%rbp),%edi
mov    -0xc(%rbp),%esi
mov    -0x10(%rbp),%edx
mov    -0x14(%rbp),%ecx
call   10a0 <map_parameter_meterological_nuclear_radiology@plt>
mov    %eax,-0x4(%rbp)
jmp    135a <map_parameter_meterological+0x18a>
mov    -0x8(%rbp),%edi
mov    -0xc(%rbp),%esi
mov    -0x10(%rbp),%edx
mov    -0x14(%rbp),%ecx
call   10c0 <map_parameter_meterological_physical_atmospheric_property@plt>
mov    %eax,-0x4(%rbp)
jmp    135a <map_parameter_meterological+0x18a>
jmp    1353 <map_parameter_meterological+0x183>
movl   $0xffffffff,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<map_parameter_meterological>:
cmp    $0x13,%edx
ja     1234 <map_parameter_meterological+0x64>
mov    %edx,%eax
lea    0xe22(%rip),%rdx
movslq (%rdx,%rax,4),%rax
add    %rdx,%rax
jmp    *%rax
xor    %edx,%edx
jmp    10d0 <map_parameter_meterological_temperature@plt>
mov    $0x1,%edx
jmp    1070 <map_parameter_meterological_moisture@plt>
mov    $0x2,%edx
jmp    1040 <map_parameter_meterological_momentum@plt>
mov    $0x3,%edx
jmp    1060 <map_parameter_meterological_mass@plt>
mov    $0x4,%edx
jmp    1030 <map_parameter_meterological_shortwaveradiation@plt>
mov    $0x5,%edx
jmp    1080 <map_parameter_meterological_longwaveradiation@plt>
mov    $0x6,%edx
jmp    10b0 <map_parameter_meterological_cloud@plt>
mov    $0x7,%edx
jmp    1090 <map_parameter_meterological_thermodynamic_stability_index@plt>
mov    $0xffffffff,%eax
ret
mov    $0xd,%edx
jmp    10f0 <map_parameter_meterological_aerosol@plt>
mov    $0xe,%edx
jmp    1050 <map_parameter_meterological_tracegas@plt>
mov    $0xf,%edx
jmp    10e0 <map_parameter_meterological_radar@plt>
mov    $0x12,%edx
jmp    10a0 <map_parameter_meterological_nuclear_radiology@plt>
mov    $0x13,%edx
jmp    10c0 <map_parameter_meterological_physical_atmospheric_property@plt>

LLVM IR (-O0):
define i32 @map_parameter_meterological(i32 %0, i32 %1, i32 %2, i32 %3) {
%5 = alloca i32
%6 = alloca i32
%7 = alloca i32
%8 = alloca i32
%9 = alloca i32
store i32 %0, i32* %6
store i32 %1, i32* %7
store i32 %2, i32* %8
store i32 %3, i32* %9
%10 = load i32, i32* %8
switch i32 %10, label %89 [
i32 0, label %11
i32 1, label %17
i32 2, label %23
i32 3, label %29
i32 4, label %35
i32 5, label %41
i32 6, label %47
i32 7, label %53
i32 13, label %59
i32 14, label %65
i32 15, label %71
i32 18, label %77
i32 19, label %83
]
11: ; preds = %4
%12 = load i32, i32* %6
%13 = load i32, i32* %7
%14 = load i32, i32* %8
%15 = load i32, i32* %9
%16 = call i32 @map_parameter_meterological_temperature(i32 %12, i32 %13, i32 %14, i32 %15)
store i32 %16, i32* %5
br label %91
17: ; preds = %4
%18 = load i32, i32* %6
%19 = load i32, i32* %7
%20 = load i32, i32* %8
%21 = load i32, i32* %9
%22 = call i32 @map_parameter_meterological_moisture(i32 %18, i32 %19, i32 %20, i32 %21)
store i32 %22, i32* %5
br label %91
23: ; preds = %4
%24 = load i32, i32* %6
%25 = load i32, i32* %7
%26 = load i32, i32* %8
%27 = load i32, i32* %9
%28 = call i32 @map_parameter_meterological_momentum(i32 %24, i32 %25, i32 %26, i32 %27)
store i32 %28, i32* %5
br label %91
29: ; preds = %4
%30 = load i32, i32* %6
%31 = load i32, i32* %7
%32 = load i32, i32* %8
%33 = load i32, i32* %9
%34 = call i32 @map_parameter_meterological_mass(i32 %30, i32 %31, i32 %32, i32 %33)
store i32 %34, i32* %5
br label %91
35: ; preds = %4
%36 = load i32, i32* %6
%37 = load i32, i32* %7
%38 = load i32, i32* %8
%39 = load i32, i32* %9
%40 = call i32 @map_parameter_meterological_shortwaveradiation(i32 %36, i32 %37, i32 %38, i32 %39)
store i32 %40, i32* %5
br label %91
41: ; preds = %4
%42 = load i32, i32* %6
%43 = load i32, i32* %7
%44 = load i32, i32* %8
%45 = load i32, i32* %9
%46 = call i32 @map_parameter_meterological_longwaveradiation(i32 %42, i32 %43, i32 %44, i32 %45)
store i32 %46, i32* %5
br label %91
47: ; preds = %4
%48 = load i32, i32* %6
%49 = load i32, i32* %7
%50 = load i32, i32* %8
%51 = load i32, i32* %9
%52 = call i32 @map_parameter_meterological_cloud(i32 %48, i32 %49, i32 %50, i32 %51)
store i32 %52, i32* %5
br label %91
53: ; preds = %4
%54 = load i32, i32* %6
%55 = load i32, i32* %7
%56 = load i32, i32* %8
%57 = load i32, i32* %9
%58 = call i32 @map_parameter_meterological_thermodynamic_stability_index(i32 %54, i32 %55, i32 %56, i32 %57)
store i32 %58, i32* %5
br label %91
59: ; preds = %4
%60 = load i32, i32* %6
%61 = load i32, i32* %7
%62 = load i32, i32* %8
%63 = load i32, i32* %9
%64 = call i32 @map_parameter_meterological_aerosol(i32 %60, i32 %61, i32 %62, i32 %63)
store i32 %64, i32* %5
br label %91
65: ; preds = %4
%66 = load i32, i32* %6
%67 = load i32, i32* %7
%68 = load i32, i32* %8
%69 = load i32, i32* %9
%70 = call i32 @map_parameter_meterological_tracegas(i32 %66, i32 %67, i32 %68, i32 %69)
store i32 %70, i32* %5
br label %91
71: ; preds = %4
%72 = load i32, i32* %6
%73 = load i32, i32* %7
%74 = load i32, i32* %8
%75 = load i32, i32* %9
%76 = call i32 @map_parameter_meterological_radar(i32 %72, i32 %73, i32 %74, i32 %75)
store i32 %76, i32* %5
br label %91
77: ; preds = %4
%78 = load i32, i32* %6
%79 = load i32, i32* %7
%80 = load i32, i32* %8
%81 = load i32, i32* %9
%82 = call i32 @map_parameter_meterological_nuclear_radiology(i32 %78, i32 %79, i32 %80, i32 %81)
store i32 %82, i32* %5
br label %91
83: ; preds = %4
%84 = load i32, i32* %6
%85 = load i32, i32* %7
%86 = load i32, i32* %8
%87 = load i32, i32* %9
%88 = call i32 @map_parameter_meterological_physical_atmospheric_property(i32 %84, i32 %85, i32 %86, i32 %87)
store i32 %88, i32* %5
br label %91
89: ; preds = %4
br label %90
90: ; preds = %89
store i32 -1, i32* %5
br label %91
91: ; preds = %90, %83, %77, %71, %65, %59, %53, %47, %41, %35, %29, %23, %17, %11
%92 = load i32, i32* %5
ret i32 %92
}

LLVM IR (-O2):
define i32 @map_parameter_meterological(i32 %0, i32 %1, i32 %2, i32 %3) {
switch i32 %2, label %31 [
i32 0, label %5
i32 1, label %7
i32 2, label %9
i32 3, label %11
i32 4, label %13
i32 5, label %15
i32 6, label %17
i32 7, label %19
i32 13, label %21
i32 14, label %23
i32 15, label %25
i32 18, label %27
i32 19, label %29
]
5: ; preds = %4
%6 = tail call i32 @map_parameter_meterological_temperature(i32 %0, i32 %1, i32 0, i32 %3)
br label %31
7: ; preds = %4
%8 = tail call i32 @map_parameter_meterological_moisture(i32 %0, i32 %1, i32 1, i32 %3)
br label %31
9: ; preds = %4
%10 = tail call i32 @map_parameter_meterological_momentum(i32 %0, i32 %1, i32 2, i32 %3)
br label %31
11: ; preds = %4
%12 = tail call i32 @map_parameter_meterological_mass(i32 %0, i32 %1, i32 3, i32 %3)
br label %31
13: ; preds = %4
%14 = tail call i32 @map_parameter_meterological_shortwaveradiation(i32 %0, i32 %1, i32 4, i32 %3)
br label %31
15: ; preds = %4
%16 = tail call i32 @map_parameter_meterological_longwaveradiation(i32 %0, i32 %1, i32 5, i32 %3)
br label %31
17: ; preds = %4
%18 = tail call i32 @map_parameter_meterological_cloud(i32 %0, i32 %1, i32 6, i32 %3)
br label %31
19: ; preds = %4
%20 = tail call i32 @map_parameter_meterological_thermodynamic_stability_index(i32 %0, i32 %1, i32 7, i32 %3)
br label %31
21: ; preds = %4
%22 = tail call i32 @map_parameter_meterological_aerosol(i32 %0, i32 %1, i32 13, i32 %3)
br label %31
23: ; preds = %4
%24 = tail call i32 @map_parameter_meterological_tracegas(i32 %0, i32 %1, i32 14, i32 %3)
br label %31
25: ; preds = %4
%26 = tail call i32 @map_parameter_meterological_radar(i32 %0, i32 %1, i32 15, i32 %3)
br label %31
27: ; preds = %4
%28 = tail call i32 @map_parameter_meterological_nuclear_radiology(i32 %0, i32 %1, i32 18, i32 %3)
br label %31
29: ; preds = %4
%30 = tail call i32 @map_parameter_meterological_physical_atmospheric_property(i32 %0, i32 %1, i32 19, i32 %3)
br label %31
31: ; preds = %4, %29, %27, %25, %23, %21, %19, %17, %15, %13, %11, %9, %7, %5
%32 = phi i32 [ %30, %29 ], [ %28, %27 ], [ %26, %25 ], [ %24, %23 ], [ %22, %21 ], [ %20, %19 ], [ %18, %17 ], [ %16, %15 ], [ %14, %13 ], [ %12, %11 ], [ %10, %9 ], [ %8, %7 ], [ %6, %5 ], [ -1, %4 ]
ret i32 %32
}