intr_gen(rep, cc, ex, nm, tt, cc1) int *rep, *cc, ex, *nm, tt, cc1;
{
  int rr, ac, curMRI, cptMRI, curGEN, cptGEN;
  make_Construct(&rr, cc, ex, tt);
  if (rr == 1) {
    mod_name(&rr, *cc, nm);
    if (rr == 1) {
      switch (tt) {
      case 3:
        if (ex == 8) {
          cre_gen_by(*cc, cc1);
        } else {
          make_MRIState(&rr, &curMRI, 0, 0, 0, 0);
          if (rr == 1) {
            make_MRIState(&rr, &cptMRI, 0, 0, 0, 0);
            if (rr == 1) {
              cre_curMRIState(*cc, curMRI);
              cre_cptMRIState(*cc, cptMRI);
              cre_gen_by(*cc, cc1);
            }
          }
        }
        break;
      case 4:
        make_MRIState(&rr, &curMRI, 1, 0, 1, 0);
        if (rr == 1) {
          make_MRIState(&rr, &cptMRI, 1, 0, 1, 0);
          if (rr == 1) {
            cre_curMRIState(*cc, curMRI);
            cre_cptMRIState(*cc, cptMRI);
            cre_gen_by(*cc, cc1);
          }
        }
        break;
      case 5:
        if (ex == 6) {
          make_GENState(&rr, &curGEN, 0, 0, 0);
          if (rr == 1) {
            make_GENState(&rr, &cptGEN, 0, 0, 0);
            if (rr == 1) {
              cre_curGENState(*cc, curGEN);
              cre_cptGENState(*cc, cptGEN);
              cre_gen_by(*cc, cc1);
            }
          }
        } else {
          make_MRIState(&rr, &curMRI, 0, 0, 0, 0);
          if (rr == 1) {
            make_MRIState(&rr, &cptMRI, 0, 0, 0, 0);
            if (rr == 1) {
              cre_curMRIState(*cc, curMRI);
              cre_cptMRIState(*cc, cptMRI);
              cre_gen_by(*cc, cc1);
            }
          }
        }
        break;
      }
    }
    if (rr == 0) {
      kill_Construct(*cc);
    }
  }
  *rep = rr;
}


