#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 */
unsigned long do_div(unsigned long long, int);
int /*<<< orphan*/ trace_printk(char *, unsigned long, unsigned long,
                                unsigned int, ...);
void mp_2pw(unsigned long long timestamp, unsigned char cnt,
            unsigned int *value) {
  unsigned long nano_rem = do_div(timestamp, 1000000000);
  switch (cnt) {
  case 1:
    trace_printk("%5lu.%06lu"
                 ",%x\n",
                 (unsigned long)(timestamp), nano_rem / 1000, value[0]);
    break;
  case 2:
    trace_printk("%5lu.%06lu"
                 ",%x,%x\n",
                 (unsigned long)(timestamp), nano_rem / 1000, value[0],
                 value[1]);
    break;
  case 3:
    trace_printk("%5lu.%06lu"
                 ",%x,%x,%x\n",
                 (unsigned long)(timestamp), nano_rem / 1000, value[0],
                 value[1], value[2]);
    break;
  case 4:
    trace_printk("%5lu.%06lu"
                 ",%x,%x,%x,%x\n",
                 (unsigned long)(timestamp), nano_rem / 1000, value[0],
                 value[1], value[2], value[3]);
    break;
  case 5:
    trace_printk("%5lu.%06lu"
                 ",%x,%x,%x,%x,%x\n",
                 (unsigned long)(timestamp), nano_rem / 1000, value[0],
                 value[1], value[2], value[3], value[4]);
    break;
  case 6:
    trace_printk("%5lu.%06lu"
                 ",%x,%x,%x,%x,%x,%x\n",
                 (unsigned long)(timestamp), nano_rem / 1000, value[0],
                 value[1], value[2], value[3], value[4], value[5]);
    break;
  case 7:
    trace_printk("%5lu.%06lu"
                 ",%x,%x,%x,%x,%x,%x,%x\n",
                 (unsigned long)(timestamp), nano_rem / 1000, value[0],
                 value[1], value[2], value[3], value[4], value[5], value[6]);
    break;
  case 8:
    trace_printk("%5lu.%06lu"
                 ",%x,%x,%x,%x,%x,%x,%x,%x\n",
                 (unsigned long)(timestamp), nano_rem / 1000, value[0],
                 value[1], value[2], value[3], value[4], value[5], value[6],
                 value[7]);
    break;
  case 9:
    trace_printk("%5lu.%06lu"
                 ",%x,%x,%x,%x,%x,%x,%x,%x,%x\n",
                 (unsigned long)(timestamp), nano_rem / 1000, value[0],
                 value[1], value[2], value[3], value[4], value[5], value[6],
                 value[7], value[8]);
    break;
  }
}


