void val_curMRI(bb_anl, bb_dmu, bb_trl, bb_lnk, lenpob, fpob, ppob, lpob,
                cc) int *bb_anl,
    *bb_dmu, *bb_trl, *bb_lnk, *lenpob, *fpob, *ppob, *lpob, cc;
{
  int st, nn;
  val_curMRIState(&st, cc);
  val_anl(bb_anl, st);
  val_dmu(bb_dmu, st);
  val_trl(bb_trl, st);
  val_lnk(bb_lnk, st);
  length_pob(&nn, st);
  if (nn >= 3) {
    valIth_pob(fpob, st, 1);
    valIth_pob(ppob, st, nn - 1);
    last_pob(lpob, st);
  } else {
    switch (nn) {
    case 2: {
      valIth_pob(fpob, st, 1);
      *ppob = 0;
      last_pob(lpob, st);
      break;
    }
    case 1: {
      valIth_pob(fpob, st, 1);
      *ppob = 0;
      last_pob(lpob, st);
      break;
    }
    default: {
      *fpob = 0;
      *ppob = 0;
      *lpob = 0;
      break;
    }
    }
  }
  *lenpob = nn;
}


x86 assembly (clang, -O0):
<val_curMRI>:
push   %rbp
mov    %rsp,%rbp
sub    $0x40,%rsp
mov    0x20(%rbp),%eax
mov    0x18(%rbp),%rax
mov    0x10(%rbp),%rax
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    %rcx,-0x20(%rbp)
mov    %r8,-0x28(%rbp)
mov    %r9,-0x30(%rbp)
mov    0x20(%rbp),%esi
lea    -0x34(%rbp),%rdi
mov    $0x0,%al
call   1040 <val_curMRIState@plt>
mov    -0x8(%rbp),%rdi
mov    -0x34(%rbp),%esi
mov    $0x0,%al
call   1070 <val_anl@plt>
mov    -0x10(%rbp),%rdi
mov    -0x34(%rbp),%esi
mov    $0x0,%al
call   1060 <val_dmu@plt>
mov    -0x18(%rbp),%rdi
mov    -0x34(%rbp),%esi
mov    $0x0,%al
call   1090 <val_trl@plt>
mov    -0x20(%rbp),%rdi
mov    -0x34(%rbp),%esi
mov    $0x0,%al
call   1050 <val_lnk@plt>
mov    -0x34(%rbp),%esi
lea    -0x38(%rbp),%rdi
mov    $0x0,%al
call   10a0 <length_pob@plt>
cmpl   $0x3,-0x38(%rbp)
jl     1243 <val_curMRI+0xc3>
mov    -0x30(%rbp),%rdi
mov    -0x34(%rbp),%esi
mov    $0x1,%edx
mov    $0x0,%al
call   1080 <valIth_pob@plt>
mov    0x10(%rbp),%rdi
mov    -0x34(%rbp),%esi
mov    -0x38(%rbp),%edx
sub    $0x1,%edx
mov    $0x0,%al
call   1080 <valIth_pob@plt>
mov    0x18(%rbp),%rdi
mov    -0x34(%rbp),%esi
mov    $0x0,%al
call   1030 <last_pob@plt>
jmp    12eb <val_curMRI+0x16b>
mov    -0x38(%rbp),%eax
mov    %eax,-0x3c(%rbp)
sub    $0x1,%eax
je     1298 <val_curMRI+0x118>
jmp    1257 <val_curMRI+0xd7>
mov    -0x3c(%rbp),%eax
sub    $0x2,%eax
jne    12c8 <val_curMRI+0x148>
jmp    1268 <val_curMRI+0xe8>
mov    -0x30(%rbp),%rdi
mov    -0x34(%rbp),%esi
mov    $0x1,%edx
mov    $0x0,%al
call   1080 <valIth_pob@plt>
mov    0x10(%rbp),%rax
movl   $0x0,(%rax)
mov    0x18(%rbp),%rdi
mov    -0x34(%rbp),%esi
mov    $0x0,%al
call   1030 <last_pob@plt>
jmp    12e6 <val_curMRI+0x166>
mov    -0x30(%rbp),%rdi
mov    -0x34(%rbp),%esi
mov    $0x1,%edx
mov    $0x0,%al
call   1080 <valIth_pob@plt>
mov    0x10(%rbp),%rax
movl   $0x0,(%rax)
mov    0x18(%rbp),%rdi
mov    -0x34(%rbp),%esi
mov    $0x0,%al
call   1030 <last_pob@plt>
jmp    12e6 <val_curMRI+0x166>
mov    -0x30(%rbp),%rax
movl   $0x0,(%rax)
mov    0x10(%rbp),%rax
movl   $0x0,(%rax)
mov    0x18(%rbp),%rax
movl   $0x0,(%rax)
jmp    12eb <val_curMRI+0x16b>
mov    -0x38(%rbp),%ecx
mov    -0x28(%rbp),%rax
mov    %ecx,(%rax)
add    $0x40,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<val_curMRI>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
push   %rax
mov    %r9,%r13
mov    %r8,%r12
mov    %rcx,%rbx
mov    %rdx,%rbp
mov    %rsi,%r14
mov    %rdi,%r15
mov    0x50(%rsp),%esi
mov    %rsp,%rdi
xor    %eax,%eax
call   1040 <val_curMRIState@plt>
mov    (%rsp),%esi
mov    %r15,%rdi
xor    %eax,%eax
call   1070 <val_anl@plt>
mov    (%rsp),%esi
mov    %r14,%rdi
xor    %eax,%eax
call   1060 <val_dmu@plt>
mov    (%rsp),%esi
mov    %rbp,%rdi
xor    %eax,%eax
call   1090 <val_trl@plt>
mov    (%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1050 <val_lnk@plt>
mov    (%rsp),%esi
lea    0x4(%rsp),%rdi
xor    %eax,%eax
call   10a0 <length_pob@plt>
mov    0x4(%rsp),%eax
cmp    $0x3,%eax
jl     1229 <val_curMRI+0xa9>
mov    (%rsp),%esi
mov    %r13,%rdi
mov    $0x1,%edx
xor    %eax,%eax
call   1080 <valIth_pob@plt>
mov    (%rsp),%esi
mov    0x4(%rsp),%edx
add    $0xffffffff,%edx
mov    0x40(%rsp),%rdi
xor    %eax,%eax
call   1080 <valIth_pob@plt>
mov    (%rsp),%esi
mov    0x48(%rsp),%rdi
jmp    125c <val_curMRI+0xdc>
mov    0x40(%rsp),%rbp
mov    0x48(%rsp),%rbx
cmp    $0x1,%eax
je     123d <val_curMRI+0xbd>
cmp    $0x2,%eax
jne    127a <val_curMRI+0xfa>
mov    (%rsp),%esi
mov    %r13,%rdi
mov    $0x1,%edx
xor    %eax,%eax
call   1080 <valIth_pob@plt>
movl   $0x0,0x0(%rbp)
mov    (%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1030 <last_pob@plt>
mov    0x4(%rsp),%eax
mov    %eax,(%r12)
add    $0x8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret
movl   $0x0,0x0(%r13)
movl   $0x0,0x0(%rbp)
movl   $0x0,(%rbx)
jmp    1263 <val_curMRI+0xe3>

LLVM IR (-O0):
define void @val_curMRI(i32* %0, i32* %1, i32* %2, i32* %3, i32* %4, i32* %5, i32* %6, i32* %7, i32 %8) {
%10 = alloca i32*
%11 = alloca i32*
%12 = alloca i32*
%13 = alloca i32*
%14 = alloca i32*
%15 = alloca i32*
%16 = alloca i32*
%17 = alloca i32*
%18 = alloca i32
%19 = alloca i32
%20 = alloca i32
store i32* %0, i32** %10
store i32* %1, i32** %11
store i32* %2, i32** %12
store i32* %3, i32** %13
store i32* %4, i32** %14
store i32* %5, i32** %15
store i32* %6, i32** %16
store i32* %7, i32** %17
store i32 %8, i32* %18
%21 = load i32, i32* %18
%22 = call i32 (i32*, i32, ...) bitcast (i32 (...)* @val_curMRIState to i32 (i32*, i32, ...)*)(i32* %19, i32 %21)
%23 = load i32*, i32** %10
%24 = load i32, i32* %19
%25 = call i32 (i32*, i32, ...) bitcast (i32 (...)* @val_anl to i32 (i32*, i32, ...)*)(i32* %23, i32 %24)
%26 = load i32*, i32** %11
%27 = load i32, i32* %19
%28 = call i32 (i32*, i32, ...) bitcast (i32 (...)* @val_dmu to i32 (i32*, i32, ...)*)(i32* %26, i32 %27)
%29 = load i32*, i32** %12
%30 = load i32, i32* %19
%31 = call i32 (i32*, i32, ...) bitcast (i32 (...)* @val_trl to i32 (i32*, i32, ...)*)(i32* %29, i32 %30)
%32 = load i32*, i32** %13
%33 = load i32, i32* %19
%34 = call i32 (i32*, i32, ...) bitcast (i32 (...)* @val_lnk to i32 (i32*, i32, ...)*)(i32* %32, i32 %33)
%35 = load i32, i32* %19
%36 = call i32 (i32*, i32, ...) bitcast (i32 (...)* @length_pob to i32 (i32*, i32, ...)*)(i32* %20, i32 %35)
%37 = load i32, i32* %20
%38 = icmp sge i32 %37, 3
br i1 %38, label %39, label %51
39: ; preds = %9
%40 = load i32*, i32** %15
%41 = load i32, i32* %19
%42 = call i32 (i32*, i32, i32, ...) bitcast (i32 (...)* @valIth_pob to i32 (i32*, i32, i32, ...)*)(i32* %40, i32 %41, i32 1)
%43 = load i32*, i32** %16
%44 = load i32, i32* %19
%45 = load i32, i32* %20
%46 = sub nsw i32 %45, 1
%47 = call i32 (i32*, i32, i32, ...) bitcast (i32 (...)* @valIth_pob to i32 (i32*, i32, i32, ...)*)(i32* %43, i32 %44, i32 %46)
%48 = load i32*, i32** %17
%49 = load i32, i32* %19
%50 = call i32 (i32*, i32, ...) bitcast (i32 (...)* @last_pob to i32 (i32*, i32, ...)*)(i32* %48, i32 %49)
br label %74
51: ; preds = %9
%52 = load i32, i32* %20
switch i32 %52, label %69 [
i32 2, label %53
i32 1, label %61
]
53: ; preds = %51
%54 = load i32*, i32** %15
%55 = load i32, i32* %19
%56 = call i32 (i32*, i32, i32, ...) bitcast (i32 (...)* @valIth_pob to i32 (i32*, i32, i32, ...)*)(i32* %54, i32 %55, i32 1)
%57 = load i32*, i32** %16
store i32 0, i32* %57
%58 = load i32*, i32** %17
%59 = load i32, i32* %19
%60 = call i32 (i32*, i32, ...) bitcast (i32 (...)* @last_pob to i32 (i32*, i32, ...)*)(i32* %58, i32 %59)
br label %73
61: ; preds = %51
%62 = load i32*, i32** %15
%63 = load i32, i32* %19
%64 = call i32 (i32*, i32, i32, ...) bitcast (i32 (...)* @valIth_pob to i32 (i32*, i32, i32, ...)*)(i32* %62, i32 %63, i32 1)
%65 = load i32*, i32** %16
store i32 0, i32* %65
%66 = load i32*, i32** %17
%67 = load i32, i32* %19
%68 = call i32 (i32*, i32, ...) bitcast (i32 (...)* @last_pob to i32 (i32*, i32, ...)*)(i32* %66, i32 %67)
br label %73
69: ; preds = %51
%70 = load i32*, i32** %15
store i32 0, i32* %70
%71 = load i32*, i32** %16
store i32 0, i32* %71
%72 = load i32*, i32** %17
store i32 0, i32* %72
br label %73
73: ; preds = %69, %61, %53
br label %74
74: ; preds = %73, %39
%75 = load i32, i32* %20
%76 = load i32*, i32** %14
store i32 %75, i32* %76
ret void
}

LLVM IR (-O2):
define void @val_curMRI(i32* %0, i32* %1, i32* %2, i32* %3, i32* nocapture writeonly %4, i32* %5, i32* %6, i32* %7, i32 %8) {
%10 = alloca i32
%11 = alloca i32
%12 = bitcast i32* %10 to i8*
%13 = bitcast i32* %11 to i8*
%14 = call i32 (i32*, i32, ...) bitcast (i32 (...)* @val_curMRIState to i32 (i32*, i32, ...)*)(i32* %10, i32 %8)
%15 = load i32, i32* %10
%16 = call i32 (i32*, i32, ...) bitcast (i32 (...)* @val_anl to i32 (i32*, i32, ...)*)(i32* %0, i32 %15)
%17 = load i32, i32* %10
%18 = call i32 (i32*, i32, ...) bitcast (i32 (...)* @val_dmu to i32 (i32*, i32, ...)*)(i32* %1, i32 %17)
%19 = load i32, i32* %10
%20 = call i32 (i32*, i32, ...) bitcast (i32 (...)* @val_trl to i32 (i32*, i32, ...)*)(i32* %2, i32 %19)
%21 = load i32, i32* %10
%22 = call i32 (i32*, i32, ...) bitcast (i32 (...)* @val_lnk to i32 (i32*, i32, ...)*)(i32* %3, i32 %21)
%23 = load i32, i32* %10
%24 = call i32 (i32*, i32, ...) bitcast (i32 (...)* @length_pob to i32 (i32*, i32, ...)*)(i32* %11, i32 %23)
%25 = load i32, i32* %11
%26 = icmp sgt i32 %25, 2
br i1 %26, label %27, label %36
27: ; preds = %9
%28 = load i32, i32* %10
%29 = call i32 (i32*, i32, i32, ...) bitcast (i32 (...)* @valIth_pob to i32 (i32*, i32, i32, ...)*)(i32* %5, i32 %28, i32 1)
%30 = load i32, i32* %10
%31 = load i32, i32* %11
%32 = add nsw i32 %31, -1
%33 = call i32 (i32*, i32, i32, ...) bitcast (i32 (...)* @valIth_pob to i32 (i32*, i32, i32, ...)*)(i32* %6, i32 %30, i32 %32)
%34 = load i32, i32* %10
%35 = call i32 (i32*, i32, ...) bitcast (i32 (...)* @last_pob to i32 (i32*, i32, ...)*)(i32* %7, i32 %34)
br label %48
36: ; preds = %9
switch i32 %25, label %47 [
i32 2, label %37
i32 1, label %42
]
37: ; preds = %36
%38 = load i32, i32* %10
%39 = call i32 (i32*, i32, i32, ...) bitcast (i32 (...)* @valIth_pob to i32 (i32*, i32, i32, ...)*)(i32* %5, i32 %38, i32 1)
store i32 0, i32* %6
%40 = load i32, i32* %10
%41 = call i32 (i32*, i32, ...) bitcast (i32 (...)* @last_pob to i32 (i32*, i32, ...)*)(i32* %7, i32 %40)
br label %48
42: ; preds = %36
%43 = load i32, i32* %10
%44 = call i32 (i32*, i32, i32, ...) bitcast (i32 (...)* @valIth_pob to i32 (i32*, i32, i32, ...)*)(i32* %5, i32 %43, i32 1)
store i32 0, i32* %6
%45 = load i32, i32* %10
%46 = call i32 (i32*, i32, ...) bitcast (i32 (...)* @last_pob to i32 (i32*, i32, ...)*)(i32* %7, i32 %45)
br label %48
47: ; preds = %36
store i32 0, i32* %5
store i32 0, i32* %6
store i32 0, i32* %7
br label %48
48: ; preds = %37, %42, %47, %27
%49 = load i32, i32* %11
store i32 %49, i32* %4
ret void
}