#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 /*<<< orphan*/ printf(char *, ...);
int pstreamInqByteorder(int);
int pstreamInqFiletype(int);
int vlistInqVarCompType(int, int);
int vlistNvars(int);
void printFiletype(int streamID, int vlistID) {
  int filetype;
  filetype = pstreamInqFiletype(streamID);
  switch (filetype) {
  case 1:
    printf("GRIB");
    break;
  case 2:
    printf("GRIB2");
    break;
  case 3:
    printf("netCDF");
    break;
  case 4:
    printf("netCDF2");
    break;
  case 5:
    printf("netCDF4");
    break;
  case 6:
    printf("netCDF4 classic");
    break;
  case 7:
    printf("SERVICE");
    break;
  case 8:
    printf("EXTRA");
    break;
  case 9:
    printf("IEG");
    break;
  default:
    printf("  File format: unsupported filetype %d", filetype);
    break;
  }
  if (filetype == 7 || filetype == 8 || filetype == 9) {
    switch (pstreamInqByteorder(streamID)) {
    case 0:
      printf("  BIGENDIAN");
      break;
    case 1:
      printf("  LITTLEENDIAN");
      break;
    default:
      printf("  byteorder: %d undefined", pstreamInqByteorder(streamID));
      break;
    }
  }
  if (filetype == 1 || filetype == 5 || filetype == 6) {
    int nvars, varID;
    int comptype;
    nvars = vlistNvars(vlistID);
    for (varID = 0; varID < nvars; varID++) {
      comptype = vlistInqVarCompType(vlistID, varID);
      if (comptype) {
        if (comptype == 1)
          printf(" SZIP");
        else if (comptype == 4)
          printf(" ZIP");
        break;
      }
    }
  }
  if (filetype == 2) {
    int nvars, varID;
    int comptype;
    nvars = vlistNvars(vlistID);
    for (varID = 0; varID < nvars; varID++) {
      comptype = vlistInqVarCompType(vlistID, varID);
      if (comptype) {
        if (comptype == 5)
          printf(" JPEG");
        break;
      }
    }
  }
  printf("\n");
}