x86 assembly (clang, -O0):
<mp_2pw>:
push   %rbp
mov    %rsp,%rbp
push   %r15
push   %r14
push   %rbx
sub    $0x58,%rsp
mov    %sil,%al
mov    %rdi,-0x20(%rbp)
mov    %al,-0x21(%rbp)
mov    %rdx,-0x30(%rbp)
mov    -0x20(%rbp),%rdi
mov    $0x3b9aca00,%esi
call   1030 <do_div@plt>
mov    %rax,-0x38(%rbp)
movzbl -0x21(%rbp),%eax
add    $0xffffffff,%eax
mov    %eax,%ecx
mov    %rcx,-0x40(%rbp)
sub    $0x8,%eax
ja     1481 <mp_2pw+0x361>
mov    -0x40(%rbp),%rax
lea    0xe92(%rip),%rcx
movslq (%rcx,%rax,4),%rax
add    %rcx,%rax
jmp    *%rax
mov    -0x20(%rbp),%rsi
mov    -0x38(%rbp),%rax
mov    $0x3e8,%ecx
xor    %edx,%edx
div    %rcx
mov    %rax,%rdx
mov    -0x30(%rbp),%rax
mov    (%rax),%ecx
lea    0xe8b(%rip),%rdi
mov    $0x0,%al
call   1040 <trace_printk@plt>
jmp    1481 <mp_2pw+0x361>
mov    -0x20(%rbp),%rsi
mov    -0x38(%rbp),%rax
mov    $0x3e8,%ecx
xor    %edx,%edx
div    %rcx
mov    %rax,%rdx
mov    -0x30(%rbp),%rax
mov    (%rax),%ecx
mov    -0x30(%rbp),%rax
mov    0x4(%rax),%r8d
lea    0xe64(%rip),%rdi
mov    $0x0,%al
call   1040 <trace_printk@plt>
jmp    1481 <mp_2pw+0x361>
mov    -0x20(%rbp),%rsi
mov    -0x38(%rbp),%rax
mov    $0x3e8,%ecx
xor    %edx,%edx
div    %rcx
mov    %rax,%rdx
mov    -0x30(%rbp),%rax
mov    (%rax),%ecx
mov    -0x30(%rbp),%rax
mov    0x4(%rax),%r8d
mov    -0x30(%rbp),%rax
mov    0x8(%rax),%r9d
lea    0xe38(%rip),%rdi
mov    $0x0,%al
call   1040 <trace_printk@plt>
jmp    1481 <mp_2pw+0x361>
mov    -0x20(%rbp),%rsi
mov    -0x38(%rbp),%rax
mov    $0x3e8,%ecx
xor    %edx,%edx
div    %rcx
mov    %rax,%rdx
mov    -0x30(%rbp),%rax
mov    (%rax),%ecx
mov    -0x30(%rbp),%rax
mov    0x4(%rax),%r8d
mov    -0x30(%rbp),%rax
mov    0x8(%rax),%r9d
mov    -0x30(%rbp),%rax
mov    0xc(%rax),%eax
lea    0xe08(%rip),%rdi
mov    %eax,(%rsp)
mov    $0x0,%al
call   1040 <trace_printk@plt>
jmp    1481 <mp_2pw+0x361>
mov    -0x20(%rbp),%rsi
mov    -0x38(%rbp),%rax
mov    $0x3e8,%ecx
xor    %edx,%edx
div    %rcx
mov    %rax,%rdx
mov    -0x30(%rbp),%rax
mov    (%rax),%ecx
mov    -0x30(%rbp),%rax
mov    0x4(%rax),%r8d
mov    -0x30(%rbp),%rax
mov    0x8(%rax),%r9d
mov    -0x30(%rbp),%rax
mov    0xc(%rax),%r10d
mov    -0x30(%rbp),%rax
mov    0x10(%rax),%eax
lea    0xdd0(%rip),%rdi
mov    %r10d,(%rsp)
mov    %eax,0x8(%rsp)
mov    $0x0,%al
call   1040 <trace_printk@plt>
jmp    1481 <mp_2pw+0x361>
mov    -0x20(%rbp),%rsi
mov    -0x38(%rbp),%rax
mov    $0x3e8,%ecx
xor    %edx,%edx
div    %rcx
mov    %rax,%rdx
mov    -0x30(%rbp),%rax
mov    (%rax),%ecx
mov    -0x30(%rbp),%rax
mov    0x4(%rax),%r8d
mov    -0x30(%rbp),%rax
mov    0x8(%rax),%r9d
mov    -0x30(%rbp),%rax
mov    0xc(%rax),%r11d
mov    -0x30(%rbp),%rax
mov    0x10(%rax),%r10d
mov    -0x30(%rbp),%rax
mov    0x14(%rax),%eax
lea    0xd8e(%rip),%rdi
mov    %r11d,(%rsp)
mov    %r10d,0x8(%rsp)
mov    %eax,0x10(%rsp)
mov    $0x0,%al
call   1040 <trace_printk@plt>
jmp    1481 <mp_2pw+0x361>
mov    -0x20(%rbp),%rsi
mov    -0x38(%rbp),%rax
mov    $0x3e8,%ecx
xor    %edx,%edx
div    %rcx
mov    %rax,%rdx
mov    -0x30(%rbp),%rax
mov    (%rax),%ecx
mov    -0x30(%rbp),%rax
mov    0x4(%rax),%r8d
mov    -0x30(%rbp),%rax
mov    0x8(%rax),%r9d
mov    -0x30(%rbp),%rax
mov    0xc(%rax),%ebx
mov    -0x30(%rbp),%rax
mov    0x10(%rax),%r11d
mov    -0x30(%rbp),%rax
mov    0x14(%rax),%r10d
mov    -0x30(%rbp),%rax
mov    0x18(%rax),%eax
lea    0xd43(%rip),%rdi
mov    %ebx,(%rsp)
mov    %r11d,0x8(%rsp)
mov    %r10d,0x10(%rsp)
mov    %eax,0x18(%rsp)
mov    $0x0,%al
call   1040 <trace_printk@plt>
jmp    1481 <mp_2pw+0x361>
mov    -0x20(%rbp),%rsi
mov    -0x38(%rbp),%rax
mov    $0x3e8,%ecx
xor    %edx,%edx
div    %rcx
mov    %rax,%rdx
mov    -0x30(%rbp),%rax
mov    (%rax),%ecx
mov    -0x30(%rbp),%rax
mov    0x4(%rax),%r8d
mov    -0x30(%rbp),%rax
mov    0x8(%rax),%r9d
mov    -0x30(%rbp),%rax
mov    0xc(%rax),%r14d
mov    -0x30(%rbp),%rax
mov    0x10(%rax),%ebx
mov    -0x30(%rbp),%rax
mov    0x14(%rax),%r11d
mov    -0x30(%rbp),%rax
mov    0x18(%rax),%r10d
mov    -0x30(%rbp),%rax
mov    0x1c(%rax),%eax
lea    0xcef(%rip),%rdi
mov    %r14d,(%rsp)
mov    %ebx,0x8(%rsp)
mov    %r11d,0x10(%rsp)
mov    %r10d,0x18(%rsp)
mov    %eax,0x20(%rsp)
mov    $0x0,%al
call   1040 <trace_printk@plt>
jmp    1481 <mp_2pw+0x361>
mov    -0x20(%rbp),%rsi
mov    -0x38(%rbp),%rax
mov    $0x3e8,%ecx
xor    %edx,%edx
div    %rcx
mov    %rax,%rdx
mov    -0x30(%rbp),%rax
mov    (%rax),%ecx
mov    -0x30(%rbp),%rax
mov    0x4(%rax),%r8d
mov    -0x30(%rbp),%rax
mov    0x8(%rax),%r9d
mov    -0x30(%rbp),%rax
mov    0xc(%rax),%r15d
mov    -0x30(%rbp),%rax
mov    0x10(%rax),%r14d
mov    -0x30(%rbp),%rax
mov    0x14(%rax),%ebx
mov    -0x30(%rbp),%rax
mov    0x18(%rax),%r11d
mov    -0x30(%rbp),%rax
mov    0x1c(%rax),%r10d
mov    -0x30(%rbp),%rax
mov    0x20(%rax),%eax
lea    0xc91(%rip),%rdi
mov    %r15d,(%rsp)
mov    %r14d,0x8(%rsp)
mov    %ebx,0x10(%rsp)
mov    %r11d,0x18(%rsp)
mov    %r10d,0x20(%rsp)
mov    %eax,0x28(%rsp)
mov    $0x0,%al
call   1040 <trace_printk@plt>
add    $0x58,%rsp
pop    %rbx
pop    %r14
pop    %r15
pop    %rbp
ret

