#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 */
typedef int uint32_t;
struct pbc_rmessage {
  int dummy;
};

/* Variables and functions */
int /*<<< orphan*/ dump_bytes(char const *, int);
int /*<<< orphan*/ dump_message(int /*<<< orphan*/, int);
int pbc_rmessage_integer(struct pbc_rmessage *, char const *, int, int *);
int /*<<< orphan*/ pbc_rmessage_message(struct pbc_rmessage *, char const *,
                                        int);
double pbc_rmessage_real(struct pbc_rmessage *, char const *, int);
char *pbc_rmessage_string(struct pbc_rmessage *, char const *, int, int *);
int /*<<< orphan*/ printf(char *, ...);
void dump_value(struct pbc_rmessage *m, const char *key, int type, int idx,
                int level) {
  int i;
  for (i = 0; i < level; i++) {
    printf("  ");
  }
  printf("%s", key);
  if (type & 128) {
    printf("[%d]", idx);
    type -= 128;
  }
  printf(": ");
  uint32_t low;
  uint32_t hi;
  double real;
  const char *str;
  int str_len;
  switch (type) {
  case 1:
    low = pbc_rmessage_integer(m, key, idx, NULL);
    printf("%d", (int)low);
    break;
  case 2:
    real = pbc_rmessage_real(m, key, idx);
    printf("%lf", real);
    break;
  case 3:
    low = pbc_rmessage_integer(m, key, idx, NULL);
    printf("%s", low ? "true" : "false");
    break;
  case 4:
    str = pbc_rmessage_string(m, key, idx, NULL);
    printf("[%s]", str);
    break;
  case 5:
    str = pbc_rmessage_string(m, key, idx, NULL);
    printf("'%s'", str);
    break;
  case 6:
    printf("\n");
    dump_message(pbc_rmessage_message(m, key, idx), level + 1);
    return;
  case 7:
    low = pbc_rmessage_integer(m, key, idx, &hi);
    printf("0x%8x%8x", hi, low);
    break;
  case 8:
    low = pbc_rmessage_integer(m, key, idx, NULL);
    printf("0x%x", low);
    break;
  case 9:
    str = pbc_rmessage_string(m, key, idx, &str_len);
    dump_bytes(str, str_len);
    break;
  default:
    printf("unknown");
    break;
  }
  printf("\n");
}


