Uplift(uptype, t) int uptype, t;
{
  if (uptype == 0)
    plateauUplift();
  else if (uptype == 1)
    blockUplift(t);
  else if (uptype == 2)
    tiltBlockUplift();
  else if (uptype == 3)
    dynamicUplift();
  else if (uptype == 6)
    erfSubsidence(t);
  else if (uptype == 4)
    erfUplift();
  else if (uptype == 5)
    halfdomeUplift();
  else if (uptype == 7)
    foldUplift(t, 0, 0);
  else if (uptype == 8)
    StrikeSlip();
  else
    problem("Specified uplift type not recognized.");
}


x86 assembly (clang, -O0):
<Uplift>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
cmpl   $0x0,-0x8(%rbp)
jne    11c4 <Uplift+0x24>
mov    $0x0,%al
call   1070 <plateauUplift@plt>
jmp    12b7 <Uplift+0x117>
cmpl   $0x1,-0x8(%rbp)
jne    11dd <Uplift+0x3d>
mov    -0xc(%rbp),%edi
mov    $0x0,%al
call   1080 <blockUplift@plt>
jmp    12b2 <Uplift+0x112>
cmpl   $0x2,-0x8(%rbp)
jne    11f3 <Uplift+0x53>
mov    $0x0,%al
call   10a0 <tiltBlockUplift@plt>
jmp    12ad <Uplift+0x10d>
cmpl   $0x3,-0x8(%rbp)
jne    1209 <Uplift+0x69>
mov    $0x0,%al
call   10b0 <dynamicUplift@plt>
jmp    12a8 <Uplift+0x108>
cmpl   $0x6,-0x8(%rbp)
jne    1222 <Uplift+0x82>
mov    -0xc(%rbp),%edi
mov    $0x0,%al
call   1050 <erfSubsidence@plt>
jmp    12a3 <Uplift+0x103>
cmpl   $0x4,-0x8(%rbp)
jne    1238 <Uplift+0x98>
mov    $0x0,%al
call   1090 <erfUplift@plt>
jmp    129e <Uplift+0xfe>
cmpl   $0x5,-0x8(%rbp)
jne    124e <Uplift+0xae>
mov    $0x0,%al
call   10c0 <halfdomeUplift@plt>
jmp    1299 <Uplift+0xf9>
cmpl   $0x7,-0x8(%rbp)
jne    126b <Uplift+0xcb>
mov    -0xc(%rbp),%edi
xor    %edx,%edx
mov    %edx,%esi
mov    $0x0,%al
call   1040 <foldUplift@plt>
jmp    1294 <Uplift+0xf4>
cmpl   $0x8,-0x8(%rbp)
jne    1281 <Uplift+0xe1>
mov    $0x0,%al
call   1030 <StrikeSlip@plt>
jmp    128f <Uplift+0xef>
lea    0xd78(%rip),%rdi
mov    $0x0,%al
call   1060 <problem@plt>
jmp    1294 <Uplift+0xf4>
jmp    1299 <Uplift+0xf9>
jmp    129e <Uplift+0xfe>
jmp    12a3 <Uplift+0x103>
jmp    12a8 <Uplift+0x108>
jmp    12ad <Uplift+0x10d>
jmp    12b2 <Uplift+0x112>
jmp    12b7 <Uplift+0x117>
mov    -0x4(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<Uplift>:
push   %rax
cmp    $0x8,%edi
ja     11c1 <Uplift+0x21>
mov    %edi,%eax
lea    0xe51(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
jmp    *%rax
xor    %eax,%eax
call   1070 <plateauUplift@plt>
pop    %rcx
ret
lea    0xe5c(%rip),%rdi
xor    %eax,%eax
call   1060 <problem@plt>
pop    %rcx
ret
mov    %esi,%edi
xor    %eax,%eax
call   1080 <blockUplift@plt>
pop    %rcx
ret
xor    %eax,%eax
call   10a0 <tiltBlockUplift@plt>
pop    %rcx
ret
xor    %eax,%eax
call   10b0 <dynamicUplift@plt>
pop    %rcx
ret
xor    %eax,%eax
call   1090 <erfUplift@plt>
pop    %rcx
ret
xor    %eax,%eax
call   10c0 <halfdomeUplift@plt>
pop    %rcx
ret
mov    %esi,%edi
xor    %eax,%eax
call   1050 <erfSubsidence@plt>
pop    %rcx
ret
mov    %esi,%edi
xor    %esi,%esi
xor    %edx,%edx
xor    %eax,%eax
call   1040 <foldUplift@plt>
pop    %rcx
ret
xor    %eax,%eax
call   1030 <StrikeSlip@plt>
pop    %rcx
ret

LLVM IR (-O0):
@.str = [38 x i8] c"Specified uplift type not recognized.\00"
define i32 @Uplift(i32 %0, i32 %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i32
store i32 %0, i32* %4
store i32 %1, i32* %5
%6 = load i32, i32* %4
%7 = icmp eq i32 %6, 0
br i1 %7, label %8, label %10
8: ; preds = %2
%9 = call i32 (...) @plateauUplift()
br label %63
10: ; preds = %2
%11 = load i32, i32* %4
%12 = icmp eq i32 %11, 1
br i1 %12, label %13, label %16
13: ; preds = %10
%14 = load i32, i32* %5
%15 = call i32 (i32, ...) bitcast (i32 (...)* @blockUplift to i32 (i32, ...)*)(i32 %14)
br label %62
16: ; preds = %10
%17 = load i32, i32* %4
%18 = icmp eq i32 %17, 2
br i1 %18, label %19, label %21
19: ; preds = %16
%20 = call i32 (...) @tiltBlockUplift()
br label %61
21: ; preds = %16
%22 = load i32, i32* %4
%23 = icmp eq i32 %22, 3
br i1 %23, label %24, label %26
24: ; preds = %21
%25 = call i32 (...) @dynamicUplift()
br label %60
26: ; preds = %21
%27 = load i32, i32* %4
%28 = icmp eq i32 %27, 6
br i1 %28, label %29, label %32
29: ; preds = %26
%30 = load i32, i32* %5
%31 = call i32 (i32, ...) bitcast (i32 (...)* @erfSubsidence to i32 (i32, ...)*)(i32 %30)
br label %59
32: ; preds = %26
%33 = load i32, i32* %4
%34 = icmp eq i32 %33, 4
br i1 %34, label %35, label %37
35: ; preds = %32
%36 = call i32 (...) @erfUplift()
br label %58
37: ; preds = %32
%38 = load i32, i32* %4
%39 = icmp eq i32 %38, 5
br i1 %39, label %40, label %42
40: ; preds = %37
%41 = call i32 (...) @halfdomeUplift()
br label %57
42: ; preds = %37
%43 = load i32, i32* %4
%44 = icmp eq i32 %43, 7
br i1 %44, label %45, label %48
45: ; preds = %42
%46 = load i32, i32* %5
%47 = call i32 (i32, i32, i32, ...) bitcast (i32 (...)* @foldUplift to i32 (i32, i32, i32, ...)*)(i32 %46, i32 0, i32 0)
br label %56
48: ; preds = %42
%49 = load i32, i32* %4
%50 = icmp eq i32 %49, 8
br i1 %50, label %51, label %53
51: ; preds = %48
%52 = call i32 (...) @StrikeSlip()
br label %55
53: ; preds = %48
%54 = call i32 (i8*, ...) bitcast (i32 (...)* @problem to i32 (i8*, ...)*)(i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str, i64 0, i64 0))
br label %55
55: ; preds = %53, %51
br label %56
56: ; preds = %55, %45
br label %57
57: ; preds = %56, %40
br label %58
58: ; preds = %57, %35
br label %59
59: ; preds = %58, %29
br label %60
60: ; preds = %59, %24
br label %61
61: ; preds = %60, %19
br label %62
62: ; preds = %61, %13
br label %63
63: ; preds = %62, %8
%64 = load i32, i32* %3
ret i32 %64
}

LLVM IR (-O2):
@.str = [38 x i8] c"Specified uplift type not recognized.\00"
define i32 @Uplift(i32 %0, i32 %1) {
switch i32 %0, label %21 [
i32 0, label %3
i32 1, label %5
i32 2, label %7
i32 3, label %9
i32 6, label %11
i32 4, label %13
i32 5, label %15
i32 7, label %17
i32 8, label %19
]
3: ; preds = %2
%4 = tail call i32 (...) @plateauUplift()
br label %23
5: ; preds = %2
%6 = tail call i32 (i32, ...) bitcast (i32 (...)* @blockUplift to i32 (i32, ...)*)(i32 %1)
br label %23
7: ; preds = %2
%8 = tail call i32 (...) @tiltBlockUplift()
br label %23
9: ; preds = %2
%10 = tail call i32 (...) @dynamicUplift()
br label %23
11: ; preds = %2
%12 = tail call i32 (i32, ...) bitcast (i32 (...)* @erfSubsidence to i32 (i32, ...)*)(i32 %1)
br label %23
13: ; preds = %2
%14 = tail call i32 (...) @erfUplift()
br label %23
15: ; preds = %2
%16 = tail call i32 (...) @halfdomeUplift()
br label %23
17: ; preds = %2
%18 = tail call i32 (i32, i32, i32, ...) bitcast (i32 (...)* @foldUplift to i32 (i32, i32, i32, ...)*)(i32 %1, i32 0, i32 0)
br label %23
19: ; preds = %2
%20 = tail call i32 (...) @StrikeSlip()
br label %23
21: ; preds = %2
%22 = tail call i32 (i8*, ...) bitcast (i32 (...)* @problem to i32 (i8*, ...)*)(i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str, i64 0, i64 0))
br label %23
23: ; preds = %5, %9, %13, %17, %21, %19, %15, %11, %7, %3
ret i32 undef
}