x86 assembly (clang, -O2):
<mp_2pw>:
push   %rbp
push   %r15
push   %r14
push   %r12
push   %rbx
mov    %rdx,%rbx
mov    %esi,%ebp
mov    %rdi,%r14
mov    $0x3b9aca00,%esi
call   1030 <do_div@plt>
add    $0xff,%bpl
cmp    $0x8,%bpl
ja     1390 <mp_2pw+0x270>
movzbl %bpl,%ecx
lea    0xead(%rip),%rdx
movslq (%rdx,%rcx,4),%rcx
add    %rdx,%rcx
jmp    *%rcx
shr    $0x3,%rax
movabs $0x20c49ba5e353f7cf,%rcx
9b c4 20
mul    %rcx
shr    $0x4,%rdx
mov    (%rbx),%ecx
lea    0xeaa(%rip),%rdi
mov    %r14,%rsi
xor    %eax,%eax
pop    %rbx
pop    %r12
pop    %r14
pop    %r15
pop    %rbp
jmp    1040 <trace_printk@plt>
shr    $0x3,%rax
movabs $0x20c49ba5e353f7cf,%rcx
9b c4 20
mul    %rcx
shr    $0x4,%rdx
mov    (%rbx),%ecx
mov    0x4(%rbx),%r8d
lea    0xe85(%rip),%rdi
mov    %r14,%rsi
xor    %eax,%eax
pop    %rbx
pop    %r12
pop    %r14
pop    %r15
pop    %rbp
jmp    1040 <trace_printk@plt>
shr    $0x3,%rax
movabs $0x20c49ba5e353f7cf,%rcx
9b c4 20
mul    %rcx
shr    $0x4,%rdx
mov    (%rbx),%ecx
mov    0x4(%rbx),%r8d
mov    0x8(%rbx),%r9d
lea    0xe5f(%rip),%rdi
mov    %r14,%rsi
xor    %eax,%eax
pop    %rbx
pop    %r12
pop    %r14
pop    %r15
pop    %rbp
jmp    1040 <trace_printk@plt>
shr    $0x3,%rax
movabs $0x20c49ba5e353f7cf,%rcx
9b c4 20
mul    %rcx
shr    $0x4,%rdx
mov    (%rbx),%ecx
mov    0x4(%rbx),%r8d
mov    0x8(%rbx),%r9d
mov    0xc(%rbx),%ebp
sub    $0x8,%rsp
lea    0xe35(%rip),%rdi
mov    %r14,%rsi
xor    %eax,%eax
jmp    125e <mp_2pw+0x13e>
shr    $0x3,%rax
movabs $0x20c49ba5e353f7cf,%rcx
9b c4 20
mul    %rcx
shr    $0x4,%rdx
mov    (%rbx),%ecx
mov    0x4(%rbx),%r8d
mov    0x8(%rbx),%r9d
mov    0xc(%rbx),%ebp
mov    0x10(%rbx),%ebx
lea    0xe1a(%rip),%rdi
mov    %r14,%rsi
xor    %eax,%eax
push   %rbx
push   %rbp
call   1040 <trace_printk@plt>
add    $0x10,%rsp
jmp    1390 <mp_2pw+0x270>
shr    $0x3,%rax
movabs $0x20c49ba5e353f7cf,%rcx
9b c4 20
mul    %rcx
shr    $0x4,%rdx
mov    (%rbx),%ecx
mov    0x4(%rbx),%r8d
mov    0x8(%rbx),%r9d
mov    0xc(%rbx),%r10d
mov    0x10(%rbx),%ebp
mov    0x14(%rbx),%ebx
sub    $0x8,%rsp
lea    0xdec(%rip),%rdi
mov    %r14,%rsi
xor    %eax,%eax
push   %rbx
push   %rbp
jmp    12e7 <mp_2pw+0x1c7>
shr    $0x3,%rax
movabs $0x20c49ba5e353f7cf,%rcx
9b c4 20
mul    %rcx
shr    $0x4,%rdx
mov    (%rbx),%ecx
mov    0x4(%rbx),%r8d
mov    0x8(%rbx),%r9d
mov    0xc(%rbx),%r10d
mov    0x10(%rbx),%r11d
mov    0x14(%rbx),%ebp
mov    0x18(%rbx),%ebx
lea    0xdcd(%rip),%rdi
mov    %r14,%rsi
xor    %eax,%eax
push   %rbx
push   %rbp
push   %r11
push   %r10
call   1040 <trace_printk@plt>
add    $0x20,%rsp
jmp    1390 <mp_2pw+0x270>
shr    $0x3,%rax
movabs $0x20c49ba5e353f7cf,%rcx
9b c4 20
mul    %rcx
shr    $0x4,%rdx
mov    (%rbx),%ecx
mov    0x4(%rbx),%r8d
mov    0x8(%rbx),%r9d
mov    0xc(%rbx),%r10d
mov    0x10(%rbx),%r11d
mov    0x14(%rbx),%r15d
mov    0x18(%rbx),%ebp
mov    0x1c(%rbx),%ebx
sub    $0x8,%rsp
lea    0xd99(%rip),%rdi
mov    %r14,%rsi
xor    %eax,%eax
push   %rbx
push   %rbp
jmp    1381 <mp_2pw+0x261>
shr    $0x3,%rax
movabs $0x20c49ba5e353f7cf,%rcx
9b c4 20
mul    %rcx
shr    $0x4,%rdx
mov    (%rbx),%ecx
mov    0x4(%rbx),%r8d
mov    0x8(%rbx),%r9d
mov    0xc(%rbx),%r10d
mov    0x10(%rbx),%r11d
mov    0x14(%rbx),%r15d
mov    0x18(%rbx),%r12d
mov    0x1c(%rbx),%ebp
mov    0x20(%rbx),%ebx
lea    0xd78(%rip),%rdi
mov    %r14,%rsi
xor    %eax,%eax
push   %rbx
push   %rbp
push   %r12
push   %r15
push   %r11
push   %r10
call   1040 <trace_printk@plt>
add    $0x30,%rsp
pop    %rbx
pop    %r12
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [15 x i8] c"%5lu.%06lu,%x\0A\00"
@.str.1 = [18 x i8] c"%5lu.%06lu,%x,%x\0A\00"
@.str.2 = [21 x i8] c"%5lu.%06lu,%x,%x,%x\0A\00"
@.str.3 = [24 x i8] c"%5lu.%06lu,%x,%x,%x,%x\0A\00"
@.str.4 = [27 x i8] c"%5lu.%06lu,%x,%x,%x,%x,%x\0A\00"
@.str.5 = [30 x i8] c"%5lu.%06lu,%x,%x,%x,%x,%x,%x\0A\00"
@.str.6 = [33 x i8] c"%5lu.%06lu,%x,%x,%x,%x,%x,%x,%x\0A\00"
@.str.7 = [36 x i8] c"%5lu.%06lu,%x,%x,%x,%x,%x,%x,%x,%x\0A\00"
@.str.8 = [39 x i8] c"%5lu.%06lu,%x,%x,%x,%x,%x,%x,%x,%x,%x\0A\00"
define void @mp_2pw(i64 %0, i8 zeroext %1, i32* %2) {
%4 = alloca i64
%5 = alloca i8
%6 = alloca i32*
%7 = alloca i64
store i64 %0, i64* %4
store i8 %1, i8* %5
store i32* %2, i32** %6
%8 = load i64, i64* %4
%9 = call i64 @do_div(i64 %8, i32 1000000000)
store i64 %9, i64* %7
%10 = load i8, i8* %5
%11 = zext i8 %10 to i32
switch i32 %11, label %192 [
i32 1, label %12
i32 2, label %20
i32 3, label %31
i32 4, label %45
i32 5, label %62
i32 6, label %82
i32 7, label %105
i32 8, label %131
i32 9, label %160
]
12: ; preds = %3
%13 = load i64, i64* %4
%14 = load i64, i64* %7
%15 = udiv i64 %14, 1000
%16 = load i32*, i32** %6
%17 = getelementptr inbounds i32, i32* %16, i64 0
%18 = load i32, i32* %17
%19 = call i32 (i8*, i64, i64, i32, ...) @trace_printk(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str, i64 0, i64 0), i64 %13, i64 %15, i32 %18)
br label %192
20: ; preds = %3
%21 = load i64, i64* %4
%22 = load i64, i64* %7
%23 = udiv i64 %22, 1000
%24 = load i32*, i32** %6
%25 = getelementptr inbounds i32, i32* %24, i64 0
%26 = load i32, i32* %25
%27 = load i32*, i32** %6
%28 = getelementptr inbounds i32, i32* %27, i64 1
%29 = load i32, i32* %28
%30 = call i32 (i8*, i64, i64, i32, ...) @trace_printk(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.1, i64 0, i64 0), i64 %21, i64 %23, i32 %26, i32 %29)
br label %192
31: ; preds = %3
%32 = load i64, i64* %4
%33 = load i64, i64* %7
%34 = udiv i64 %33, 1000
%35 = load i32*, i32** %6
%36 = getelementptr inbounds i32, i32* %35, i64 0
%37 = load i32, i32* %36
%38 = load i32*, i32** %6
%39 = getelementptr inbounds i32, i32* %38, i64 1
%40 = load i32, i32* %39
%41 = load i32*, i32** %6
%42 = getelementptr inbounds i32, i32* %41, i64 2
%43 = load i32, i32* %42
%44 = call i32 (i8*, i64, i64, i32, ...) @trace_printk(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.2, i64 0, i64 0), i64 %32, i64 %34, i32 %37, i32 %40, i32 %43)
br label %192
45: ; preds = %3
%46 = load i64, i64* %4
%47 = load i64, i64* %7
%48 = udiv i64 %47, 1000
%49 = load i32*, i32** %6
%50 = getelementptr inbounds i32, i32* %49, i64 0
%51 = load i32, i32* %50
%52 = load i32*, i32** %6
%53 = getelementptr inbounds i32, i32* %52, i64 1
%54 = load i32, i32* %53
%55 = load i32*, i32** %6
%56 = getelementptr inbounds i32, i32* %55, i64 2
%57 = load i32, i32* %56
%58 = load i32*, i32** %6
%59 = getelementptr inbounds i32, i32* %58, i64 3
%60 = load i32, i32* %59
%61 = call i32 (i8*, i64, i64, i32, ...) @trace_printk(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.3, i64 0, i64 0), i64 %46, i64 %48, i32 %51, i32 %54, i32 %57, i32 %60)
br label %192
62: ; preds = %3
%63 = load i64, i64* %4
%64 = load i64, i64* %7
%65 = udiv i64 %64, 1000
%66 = load i32*, i32** %6
%67 = getelementptr inbounds i32, i32* %66, i64 0
%68 = load i32, i32* %67
%69 = load i32*, i32** %6
%70 = getelementptr inbounds i32, i32* %69, i64 1
%71 = load i32, i32* %70
%72 = load i32*, i32** %6
%73 = getelementptr inbounds i32, i32* %72, i64 2
%74 = load i32, i32* %73
%75 = load i32*, i32** %6
%76 = getelementptr inbounds i32, i32* %75, i64 3
%77 = load i32, i32* %76
%78 = load i32*, i32** %6
%79 = getelementptr inbounds i32, i32* %78, i64 4
%80 = load i32, i32* %79
%81 = call i32 (i8*, i64, i64, i32, ...) @trace_printk(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.4, i64 0, i64 0), i64 %63, i64 %65, i32 %68, i32 %71, i32 %74, i32 %77, i32 %80)
br label %192
82: ; preds = %3
%83 = load i64, i64* %4
%84 = load i64, i64* %7
%85 = udiv i64 %84, 1000
%86 = load i32*, i32** %6
%87 = getelementptr inbounds i32, i32* %86, i64 0
%88 = load i32, i32* %87
%89 = load i32*, i32** %6
%90 = getelementptr inbounds i32, i32* %89, i64 1
%91 = load i32, i32* %90
%92 = load i32*, i32** %6
%93 = getelementptr inbounds i32, i32* %92, i64 2
%94 = load i32, i32* %93
%95 = load i32*, i32** %6
%96 = getelementptr inbounds i32, i32* %95, i64 3
%97 = load i32, i32* %96
%98 = load i32*, i32** %6
%99 = getelementptr inbounds i32, i32* %98, i64 4
%100 = load i32, i32* %99
%101 = load i32*, i32** %6
%102 = getelementptr inbounds i32, i32* %101, i64 5
%103 = load i32, i32* %102
%104 = call i32 (i8*, i64, i64, i32, ...) @trace_printk(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.5, i64 0, i64 0), i64 %83, i64 %85, i32 %88, i32 %91, i32 %94, i32 %97, i32 %100, i32 %103)
br label %192
105: ; preds = %3
%106 = load i64, i64* %4
%107 = load i64, i64* %7
%108 = udiv i64 %107, 1000
%109 = load i32*, i32** %6
%110 = getelementptr inbounds i32, i32* %109, i64 0
%111 = load i32, i32* %110
%112 = load i32*, i32** %6
%113 = getelementptr inbounds i32, i32* %112, i64 1
%114 = load i32, i32* %113
%115 = load i32*, i32** %6
%116 = getelementptr inbounds i32, i32* %115, i64 2
%117 = load i32, i32* %116
%118 = load i32*, i32** %6
%119 = getelementptr inbounds i32, i32* %118, i64 3
%120 = load i32, i32* %119
%121 = load i32*, i32** %6
%122 = getelementptr inbounds i32, i32* %121, i64 4
%123 = load i32, i32* %122
%124 = load i32*, i32** %6
%125 = getelementptr inbounds i32, i32* %124, i64 5
%126 = load i32, i32* %125
%127 = load i32*, i32** %6
%128 = getelementptr inbounds i32, i32* %127, i64 6
%129 = load i32, i32* %128
%130 = call i32 (i8*, i64, i64, i32, ...) @trace_printk(i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.6, i64 0, i64 0), i64 %106, i64 %108, i32 %111, i32 %114, i32 %117, i32 %120, i32 %123, i32 %126, i32 %129)
br label %192
131: ; preds = %3
%132 = load i64, i64* %4
%133 = load i64, i64* %7
%134 = udiv i64 %133, 1000
%135 = load i32*, i32** %6
%136 = getelementptr inbounds i32, i32* %135, i64 0
%137 = load i32, i32* %136
%138 = load i32*, i32** %6
%139 = getelementptr inbounds i32, i32* %138, i64 1
%140 = load i32, i32* %139
%141 = load i32*, i32** %6
%142 = getelementptr inbounds i32, i32* %141, i64 2
%143 = load i32, i32* %142
%144 = load i32*, i32** %6
%145 = getelementptr inbounds i32, i32* %144, i64 3
%146 = load i32, i32* %145
%147 = load i32*, i32** %6
%148 = getelementptr inbounds i32, i32* %147, i64 4
%149 = load i32, i32* %148
%150 = load i32*, i32** %6
%151 = getelementptr inbounds i32, i32* %150, i64 5
%152 = load i32, i32* %151
%153 = load i32*, i32** %6
%154 = getelementptr inbounds i32, i32* %153, i64 6
%155 = load i32, i32* %154
%156 = load i32*, i32** %6
%157 = getelementptr inbounds i32, i32* %156, i64 7
%158 = load i32, i32* %157
%159 = call i32 (i8*, i64, i64, i32, ...) @trace_printk(i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.7, i64 0, i64 0), i64 %132, i64 %134, i32 %137, i32 %140, i32 %143, i32 %146, i32 %149, i32 %152, i32 %155, i32 %158)
br label %192
160: ; preds = %3
%161 = load i64, i64* %4
%162 = load i64, i64* %7
%163 = udiv i64 %162, 1000
%164 = load i32*, i32** %6
%165 = getelementptr inbounds i32, i32* %164, i64 0
%166 = load i32, i32* %165
%167 = load i32*, i32** %6
%168 = getelementptr inbounds i32, i32* %167, i64 1
%169 = load i32, i32* %168
%170 = load i32*, i32** %6
%171 = getelementptr inbounds i32, i32* %170, i64 2
%172 = load i32, i32* %171
%173 = load i32*, i32** %6
%174 = getelementptr inbounds i32, i32* %173, i64 3
%175 = load i32, i32* %174
%176 = load i32*, i32** %6
%177 = getelementptr inbounds i32, i32* %176, i64 4
%178 = load i32, i32* %177
%179 = load i32*, i32** %6
%180 = getelementptr inbounds i32, i32* %179, i64 5
%181 = load i32, i32* %180
%182 = load i32*, i32** %6
%183 = getelementptr inbounds i32, i32* %182, i64 6
%184 = load i32, i32* %183
%185 = load i32*, i32** %6
%186 = getelementptr inbounds i32, i32* %185, i64 7
%187 = load i32, i32* %186
%188 = load i32*, i32** %6
%189 = getelementptr inbounds i32, i32* %188, i64 8
%190 = load i32, i32* %189
%191 = call i32 (i8*, i64, i64, i32, ...) @trace_printk(i8* getelementptr inbounds ([39 x i8], [39 x i8]* @.str.8, i64 0, i64 0), i64 %161, i64 %163, i32 %166, i32 %169, i32 %172, i32 %175, i32 %178, i32 %181, i32 %184, i32 %187, i32 %190)
br label %192
192: ; preds = %3, %160, %131, %105, %82, %62, %45, %31, %20, %12
ret void
}

