void MainWinDisp_type(tt) int tt;
{
  if (tt == 2) {
    DisplayCurrWinText("LIBRARY ");
  }
  if (tt == 9) {
    DisplayCurrWinText("VHDL LIBRARY ");
  } else if (tt == 7) {
    DisplayCurrWinText("VHDL ");
  } else if (tt == 8) {
    DisplayCurrWinText("VHDL GENERATED PACKAGE ");
  } else if (tt != 1 && tt != 7 && tt != 8) {
    DisplayCurrWinText("GENERATED ");
  }
}


x86 assembly (clang, -O0):
<MainWinDisp_type>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
cmpl   $0x2,-0x4(%rbp)
jne    1133 <MainWinDisp_type+0x23>
lea    0xed9(%rip),%rdi
mov    $0x0,%al
call   1030 <DisplayCurrWinText@plt>
cmpl   $0x9,-0x4(%rbp)
jne    1150 <MainWinDisp_type+0x40>
lea    0xebc(%rip),%rdi
mov    $0x0,%al
call   1030 <DisplayCurrWinText@plt>
jmp    11c5 <MainWinDisp_type+0xb5>
cmpl   $0x7,-0x4(%rbp)
jne    116d <MainWinDisp_type+0x5d>
lea    0xead(%rip),%rdi
mov    $0x0,%al
call   1030 <DisplayCurrWinText@plt>
jmp    11c0 <MainWinDisp_type+0xb0>
cmpl   $0x8,-0x4(%rbp)
jne    118a <MainWinDisp_type+0x7a>
lea    0xe96(%rip),%rdi
mov    $0x0,%al
call   1030 <DisplayCurrWinText@plt>
jmp    11bb <MainWinDisp_type+0xab>
cmpl   $0x1,-0x4(%rbp)
je     11b6 <MainWinDisp_type+0xa6>
cmpl   $0x7,-0x4(%rbp)
je     11b6 <MainWinDisp_type+0xa6>
cmpl   $0x8,-0x4(%rbp)
je     11b6 <MainWinDisp_type+0xa6>
lea    0xe7d(%rip),%rdi
mov    $0x0,%al
call   1030 <DisplayCurrWinText@plt>
jmp    11bb <MainWinDisp_type+0xab>
jmp    11c0 <MainWinDisp_type+0xb0>
jmp    11c5 <MainWinDisp_type+0xb5>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<MainWinDisp_type>:
push   %rax
mov    %edi,%eax
add    $0xffffffff,%eax
cmp    $0x8,%eax
ja     1142 <MainWinDisp_type+0x32>
lea    0xf02(%rip),%rdi
lea    0xed7(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
jmp    *%rax
pop    %rax
ret
lea    0xeee(%rip),%rdi
xor    %eax,%eax
call   1030 <DisplayCurrWinText@plt>
lea    0xf07(%rip),%rdi
jmp    115b <MainWinDisp_type+0x4b>
lea    0xee0(%rip),%rdi
jmp    115b <MainWinDisp_type+0x4b>
lea    0xedd(%rip),%rdi
xor    %eax,%eax
pop    %rcx
jmp    1030 <DisplayCurrWinText@plt>

LLVM IR (-O0):
@.str = [9 x i8] c"LIBRARY \00"
@.str.1 = [14 x i8] c"VHDL LIBRARY \00"
@.str.2 = [6 x i8] c"VHDL \00"
@.str.3 = [24 x i8] c"VHDL GENERATED PACKAGE \00"
@.str.4 = [11 x i8] c"GENERATED \00"
define void @MainWinDisp_type(i32 %0) {
%2 = alloca i32
store i32 %0, i32* %2
%3 = load i32, i32* %2
%4 = icmp eq i32 %3, 2
br i1 %4, label %5, label %7
5: ; preds = %1
%6 = call i32 (i8*, ...) bitcast (i32 (...)* @DisplayCurrWinText to i32 (i8*, ...)*)(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0))
br label %7
7: ; preds = %5, %1
%8 = load i32, i32* %2
%9 = icmp eq i32 %8, 9
br i1 %9, label %10, label %12
10: ; preds = %7
%11 = call i32 (i8*, ...) bitcast (i32 (...)* @DisplayCurrWinText to i32 (i8*, ...)*)(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.1, i64 0, i64 0))
br label %36
12: ; preds = %7
%13 = load i32, i32* %2
%14 = icmp eq i32 %13, 7
br i1 %14, label %15, label %17
15: ; preds = %12
%16 = call i32 (i8*, ...) bitcast (i32 (...)* @DisplayCurrWinText to i32 (i8*, ...)*)(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.2, i64 0, i64 0))
br label %35
17: ; preds = %12
%18 = load i32, i32* %2
%19 = icmp eq i32 %18, 8
br i1 %19, label %20, label %22
20: ; preds = %17
%21 = call i32 (i8*, ...) bitcast (i32 (...)* @DisplayCurrWinText to i32 (i8*, ...)*)(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.3, i64 0, i64 0))
br label %34
22: ; preds = %17
%23 = load i32, i32* %2
%24 = icmp ne i32 %23, 1
br i1 %24, label %25, label %33
25: ; preds = %22
%26 = load i32, i32* %2
%27 = icmp ne i32 %26, 7
br i1 %27, label %28, label %33
28: ; preds = %25
%29 = load i32, i32* %2
%30 = icmp ne i32 %29, 8
br i1 %30, label %31, label %33
31: ; preds = %28
%32 = call i32 (i8*, ...) bitcast (i32 (...)* @DisplayCurrWinText to i32 (i8*, ...)*)(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.4, i64 0, i64 0))
br label %33
33: ; preds = %31, %28, %25, %22
br label %34
34: ; preds = %33, %20
br label %35
35: ; preds = %34, %15
br label %36
36: ; preds = %35, %10
ret void
}

LLVM IR (-O2):
@.str = [9 x i8] c"LIBRARY \00"
@.str.1 = [14 x i8] c"VHDL LIBRARY \00"
@.str.2 = [6 x i8] c"VHDL \00"
@.str.3 = [24 x i8] c"VHDL GENERATED PACKAGE \00"
@.str.4 = [11 x i8] c"GENERATED \00"
define void @MainWinDisp_type(i32 %0) {
switch i32 %0, label %6 [
i32 2, label %2
i32 9, label %7
i32 7, label %4
i32 8, label %5
i32 1, label %10
]
2: ; preds = %1
%3 = tail call i32 (i8*, ...) bitcast (i32 (...)* @DisplayCurrWinText to i32 (i8*, ...)*)(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0))
br label %6
4: ; preds = %1
br label %7
5: ; preds = %1
br label %7
6: ; preds = %2, %1
br label %7
7: ; preds = %1, %5, %6, %4
%8 = phi i8* [ getelementptr inbounds ([6 x i8], [6 x i8]* @.str.2, i64 0, i64 0), %4 ], [ getelementptr inbounds ([11 x i8], [11 x i8]* @.str.4, i64 0, i64 0), %6 ], [ getelementptr inbounds ([24 x i8], [24 x i8]* @.str.3, i64 0, i64 0), %5 ], [ getelementptr inbounds ([14 x i8], [14 x i8]* @.str.1, i64 0, i64 0), %1 ]
%9 = tail call i32 (i8*, ...) bitcast (i32 (...)* @DisplayCurrWinText to i32 (i8*, ...)*)(i8* %8)
br label %10
10: ; preds = %7, %1
ret void
}