#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 *, unsigned int, int);
void dumpCode(int *pc, int *lr) {
  unsigned int i;
  for (i = 0; i < 20; i++) {
    printf("%p codePC[%d]: %#010x\n", pc + i, i, pc[i]);
  }
  for (i = 0; i < 20; i++) {
    printf("%p codeLR[%d]: %#010x\n", lr + i, i, lr[i]);
  }
}


x86 assembly (clang, -O0):
<dumpCode>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
movl   $0x0,-0x14(%rbp)
cmpl   $0x14,-0x14(%rbp)
jae    1166 <dumpCode+0x56>
mov    -0x8(%rbp),%rsi
mov    -0x14(%rbp),%eax
shl    $0x2,%rax
add    %rax,%rsi
mov    -0x14(%rbp),%edx
mov    -0x8(%rbp),%rax
mov    -0x14(%rbp),%ecx
mov    (%rax,%rcx,4),%ecx
lea    0xead(%rip),%rdi
call   1030 <printf@plt>
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
jmp    1127 <dumpCode+0x17>
movl   $0x0,-0x14(%rbp)
cmpl   $0x14,-0x14(%rbp)
jae    11ac <dumpCode+0x9c>
mov    -0x10(%rbp),%rsi
mov    -0x14(%rbp),%eax
shl    $0x2,%rax
add    %rax,%rsi
mov    -0x14(%rbp),%edx
mov    -0x10(%rbp),%rax
mov    -0x14(%rbp),%ecx
mov    (%rax,%rcx,4),%ecx
lea    0xe7e(%rip),%rdi
call   1030 <printf@plt>
mov    -0x14(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x14(%rbp)
jmp    116d <dumpCode+0x5d>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<dumpCode>:
push   %r15
push   %r14
push   %rbx
mov    %rsi,%r14
mov    %rdi,%rbx
mov    (%rdi),%ecx
lea    0xedc(%rip),%r15
mov    %r15,%rdi
mov    %rbx,%rsi
xor    %edx,%edx
call   1030 <printf@plt>
lea    0x4(%rbx),%rsi
mov    0x4(%rbx),%ecx
mov    %r15,%rdi
mov    $0x1,%edx
call   1030 <printf@plt>
lea    0x8(%rbx),%rsi
mov    0x8(%rbx),%ecx
mov    %r15,%rdi
mov    $0x2,%edx
call   1030 <printf@plt>
lea    0xc(%rbx),%rsi
mov    0xc(%rbx),%ecx
mov    %r15,%rdi
mov    $0x3,%edx
call   1030 <printf@plt>
lea    0x10(%rbx),%rsi
mov    0x10(%rbx),%ecx
mov    %r15,%rdi
mov    $0x4,%edx
call   1030 <printf@plt>
lea    0x14(%rbx),%rsi
mov    0x14(%rbx),%ecx
mov    %r15,%rdi
mov    $0x5,%edx
call   1030 <printf@plt>
lea    0x18(%rbx),%rsi
mov    0x18(%rbx),%ecx
mov    %r15,%rdi
mov    $0x6,%edx
call   1030 <printf@plt>
lea    0x1c(%rbx),%rsi
mov    0x1c(%rbx),%ecx
mov    %r15,%rdi
mov    $0x7,%edx
call   1030 <printf@plt>
lea    0x20(%rbx),%rsi
mov    0x20(%rbx),%ecx
mov    %r15,%rdi
mov    $0x8,%edx
call   1030 <printf@plt>
lea    0x24(%rbx),%rsi
mov    0x24(%rbx),%ecx
mov    %r15,%rdi
mov    $0x9,%edx
call   1030 <printf@plt>
lea    0x28(%rbx),%rsi
mov    0x28(%rbx),%ecx
mov    %r15,%rdi
mov    $0xa,%edx
call   1030 <printf@plt>
lea    0x2c(%rbx),%rsi
mov    0x2c(%rbx),%ecx
mov    %r15,%rdi
mov    $0xb,%edx
call   1030 <printf@plt>
lea    0x30(%rbx),%rsi
mov    0x30(%rbx),%ecx
mov    %r15,%rdi
mov    $0xc,%edx
call   1030 <printf@plt>
lea    0x34(%rbx),%rsi
mov    0x34(%rbx),%ecx
mov    %r15,%rdi
mov    $0xd,%edx
call   1030 <printf@plt>
lea    0x38(%rbx),%rsi
mov    0x38(%rbx),%ecx
mov    %r15,%rdi
mov    $0xe,%edx
call   1030 <printf@plt>
lea    0x3c(%rbx),%rsi
mov    0x3c(%rbx),%ecx
mov    %r15,%rdi
mov    $0xf,%edx
call   1030 <printf@plt>
lea    0x40(%rbx),%rsi
mov    0x40(%rbx),%ecx
mov    %r15,%rdi
mov    $0x10,%edx
call   1030 <printf@plt>
lea    0x44(%rbx),%rsi
mov    0x44(%rbx),%ecx
mov    %r15,%rdi
mov    $0x11,%edx
call   1030 <printf@plt>
lea    0x48(%rbx),%rsi
mov    0x48(%rbx),%ecx
mov    %r15,%rdi
mov    $0x12,%edx
call   1030 <printf@plt>
mov    0x4c(%rbx),%ecx
add    $0x4c,%rbx
mov    %r15,%rdi
mov    %rbx,%rsi
mov    $0x13,%edx
call   1030 <printf@plt>
mov    (%r14),%ecx
lea    0xd5d(%rip),%rbx
mov    %rbx,%rdi
mov    %r14,%rsi
xor    %edx,%edx
call   1030 <printf@plt>
lea    0x4(%r14),%rsi
mov    0x4(%r14),%ecx
mov    %rbx,%rdi
mov    $0x1,%edx
call   1030 <printf@plt>
lea    0x8(%r14),%rsi
mov    0x8(%r14),%ecx
mov    %rbx,%rdi
mov    $0x2,%edx
call   1030 <printf@plt>
lea    0xc(%r14),%rsi
mov    0xc(%r14),%ecx
mov    %rbx,%rdi
mov    $0x3,%edx
call   1030 <printf@plt>
lea    0x10(%r14),%rsi
mov    0x10(%r14),%ecx
mov    %rbx,%rdi
mov    $0x4,%edx
call   1030 <printf@plt>
lea    0x14(%r14),%rsi
mov    0x14(%r14),%ecx
mov    %rbx,%rdi
mov    $0x5,%edx
call   1030 <printf@plt>
lea    0x18(%r14),%rsi
mov    0x18(%r14),%ecx
mov    %rbx,%rdi
mov    $0x6,%edx
call   1030 <printf@plt>
lea    0x1c(%r14),%rsi
mov    0x1c(%r14),%ecx
mov    %rbx,%rdi
mov    $0x7,%edx
call   1030 <printf@plt>
lea    0x20(%r14),%rsi
mov    0x20(%r14),%ecx
mov    %rbx,%rdi
mov    $0x8,%edx
call   1030 <printf@plt>
lea    0x24(%r14),%rsi
mov    0x24(%r14),%ecx
mov    %rbx,%rdi
mov    $0x9,%edx
call   1030 <printf@plt>
lea    0x28(%r14),%rsi
mov    0x28(%r14),%ecx
mov    %rbx,%rdi
mov    $0xa,%edx
call   1030 <printf@plt>
lea    0x2c(%r14),%rsi
mov    0x2c(%r14),%ecx
mov    %rbx,%rdi
mov    $0xb,%edx
call   1030 <printf@plt>
lea    0x30(%r14),%rsi
mov    0x30(%r14),%ecx
mov    %rbx,%rdi
mov    $0xc,%edx
call   1030 <printf@plt>
lea    0x34(%r14),%rsi
mov    0x34(%r14),%ecx
mov    %rbx,%rdi
mov    $0xd,%edx
call   1030 <printf@plt>
lea    0x38(%r14),%rsi
mov    0x38(%r14),%ecx
mov    %rbx,%rdi
mov    $0xe,%edx
call   1030 <printf@plt>
lea    0x3c(%r14),%rsi
mov    0x3c(%r14),%ecx
mov    %rbx,%rdi
mov    $0xf,%edx
call   1030 <printf@plt>
lea    0x40(%r14),%rsi
mov    0x40(%r14),%ecx
mov    %rbx,%rdi
mov    $0x10,%edx
call   1030 <printf@plt>
lea    0x44(%r14),%rsi
mov    0x44(%r14),%ecx
mov    %rbx,%rdi
mov    $0x11,%edx
call   1030 <printf@plt>
lea    0x48(%r14),%rsi
mov    0x48(%r14),%ecx
mov    %rbx,%rdi
mov    $0x12,%edx
call   1030 <printf@plt>
mov    0x4c(%r14),%ecx
add    $0x4c,%r14
mov    %rbx,%rdi
mov    %r14,%rsi
mov    $0x13,%edx
pop    %rbx
pop    %r14
pop    %r15
jmp    1030 <printf@plt>

LLVM IR (-O0):
@.str = [23 x i8] c"%p codePC[%d]: %x\0A\00"
@.str.1 = [23 x i8] c"%p codeLR[%d]: %x\0A\00"
define void @dumpCode(i32* %0, i32* %1) {
%3 = alloca i32*
%4 = alloca i32*
%5 = alloca i32
store i32* %0, i32** %3
store i32* %1, i32** %4
store i32 0, i32* %5
br label %6
6: ; preds = %21, %2
%7 = load i32, i32* %5
%8 = icmp ult i32 %7, 20
br i1 %8, label %9, label %24
9: ; preds = %6
%10 = load i32*, i32** %3
%11 = load i32, i32* %5
%12 = zext i32 %11 to i64
%13 = getelementptr inbounds i32, i32* %10, i64 %12
%14 = load i32, i32* %5
%15 = load i32*, i32** %3
%16 = load i32, i32* %5
%17 = zext i32 %16 to i64
%18 = getelementptr inbounds i32, i32* %15, i64 %17
%19 = load i32, i32* %18
%20 = call i32 @printf(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str, i64 0, i64 0), i32* %13, i32 %14, i32 %19)
br label %21
21: ; preds = %9
%22 = load i32, i32* %5
%23 = add i32 %22, 1
store i32 %23, i32* %5
br label %6
24: ; preds = %6
store i32 0, i32* %5
br label %25
25: ; preds = %40, %24
%26 = load i32, i32* %5
%27 = icmp ult i32 %26, 20
br i1 %27, label %28, label %43
28: ; preds = %25
%29 = load i32*, i32** %4
%30 = load i32, i32* %5
%31 = zext i32 %30 to i64
%32 = getelementptr inbounds i32, i32* %29, i64 %31
%33 = load i32, i32* %5
%34 = load i32*, i32** %4
%35 = load i32, i32* %5
%36 = zext i32 %35 to i64
%37 = getelementptr inbounds i32, i32* %34, i64 %36
%38 = load i32, i32* %37
%39 = call i32 @printf(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.1, i64 0, i64 0), i32* %32, i32 %33, i32 %38)
br label %40
40: ; preds = %28
%41 = load i32, i32* %5
%42 = add i32 %41, 1
store i32 %42, i32* %5
br label %25
43: ; preds = %25
ret void
}

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