x86 assembly (clang, -O0):
<dump_value>:
push   %rbp
mov    %rsp,%rbp
sub    $0x50,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %edx,-0x14(%rbp)
mov    %ecx,-0x18(%rbp)
mov    %r8d,-0x1c(%rbp)
movl   $0x0,-0x20(%rbp)
mov    -0x20(%rbp),%eax
cmp    -0x1c(%rbp),%eax
jge    11b9 <dump_value+0x49>
lea    0xe80(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
mov    -0x20(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x20(%rbp)
jmp    1191 <dump_value+0x21>
mov    -0x10(%rbp),%rsi
lea    0xe63(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
mov    -0x14(%rbp),%eax
and    $0x80,%eax
cmp    $0x0,%eax
je     11f8 <dump_value+0x88>
mov    -0x18(%rbp),%esi
lea    0xe44(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
mov    -0x14(%rbp),%eax
sub    $0x80,%eax
mov    %eax,-0x14(%rbp)
lea    0xe30(%rip),%rdi
xor    %eax,%eax
call   1060 <printf@plt>
mov    -0x14(%rbp),%eax
add    $0xffffffff,%eax
mov    %eax,%ecx
mov    %rcx,-0x48(%rbp)
sub    $0x8,%eax
ja     13df <dump_value+0x26f>
mov    -0x48(%rbp),%rax
lea    0xdda(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
jmp    *%rax
mov    -0x8(%rbp),%rdi
mov    -0x10(%rbp),%rsi
mov    -0x18(%rbp),%edx
xor    %eax,%eax
mov    %eax,%ecx
call   1070 <pbc_rmessage_integer@plt>
mov    %eax,-0x24(%rbp)
mov    -0x24(%rbp),%esi
lea    0xde2(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
jmp    13ed <dump_value+0x27d>
mov    -0x8(%rbp),%rdi
mov    -0x10(%rbp),%rsi
mov    -0x18(%rbp),%edx
call   1090 <pbc_rmessage_real@plt>
movsd  %xmm0,-0x30(%rbp)
movsd  -0x30(%rbp),%xmm0
lea    0xdb8(%rip),%rdi
mov    $0x1,%al
call   1060 <printf@plt>
jmp    13ed <dump_value+0x27d>
mov    -0x8(%rbp),%rdi
mov    -0x10(%rbp),%rsi
mov    -0x18(%rbp),%edx
xor    %eax,%eax
mov    %eax,%ecx
call   1070 <pbc_rmessage_integer@plt>
mov    %eax,-0x24(%rbp)
mov    -0x24(%rbp),%ecx
lea    0xd94(%rip),%rsi
lea    0xd88(%rip),%rax
cmp    $0x0,%ecx
cmovne %rax,%rsi
lea    0xd68(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
jmp    13ed <dump_value+0x27d>
mov    -0x8(%rbp),%rdi
mov    -0x10(%rbp),%rsi
mov    -0x18(%rbp),%edx
xor    %eax,%eax
mov    %eax,%ecx
call   1040 <pbc_rmessage_string@plt>
mov    %rax,-0x38(%rbp)
mov    -0x38(%rbp),%rsi
lea    0xd56(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
jmp    13ed <dump_value+0x27d>
mov    -0x8(%rbp),%rdi
mov    -0x10(%rbp),%rsi
mov    -0x18(%rbp),%edx
xor    %eax,%eax
mov    %eax,%ecx
call   1040 <pbc_rmessage_string@plt>
mov    %rax,-0x38(%rbp)
mov    -0x38(%rbp),%rsi
lea    0xd2c(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
jmp    13ed <dump_value+0x27d>
lea    0xd1e(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
mov    -0x8(%rbp),%rdi
mov    -0x10(%rbp),%rsi
mov    -0x18(%rbp),%edx
call   1030 <pbc_rmessage_message@plt>
mov    %eax,%edi
mov    -0x1c(%rbp),%esi
add    $0x1,%esi
call   1050 <dump_message@plt>
jmp    13fb <dump_value+0x28b>
mov    -0x8(%rbp),%rdi
mov    -0x10(%rbp),%rsi
mov    -0x18(%rbp),%edx
lea    -0x28(%rbp),%rcx
call   1070 <pbc_rmessage_integer@plt>
mov    %eax,-0x24(%rbp)
mov    -0x28(%rbp),%esi
mov    -0x24(%rbp),%edx
lea    0xcd3(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
jmp    13ed <dump_value+0x27d>
mov    -0x8(%rbp),%rdi
mov    -0x10(%rbp),%rsi
mov    -0x18(%rbp),%edx
xor    %eax,%eax
mov    %eax,%ecx
call   1070 <pbc_rmessage_integer@plt>
mov    %eax,-0x24(%rbp)
mov    -0x24(%rbp),%esi
lea    0xcaf(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
jmp    13ed <dump_value+0x27d>
mov    -0x8(%rbp),%rdi
mov    -0x10(%rbp),%rsi
mov    -0x18(%rbp),%edx
lea    -0x3c(%rbp),%rcx
call   1040 <pbc_rmessage_string@plt>
mov    %rax,-0x38(%rbp)
mov    -0x38(%rbp),%rdi
mov    -0x3c(%rbp),%esi
call   1080 <dump_bytes@plt>
jmp    13ed <dump_value+0x27d>
lea    0xc78(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
lea    0xc5a(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
add    $0x50,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<dump_value>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x18,%rsp
mov    %r8d,%r14d
mov    %ecx,%r15d
mov    %edx,%ebx
mov    %rsi,%r12
mov    %rdi,0x8(%rsp)
test   %r8d,%r8d
jle    11c0 <dump_value+0x40>
lea    0xe7a(%rip),%rbp
mov    %r14d,%r13d
nopl   (%rax)
mov    %rbp,%rdi
xor    %eax,%eax
call   1070 <printf@plt>
add    $0xffffffff,%r13d
jne    11b0 <dump_value+0x30>
lea    0xe60(%rip),%rdi
mov    %r12,%rsi
xor    %eax,%eax
call   1070 <printf@plt>
test   $0x80,%bl
je     11ea <dump_value+0x6a>
lea    0xe4d(%rip),%rdi
mov    %r15d,%esi
xor    %eax,%eax
call   1070 <printf@plt>
add    $0xffffff80,%ebx
lea    0xe3e(%rip),%rdi
xor    %eax,%eax
call   1070 <printf@plt>
add    $0xffffffff,%ebx
cmp    $0x8,%ebx
ja     122e <dump_value+0xae>
lea    0xdf9(%rip),%rax
movslq (%rax,%rbx,4),%rcx
add    %rax,%rcx
jmp    *%rcx
mov    0x8(%rsp),%rdi
mov    %r12,%rsi
mov    %r15d,%edx
xor    %ecx,%ecx
call   1080 <pbc_rmessage_integer@plt>
lea    0xe09(%rip),%rdi
jmp    1350 <dump_value+0x1d0>
lea    0xe27(%rip),%rdi
xor    %eax,%eax
call   1070 <printf@plt>
jmp    137c <dump_value+0x1fc>
mov    0x8(%rsp),%rdi
mov    %r12,%rsi
mov    %r15d,%edx
call   10a0 <pbc_rmessage_real@plt>
lea    0xddd(%rip),%rdi
mov    $0x1,%al
call   1070 <printf@plt>
jmp    137c <dump_value+0x1fc>
mov    0x8(%rsp),%rdi
mov    %r12,%rsi
mov    %r15d,%edx
xor    %ecx,%ecx
call   1080 <pbc_rmessage_integer@plt>
test   %eax,%eax
lea    0xdbf(%rip),%rax
lea    0xdb3(%rip),%rsi
cmove  %rax,%rsi
lea    0xd96(%rip),%rdi
jmp    12ca <dump_value+0x14a>
mov    0x8(%rsp),%rdi
mov    %r12,%rsi
mov    %r15d,%edx
xor    %ecx,%ecx
call   1050 <pbc_rmessage_string@plt>
lea    0xd98(%rip),%rdi
jmp    12c7 <dump_value+0x147>
mov    0x8(%rsp),%rdi
mov    %r12,%rsi
mov    %r15d,%edx
xor    %ecx,%ecx
call   1050 <pbc_rmessage_string@plt>
lea    0xd82(%rip),%rdi
mov    %rax,%rsi
xor    %eax,%eax
call   1070 <printf@plt>
jmp    137c <dump_value+0x1fc>
mov    $0xa,%edi
call   1040 <putchar@plt>
mov    0x8(%rsp),%rdi
mov    %r12,%rsi
mov    %r15d,%edx
call   1030 <pbc_rmessage_message@plt>
add    $0x1,%r14d
mov    %eax,%edi
mov    %r14d,%esi
add    $0x18,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
jmp    1060 <dump_message@plt>
lea    0x14(%rsp),%rcx
mov    0x8(%rsp),%rdi
mov    %r12,%rsi
mov    %r15d,%edx
call   1080 <pbc_rmessage_integer@plt>
mov    0x14(%rsp),%esi
lea    0xd22(%rip),%rdi
mov    %eax,%edx
xor    %eax,%eax
call   1070 <printf@plt>
jmp    137c <dump_value+0x1fc>
mov    0x8(%rsp),%rdi
mov    %r12,%rsi
mov    %r15d,%edx
xor    %ecx,%ecx
call   1080 <pbc_rmessage_integer@plt>
lea    0xd07(%rip),%rdi
mov    %eax,%esi
xor    %eax,%eax
call   1070 <printf@plt>
jmp    137c <dump_value+0x1fc>
lea    0x10(%rsp),%rcx
mov    0x8(%rsp),%rdi
mov    %r12,%rsi
mov    %r15d,%edx
call   1050 <pbc_rmessage_string@plt>
mov    0x10(%rsp),%esi
mov    %rax,%rdi
call   1090 <dump_bytes@plt>
mov    $0xa,%edi
call   1040 <putchar@plt>
add    $0x18,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
%struct.pbc_rmessage = type { i32 }
@.str = [3 x i8] c" \00"
@.str.1 = [3 x i8] c"%s\00"
@.str.2 = [5 x i8] c"[%d]\00"
@.str.3 = [3 x i8] c": \00"
@.str.4 = [3 x i8] c"%d\00"
@.str.5 = [4 x i8] c"%lf\00"
@.str.6 = [5 x i8] c"true\00"
@.str.7 = [6 x i8] c"false\00"
@.str.8 = [5 x i8] c"[%s]\00"
@.str.9 = [5 x i8] c"'%s'\00"
@.str.10 = [2 x i8] c"\0A\00"
@.str.11 = [9 x i8] c"0x%8x%8x\00"
@.str.12 = [5 x i8] c"0x%x\00"
@.str.13 = [8 x i8] c"unknown\00"
define void @dump_value(%struct.pbc_rmessage* %0, i8* %1, i32 %2, i32 %3, i32 %4) {
%6 = alloca %struct.pbc_rmessage*
%7 = alloca i8*
%8 = alloca i32
%9 = alloca i32
%10 = alloca i32
%11 = alloca i32
%12 = alloca i32
%13 = alloca i32
%14 = alloca double
%15 = alloca i8*
%16 = alloca i32
store %struct.pbc_rmessage* %0, %struct.pbc_rmessage** %6
store i8* %1, i8** %7
store i32 %2, i32* %8
store i32 %3, i32* %9
store i32 %4, i32* %10
store i32 0, i32* %11
br label %17
17: ; preds = %23, %5
%18 = load i32, i32* %11
%19 = load i32, i32* %10
%20 = icmp slt i32 %18, %19
br i1 %20, label %21, label %26
21: ; preds = %17
%22 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0))
br label %23
23: ; preds = %21
%24 = load i32, i32* %11
%25 = add nsw i32 %24, 1
store i32 %25, i32* %11
br label %17
26: ; preds = %17
%27 = load i8*, i8** %7
%28 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i8* %27)
%29 = load i32, i32* %8
%30 = and i32 %29, 128
%31 = icmp ne i32 %30, 0
br i1 %31, label %32, label %37
32: ; preds = %26
%33 = load i32, i32* %9
%34 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0), i32 %33)
%35 = load i32, i32* %8
%36 = sub nsw i32 %35, 128
store i32 %36, i32* %8
br label %37
37: ; preds = %32, %26
%38 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i64 0, i64 0))
%39 = load i32, i32* %8
switch i32 %39, label %110 [
i32 1, label %40
i32 2, label %47
i32 3, label %54
i32 4, label %64
i32 5, label %71
i32 6, label %78
i32 7, label %87
i32 8, label %95
i32 9, label %102
]
40: ; preds = %37
%41 = load %struct.pbc_rmessage*, %struct.pbc_rmessage** %6
%42 = load i8*, i8** %7
%43 = load i32, i32* %9
%44 = call i32 @pbc_rmessage_integer(%struct.pbc_rmessage* %41, i8* %42, i32 %43, i32* null)
store i32 %44, i32* %12
%45 = load i32, i32* %12
%46 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.4, i64 0, i64 0), i32 %45)
br label %112
47: ; preds = %37
%48 = load %struct.pbc_rmessage*, %struct.pbc_rmessage** %6
%49 = load i8*, i8** %7
%50 = load i32, i32* %9
%51 = call double @pbc_rmessage_real(%struct.pbc_rmessage* %48, i8* %49, i32 %50)
store double %51, double* %14
%52 = load double, double* %14
%53 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.5, i64 0, i64 0), double %52)
br label %112
54: ; preds = %37
%55 = load %struct.pbc_rmessage*, %struct.pbc_rmessage** %6
%56 = load i8*, i8** %7
%57 = load i32, i32* %9
%58 = call i32 @pbc_rmessage_integer(%struct.pbc_rmessage* %55, i8* %56, i32 %57, i32* null)
store i32 %58, i32* %12
%59 = load i32, i32* %12
%60 = icmp ne i32 %59, 0
%61 = zext i1 %60 to i64
%62 = select i1 %60, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.6, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.7, i64 0, i64 0)
%63 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i8* %62)
br label %112
64: ; preds = %37
%65 = load %struct.pbc_rmessage*, %struct.pbc_rmessage** %6
%66 = load i8*, i8** %7
%67 = load i32, i32* %9
%68 = call i8* @pbc_rmessage_string(%struct.pbc_rmessage* %65, i8* %66, i32 %67, i32* null)
store i8* %68, i8** %15
%69 = load i8*, i8** %15
%70 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.8, i64 0, i64 0), i8* %69)
br label %112
71: ; preds = %37
%72 = load %struct.pbc_rmessage*, %struct.pbc_rmessage** %6
%73 = load i8*, i8** %7
%74 = load i32, i32* %9
%75 = call i8* @pbc_rmessage_string(%struct.pbc_rmessage* %72, i8* %73, i32 %74, i32* null)
store i8* %75, i8** %15
%76 = load i8*, i8** %15
%77 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.9, i64 0, i64 0), i8* %76)
br label %112
78: ; preds = %37
%79 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.10, i64 0, i64 0))
%80 = load %struct.pbc_rmessage*, %struct.pbc_rmessage** %6
%81 = load i8*, i8** %7
%82 = load i32, i32* %9
%83 = call i32 @pbc_rmessage_message(%struct.pbc_rmessage* %80, i8* %81, i32 %82)
%84 = load i32, i32* %10
%85 = add nsw i32 %84, 1
%86 = call i32 @dump_message(i32 %83, i32 %85)
br label %114
87: ; preds = %37
%88 = load %struct.pbc_rmessage*, %struct.pbc_rmessage** %6
%89 = load i8*, i8** %7
%90 = load i32, i32* %9
%91 = call i32 @pbc_rmessage_integer(%struct.pbc_rmessage* %88, i8* %89, i32 %90, i32* %13)
store i32 %91, i32* %12
%92 = load i32, i32* %13
%93 = load i32, i32* %12
%94 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.11, i64 0, i64 0), i32 %92, i32 %93)
br label %112
95: ; preds = %37
%96 = load %struct.pbc_rmessage*, %struct.pbc_rmessage** %6
%97 = load i8*, i8** %7
%98 = load i32, i32* %9
%99 = call i32 @pbc_rmessage_integer(%struct.pbc_rmessage* %96, i8* %97, i32 %98, i32* null)
store i32 %99, i32* %12
%100 = load i32, i32* %12
%101 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.12, i64 0, i64 0), i32 %100)
br label %112
102: ; preds = %37
%103 = load %struct.pbc_rmessage*, %struct.pbc_rmessage** %6
%104 = load i8*, i8** %7
%105 = load i32, i32* %9
%106 = call i8* @pbc_rmessage_string(%struct.pbc_rmessage* %103, i8* %104, i32 %105, i32* %16)
store i8* %106, i8** %15
%107 = load i8*, i8** %15
%108 = load i32, i32* %16
%109 = call i32 @dump_bytes(i8* %107, i32 %108)
br label %112
110: ; preds = %37
%111 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.13, i64 0, i64 0))
br label %112
112: ; preds = %110, %102, %95, %87, %71, %64, %54, %47, %40
%113 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.10, i64 0, i64 0))
br label %114
114: ; preds = %112, %78
ret void
}

