#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_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 /*<<< orphan*/ *);
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;
  switch (type) {
  case 1:
    low = pbc_rmessage_integer(m, key, i, NULL);
    printf("%d", (int)low);
    break;
  case 2:
    real = pbc_rmessage_real(m, key, i);
    printf("%lf", real);
    break;
  case 3:
    low = pbc_rmessage_integer(m, key, i, NULL);
    printf("%s", low ? "true" : "false");
    break;
  case 4:
    str = pbc_rmessage_string(m, key, i, NULL);
    printf("[%s]", str);
    break;
  case 5:
    str = pbc_rmessage_string(m, key, i, NULL);
    printf("'%s'", str);
    break;
  case 6:
    printf("\n");
    dump_message(pbc_rmessage_message(m, key, i), level + 1);
    return;
  case 7:
    low = pbc_rmessage_integer(m, key, i, &hi);
    printf("0x%8x%8x", hi, low);
    break;
  case 8:
    low = pbc_rmessage_integer(m, key, i, NULL);
    printf("0x%x", low);
    break;
  default:
    printf("unkown");
    break;
  }
  printf("\n");
}


x86 assembly (clang, -O0):
<dump_value>:
push   %rbp
mov    %rsp,%rbp
sub    $0x40,%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    11a9 <dump_value+0x49>
lea    0xe8c(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
mov    -0x20(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x20(%rbp)
jmp    1181 <dump_value+0x21>
mov    -0x10(%rbp),%rsi
lea    0xe6f(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
mov    -0x14(%rbp),%eax
and    $0x80,%eax
cmp    $0x0,%eax
je     11e8 <dump_value+0x88>
mov    -0x18(%rbp),%esi
lea    0xe50(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
mov    -0x14(%rbp),%eax
sub    $0x80,%eax
mov    %eax,-0x14(%rbp)
lea    0xe3c(%rip),%rdi
xor    %eax,%eax
call   1060 <printf@plt>
mov    -0x14(%rbp),%eax
add    $0xffffffff,%eax
mov    %eax,%ecx
mov    %rcx,-0x40(%rbp)
sub    $0x7,%eax
ja     13a6 <dump_value+0x246>
mov    -0x40(%rbp),%rax
lea    0xdea(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
jmp    *%rax
mov    -0x8(%rbp),%rdi
mov    -0x10(%rbp),%rsi
mov    -0x20(%rbp),%edx
xor    %eax,%eax
mov    %eax,%ecx
call   1070 <pbc_rmessage_integer@plt>
mov    %eax,-0x24(%rbp)
mov    -0x24(%rbp),%esi
lea    0xdef(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
jmp    13b4 <dump_value+0x254>
mov    -0x8(%rbp),%rdi
mov    -0x10(%rbp),%rsi
mov    -0x20(%rbp),%edx
call   1080 <pbc_rmessage_real@plt>
movsd  %xmm0,-0x30(%rbp)
movsd  -0x30(%rbp),%xmm0
lea    0xdc5(%rip),%rdi
mov    $0x1,%al
call   1060 <printf@plt>
jmp    13b4 <dump_value+0x254>
mov    -0x8(%rbp),%rdi
mov    -0x10(%rbp),%rsi
mov    -0x20(%rbp),%edx
xor    %eax,%eax
mov    %eax,%ecx
call   1070 <pbc_rmessage_integer@plt>
mov    %eax,-0x24(%rbp)
mov    -0x24(%rbp),%ecx
lea    0xda1(%rip),%rsi
lea    0xd95(%rip),%rax
cmp    $0x0,%ecx
cmovne %rax,%rsi
lea    0xd74(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
jmp    13b4 <dump_value+0x254>
mov    -0x8(%rbp),%rdi
mov    -0x10(%rbp),%rsi
mov    -0x20(%rbp),%edx
xor    %eax,%eax
mov    %eax,%ecx
call   1040 <pbc_rmessage_string@plt>
mov    %rax,-0x38(%rbp)
mov    -0x38(%rbp),%rsi
lea    0xd63(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
jmp    13b4 <dump_value+0x254>
mov    -0x8(%rbp),%rdi
mov    -0x10(%rbp),%rsi
mov    -0x20(%rbp),%edx
xor    %eax,%eax
mov    %eax,%ecx
call   1040 <pbc_rmessage_string@plt>
mov    %rax,-0x38(%rbp)
mov    -0x38(%rbp),%rsi
lea    0xd39(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
jmp    13b4 <dump_value+0x254>
lea    0xd2b(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
mov    -0x8(%rbp),%rdi
mov    -0x10(%rbp),%rsi
mov    -0x20(%rbp),%edx
call   1030 <pbc_rmessage_message@plt>
mov    %eax,%edi
mov    -0x1c(%rbp),%esi
add    $0x1,%esi
call   1050 <dump_message@plt>
jmp    13c2 <dump_value+0x262>
mov    -0x8(%rbp),%rdi
mov    -0x10(%rbp),%rsi
mov    -0x20(%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    0xce0(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
jmp    13b4 <dump_value+0x254>
mov    -0x8(%rbp),%rdi
mov    -0x10(%rbp),%rsi
mov    -0x20(%rbp),%edx
xor    %eax,%eax
mov    %eax,%ecx
call   1070 <pbc_rmessage_integer@plt>
mov    %eax,-0x24(%rbp)
mov    -0x24(%rbp),%esi
lea    0xcbc(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
jmp    13b4 <dump_value+0x254>
lea    0xcae(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
lea    0xc90(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
add    $0x40,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<dump_value>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
push   %rax
mov    %r8d,%r14d
mov    %ecx,%ebp
mov    %edx,%ebx
mov    %rsi,%r13
mov    %rdi,%r12
test   %r8d,%r8d
jle    11b8 <dump_value+0x48>
mov    %ebp,(%rsp)
lea    0xe89(%rip),%rbp
mov    %r14d,%r15d
nopw   0x0(%rax,%rax,1)
mov    %rbp,%rdi
xor    %eax,%eax
call   1070 <printf@plt>
add    $0xffffffff,%r15d
jne    11a0 <dump_value+0x30>
mov    %r14d,%r15d
mov    (%rsp),%ebp
jmp    11bb <dump_value+0x4b>
xor    %r15d,%r15d
lea    0xe61(%rip),%rdi
mov    %r13,%rsi
xor    %eax,%eax
call   1070 <printf@plt>
test   $0x80,%bl
je     11e4 <dump_value+0x74>
lea    0xe4e(%rip),%rdi
mov    %ebp,%esi
xor    %eax,%eax
call   1070 <printf@plt>
add    $0xffffff80,%ebx
lea    0xe40(%rip),%rdi
xor    %eax,%eax
call   1070 <printf@plt>
add    $0xffffffff,%ebx
cmp    $0x7,%ebx
ja     1226 <dump_value+0xb6>
lea    0xdff(%rip),%rax
movslq (%rax,%rbx,4),%rcx
add    %rax,%rcx
jmp    *%rcx
mov    %r12,%rdi
mov    %r13,%rsi
mov    %r15d,%edx
xor    %ecx,%ecx
call   1080 <pbc_rmessage_integer@plt>
lea    0xe0e(%rip),%rdi
jmp    1337 <dump_value+0x1c7>
lea    0xe2c(%rip),%rdi
xor    %eax,%eax
call   1070 <printf@plt>
jmp    1340 <dump_value+0x1d0>
mov    %r12,%rdi
mov    %r13,%rsi
mov    %r15d,%edx
call   1090 <pbc_rmessage_real@plt>
lea    0xde4(%rip),%rdi
mov    $0x1,%al
call   1070 <printf@plt>
jmp    1340 <dump_value+0x1d0>
mov    %r12,%rdi
mov    %r13,%rsi
mov    %r15d,%edx
xor    %ecx,%ecx
call   1080 <pbc_rmessage_integer@plt>
test   %eax,%eax
lea    0xdc8(%rip),%rax
lea    0xdbc(%rip),%rsi
cmove  %rax,%rsi
lea    0xd9e(%rip),%rdi
jmp    12ba <dump_value+0x14a>
mov    %r12,%rdi
mov    %r13,%rsi
mov    %r15d,%edx
xor    %ecx,%ecx
call   1050 <pbc_rmessage_string@plt>
lea    0xda3(%rip),%rdi
jmp    12b7 <dump_value+0x147>
mov    %r12,%rdi
mov    %r13,%rsi
mov    %r15d,%edx
xor    %ecx,%ecx
call   1050 <pbc_rmessage_string@plt>
lea    0xd8f(%rip),%rdi
mov    %rax,%rsi
xor    %eax,%eax
call   1070 <printf@plt>
jmp    1340 <dump_value+0x1d0>
mov    $0xa,%edi
call   1040 <putchar@plt>
mov    %r12,%rdi
mov    %r13,%rsi
mov    %r15d,%edx
call   1030 <pbc_rmessage_message@plt>
add    $0x1,%r14d
mov    %eax,%edi
mov    %r14d,%esi
add    $0x8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
jmp    1060 <dump_message@plt>
lea    0x4(%rsp),%rcx
mov    %r12,%rdi
mov    %r13,%rsi
mov    %r15d,%edx
call   1080 <pbc_rmessage_integer@plt>
mov    0x4(%rsp),%esi
lea    0xd36(%rip),%rdi
mov    %eax,%edx
xor    %eax,%eax
call   1070 <printf@plt>
jmp    1340 <dump_value+0x1d0>
mov    %r12,%rdi
mov    %r13,%rsi
mov    %r15d,%edx
xor    %ecx,%ecx
call   1080 <pbc_rmessage_integer@plt>
lea    0xd1d(%rip),%rdi
mov    %eax,%esi
xor    %eax,%eax
call   1070 <printf@plt>
mov    $0xa,%edi
call   1040 <putchar@plt>
add    $0x8,%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 = [4 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 = [7 x i8] c"unkown\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*
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 %16
16: ; preds = %22, %5
%17 = load i32, i32* %11
%18 = load i32, i32* %10
%19 = icmp slt i32 %17, %18
br i1 %19, label %20, label %25
20: ; preds = %16
%21 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0))
br label %22
22: ; preds = %20
%23 = load i32, i32* %11
%24 = add nsw i32 %23, 1
store i32 %24, i32* %11
br label %16
25: ; preds = %16
%26 = load i8*, i8** %7
%27 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i8* %26)
%28 = load i32, i32* %8
%29 = and i32 %28, 128
%30 = icmp ne i32 %29, 0
br i1 %30, label %31, label %36
31: ; preds = %25
%32 = load i32, i32* %9
%33 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0), i32 %32)
%34 = load i32, i32* %8
%35 = sub nsw i32 %34, 128
store i32 %35, i32* %8
br label %36
36: ; preds = %31, %25
%37 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i64 0, i64 0))
%38 = load i32, i32* %8
switch i32 %38, label %101 [
i32 1, label %39
i32 2, label %46
i32 3, label %53
i32 4, label %63
i32 5, label %70
i32 6, label %77
i32 7, label %86
i32 8, label %94
]
39: ; preds = %36
%40 = load %struct.pbc_rmessage*, %struct.pbc_rmessage** %6
%41 = load i8*, i8** %7
%42 = load i32, i32* %11
%43 = call i32 @pbc_rmessage_integer(%struct.pbc_rmessage* %40, i8* %41, i32 %42, i32* null)
store i32 %43, i32* %12
%44 = load i32, i32* %12
%45 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.4, i64 0, i64 0), i32 %44)
br label %103
46: ; preds = %36
%47 = load %struct.pbc_rmessage*, %struct.pbc_rmessage** %6
%48 = load i8*, i8** %7
%49 = load i32, i32* %11
%50 = call double @pbc_rmessage_real(%struct.pbc_rmessage* %47, i8* %48, i32 %49)
store double %50, double* %14
%51 = load double, double* %14
%52 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.5, i64 0, i64 0), double %51)
br label %103
53: ; preds = %36
%54 = load %struct.pbc_rmessage*, %struct.pbc_rmessage** %6
%55 = load i8*, i8** %7
%56 = load i32, i32* %11
%57 = call i32 @pbc_rmessage_integer(%struct.pbc_rmessage* %54, i8* %55, i32 %56, i32* null)
store i32 %57, i32* %12
%58 = load i32, i32* %12
%59 = icmp ne i32 %58, 0
%60 = zext i1 %59 to i64
%61 = select i1 %59, 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)
%62 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i8* %61)
br label %103
63: ; preds = %36
%64 = load %struct.pbc_rmessage*, %struct.pbc_rmessage** %6
%65 = load i8*, i8** %7
%66 = load i32, i32* %11
%67 = call i8* @pbc_rmessage_string(%struct.pbc_rmessage* %64, i8* %65, i32 %66, i32* null)
store i8* %67, i8** %15
%68 = load i8*, i8** %15
%69 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.8, i64 0, i64 0), i8* %68)
br label %103
70: ; preds = %36
%71 = load %struct.pbc_rmessage*, %struct.pbc_rmessage** %6
%72 = load i8*, i8** %7
%73 = load i32, i32* %11
%74 = call i8* @pbc_rmessage_string(%struct.pbc_rmessage* %71, i8* %72, i32 %73, i32* null)
store i8* %74, i8** %15
%75 = load i8*, i8** %15
%76 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.9, i64 0, i64 0), i8* %75)
br label %103
77: ; preds = %36
%78 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.10, i64 0, i64 0))
%79 = load %struct.pbc_rmessage*, %struct.pbc_rmessage** %6
%80 = load i8*, i8** %7
%81 = load i32, i32* %11
%82 = call i32 @pbc_rmessage_message(%struct.pbc_rmessage* %79, i8* %80, i32 %81)
%83 = load i32, i32* %10
%84 = add nsw i32 %83, 1
%85 = call i32 @dump_message(i32 %82, i32 %84)
br label %105
86: ; preds = %36
%87 = load %struct.pbc_rmessage*, %struct.pbc_rmessage** %6
%88 = load i8*, i8** %7
%89 = load i32, i32* %11
%90 = call i32 @pbc_rmessage_integer(%struct.pbc_rmessage* %87, i8* %88, i32 %89, i32* %13)
store i32 %90, i32* %12
%91 = load i32, i32* %13
%92 = load i32, i32* %12
%93 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.11, i64 0, i64 0), i32 %91, i32 %92)
br label %103
94: ; preds = %36
%95 = load %struct.pbc_rmessage*, %struct.pbc_rmessage** %6
%96 = load i8*, i8** %7
%97 = load i32, i32* %11
%98 = call i32 @pbc_rmessage_integer(%struct.pbc_rmessage* %95, i8* %96, i32 %97, i32* null)
store i32 %98, i32* %12
%99 = load i32, i32* %12
%100 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.12, i64 0, i64 0), i32 %99)
br label %103
101: ; preds = %36
%102 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.13, i64 0, i64 0))
br label %103
103: ; preds = %101, %94, %86, %70, %63, %53, %46, %39
%104 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.10, i64 0, i64 0))
br label %105
105: ; preds = %103, %77
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 = [4 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 = [7 x i8] c"unkown\00"
define void @dump_value(%struct.pbc_rmessage* %0, i8* %1, i32 %2, i32 %3, i32 %4) {
%6 = alloca i32
%7 = icmp sgt i32 %4, 0
br i1 %7, label %8, label %13
8: ; preds = %5, %8
%9 = phi i32 [ %11, %8 ], [ 0, %5 ]
%10 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0))
%11 = add nuw nsw i32 %9, 1
%12 = icmp eq i32 %11, %4
br i1 %12, label %13, label %8
13: ; preds = %8, %5
%14 = phi i32 [ 0, %5 ], [ %4, %8 ]
%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 = %13
%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, %13
%22 = phi i32 [ %20, %18 ], [ %2, %13 ]
%23 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i64 0, i64 0))
%24 = bitcast i32* %6 to i8*
switch i32 %22, label %54 [
i32 1, label %25
i32 2, label %28
i32 3, label %31
i32 4, label %36
i32 5, label %39
i32 6, label %42
i32 7, label %47
i32 8, label %51
]
25: ; preds = %21
%26 = tail call i32 @pbc_rmessage_integer(%struct.pbc_rmessage* %0, i8* %1, i32 %14, i32* null)
%27 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([3 x i8], [3 x i8]* @.str.4, i64 0, i64 0), i32 %26)
br label %56
28: ; preds = %21
%29 = tail call double @pbc_rmessage_real(%struct.pbc_rmessage* %0, i8* %1, i32 %14)
%30 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.5, i64 0, i64 0), double %29)
br label %56
31: ; preds = %21
%32 = tail call i32 @pbc_rmessage_integer(%struct.pbc_rmessage* %0, i8* %1, i32 %14, i32* null)
%33 = icmp eq i32 %32, 0
%34 = select i1 %33, 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)
%35 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i8* %34)
br label %56
36: ; preds = %21
%37 = tail call i8* @pbc_rmessage_string(%struct.pbc_rmessage* %0, i8* %1, i32 %14, i32* null)
%38 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.8, i64 0, i64 0), i8* %37)
br label %56
39: ; preds = %21
%40 = tail call i8* @pbc_rmessage_string(%struct.pbc_rmessage* %0, i8* %1, i32 %14, i32* null)
%41 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.9, i64 0, i64 0), i8* %40)
br label %56
42: ; preds = %21
%43 = tail call i32 @putchar(i32 10)
%44 = tail call i32 @pbc_rmessage_message(%struct.pbc_rmessage* %0, i8* %1, i32 %14)
%45 = add nsw i32 %4, 1
%46 = tail call i32 @dump_message(i32 %44, i32 %45)
br label %58
47: ; preds = %21
%48 = call i32 @pbc_rmessage_integer(%struct.pbc_rmessage* %0, i8* %1, i32 %14, i32* %6)
%49 = load i32, i32* %6
%50 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([9 x i8], [9 x i8]* @.str.11, i64 0, i64 0), i32 %49, i32 %48)
br label %56
51: ; preds = %21
%52 = tail call i32 @pbc_rmessage_integer(%struct.pbc_rmessage* %0, i8* %1, i32 %14, i32* null)
%53 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.12, i64 0, i64 0), i32 %52)
br label %56
54: ; preds = %21
%55 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.13, i64 0, i64 0))
br label %56
56: ; preds = %54, %51, %47, %39, %36, %31, %28, %25
%57 = call i32 @putchar(i32 10)
br label %58
58: ; preds = %56, %42
ret void
}