x86 assembly (clang, -O0):
<intr_gen>:
push   %rbp
mov    %rsp,%rbp
sub    $0x50,%rsp
mov    %rdi,-0x10(%rbp)
mov    %rsi,-0x18(%rbp)
mov    %edx,-0x1c(%rbp)
mov    %rcx,-0x28(%rbp)
mov    %r8d,-0x2c(%rbp)
mov    %r9d,-0x30(%rbp)
mov    -0x18(%rbp),%rsi
mov    -0x1c(%rbp),%edx
mov    -0x2c(%rbp),%ecx
lea    -0x34(%rbp),%rdi
mov    $0x0,%al
call   1070 <make_Construct@plt>
cmpl   $0x1,-0x34(%rbp)
jne    1497 <intr_gen+0x2f7>
mov    -0x18(%rbp),%rax
mov    (%rax),%esi
mov    -0x28(%rbp),%rdx
lea    -0x34(%rbp),%rdi
mov    $0x0,%al
call   1050 <mod_name@plt>
cmpl   $0x1,-0x34(%rbp)
jne    147b <intr_gen+0x2db>
mov    -0x2c(%rbp),%eax
mov    %eax,-0x4c(%rbp)
sub    $0x3,%eax
je     1233 <intr_gen+0x93>
jmp    1211 <intr_gen+0x71>
mov    -0x4c(%rbp),%eax
sub    $0x4,%eax
je     12db <intr_gen+0x13b>
jmp    1222 <intr_gen+0x82>
mov    -0x4c(%rbp),%eax
sub    $0x5,%eax
je     1365 <intr_gen+0x1c5>
jmp    1476 <intr_gen+0x2d6>
cmpl   $0x8,-0x1c(%rbp)
jne    1252 <intr_gen+0xb2>
mov    -0x18(%rbp),%rax
mov    (%rax),%edi
mov    -0x30(%rbp),%esi
mov    $0x0,%al
call   1030 <cre_gen_by@plt>
jmp    12d6 <intr_gen+0x136>
lea    -0x34(%rbp),%rdi
lea    -0x3c(%rbp),%rsi
xor    %r9d,%r9d
mov    %r9d,%edx
mov    %r9d,%ecx
mov    %r9d,%r8d
mov    $0x0,%al
call   10a0 <make_MRIState@plt>
cmpl   $0x1,-0x34(%rbp)
jne    12d1 <intr_gen+0x131>
lea    -0x34(%rbp),%rdi
lea    -0x40(%rbp),%rsi
xor    %r9d,%r9d
mov    %r9d,%edx
mov    %r9d,%ecx
mov    %r9d,%r8d
mov    $0x0,%al
call   10a0 <make_MRIState@plt>
cmpl   $0x1,-0x34(%rbp)
jne    12cc <intr_gen+0x12c>
mov    -0x18(%rbp),%rax
mov    (%rax),%edi
mov    -0x3c(%rbp),%esi
mov    $0x0,%al
call   10b0 <cre_curMRIState@plt>
mov    -0x18(%rbp),%rax
mov    (%rax),%edi
mov    -0x40(%rbp),%esi
mov    $0x0,%al
call   10c0 <cre_cptMRIState@plt>
mov    -0x18(%rbp),%rax
mov    (%rax),%edi
mov    -0x30(%rbp),%esi
mov    $0x0,%al
call   1030 <cre_gen_by@plt>
jmp    12d1 <intr_gen+0x131>
jmp    12d6 <intr_gen+0x136>
jmp    1476 <intr_gen+0x2d6>
lea    -0x34(%rbp),%rdi
lea    -0x3c(%rbp),%rsi
mov    $0x1,%r8d
xor    %r9d,%r9d
mov    %r8d,%edx
mov    %r9d,%ecx
mov    $0x0,%al
call   10a0 <make_MRIState@plt>
cmpl   $0x1,-0x34(%rbp)
jne    1360 <intr_gen+0x1c0>
lea    -0x34(%rbp),%rdi
lea    -0x40(%rbp),%rsi
mov    $0x1,%r8d
xor    %r9d,%r9d
mov    %r8d,%edx
mov    %r9d,%ecx
mov    $0x0,%al
call   10a0 <make_MRIState@plt>
cmpl   $0x1,-0x34(%rbp)
jne    135b <intr_gen+0x1bb>
mov    -0x18(%rbp),%rax
mov    (%rax),%edi
mov    -0x3c(%rbp),%esi
mov    $0x0,%al
call   10b0 <cre_curMRIState@plt>
mov    -0x18(%rbp),%rax
mov    (%rax),%edi
mov    -0x40(%rbp),%esi
mov    $0x0,%al
call   10c0 <cre_cptMRIState@plt>
mov    -0x18(%rbp),%rax
mov    (%rax),%edi
mov    -0x30(%rbp),%esi
mov    $0x0,%al
call   1030 <cre_gen_by@plt>
jmp    1360 <intr_gen+0x1c0>
jmp    1476 <intr_gen+0x2d6>
cmpl   $0x6,-0x1c(%rbp)
jne    13ed <intr_gen+0x24d>
lea    -0x34(%rbp),%rdi
lea    -0x44(%rbp),%rsi
xor    %r8d,%r8d
mov    %r8d,%edx
mov    %r8d,%ecx
mov    $0x0,%al
call   1080 <make_GENState@plt>
cmpl   $0x1,-0x34(%rbp)
jne    13e8 <intr_gen+0x248>
lea    -0x34(%rbp),%rdi
lea    -0x48(%rbp),%rsi
xor    %r8d,%r8d
mov    %r8d,%edx
mov    %r8d,%ecx
mov    $0x0,%al
call   1080 <make_GENState@plt>
cmpl   $0x1,-0x34(%rbp)
jne    13e3 <intr_gen+0x243>
mov    -0x18(%rbp),%rax
mov    (%rax),%edi
mov    -0x44(%rbp),%esi
mov    $0x0,%al
call   1090 <cre_curGENState@plt>
mov    -0x18(%rbp),%rax
mov    (%rax),%edi
mov    -0x48(%rbp),%esi
mov    $0x0,%al
call   1060 <cre_cptGENState@plt>
mov    -0x18(%rbp),%rax
mov    (%rax),%edi
mov    -0x30(%rbp),%esi
mov    $0x0,%al
call   1030 <cre_gen_by@plt>
jmp    13e8 <intr_gen+0x248>
jmp    1471 <intr_gen+0x2d1>
lea    -0x34(%rbp),%rdi
lea    -0x3c(%rbp),%rsi
xor    %r9d,%r9d
mov    %r9d,%edx
mov    %r9d,%ecx
mov    %r9d,%r8d
mov    $0x0,%al
call   10a0 <make_MRIState@plt>
cmpl   $0x1,-0x34(%rbp)
jne    146c <intr_gen+0x2cc>
lea    -0x34(%rbp),%rdi
lea    -0x40(%rbp),%rsi
xor    %r9d,%r9d
mov    %r9d,%edx
mov    %r9d,%ecx
mov    %r9d,%r8d
mov    $0x0,%al
call   10a0 <make_MRIState@plt>
cmpl   $0x1,-0x34(%rbp)
jne    1467 <intr_gen+0x2c7>
mov    -0x18(%rbp),%rax
mov    (%rax),%edi
mov    -0x3c(%rbp),%esi
mov    $0x0,%al
call   10b0 <cre_curMRIState@plt>
mov    -0x18(%rbp),%rax
mov    (%rax),%edi
mov    -0x40(%rbp),%esi
mov    $0x0,%al
call   10c0 <cre_cptMRIState@plt>
mov    -0x18(%rbp),%rax
mov    (%rax),%edi
mov    -0x30(%rbp),%esi
mov    $0x0,%al
call   1030 <cre_gen_by@plt>
jmp    146c <intr_gen+0x2cc>
jmp    1471 <intr_gen+0x2d1>
jmp    1476 <intr_gen+0x2d6>
jmp    147b <intr_gen+0x2db>
cmpl   $0x0,-0x34(%rbp)
jne    1492 <intr_gen+0x2f2>
mov    -0x18(%rbp),%rax
mov    (%rax),%edi
mov    $0x0,%al
call   1040 <kill_Construct@plt>
jmp    1497 <intr_gen+0x2f7>
mov    -0x34(%rbp),%ecx
mov    -0x10(%rbp),%rax
mov    %ecx,(%rax)
mov    -0x4(%rbp),%eax
add    $0x50,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<intr_gen>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x18,%rsp
mov    %r9d,%r15d
mov    %r8d,%ebx
mov    %rcx,%rbp
mov    %edx,%r13d
mov    %rsi,%r12
mov    %rdi,%r14
lea    0xc(%rsp),%rdi
mov    %r8d,%ecx
xor    %eax,%eax
call   1070 <make_Construct@plt>
mov    0xc(%rsp),%eax
cmp    $0x1,%eax
jne    1368 <intr_gen+0x1c8>
mov    (%r12),%esi
lea    0xc(%rsp),%rdi
mov    %rbp,%rdx
xor    %eax,%eax
call   1050 <mod_name@plt>
mov    0xc(%rsp),%eax
cmp    $0x1,%eax
jne    1355 <intr_gen+0x1b5>
cmp    $0x5,%ebx
je     127e <intr_gen+0xde>
cmp    $0x4,%ebx
je     1234 <intr_gen+0x94>
mov    $0x1,%eax
cmp    $0x3,%ebx
jne    1368 <intr_gen+0x1c8>
cmp    $0x8,%r13d
je     1343 <intr_gen+0x1a3>
lea    0xc(%rsp),%rdi
lea    0x14(%rsp),%rsi
xor    %edx,%edx
xor    %ecx,%ecx
xor    %r8d,%r8d
jmp    12ee <intr_gen+0x14e>
lea    0xc(%rsp),%rdi
lea    0x14(%rsp),%rsi
mov    $0x1,%edx
xor    %ecx,%ecx
mov    $0x1,%r8d
xor    %r9d,%r9d
xor    %eax,%eax
call   10a0 <make_MRIState@plt>
mov    0xc(%rsp),%eax
cmp    $0x1,%eax
jne    1355 <intr_gen+0x1b5>
lea    0xc(%rsp),%rdi
lea    0x10(%rsp),%rsi
mov    $0x1,%edx
xor    %ecx,%ecx
mov    $0x1,%r8d
jmp    1312 <intr_gen+0x172>
lea    0xc(%rsp),%rdi
lea    0x14(%rsp),%rsi
xor    %edx,%edx
xor    %ecx,%ecx
xor    %r8d,%r8d
cmp    $0x6,%r13d
jne    12ee <intr_gen+0x14e>
xor    %eax,%eax
call   1080 <make_GENState@plt>
mov    0xc(%rsp),%eax
cmp    $0x1,%eax
jne    1355 <intr_gen+0x1b5>
lea    0xc(%rsp),%rdi
lea    0x10(%rsp),%rsi
xor    %edx,%edx
xor    %ecx,%ecx
xor    %r8d,%r8d
xor    %eax,%eax
call   1080 <make_GENState@plt>
mov    0xc(%rsp),%eax
cmp    $0x1,%eax
jne    1355 <intr_gen+0x1b5>
mov    (%r12),%edi
mov    0x14(%rsp),%esi
xor    %eax,%eax
call   1090 <cre_curGENState@plt>
mov    (%r12),%edi
mov    0x10(%rsp),%esi
xor    %eax,%eax
call   1060 <cre_cptGENState@plt>
jmp    1343 <intr_gen+0x1a3>
xor    %r9d,%r9d
xor    %eax,%eax
call   10a0 <make_MRIState@plt>
mov    0xc(%rsp),%eax
cmp    $0x1,%eax
jne    1355 <intr_gen+0x1b5>
lea    0xc(%rsp),%rdi
lea    0x10(%rsp),%rsi
xor    %edx,%edx
xor    %ecx,%ecx
xor    %r8d,%r8d
xor    %r9d,%r9d
xor    %eax,%eax
call   10a0 <make_MRIState@plt>
mov    0xc(%rsp),%eax
cmp    $0x1,%eax
jne    1355 <intr_gen+0x1b5>
mov    (%r12),%edi
mov    0x14(%rsp),%esi
xor    %eax,%eax
call   10b0 <cre_curMRIState@plt>
mov    (%r12),%edi
mov    0x10(%rsp),%esi
xor    %eax,%eax
call   10c0 <cre_cptMRIState@plt>
mov    (%r12),%edi
mov    %r15d,%esi
xor    %eax,%eax
call   1030 <cre_gen_by@plt>
mov    0xc(%rsp),%eax
test   %eax,%eax
jne    1368 <intr_gen+0x1c8>
mov    (%r12),%edi
xor    %eax,%eax
call   1040 <kill_Construct@plt>
mov    0xc(%rsp),%eax
mov    %eax,(%r14)
add    $0x18,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
define i32 @intr_gen(i32* %0, i32* %1, i32 %2, i32* %3, i32 %4, i32 %5) {
%7 = alloca i32
%8 = alloca i32*
%9 = alloca i32*
%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
store i32* %0, i32** %8
store i32* %1, i32** %9
store i32 %2, i32* %10
store i32* %3, i32** %11
store i32 %4, i32* %12
store i32 %5, i32* %13
%20 = load i32*, i32** %9
%21 = load i32, i32* %10
%22 = load i32, i32* %12
%23 = call i32 (i32*, i32*, i32, i32, ...) bitcast (i32 (...)* @make_Construct to i32 (i32*, i32*, i32, i32, ...)*)(i32* %14, i32* %20, i32 %21, i32 %22)
%24 = load i32, i32* %14
%25 = icmp eq i32 %24, 1
br i1 %25, label %26, label %149
26: ; preds = %6
%27 = load i32*, i32** %9
%28 = load i32, i32* %27
%29 = load i32*, i32** %11
%30 = call i32 (i32*, i32, i32*, ...) bitcast (i32 (...)* @mod_name to i32 (i32*, i32, i32*, ...)*)(i32* %14, i32 %28, i32* %29)
%31 = load i32, i32* %14
%32 = icmp eq i32 %31, 1
br i1 %32, label %33, label %141
33: ; preds = %26
%34 = load i32, i32* %12
switch i32 %34, label %140 [
i32 3, label %35
i32 4, label %67
i32 5, label %90
]
35: ; preds = %33
%36 = load i32, i32* %10
%37 = icmp eq i32 %36, 8
br i1 %37, label %38, label %43
38: ; preds = %35
%39 = load i32*, i32** %9
%40 = load i32, i32* %39
%41 = load i32, i32* %13
%42 = call i32 (i32, i32, ...) bitcast (i32 (...)* @cre_gen_by to i32 (i32, i32, ...)*)(i32 %40, i32 %41)
br label %66
43: ; preds = %35
%44 = call i32 (i32*, i32*, i32, i32, i32, i32, ...) bitcast (i32 (...)* @make_MRIState to i32 (i32*, i32*, i32, i32, i32, i32, ...)*)(i32* %14, i32* %16, i32 0, i32 0, i32 0, i32 0)
%45 = load i32, i32* %14
%46 = icmp eq i32 %45, 1
br i1 %46, label %47, label %65
47: ; preds = %43
%48 = call i32 (i32*, i32*, i32, i32, i32, i32, ...) bitcast (i32 (...)* @make_MRIState to i32 (i32*, i32*, i32, i32, i32, i32, ...)*)(i32* %14, i32* %17, i32 0, i32 0, i32 0, i32 0)
%49 = load i32, i32* %14
%50 = icmp eq i32 %49, 1
br i1 %50, label %51, label %64
51: ; preds = %47
%52 = load i32*, i32** %9
%53 = load i32, i32* %52
%54 = load i32, i32* %16
%55 = call i32 (i32, i32, ...) bitcast (i32 (...)* @cre_curMRIState to i32 (i32, i32, ...)*)(i32 %53, i32 %54)
%56 = load i32*, i32** %9
%57 = load i32, i32* %56
%58 = load i32, i32* %17
%59 = call i32 (i32, i32, ...) bitcast (i32 (...)* @cre_cptMRIState to i32 (i32, i32, ...)*)(i32 %57, i32 %58)
%60 = load i32*, i32** %9
%61 = load i32, i32* %60
%62 = load i32, i32* %13
%63 = call i32 (i32, i32, ...) bitcast (i32 (...)* @cre_gen_by to i32 (i32, i32, ...)*)(i32 %61, i32 %62)
br label %64
64: ; preds = %51, %47
br label %65
65: ; preds = %64, %43
br label %66
66: ; preds = %65, %38
br label %140
67: ; preds = %33
%68 = call i32 (i32*, i32*, i32, i32, i32, i32, ...) bitcast (i32 (...)* @make_MRIState to i32 (i32*, i32*, i32, i32, i32, i32, ...)*)(i32* %14, i32* %16, i32 1, i32 0, i32 1, i32 0)
%69 = load i32, i32* %14
%70 = icmp eq i32 %69, 1
br i1 %70, label %71, label %89
71: ; preds = %67
%72 = call i32 (i32*, i32*, i32, i32, i32, i32, ...) bitcast (i32 (...)* @make_MRIState to i32 (i32*, i32*, i32, i32, i32, i32, ...)*)(i32* %14, i32* %17, i32 1, i32 0, i32 1, i32 0)
%73 = load i32, i32* %14
%74 = icmp eq i32 %73, 1
br i1 %74, label %75, label %88
75: ; preds = %71
%76 = load i32*, i32** %9
%77 = load i32, i32* %76
%78 = load i32, i32* %16
%79 = call i32 (i32, i32, ...) bitcast (i32 (...)* @cre_curMRIState to i32 (i32, i32, ...)*)(i32 %77, i32 %78)
%80 = load i32*, i32** %9
%81 = load i32, i32* %80
%82 = load i32, i32* %17
%83 = call i32 (i32, i32, ...) bitcast (i32 (...)* @cre_cptMRIState to i32 (i32, i32, ...)*)(i32 %81, i32 %82)
%84 = load i32*, i32** %9
%85 = load i32, i32* %84
%86 = load i32, i32* %13
%87 = call i32 (i32, i32, ...) bitcast (i32 (...)* @cre_gen_by to i32 (i32, i32, ...)*)(i32 %85, i32 %86)
br label %88
88: ; preds = %75, %71
br label %89
89: ; preds = %88, %67
br label %140
90: ; preds = %33
%91 = load i32, i32* %10
%92 = icmp eq i32 %91, 6
br i1 %92, label %93, label %116
93: ; preds = %90
%94 = call i32 (i32*, i32*, i32, i32, i32, ...) bitcast (i32 (...)* @make_GENState to i32 (i32*, i32*, i32, i32, i32, ...)*)(i32* %14, i32* %18, i32 0, i32 0, i32 0)
%95 = load i32, i32* %14
%96 = icmp eq i32 %95, 1
br i1 %96, label %97, label %115
97: ; preds = %93
%98 = call i32 (i32*, i32*, i32, i32, i32, ...) bitcast (i32 (...)* @make_GENState to i32 (i32*, i32*, i32, i32, i32, ...)*)(i32* %14, i32* %19, i32 0, i32 0, i32 0)
%99 = load i32, i32* %14
%100 = icmp eq i32 %99, 1
br i1 %100, label %101, label %114
101: ; preds = %97
%102 = load i32*, i32** %9
%103 = load i32, i32* %102
%104 = load i32, i32* %18
%105 = call i32 (i32, i32, ...) bitcast (i32 (...)* @cre_curGENState to i32 (i32, i32, ...)*)(i32 %103, i32 %104)
%106 = load i32*, i32** %9
%107 = load i32, i32* %106
%108 = load i32, i32* %19
%109 = call i32 (i32, i32, ...) bitcast (i32 (...)* @cre_cptGENState to i32 (i32, i32, ...)*)(i32 %107, i32 %108)
%110 = load i32*, i32** %9
%111 = load i32, i32* %110
%112 = load i32, i32* %13
%113 = call i32 (i32, i32, ...) bitcast (i32 (...)* @cre_gen_by to i32 (i32, i32, ...)*)(i32 %111, i32 %112)
br label %114
114: ; preds = %101, %97
br label %115
115: ; preds = %114, %93
br label %139
116: ; preds = %90
%117 = call i32 (i32*, i32*, i32, i32, i32, i32, ...) bitcast (i32 (...)* @make_MRIState to i32 (i32*, i32*, i32, i32, i32, i32, ...)*)(i32* %14, i32* %16, i32 0, i32 0, i32 0, i32 0)
%118 = load i32, i32* %14
%119 = icmp eq i32 %118, 1
br i1 %119, label %120, label %138
120: ; preds = %116
%121 = call i32 (i32*, i32*, i32, i32, i32, i32, ...) bitcast (i32 (...)* @make_MRIState to i32 (i32*, i32*, i32, i32, i32, i32, ...)*)(i32* %14, i32* %17, i32 0, i32 0, i32 0, i32 0)
%122 = load i32, i32* %14
%123 = icmp eq i32 %122, 1
br i1 %123, label %124, label %137
124: ; preds = %120
%125 = load i32*, i32** %9
%126 = load i32, i32* %125
%127 = load i32, i32* %16
%128 = call i32 (i32, i32, ...) bitcast (i32 (...)* @cre_curMRIState to i32 (i32, i32, ...)*)(i32 %126, i32 %127)
%129 = load i32*, i32** %9
%130 = load i32, i32* %129
%131 = load i32, i32* %17
%132 = call i32 (i32, i32, ...) bitcast (i32 (...)* @cre_cptMRIState to i32 (i32, i32, ...)*)(i32 %130, i32 %131)
%133 = load i32*, i32** %9
%134 = load i32, i32* %133
%135 = load i32, i32* %13
%136 = call i32 (i32, i32, ...) bitcast (i32 (...)* @cre_gen_by to i32 (i32, i32, ...)*)(i32 %134, i32 %135)
br label %137
137: ; preds = %124, %120
br label %138
138: ; preds = %137, %116
br label %139
139: ; preds = %138, %115
br label %140
140: ; preds = %33, %139, %89, %66
br label %141
141: ; preds = %140, %26
%142 = load i32, i32* %14
%143 = icmp eq i32 %142, 0
br i1 %143, label %144, label %148
144: ; preds = %141
%145 = load i32*, i32** %9
%146 = load i32, i32* %145
%147 = call i32 (i32, ...) bitcast (i32 (...)* @kill_Construct to i32 (i32, ...)*)(i32 %146)
br label %148
148: ; preds = %144, %141
br label %149
149: ; preds = %148, %6
%150 = load i32, i32* %14
%151 = load i32*, i32** %8
store i32 %150, i32* %151
%152 = load i32, i32* %7
ret i32 %152
}