LLVM IR (-O2):
%struct.pbc_rmessage = type { i32 }
@.str = [3 x i8] c" \00"
@.str.1 = [3 x i8] c"%s\00"
@.str.2 = [5 x i8] c"[%d]\00"
@.str.3 = [3 x i8] c": \00"
@.str.4 = [3 x i8] c"%d\00"
@.str.5 = [4 x i8] c"%lf\00"
@.str.6 = [5 x i8] c"true\00"
@.str.7 = [6 x i8] c"false\00"
@.str.8 = [5 x i8] c"[%s]\00"
@.str.9 = [5 x i8] c"'%s'\00"
@.str.11 = [9 x i8] c"0x%8x%8x\00"
@.str.12 = [5 x i8] c"0x%x\00"
@.str.13 = [8 x i8] c"unknown\00"
define void @dump_value(%struct.pbc_rmessage* %0, i8* %1, i32 %2, i32 %3, i32 %4) {
%6 = alloca i32
%7 = alloca i32
%8 = icmp sgt i32 %4, 0
br i1 %8, label %9, label %14
9: ; preds = %5, %9
%10 = phi i32 [ %12, %9 ], [ 0, %5 ]
%11 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0))
%12 = add nuw nsw i32 %10, 1
%13 = icmp eq i32 %12, %4
br i1 %13, label %14, label %9
14: ; preds = %9, %5
%15 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i8* %1)
%16 = and i32 %2, 128
%17 = icmp eq i32 %16, 0
br i1 %17, label %21, label %18
18: ; preds = %14
%19 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0), i32 %3)
%20 = add nsw i32 %2, -128
br label %21
21: ; preds = %18, %14
%22 = phi i32 [ %20, %18 ], [ %2, %14 ]
%23 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i64 0, i64 0))
%24 = bitcast i32* %6 to i8*
%25 = bitcast i32* %7 to i8*
switch i32 %22, label %59 [
i32 1, label %26
i32 2, label %29
i32 3, label %32
i32 4, label %37
i32 5, label %40
i32 6, label %43
i32 7, label %48
i32 8, label %52
i32 9, label %55
]
26: ; preds = %21
%27 = tail call i32 @pbc_rmessage_integer(%struct.pbc_rmessage* %0, i8* %1, i32 %3, i32* null)
%28 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([3 x i8], [3 x i8]* @.str.4, i64 0, i64 0), i32 %27)
br label %61
29: ; preds = %21
%30 = tail call double @pbc_rmessage_real(%struct.pbc_rmessage* %0, i8* %1, i32 %3)
%31 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.5, i64 0, i64 0), double %30)
br label %61
32: ; preds = %21
%33 = tail call i32 @pbc_rmessage_integer(%struct.pbc_rmessage* %0, i8* %1, i32 %3, i32* null)
%34 = icmp eq i32 %33, 0
%35 = select i1 %34, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.7, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.6, i64 0, i64 0)
%36 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i8* %35)
br label %61
37: ; preds = %21
%38 = tail call i8* @pbc_rmessage_string(%struct.pbc_rmessage* %0, i8* %1, i32 %3, i32* null)
%39 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.8, i64 0, i64 0), i8* %38)
br label %61
40: ; preds = %21
%41 = tail call i8* @pbc_rmessage_string(%struct.pbc_rmessage* %0, i8* %1, i32 %3, i32* null)
%42 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.9, i64 0, i64 0), i8* %41)
br label %61
43: ; preds = %21
%44 = tail call i32 @putchar(i32 10)
%45 = tail call i32 @pbc_rmessage_message(%struct.pbc_rmessage* %0, i8* %1, i32 %3)
%46 = add nsw i32 %4, 1
%47 = tail call i32 @dump_message(i32 %45, i32 %46)
br label %63
48: ; preds = %21
%49 = call i32 @pbc_rmessage_integer(%struct.pbc_rmessage* %0, i8* %1, i32 %3, i32* %6)
%50 = load i32, i32* %6
%51 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([9 x i8], [9 x i8]* @.str.11, i64 0, i64 0), i32 %50, i32 %49)
br label %61
52: ; preds = %21
%53 = tail call i32 @pbc_rmessage_integer(%struct.pbc_rmessage* %0, i8* %1, i32 %3, i32* null)
%54 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.12, i64 0, i64 0), i32 %53)
br label %61
55: ; preds = %21
%56 = call i8* @pbc_rmessage_string(%struct.pbc_rmessage* %0, i8* %1, i32 %3, i32* %7)
%57 = load i32, i32* %7
%58 = call i32 @dump_bytes(i8* %56, i32 %57)
br label %61
59: ; preds = %21
%60 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([8 x i8], [8 x i8]* @.str.13, i64 0, i64 0))
br label %61
61: ; preds = %59, %55, %52, %48, %40, %37, %32, %29, %26
%62 = call i32 @putchar(i32 10)
br label %63
63: ; preds = %61, %43
ret void
}