LLVM IR (-O2):
@.str = [15 x i8] c"%5lu.%06lu,%x\0A\00"
@.str.1 = [18 x i8] c"%5lu.%06lu,%x,%x\0A\00"
@.str.2 = [21 x i8] c"%5lu.%06lu,%x,%x,%x\0A\00"
@.str.3 = [24 x i8] c"%5lu.%06lu,%x,%x,%x,%x\0A\00"
@.str.4 = [27 x i8] c"%5lu.%06lu,%x,%x,%x,%x,%x\0A\00"
@.str.5 = [30 x i8] c"%5lu.%06lu,%x,%x,%x,%x,%x,%x\0A\00"
@.str.6 = [33 x i8] c"%5lu.%06lu,%x,%x,%x,%x,%x,%x,%x\0A\00"
@.str.7 = [36 x i8] c"%5lu.%06lu,%x,%x,%x,%x,%x,%x,%x,%x\0A\00"
@.str.8 = [39 x i8] c"%5lu.%06lu,%x,%x,%x,%x,%x,%x,%x,%x,%x\0A\00"
define void @mp_2pw(i64 %0, i8 zeroext %1, i32* %2) {
%4 = tail call i64 @do_div(i64 %0, i32 1000000000)
switch i8 %1, label %113 [
i8 1, label %5
i8 2, label %9
i8 3, label %15
i8 4, label %23
i8 5, label %33
i8 6, label %45
i8 7, label %59
i8 8, label %75
i8 9, label %93
]
5: ; preds = %3
%6 = udiv i64 %4, 1000
%7 = load i32, i32* %2
%8 = tail call i32 (i8*, i64, i64, i32, ...) @trace_printk(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str, i64 0, i64 0), i64 %0, i64 %6, i32 %7)
br label %113
9: ; preds = %3
%10 = udiv i64 %4, 1000
%11 = load i32, i32* %2
%12 = getelementptr inbounds i32, i32* %2, i64 1
%13 = load i32, i32* %12
%14 = tail call i32 (i8*, i64, i64, i32, ...) @trace_printk(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.1, i64 0, i64 0), i64 %0, i64 %10, i32 %11, i32 %13)
br label %113
15: ; preds = %3
%16 = udiv i64 %4, 1000
%17 = load i32, i32* %2
%18 = getelementptr inbounds i32, i32* %2, i64 1
%19 = load i32, i32* %18
%20 = getelementptr inbounds i32, i32* %2, i64 2
%21 = load i32, i32* %20
%22 = tail call i32 (i8*, i64, i64, i32, ...) @trace_printk(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.2, i64 0, i64 0), i64 %0, i64 %16, i32 %17, i32 %19, i32 %21)
br label %113
23: ; preds = %3
%24 = udiv i64 %4, 1000
%25 = load i32, i32* %2
%26 = getelementptr inbounds i32, i32* %2, i64 1
%27 = load i32, i32* %26
%28 = getelementptr inbounds i32, i32* %2, i64 2
%29 = load i32, i32* %28
%30 = getelementptr inbounds i32, i32* %2, i64 3
%31 = load i32, i32* %30
%32 = tail call i32 (i8*, i64, i64, i32, ...) @trace_printk(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.3, i64 0, i64 0), i64 %0, i64 %24, i32 %25, i32 %27, i32 %29, i32 %31)
br label %113
33: ; preds = %3
%34 = udiv i64 %4, 1000
%35 = load i32, i32* %2
%36 = getelementptr inbounds i32, i32* %2, i64 1
%37 = load i32, i32* %36
%38 = getelementptr inbounds i32, i32* %2, i64 2
%39 = load i32, i32* %38
%40 = getelementptr inbounds i32, i32* %2, i64 3
%41 = load i32, i32* %40
%42 = getelementptr inbounds i32, i32* %2, i64 4
%43 = load i32, i32* %42
%44 = tail call i32 (i8*, i64, i64, i32, ...) @trace_printk(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.4, i64 0, i64 0), i64 %0, i64 %34, i32 %35, i32 %37, i32 %39, i32 %41, i32 %43)
br label %113
45: ; preds = %3
%46 = udiv i64 %4, 1000
%47 = load i32, i32* %2
%48 = getelementptr inbounds i32, i32* %2, i64 1
%49 = load i32, i32* %48
%50 = getelementptr inbounds i32, i32* %2, i64 2
%51 = load i32, i32* %50
%52 = getelementptr inbounds i32, i32* %2, i64 3
%53 = load i32, i32* %52
%54 = getelementptr inbounds i32, i32* %2, i64 4
%55 = load i32, i32* %54
%56 = getelementptr inbounds i32, i32* %2, i64 5
%57 = load i32, i32* %56
%58 = tail call i32 (i8*, i64, i64, i32, ...) @trace_printk(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.5, i64 0, i64 0), i64 %0, i64 %46, i32 %47, i32 %49, i32 %51, i32 %53, i32 %55, i32 %57)
br label %113
59: ; preds = %3
%60 = udiv i64 %4, 1000
%61 = load i32, i32* %2
%62 = getelementptr inbounds i32, i32* %2, i64 1
%63 = load i32, i32* %62
%64 = getelementptr inbounds i32, i32* %2, i64 2
%65 = load i32, i32* %64
%66 = getelementptr inbounds i32, i32* %2, i64 3
%67 = load i32, i32* %66
%68 = getelementptr inbounds i32, i32* %2, i64 4
%69 = load i32, i32* %68
%70 = getelementptr inbounds i32, i32* %2, i64 5
%71 = load i32, i32* %70
%72 = getelementptr inbounds i32, i32* %2, i64 6
%73 = load i32, i32* %72
%74 = tail call i32 (i8*, i64, i64, i32, ...) @trace_printk(i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.6, i64 0, i64 0), i64 %0, i64 %60, i32 %61, i32 %63, i32 %65, i32 %67, i32 %69, i32 %71, i32 %73)
br label %113
75: ; preds = %3
%76 = udiv i64 %4, 1000
%77 = load i32, i32* %2
%78 = getelementptr inbounds i32, i32* %2, i64 1
%79 = load i32, i32* %78
%80 = getelementptr inbounds i32, i32* %2, i64 2
%81 = load i32, i32* %80
%82 = getelementptr inbounds i32, i32* %2, i64 3
%83 = load i32, i32* %82
%84 = getelementptr inbounds i32, i32* %2, i64 4
%85 = load i32, i32* %84
%86 = getelementptr inbounds i32, i32* %2, i64 5
%87 = load i32, i32* %86
%88 = getelementptr inbounds i32, i32* %2, i64 6
%89 = load i32, i32* %88
%90 = getelementptr inbounds i32, i32* %2, i64 7
%91 = load i32, i32* %90
%92 = tail call i32 (i8*, i64, i64, i32, ...) @trace_printk(i8* getelementptr inbounds ([36 x i8], [36 x i8]* @.str.7, i64 0, i64 0), i64 %0, i64 %76, i32 %77, i32 %79, i32 %81, i32 %83, i32 %85, i32 %87, i32 %89, i32 %91)
br label %113
93: ; preds = %3
%94 = udiv i64 %4, 1000
%95 = load i32, i32* %2
%96 = getelementptr inbounds i32, i32* %2, i64 1
%97 = load i32, i32* %96
%98 = getelementptr inbounds i32, i32* %2, i64 2
%99 = load i32, i32* %98
%100 = getelementptr inbounds i32, i32* %2, i64 3
%101 = load i32, i32* %100
%102 = getelementptr inbounds i32, i32* %2, i64 4
%103 = load i32, i32* %102
%104 = getelementptr inbounds i32, i32* %2, i64 5
%105 = load i32, i32* %104
%106 = getelementptr inbounds i32, i32* %2, i64 6
%107 = load i32, i32* %106
%108 = getelementptr inbounds i32, i32* %2, i64 7
%109 = load i32, i32* %108
%110 = getelementptr inbounds i32, i32* %2, i64 8
%111 = load i32, i32* %110
%112 = tail call i32 (i8*, i64, i64, i32, ...) @trace_printk(i8* getelementptr inbounds ([39 x i8], [39 x i8]* @.str.8, i64 0, i64 0), i64 %0, i64 %94, i32 %95, i32 %97, i32 %99, i32 %101, i32 %103, i32 %105, i32 %107, i32 %109, i32 %111)
br label %113
113: ; preds = %3, %93, %75, %59, %45, %33, %23, %15, %9, %5
ret void
}