x86 assembly (clang, -O0):
<printFiletype>:
push   %rbp
mov    %rsp,%rbp
sub    $0x40,%rsp
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
mov    -0x4(%rbp),%edi
call   1070 <pstreamInqFiletype@plt>
mov    %eax,-0xc(%rbp)
mov    -0xc(%rbp),%eax
add    $0xffffffff,%eax
mov    %eax,%ecx
mov    %rcx,-0x30(%rbp)
sub    $0x8,%eax
ja     123d <printFiletype+0xed>
mov    -0x30(%rbp),%rax
lea    0xe77(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
jmp    *%rax
lea    0xe8b(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    124e <printFiletype+0xfe>
lea    0xe7d(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    124e <printFiletype+0xfe>
lea    0xe70(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    124e <printFiletype+0xfe>
lea    0xe64(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    124e <printFiletype+0xfe>
lea    0xe59(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    124e <printFiletype+0xfe>
lea    0xe4e(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    124e <printFiletype+0xfe>
lea    0xe4b(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    124e <printFiletype+0xfe>
lea    0xe40(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    124e <printFiletype+0xfe>
lea    0xe33(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    124e <printFiletype+0xfe>
mov    -0xc(%rbp),%esi
lea    0xe21(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
cmpl   $0x7,-0xc(%rbp)
je     126c <printFiletype+0x11c>
cmpl   $0x8,-0xc(%rbp)
je     126c <printFiletype+0x11c>
cmpl   $0x9,-0xc(%rbp)
jne    12da <printFiletype+0x18a>
mov    -0x4(%rbp),%edi
call   1050 <pstreamInqByteorder@plt>
mov    %eax,%ecx
mov    %ecx,-0x34(%rbp)
test   %eax,%eax
je     1297 <printFiletype+0x147>
jmp    1286 <printFiletype+0x136>
mov    -0x34(%rbp),%eax
sub    $0x1,%eax
je     12aa <printFiletype+0x15a>
jmp    12bd <printFiletype+0x16d>
lea    0xdf1(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    12d5 <printFiletype+0x185>
lea    0xdea(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    12d5 <printFiletype+0x185>
mov    -0x4(%rbp),%edi
call   1050 <pstreamInqByteorder@plt>
mov    %eax,%esi
lea    0xddc(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    12da <printFiletype+0x18a>
cmpl   $0x1,-0xc(%rbp)
je     12f8 <printFiletype+0x1a8>
cmpl   $0x5,-0xc(%rbp)
je     12f8 <printFiletype+0x1a8>
cmpl   $0x6,-0xc(%rbp)
jne    1385 <printFiletype+0x235>
mov    -0x8(%rbp),%edi
call   1060 <vlistNvars@plt>
mov    %eax,-0x10(%rbp)
movl   $0x0,-0x14(%rbp)
mov    -0x14(%rbp),%eax
cmp    -0x10(%rbp),%eax
jge    1380 <printFiletype+0x230>
mov    -0x8(%rbp),%edi
mov    -0x14(%rbp),%esi
call   1040 <vlistInqVarCompType@plt>
mov    %eax,-0x18(%rbp)
cmpl   $0x0,-0x18(%rbp)
je     136d <printFiletype+0x21d>
cmpl   $0x1,-0x18(%rbp)
jne    134b <printFiletype+0x1fb>
lea    0xd85(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    1368 <printFiletype+0x218>
cmpl   $0x4,-0x18(%rbp)
jne    1363 <printFiletype+0x213>
lea    0xd6e(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    1368 <printFiletype+0x218>
jmp    1380 <printFiletype+0x230>
jmp    1372 <printFiletype+0x222>
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
jmp    130a <printFiletype+0x1ba>
jmp    1385 <printFiletype+0x235>
cmpl   $0x2,-0xc(%rbp)
jne    13fa <printFiletype+0x2aa>
mov    -0x8(%rbp),%edi
call   1060 <vlistNvars@plt>
mov    %eax,-0x1c(%rbp)
movl   $0x0,-0x20(%rbp)
mov    -0x20(%rbp),%eax
cmp    -0x1c(%rbp),%eax
jge    13f5 <printFiletype+0x2a5>
mov    -0x8(%rbp),%edi
mov    -0x20(%rbp),%esi
call   1040 <vlistInqVarCompType@plt>
mov    %eax,-0x24(%rbp)
cmpl   $0x0,-0x24(%rbp)
je     13e2 <printFiletype+0x292>
cmpl   $0x5,-0x24(%rbp)
jne    13dd <printFiletype+0x28d>
lea    0xcf9(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    13f5 <printFiletype+0x2a5>
jmp    13e7 <printFiletype+0x297>
mov    -0x20(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x20(%rbp)
jmp    13a1 <printFiletype+0x251>
jmp    13fa <printFiletype+0x2aa>
lea    0xcd4(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
add    $0x40,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<printFiletype>:
push   %rbp
push   %r15
push   %r14
push   %rbx
push   %rax
mov    %esi,%r15d
mov    %edi,%ebp
call   1080 <pstreamInqFiletype@plt>
mov    %eax,%r14d
lea    -0x1(%r14),%ecx
cmp    $0x8,%ecx
ja     11ae <printFiletype+0x4e>
lea    0xed2(%rip),%rdi
lea    0xe99(%rip),%rax
lea    0xe6e(%rip),%rdx
movslq (%rdx,%rcx,4),%rcx
add    %rdx,%rcx
jmp    *%rcx
lea    0xe87(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
jmp    12a0 <printFiletype+0x140>
lea    0xeb3(%rip),%rdi
mov    %r14d,%esi
jmp    1283 <printFiletype+0x123>
lea    0xe6b(%rip),%rdi
jmp    12d3 <printFiletype+0x173>
lea    0xe66(%rip),%rdi
jmp    12d3 <printFiletype+0x173>
lea    0xe62(%rip),%rax
jmp    11e5 <printFiletype+0x85>
lea    0xe61(%rip),%rax
xor    %ebp,%ebp
mov    %rax,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    %r15d,%edi
call   1070 <vlistNvars@plt>
test   %eax,%eax
jle    129a <printFiletype+0x13a>
mov    %eax,%ebx
cs nopw 0x0(%rax,%rax,1)
nopl   (%rax)
mov    %r15d,%edi
mov    %ebp,%esi
call   1050 <vlistInqVarCompType@plt>
test   %eax,%eax
jne    1227 <printFiletype+0xc7>
add    $0x1,%ebp
cmp    %ebp,%ebx
jne    1210 <printFiletype+0xb0>
jmp    129a <printFiletype+0x13a>
cmp    $0x1,%eax
je     128c <printFiletype+0x12c>
cmp    $0x4,%eax
jne    129a <printFiletype+0x13a>
lea    0xe92(%rip),%rdi
jmp    1293 <printFiletype+0x133>
lea    0xe1d(%rip),%rdi
jmp    124a <printFiletype+0xea>
lea    0xe1a(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    %ebp,%edi
call   1060 <pstreamInqByteorder@plt>
cmp    $0x1,%eax
je     126a <printFiletype+0x10a>
test   %eax,%eax
jne    1273 <printFiletype+0x113>
lea    0xe27(%rip),%rdi
jmp    12d3 <printFiletype+0x173>
lea    0xe2a(%rip),%rdi
jmp    12d3 <printFiletype+0x173>
mov    %ebp,%edi
call   1060 <pstreamInqByteorder@plt>
lea    0xe29(%rip),%rdi
mov    %eax,%esi
xor    %eax,%eax
call   1040 <printf@plt>
jmp    12da <printFiletype+0x17a>
lea    0xe31(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
cmp    $0x2,%r14d
jne    12da <printFiletype+0x17a>
mov    %r15d,%edi
call   1070 <vlistNvars@plt>
test   %eax,%eax
jle    12da <printFiletype+0x17a>
mov    %eax,%ebp
xor    %ebx,%ebx
mov    %r15d,%edi
mov    %ebx,%esi
call   1050 <vlistInqVarCompType@plt>
test   %eax,%eax
jne    12c7 <printFiletype+0x167>
add    $0x1,%ebx
cmp    %ebx,%ebp
jne    12b0 <printFiletype+0x150>
jmp    12da <printFiletype+0x17a>
cmp    $0x5,%eax
jne    12da <printFiletype+0x17a>
lea    0xdfc(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    $0xa,%edi
add    $0x8,%rsp
pop    %rbx
pop    %r14
pop    %r15
pop    %rbp
jmp    1030 <putchar@plt>

LLVM IR (-O0):
@.str = [5 x i8] c"GRIB\00"
@.str.1 = [6 x i8] c"GRIB2\00"
@.str.2 = [7 x i8] c"netCDF\00"
@.str.3 = [8 x i8] c"netCDF2\00"
@.str.4 = [8 x i8] c"netCDF4\00"
@.str.5 = [16 x i8] c"netCDF4 classic\00"
@.str.6 = [8 x i8] c"SERVICE\00"
@.str.7 = [6 x i8] c"EXTRA\00"
@.str.8 = [4 x i8] c"IEG\00"
@.str.9 = [39 x i8] c" File format: unsupported filetype %d\00"
@.str.10 = [12 x i8] c" BIGENDIAN\00"
@.str.11 = [15 x i8] c" LITTLEENDIAN\00"
@.str.12 = [26 x i8] c" byteorder: %d undefined\00"
@.str.13 = [6 x i8] c" SZIP\00"
@.str.14 = [5 x i8] c" ZIP\00"
@.str.15 = [6 x i8] c" JPEG\00"
@.str.16 = [2 x i8] c"\0A\00"
define void @printFiletype(i32 %0, i32 %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i32
%6 = alloca i32
%7 = alloca i32
%8 = alloca i32
%9 = alloca i32
%10 = alloca i32
%11 = alloca i32
store i32 %0, i32* %3
store i32 %1, i32* %4
%12 = load i32, i32* %3
%13 = call i32 @pstreamInqFiletype(i32 %12)
store i32 %13, i32* %5
%14 = load i32, i32* %5
switch i32 %14, label %33 [
i32 1, label %15
i32 2, label %17
i32 3, label %19
i32 4, label %21
i32 5, label %23
i32 6, label %25
i32 7, label %27
i32 8, label %29
i32 9, label %31
]
15: ; preds = %2
%16 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0))
br label %36
17: ; preds = %2
%18 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0))
br label %36
19: ; preds = %2
%20 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.2, i64 0, i64 0))
br label %36
21: ; preds = %2
%22 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.3, i64 0, i64 0))
br label %36
23: ; preds = %2
%24 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.4, i64 0, i64 0))
br label %36
25: ; preds = %2
%26 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.5, i64 0, i64 0))
br label %36
27: ; preds = %2
%28 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.6, i64 0, i64 0))
br label %36
29: ; preds = %2
%30 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.7, i64 0, i64 0))
br label %36
31: ; preds = %2
%32 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.8, i64 0, i64 0))
br label %36
33: ; preds = %2
%34 = load i32, i32* %5
%35 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([39 x i8], [39 x i8]* @.str.9, i64 0, i64 0), i32 %34)
br label %36
36: ; preds = %33, %31, %29, %27, %25, %23, %21, %19, %17, %15
%37 = load i32, i32* %5
%38 = icmp eq i32 %37, 7
br i1 %38, label %45, label %39
39: ; preds = %36
%40 = load i32, i32* %5
%41 = icmp eq i32 %40, 8
br i1 %41, label %45, label %42
42: ; preds = %39
%43 = load i32, i32* %5
%44 = icmp eq i32 %43, 9
br i1 %44, label %45, label %57
45: ; preds = %42, %39, %36
%46 = load i32, i32* %3
%47 = call i32 @pstreamInqByteorder(i32 %46)
switch i32 %47, label %52 [
i32 0, label %48
i32 1, label %50
]
48: ; preds = %45
%49 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str.10, i64 0, i64 0))
br label %56
50: ; preds = %45
%51 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.11, i64 0, i64 0))
br label %56
52: ; preds = %45
%53 = load i32, i32* %3
%54 = call i32 @pstreamInqByteorder(i32 %53)
%55 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.12, i64 0, i64 0), i32 %54)
br label %56
56: ; preds = %52, %50, %48
br label %57
57: ; preds = %56, %42
%58 = load i32, i32* %5
%59 = icmp eq i32 %58, 1
br i1 %59, label %66, label %60
60: ; preds = %57
%61 = load i32, i32* %5
%62 = icmp eq i32 %61, 5
br i1 %62, label %66, label %63
63: ; preds = %60
%64 = load i32, i32* %5
%65 = icmp eq i32 %64, 6
br i1 %65, label %66, label %96
66: ; preds = %63, %60, %57
%67 = load i32, i32* %4
%68 = call i32 @vlistNvars(i32 %67)
store i32 %68, i32* %6
store i32 0, i32* %7
br label %69
69: ; preds = %92, %66
%70 = load i32, i32* %7
%71 = load i32, i32* %6
%72 = icmp slt i32 %70, %71
br i1 %72, label %73, label %95
73: ; preds = %69
%74 = load i32, i32* %4
%75 = load i32, i32* %7
%76 = call i32 @vlistInqVarCompType(i32 %74, i32 %75)
store i32 %76, i32* %8
%77 = load i32, i32* %8
%78 = icmp ne i32 %77, 0
br i1 %78, label %79, label %91
79: ; preds = %73
%80 = load i32, i32* %8
%81 = icmp eq i32 %80, 1
br i1 %81, label %82, label %84
82: ; preds = %79
%83 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.13, i64 0, i64 0))
br label %90
84: ; preds = %79
%85 = load i32, i32* %8
%86 = icmp eq i32 %85, 4
br i1 %86, label %87, label %89
87: ; preds = %84
%88 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.14, i64 0, i64 0))
br label %89
89: ; preds = %87, %84
br label %90
90: ; preds = %89, %82
br label %95
91: ; preds = %73
br label %92
92: ; preds = %91
%93 = load i32, i32* %7
%94 = add nsw i32 %93, 1
store i32 %94, i32* %7
br label %69
95: ; preds = %90, %69
br label %96
96: ; preds = %95, %63
%97 = load i32, i32* %5
%98 = icmp eq i32 %97, 2
br i1 %98, label %99, label %123
99: ; preds = %96
%100 = load i32, i32* %4
%101 = call i32 @vlistNvars(i32 %100)
store i32 %101, i32* %9
store i32 0, i32* %10
br label %102
102: ; preds = %119, %99
%103 = load i32, i32* %10
%104 = load i32, i32* %9
%105 = icmp slt i32 %103, %104
br i1 %105, label %106, label %122
106: ; preds = %102
%107 = load i32, i32* %4
%108 = load i32, i32* %10
%109 = call i32 @vlistInqVarCompType(i32 %107, i32 %108)
store i32 %109, i32* %11
%110 = load i32, i32* %11
%111 = icmp ne i32 %110, 0
br i1 %111, label %112, label %118
112: ; preds = %106
%113 = load i32, i32* %11
%114 = icmp eq i32 %113, 5
br i1 %114, label %115, label %117
115: ; preds = %112
%116 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.15, i64 0, i64 0))
br label %117
117: ; preds = %115, %112
br label %122
118: ; preds = %106
br label %119
119: ; preds = %118
%120 = load i32, i32* %10
%121 = add nsw i32 %120, 1
store i32 %121, i32* %10
br label %102
122: ; preds = %117, %102
br label %123
123: ; preds = %122, %96
%124 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.16, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@.str = [5 x i8] c"GRIB\00"
@.str.1 = [6 x i8] c"GRIB2\00"
@.str.2 = [7 x i8] c"netCDF\00"
@.str.3 = [8 x i8] c"netCDF2\00"
@.str.4 = [8 x i8] c"netCDF4\00"
@.str.5 = [16 x i8] c"netCDF4 classic\00"
@.str.6 = [8 x i8] c"SERVICE\00"
@.str.7 = [6 x i8] c"EXTRA\00"
@.str.8 = [4 x i8] c"IEG\00"
@.str.9 = [39 x i8] c" File format: unsupported filetype %d\00"
@.str.10 = [12 x i8] c" BIGENDIAN\00"
@.str.11 = [15 x i8] c" LITTLEENDIAN\00"
@.str.12 = [26 x i8] c" byteorder: %d undefined\00"
@.str.13 = [6 x i8] c" SZIP\00"
@.str.14 = [5 x i8] c" ZIP\00"
@.str.15 = [6 x i8] c" JPEG\00"
define void @printFiletype(i32 %0, i32 %1) {
%3 = tail call i32 @pstreamInqFiletype(i32 %0)
switch i32 %3, label %14 [
i32 1, label %27
i32 2, label %4
i32 3, label %6
i32 4, label %8
i32 5, label %10
i32 6, label %11
i32 7, label %16
i32 8, label %12
i32 9, label %13
]
4: ; preds = %2
%5 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @.str.1, i64 0, i64 0))
br label %44
6: ; preds = %2
%7 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.2, i64 0, i64 0))
br label %55
8: ; preds = %2
%9 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([8 x i8], [8 x i8]* @.str.3, i64 0, i64 0))
br label %55
10: ; preds = %2
br label %27
11: ; preds = %2
br label %27
12: ; preds = %2
br label %16
13: ; preds = %2
br label %16
14: ; preds = %2
%15 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([39 x i8], [39 x i8]* @.str.9, i64 0, i64 0), i32 %3)
br label %55
16: ; preds = %2, %12, %13
%17 = phi i8* [ getelementptr inbounds ([6 x i8], [6 x i8]* @.str.7, i64 0, i64 0), %12 ], [ getelementptr inbounds ([4 x i8], [4 x i8]* @.str.8, i64 0, i64 0), %13 ], [ getelementptr inbounds ([8 x i8], [8 x i8]* @.str.6, i64 0, i64 0), %2 ]
%18 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) %17)
%19 = tail call i32 @pstreamInqByteorder(i32 %0)
switch i32 %19, label %24 [
i32 0, label %20
i32 1, label %22
]
20: ; preds = %16
%21 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([12 x i8], [12 x i8]* @.str.10, i64 0, i64 0))
br label %55
22: ; preds = %16
%23 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([15 x i8], [15 x i8]* @.str.11, i64 0, i64 0))
br label %55
24: ; preds = %16
%25 = tail call i32 @pstreamInqByteorder(i32 %0)
%26 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([26 x i8], [26 x i8]* @.str.12, i64 0, i64 0), i32 %25)
br label %55
27: ; preds = %2, %11, %10
%28 = phi i8* [ getelementptr inbounds ([16 x i8], [16 x i8]* @.str.5, i64 0, i64 0), %11 ], [ getelementptr inbounds ([8 x i8], [8 x i8]* @.str.4, i64 0, i64 0), %10 ], [ getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0), %2 ]
%29 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) %28)
%30 = tail call i32 @vlistNvars(i32 %1)
%31 = icmp sgt i32 %30, 0
br i1 %31, label %32, label %42
32: ; preds = %27, %35
%33 = phi i32 [ %36, %35 ], [ 0, %27 ]
%34 = tail call i32 @vlistInqVarCompType(i32 %1, i32 %33)
switch i32 %34, label %42 [
i32 0, label %35
i32 1, label %39
i32 4, label %38
]
35: ; preds = %32
%36 = add nuw nsw i32 %33, 1
%37 = icmp eq i32 %36, %30
br i1 %37, label %42, label %32
38: ; preds = %32
br label %39
39: ; preds = %32, %38
%40 = phi i8* [ getelementptr inbounds ([5 x i8], [5 x i8]* @.str.14, i64 0, i64 0), %38 ], [ getelementptr inbounds ([6 x i8], [6 x i8]* @.str.13, i64 0, i64 0), %32 ]
%41 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) %40)
br label %42
42: ; preds = %32, %35, %39, %27
%43 = icmp eq i32 %3, 2
br i1 %43, label %44, label %55
44: ; preds = %4, %42
%45 = tail call i32 @vlistNvars(i32 %1)
%46 = icmp sgt i32 %45, 0
br i1 %46, label %47, label %55
47: ; preds = %44, %52
%48 = phi i32 [ %53, %52 ], [ 0, %44 ]
%49 = tail call i32 @vlistInqVarCompType(i32 %1, i32 %48)
switch i32 %49, label %55 [
i32 0, label %52
i32 5, label %50
]
50: ; preds = %47
%51 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @.str.15, i64 0, i64 0))
br label %55
52: ; preds = %47
%53 = add nuw nsw i32 %48, 1
%54 = icmp eq i32 %53, %45
br i1 %54, label %55, label %47
55: ; preds = %47, %52, %44, %24, %22, %20, %14, %8, %6, %50, %42
%56 = tail call i32 @putchar(i32 10)
ret void
}