LLVM IR (-O2):
define i32 @intr_gen(i32* nocapture writeonly %0, i32* %1, i32 %2, i32* %3, i32 %4, i32 %5) {
%7 = alloca i32
%8 = alloca i32
%9 = alloca i32
%10 = alloca i32
%11 = alloca i32
%12 = bitcast i32* %7 to i8*
%13 = bitcast i32* %8 to i8*
%14 = bitcast i32* %9 to i8*
%15 = bitcast i32* %10 to i8*
%16 = bitcast i32* %11 to i8*
%17 = call i32 (i32*, i32*, i32, i32, ...) bitcast (i32 (...)* @make_Construct to i32 (i32*, i32*, i32, i32, ...)*)(i32* %7, i32* %1, i32 %2, i32 %4)
%18 = load i32, i32* %7
%19 = icmp eq i32 %18, 1
br i1 %19, label %20, label %101
20: ; preds = %6
%21 = load i32, i32* %1
%22 = call i32 (i32*, i32, i32*, ...) bitcast (i32 (...)* @mod_name to i32 (i32*, i32, i32*, ...)*)(i32* %7, i32 %21, i32* %3)
%23 = load i32, i32* %7
%24 = icmp eq i32 %23, 1
br i1 %24, label %25, label %94
25: ; preds = %20
switch i32 %4, label %101 [
i32 3, label %26
i32 4, label %43
i32 5, label %58
]
26: ; preds = %25
%27 = icmp eq i32 %2, 8
br i1 %27, label %90, label %28
28: ; preds = %26
%29 = call i32 (i32*, i32*, i32, i32, i32, i32, ...) bitcast (i32 (...)* @make_MRIState to i32 (i32*, i32*, i32, i32, i32, i32, ...)*)(i32* %7, i32* %8, i32 0, i32 0, i32 0, i32 0)
%30 = load i32, i32* %7
%31 = icmp eq i32 %30, 1
br i1 %31, label %32, label %94
32: ; preds = %28
%33 = call i32 (i32*, i32*, i32, i32, i32, i32, ...) bitcast (i32 (...)* @make_MRIState to i32 (i32*, i32*, i32, i32, i32, i32, ...)*)(i32* %7, i32* %9, i32 0, i32 0, i32 0, i32 0)
%34 = load i32, i32* %7
%35 = icmp eq i32 %34, 1
br i1 %35, label %36, label %94
36: ; preds = %32
%37 = load i32, i32* %1
%38 = load i32, i32* %8
%39 = call i32 (i32, i32, ...) bitcast (i32 (...)* @cre_curMRIState to i32 (i32, i32, ...)*)(i32 %37, i32 %38)
%40 = load i32, i32* %1
%41 = load i32, i32* %9
%42 = call i32 (i32, i32, ...) bitcast (i32 (...)* @cre_cptMRIState to i32 (i32, i32, ...)*)(i32 %40, i32 %41)
br label %90
43: ; preds = %25
%44 = call i32 (i32*, i32*, i32, i32, i32, i32, ...) bitcast (i32 (...)* @make_MRIState to i32 (i32*, i32*, i32, i32, i32, i32, ...)*)(i32* %7, i32* %8, i32 1, i32 0, i32 1, i32 0)
%45 = load i32, i32* %7
%46 = icmp eq i32 %45, 1
br i1 %46, label %47, label %94
47: ; preds = %43
%48 = call i32 (i32*, i32*, i32, i32, i32, i32, ...) bitcast (i32 (...)* @make_MRIState to i32 (i32*, i32*, i32, i32, i32, i32, ...)*)(i32* %7, i32* %9, i32 1, i32 0, i32 1, i32 0)
%49 = load i32, i32* %7
%50 = icmp eq i32 %49, 1
br i1 %50, label %51, label %94
51: ; preds = %47
%52 = load i32, i32* %1
%53 = load i32, i32* %8
%54 = call i32 (i32, i32, ...) bitcast (i32 (...)* @cre_curMRIState to i32 (i32, i32, ...)*)(i32 %52, i32 %53)
%55 = load i32, i32* %1
%56 = load i32, i32* %9
%57 = call i32 (i32, i32, ...) bitcast (i32 (...)* @cre_cptMRIState to i32 (i32, i32, ...)*)(i32 %55, i32 %56)
br label %90
58: ; preds = %25
%59 = icmp eq i32 %2, 6
br i1 %59, label %60, label %75
60: ; preds = %58
%61 = call i32 (i32*, i32*, i32, i32, i32, ...) bitcast (i32 (...)* @make_GENState to i32 (i32*, i32*, i32, i32, i32, ...)*)(i32* %7, i32* %10, i32 0, i32 0, i32 0)
%62 = load i32, i32* %7
%63 = icmp eq i32 %62, 1
br i1 %63, label %64, label %94
64: ; preds = %60
%65 = call i32 (i32*, i32*, i32, i32, i32, ...) bitcast (i32 (...)* @make_GENState to i32 (i32*, i32*, i32, i32, i32, ...)*)(i32* %7, i32* %11, i32 0, i32 0, i32 0)
%66 = load i32, i32* %7
%67 = icmp eq i32 %66, 1
br i1 %67, label %68, label %94
68: ; preds = %64
%69 = load i32, i32* %1
%70 = load i32, i32* %10
%71 = call i32 (i32, i32, ...) bitcast (i32 (...)* @cre_curGENState to i32 (i32, i32, ...)*)(i32 %69, i32 %70)
%72 = load i32, i32* %1
%73 = load i32, i32* %11
%74 = call i32 (i32, i32, ...) bitcast (i32 (...)* @cre_cptGENState to i32 (i32, i32, ...)*)(i32 %72, i32 %73)
br label %90
75: ; preds = %58
%76 = call i32 (i32*, i32*, i32, i32, i32, i32, ...) bitcast (i32 (...)* @make_MRIState to i32 (i32*, i32*, i32, i32, i32, i32, ...)*)(i32* %7, i32* %8, i32 0, i32 0, i32 0, i32 0)
%77 = load i32, i32* %7
%78 = icmp eq i32 %77, 1
br i1 %78, label %79, label %94
79: ; preds = %75
%80 = call i32 (i32*, i32*, i32, i32, i32, i32, ...) bitcast (i32 (...)* @make_MRIState to i32 (i32*, i32*, i32, i32, i32, i32, ...)*)(i32* %7, i32* %9, i32 0, i32 0, i32 0, i32 0)
%81 = load i32, i32* %7
%82 = icmp eq i32 %81, 1
br i1 %82, label %83, label %94
83: ; preds = %79
%84 = load i32, i32* %1
%85 = load i32, i32* %8
%86 = call i32 (i32, i32, ...) bitcast (i32 (...)* @cre_curMRIState to i32 (i32, i32, ...)*)(i32 %84, i32 %85)
%87 = load i32, i32* %1
%88 = load i32, i32* %9
%89 = call i32 (i32, i32, ...) bitcast (i32 (...)* @cre_cptMRIState to i32 (i32, i32, ...)*)(i32 %87, i32 %88)
br label %90
90: ; preds = %26, %68, %83, %51, %36
%91 = load i32, i32* %1
%92 = call i32 (i32, i32, ...) bitcast (i32 (...)* @cre_gen_by to i32 (i32, i32, ...)*)(i32 %91, i32 %5)
%93 = load i32, i32* %7
br label %94
94: ; preds = %90, %28, %32, %47, %43, %75, %79, %60, %64, %20
%95 = phi i32 [ %93, %90 ], [ %30, %28 ], [ %34, %32 ], [ %49, %47 ], [ %45, %43 ], [ %77, %75 ], [ %81, %79 ], [ %62, %60 ], [ %66, %64 ], [ %23, %20 ]
%96 = icmp eq i32 %95, 0
br i1 %96, label %97, label %101
97: ; preds = %94
%98 = load i32, i32* %1
%99 = call i32 (i32, ...) bitcast (i32 (...)* @kill_Construct to i32 (i32, ...)*)(i32 %98)
%100 = load i32, i32* %7
br label %101
101: ; preds = %25, %94, %97, %6
%102 = phi i32 [ 1, %25 ], [ %95, %94 ], [ %100, %97 ], [ %18, %6 ]
store i32 %102, i32* %0
ret i32 undef
}