#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 */
long cstr2pc(char *);
int /*<<< orphan*/ pc2str(long, char *);
int /*<<< orphan*/ pc2str644(long, char *);
int /*<<< orphan*/ printf(char *, long, long, char *, char *);
int main(int argc, char *argv[]) {
  long pc;
  char str[20];
  char str644[20];
  int i = 0;
  for (i = 1; i < argc; i++) {
    pc = cstr2pc(argv[i]);
    pc2str(pc, str);
    pc2str644(pc, str644);
    printf("Pointcode: DEC: %ld\tHEX: 0x%lX\tITU: %s\tNAT644:%s\n", pc, pc, str,
           str644);
  }
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x60,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
movl   $0x0,-0x54(%rbp)
movl   $0x1,-0x54(%rbp)
mov    -0x54(%rbp),%eax
cmp    -0x8(%rbp),%eax
jge    11c9 <main+0x89>
mov    -0x10(%rbp),%rax
movslq -0x54(%rbp),%rcx
mov    (%rax,%rcx,8),%rdi
call   1040 <cstr2pc@plt>
mov    %rax,-0x18(%rbp)
mov    -0x18(%rbp),%rdi
lea    -0x30(%rbp),%rsi
call   1060 <pc2str@plt>
mov    -0x18(%rbp),%rdi
lea    -0x50(%rbp),%rsi
call   1050 <pc2str644@plt>
mov    -0x18(%rbp),%rsi
mov    -0x18(%rbp),%rdx
lea    -0x30(%rbp),%rcx
lea    -0x50(%rbp),%r8
lea    0xe4a(%rip),%rdi
call   1030 <printf@plt>
mov    -0x54(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x54(%rbp)
jmp    1164 <main+0x24>
mov    -0x4(%rbp),%eax
add    $0x60,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x38,%rsp
cmp    $0x2,%edi
jl     11b3 <main+0x73>
mov    %rsi,%r14
mov    %edi,%ebp
mov    $0x1,%r12d
lea    0x20(%rsp),%r15
mov    %rsp,%r13
cs nopw 0x0(%rax,%rax,1)
mov    (%r14,%r12,8),%rdi
call   1040 <cstr2pc@plt>
mov    %rax,%rbx
mov    %rax,%rdi
mov    %r15,%rsi
call   1060 <pc2str@plt>
mov    %rbx,%rdi
mov    %r13,%rsi
call   1050 <pc2str644@plt>
lea    0xe67(%rip),%rdi
mov    %rbx,%rsi
mov    %rbx,%rdx
mov    %r15,%rcx
mov    %r13,%r8
call   1030 <printf@plt>
add    $0x1,%r12
cmp    %r12,%rbp
jne    1170 <main+0x30>
xor    %eax,%eax
add    $0x38,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [50 x i8] c"Pointcode: DEC: %ld\09HEX: 0x%lX\09ITU: %s\09NAT644:%s\0A\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca i64
%7 = alloca [20 x i8]
%8 = alloca [20 x i8]
%9 = alloca i32
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
store i32 0, i32* %9
store i32 1, i32* %9
br label %10
10: ; preds = %32, %2
%11 = load i32, i32* %9
%12 = load i32, i32* %4
%13 = icmp slt i32 %11, %12
br i1 %13, label %14, label %35
14: ; preds = %10
%15 = load i8**, i8*** %5
%16 = load i32, i32* %9
%17 = sext i32 %16 to i64
%18 = getelementptr inbounds i8*, i8** %15, i64 %17
%19 = load i8*, i8** %18
%20 = call i64 @cstr2pc(i8* %19)
store i64 %20, i64* %6
%21 = load i64, i64* %6
%22 = getelementptr inbounds [20 x i8], [20 x i8]* %7, i64 0, i64 0
%23 = call i32 @pc2str(i64 %21, i8* %22)
%24 = load i64, i64* %6
%25 = getelementptr inbounds [20 x i8], [20 x i8]* %8, i64 0, i64 0
%26 = call i32 @pc2str644(i64 %24, i8* %25)
%27 = load i64, i64* %6
%28 = load i64, i64* %6
%29 = getelementptr inbounds [20 x i8], [20 x i8]* %7, i64 0, i64 0
%30 = getelementptr inbounds [20 x i8], [20 x i8]* %8, i64 0, i64 0
%31 = call i32 @printf(i8* getelementptr inbounds ([50 x i8], [50 x i8]* @.str, i64 0, i64 0), i64 %27, i64 %28, i8* %29, i8* %30)
br label %32
32: ; preds = %14
%33 = load i32, i32* %9
%34 = add nsw i32 %33, 1
store i32 %34, i32* %9
br label %10
35: ; preds = %10
%36 = load i32, i32* %3
ret i32 %36
}

LLVM IR (-O2):
@.str = [50 x i8] c"Pointcode: DEC: %ld\09HEX: 0x%lX\09ITU: %s\09NAT644:%s\0A\00"
define i32 @main(i32 %0, i8** nocapture %1) {
%3 = alloca [20 x i8]
%4 = alloca [20 x i8]
%5 = getelementptr inbounds [20 x i8], [20 x i8]* %3, i64 0, i64 0
%6 = getelementptr inbounds [20 x i8], [20 x i8]* %4, i64 0, i64 0
%7 = icmp sgt i32 %0, 1
br i1 %7, label %8, label %20
8: ; preds = %2
%9 = zext i32 %0 to i64
br label %10
10: ; preds = %8, %10
%11 = phi i64 [ 1, %8 ], [ %18, %10 ]
%12 = getelementptr inbounds i8*, i8** %1, i64 %11
%13 = load i8*, i8** %12
%14 = call i64 @cstr2pc(i8* %13)
%15 = call i32 @pc2str(i64 %14, i8* %5)
%16 = call i32 @pc2str644(i64 %14, i8* %6)
%17 = call i32 @printf(i8* getelementptr inbounds ([50 x i8], [50 x i8]* @.str, i64 0, i64 0), i64 %14, i64 %14, i8* %5, i8* %6)
%18 = add nuw nsw i64 %11, 1
%19 = icmp eq i64 %18, %9
br i1 %19, label %20, label %10
20: ; preds = %10, %2
ret i32 0
}