#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 atoi(char *);
int /*<<< orphan*/ printf(char *, ...);
int /*<<< orphan*/ strcpy(char *, char *);
int main(int argc, char *argv[]) {
  int nchip;
  char schip[0];
  if (argc < 2) {
    printf("Give me the chip number you want translated\n");
    return (0);
  }
  nchip = atoi(argv[1]);
  if (nchip < 0 || nchip > 36)
    printf("chip out of bounds, come on now\n");
  if (nchip < 10)
    strcpy(schip, argv[1]);
  if (nchip == 10)
    strcpy(schip, "A");
  if (nchip == 11)
    strcpy(schip, "B");
  if (nchip == 12)
    strcpy(schip, "C");
  if (nchip == 13)
    strcpy(schip, "D");
  if (nchip == 14)
    strcpy(schip, "E");
  if (nchip == 15)
    strcpy(schip, "F");
  if (nchip == 16)
    strcpy(schip, "G");
  if (nchip == 17)
    strcpy(schip, "H");
  if (nchip == 18)
    strcpy(schip, "I");
  if (nchip == 19)
    strcpy(schip, "J");
  if (nchip == 20)
    strcpy(schip, "K");
  if (nchip == 21)
    strcpy(schip, "L");
  if (nchip == 22)
    strcpy(schip, "M");
  if (nchip == 23)
    strcpy(schip, "N");
  if (nchip == 24)
    strcpy(schip, "O");
  if (nchip == 25)
    strcpy(schip, "P");
  if (nchip == 26)
    strcpy(schip, "Q");
  if (nchip == 27)
    strcpy(schip, "R");
  if (nchip == 28)
    strcpy(schip, "S");
  if (nchip == 29)
    strcpy(schip, "T");
  if (nchip == 30)
    strcpy(schip, "U");
  if (nchip == 31)
    strcpy(schip, "V");
  if (nchip == 32)
    strcpy(schip, "W");
  if (nchip == 33)
    strcpy(schip, "X");
  if (nchip == 34)
    strcpy(schip, "Y");
  if (nchip == 35)
    strcpy(schip, "Z");
  printf("Translated chip #%d to %s\n", nchip, schip);
  printf("So objname is l|o|t|r|s FIELDNAME a|b|c %s\n", schip);
  return (1);
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
cmpl   $0x2,-0x8(%rbp)
jge    116a <main+0x3a>
lea    0xea9(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
movl   $0x0,-0x4(%rbp)
jmp    1489 <main+0x359>
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rdi
call   1050 <atoi@plt>
mov    %eax,-0x14(%rbp)
cmpl   $0x0,-0x14(%rbp)
jl     118e <main+0x5e>
cmpl   $0x24,-0x14(%rbp)
jle    119c <main+0x6c>
lea    0xe98(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
cmpl   $0xa,-0x14(%rbp)
jge    11b7 <main+0x87>
lea    -0x15(%rbp),%rdi
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rsi
call   1030 <strcpy@plt>
cmpl   $0xa,-0x14(%rbp)
jne    11d1 <main+0xa1>
lea    -0x15(%rbp),%rdi
lea    0xe82(%rip),%rsi
call   1030 <strcpy@plt>
cmpl   $0xb,-0x14(%rbp)
jne    11eb <main+0xbb>
lea    -0x15(%rbp),%rdi
lea    0xe6a(%rip),%rsi
call   1030 <strcpy@plt>
cmpl   $0xc,-0x14(%rbp)
jne    1205 <main+0xd5>
lea    -0x15(%rbp),%rdi
lea    0xe52(%rip),%rsi
call   1030 <strcpy@plt>
cmpl   $0xd,-0x14(%rbp)
jne    121f <main+0xef>
lea    -0x15(%rbp),%rdi
lea    0xe3a(%rip),%rsi
call   1030 <strcpy@plt>
cmpl   $0xe,-0x14(%rbp)
jne    1239 <main+0x109>
lea    -0x15(%rbp),%rdi
lea    0xe22(%rip),%rsi
call   1030 <strcpy@plt>
cmpl   $0xf,-0x14(%rbp)
jne    1253 <main+0x123>
lea    -0x15(%rbp),%rdi
lea    0xe0a(%rip),%rsi
call   1030 <strcpy@plt>
cmpl   $0x10,-0x14(%rbp)
jne    126d <main+0x13d>
lea    -0x15(%rbp),%rdi
lea    0xdf2(%rip),%rsi
call   1030 <strcpy@plt>
cmpl   $0x11,-0x14(%rbp)
jne    1287 <main+0x157>
lea    -0x15(%rbp),%rdi
lea    0xdda(%rip),%rsi
call   1030 <strcpy@plt>
cmpl   $0x12,-0x14(%rbp)
jne    12a1 <main+0x171>
lea    -0x15(%rbp),%rdi
lea    0xdc2(%rip),%rsi
call   1030 <strcpy@plt>
cmpl   $0x13,-0x14(%rbp)
jne    12bb <main+0x18b>
lea    -0x15(%rbp),%rdi
lea    0xdaa(%rip),%rsi
call   1030 <strcpy@plt>
cmpl   $0x14,-0x14(%rbp)
jne    12d5 <main+0x1a5>
lea    -0x15(%rbp),%rdi
lea    0xd92(%rip),%rsi
call   1030 <strcpy@plt>
cmpl   $0x15,-0x14(%rbp)
jne    12ef <main+0x1bf>
lea    -0x15(%rbp),%rdi
lea    0xd7a(%rip),%rsi
call   1030 <strcpy@plt>
cmpl   $0x16,-0x14(%rbp)
jne    1309 <main+0x1d9>
lea    -0x15(%rbp),%rdi
lea    0xd62(%rip),%rsi
call   1030 <strcpy@plt>
cmpl   $0x17,-0x14(%rbp)
jne    1323 <main+0x1f3>
lea    -0x15(%rbp),%rdi
lea    0xd4a(%rip),%rsi
call   1030 <strcpy@plt>
cmpl   $0x18,-0x14(%rbp)
jne    133d <main+0x20d>
lea    -0x15(%rbp),%rdi
lea    0xd32(%rip),%rsi
call   1030 <strcpy@plt>
cmpl   $0x19,-0x14(%rbp)
jne    1357 <main+0x227>
lea    -0x15(%rbp),%rdi
lea    0xd1a(%rip),%rsi
call   1030 <strcpy@plt>
cmpl   $0x1a,-0x14(%rbp)
jne    1371 <main+0x241>
lea    -0x15(%rbp),%rdi
lea    0xd02(%rip),%rsi
call   1030 <strcpy@plt>
cmpl   $0x1b,-0x14(%rbp)
jne    138b <main+0x25b>
lea    -0x15(%rbp),%rdi
lea    0xcea(%rip),%rsi
call   1030 <strcpy@plt>
cmpl   $0x1c,-0x14(%rbp)
jne    13a5 <main+0x275>
lea    -0x15(%rbp),%rdi
lea    0xcd2(%rip),%rsi
call   1030 <strcpy@plt>
cmpl   $0x1d,-0x14(%rbp)
jne    13bf <main+0x28f>
lea    -0x15(%rbp),%rdi
lea    0xcba(%rip),%rsi
call   1030 <strcpy@plt>
cmpl   $0x1e,-0x14(%rbp)
jne    13d9 <main+0x2a9>
lea    -0x15(%rbp),%rdi
lea    0xca2(%rip),%rsi
call   1030 <strcpy@plt>
cmpl   $0x1f,-0x14(%rbp)
jne    13f3 <main+0x2c3>
lea    -0x15(%rbp),%rdi
lea    0xc8a(%rip),%rsi
call   1030 <strcpy@plt>
cmpl   $0x20,-0x14(%rbp)
jne    140d <main+0x2dd>
lea    -0x15(%rbp),%rdi
lea    0xc72(%rip),%rsi
call   1030 <strcpy@plt>
cmpl   $0x21,-0x14(%rbp)
jne    1427 <main+0x2f7>
lea    -0x15(%rbp),%rdi
lea    0xc5a(%rip),%rsi
call   1030 <strcpy@plt>
cmpl   $0x22,-0x14(%rbp)
jne    1441 <main+0x311>
lea    -0x15(%rbp),%rdi
lea    0xc42(%rip),%rsi
call   1030 <strcpy@plt>
cmpl   $0x23,-0x14(%rbp)
jne    145b <main+0x32b>
lea    -0x15(%rbp),%rdi
lea    0xc2a(%rip),%rsi
call   1030 <strcpy@plt>
mov    -0x14(%rbp),%esi
lea    -0x15(%rbp),%rdx
lea    0xc19(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
lea    -0x15(%rbp),%rsi
lea    0xc22(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
movl   $0x1,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %rbx
push   %rax
cmp    $0x1,%edi
jg     115b <main+0x1b>
lea    0xf4c(%rip),%rdi
call   1040 <puts@plt>
xor    %eax,%eax
jmp    11df <main+0x9f>
mov    %rsi,%rbx
mov    0x8(%rsi),%rdi
call   1060 <atoi@plt>
mov    %eax,%ebp
cmp    $0x25,%eax
jb     117a <main+0x3a>
lea    0xf06(%rip),%rdi
call   1040 <puts@plt>
cmp    $0x9,%ebp
jg     118d <main+0x4d>
mov    0x8(%rbx),%rsi
lea    0x7(%rsp),%rdi
call   1030 <strcpy@plt>
mov    %ebp,%eax
add    $0xfffffff6,%eax
cmp    $0x19,%eax
ja     11b1 <main+0x71>
cltq
lea    0xf28(%rip),%rcx
movslq (%rcx,%rax,4),%rsi
add    %rcx,%rsi
lea    0x7(%rsp),%rdi
call   1030 <strcpy@plt>
lea    0xe7c(%rip),%rdi
lea    0x7(%rsp),%rbx
mov    %ebp,%esi
mov    %rbx,%rdx
xor    %eax,%eax
call   1050 <printf@plt>
lea    0xe7f(%rip),%rdi
mov    %rbx,%rsi
xor    %eax,%eax
call   1050 <printf@plt>
mov    $0x1,%eax
add    $0x8,%rsp
pop    %rbx
pop    %rbp
ret

LLVM IR (-O0):
@.str = [45 x i8] c"Give me the chip number you want translated\0A\00"
@.str.1 = [33 x i8] c"chip out of bounds, come on now\0A\00"
@.str.2 = [2 x i8] c"A\00"
@.str.3 = [2 x i8] c"B\00"
@.str.4 = [2 x i8] c"C\00"
@.str.5 = [2 x i8] c"D\00"
@.str.6 = [2 x i8] c"E\00"
@.str.7 = [2 x i8] c"F\00"
@.str.8 = [2 x i8] c"G\00"
@.str.9 = [2 x i8] c"H\00"
@.str.10 = [2 x i8] c"I\00"
@.str.11 = [2 x i8] c"J\00"
@.str.12 = [2 x i8] c"K\00"
@.str.13 = [2 x i8] c"L\00"
@.str.14 = [2 x i8] c"M\00"
@.str.15 = [2 x i8] c"N\00"
@.str.16 = [2 x i8] c"O\00"
@.str.17 = [2 x i8] c"P\00"
@.str.18 = [2 x i8] c"Q\00"
@.str.19 = [2 x i8] c"R\00"
@.str.20 = [2 x i8] c"S\00"
@.str.21 = [2 x i8] c"T\00"
@.str.22 = [2 x i8] c"U\00"
@.str.23 = [2 x i8] c"V\00"
@.str.24 = [2 x i8] c"W\00"
@.str.25 = [2 x i8] c"X\00"
@.str.26 = [2 x i8] c"Y\00"
@.str.27 = [2 x i8] c"Z\00"
@.str.28 = [27 x i8] c"Translated chip #%d to %s\0A\00"
@.str.29 = [44 x i8] c"So objname is l|o|t|r|s FIELDNAME a|b|c %s\0A\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca i32
%7 = alloca [0 x i8]
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
%8 = load i32, i32* %4
%9 = icmp slt i32 %8, 2
br i1 %9, label %10, label %12
10: ; preds = %2
%11 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([45 x i8], [45 x i8]* @.str, i64 0, i64 0))
store i32 0, i32* %3
br label %195
12: ; preds = %2
%13 = load i8**, i8*** %5
%14 = getelementptr inbounds i8*, i8** %13, i64 1
%15 = load i8*, i8** %14
%16 = call i32 @atoi(i8* %15)
store i32 %16, i32* %6
%17 = load i32, i32* %6
%18 = icmp slt i32 %17, 0
br i1 %18, label %22, label %19
19: ; preds = %12
%20 = load i32, i32* %6
%21 = icmp sgt i32 %20, 36
br i1 %21, label %22, label %24
22: ; preds = %19, %12
%23 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.1, i64 0, i64 0))
br label %24
24: ; preds = %22, %19
%25 = load i32, i32* %6
%26 = icmp slt i32 %25, 10
br i1 %26, label %27, label %33
27: ; preds = %24
%28 = getelementptr inbounds [0 x i8], [0 x i8]* %7, i64 0, i64 0
%29 = load i8**, i8*** %5
%30 = getelementptr inbounds i8*, i8** %29, i64 1
%31 = load i8*, i8** %30
%32 = call i32 @strcpy(i8* %28, i8* %31)
br label %33
33: ; preds = %27, %24
%34 = load i32, i32* %6
%35 = icmp eq i32 %34, 10
br i1 %35, label %36, label %39
36: ; preds = %33
%37 = getelementptr inbounds [0 x i8], [0 x i8]* %7, i64 0, i64 0
%38 = call i32 @strcpy(i8* %37, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.2, i64 0, i64 0))
br label %39
39: ; preds = %36, %33
%40 = load i32, i32* %6
%41 = icmp eq i32 %40, 11
br i1 %41, label %42, label %45
42: ; preds = %39
%43 = getelementptr inbounds [0 x i8], [0 x i8]* %7, i64 0, i64 0
%44 = call i32 @strcpy(i8* %43, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.3, i64 0, i64 0))
br label %45
45: ; preds = %42, %39
%46 = load i32, i32* %6
%47 = icmp eq i32 %46, 12
br i1 %47, label %48, label %51
48: ; preds = %45
%49 = getelementptr inbounds [0 x i8], [0 x i8]* %7, i64 0, i64 0
%50 = call i32 @strcpy(i8* %49, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.4, i64 0, i64 0))
br label %51
51: ; preds = %48, %45
%52 = load i32, i32* %6
%53 = icmp eq i32 %52, 13
br i1 %53, label %54, label %57
54: ; preds = %51
%55 = getelementptr inbounds [0 x i8], [0 x i8]* %7, i64 0, i64 0
%56 = call i32 @strcpy(i8* %55, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.5, i64 0, i64 0))
br label %57
57: ; preds = %54, %51
%58 = load i32, i32* %6
%59 = icmp eq i32 %58, 14
br i1 %59, label %60, label %63
60: ; preds = %57
%61 = getelementptr inbounds [0 x i8], [0 x i8]* %7, i64 0, i64 0
%62 = call i32 @strcpy(i8* %61, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.6, i64 0, i64 0))
br label %63
63: ; preds = %60, %57
%64 = load i32, i32* %6
%65 = icmp eq i32 %64, 15
br i1 %65, label %66, label %69
66: ; preds = %63
%67 = getelementptr inbounds [0 x i8], [0 x i8]* %7, i64 0, i64 0
%68 = call i32 @strcpy(i8* %67, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.7, i64 0, i64 0))
br label %69
69: ; preds = %66, %63
%70 = load i32, i32* %6
%71 = icmp eq i32 %70, 16
br i1 %71, label %72, label %75
72: ; preds = %69
%73 = getelementptr inbounds [0 x i8], [0 x i8]* %7, i64 0, i64 0
%74 = call i32 @strcpy(i8* %73, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.8, i64 0, i64 0))
br label %75
75: ; preds = %72, %69
%76 = load i32, i32* %6
%77 = icmp eq i32 %76, 17
br i1 %77, label %78, label %81
78: ; preds = %75
%79 = getelementptr inbounds [0 x i8], [0 x i8]* %7, i64 0, i64 0
%80 = call i32 @strcpy(i8* %79, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.9, i64 0, i64 0))
br label %81
81: ; preds = %78, %75
%82 = load i32, i32* %6
%83 = icmp eq i32 %82, 18
br i1 %83, label %84, label %87
84: ; preds = %81
%85 = getelementptr inbounds [0 x i8], [0 x i8]* %7, i64 0, i64 0
%86 = call i32 @strcpy(i8* %85, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.10, i64 0, i64 0))
br label %87
87: ; preds = %84, %81
%88 = load i32, i32* %6
%89 = icmp eq i32 %88, 19
br i1 %89, label %90, label %93
90: ; preds = %87
%91 = getelementptr inbounds [0 x i8], [0 x i8]* %7, i64 0, i64 0
%92 = call i32 @strcpy(i8* %91, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.11, i64 0, i64 0))
br label %93
93: ; preds = %90, %87
%94 = load i32, i32* %6
%95 = icmp eq i32 %94, 20
br i1 %95, label %96, label %99
96: ; preds = %93
%97 = getelementptr inbounds [0 x i8], [0 x i8]* %7, i64 0, i64 0
%98 = call i32 @strcpy(i8* %97, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.12, i64 0, i64 0))
br label %99
99: ; preds = %96, %93
%100 = load i32, i32* %6
%101 = icmp eq i32 %100, 21
br i1 %101, label %102, label %105
102: ; preds = %99
%103 = getelementptr inbounds [0 x i8], [0 x i8]* %7, i64 0, i64 0
%104 = call i32 @strcpy(i8* %103, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.13, i64 0, i64 0))
br label %105
105: ; preds = %102, %99
%106 = load i32, i32* %6
%107 = icmp eq i32 %106, 22
br i1 %107, label %108, label %111
108: ; preds = %105
%109 = getelementptr inbounds [0 x i8], [0 x i8]* %7, i64 0, i64 0
%110 = call i32 @strcpy(i8* %109, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.14, i64 0, i64 0))
br label %111
111: ; preds = %108, %105
%112 = load i32, i32* %6
%113 = icmp eq i32 %112, 23
br i1 %113, label %114, label %117
114: ; preds = %111
%115 = getelementptr inbounds [0 x i8], [0 x i8]* %7, i64 0, i64 0
%116 = call i32 @strcpy(i8* %115, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.15, i64 0, i64 0))
br label %117
117: ; preds = %114, %111
%118 = load i32, i32* %6
%119 = icmp eq i32 %118, 24
br i1 %119, label %120, label %123
120: ; preds = %117
%121 = getelementptr inbounds [0 x i8], [0 x i8]* %7, i64 0, i64 0
%122 = call i32 @strcpy(i8* %121, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.16, i64 0, i64 0))
br label %123
123: ; preds = %120, %117
%124 = load i32, i32* %6
%125 = icmp eq i32 %124, 25
br i1 %125, label %126, label %129
126: ; preds = %123
%127 = getelementptr inbounds [0 x i8], [0 x i8]* %7, i64 0, i64 0
%128 = call i32 @strcpy(i8* %127, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.17, i64 0, i64 0))
br label %129
129: ; preds = %126, %123
%130 = load i32, i32* %6
%131 = icmp eq i32 %130, 26
br i1 %131, label %132, label %135
132: ; preds = %129
%133 = getelementptr inbounds [0 x i8], [0 x i8]* %7, i64 0, i64 0
%134 = call i32 @strcpy(i8* %133, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.18, i64 0, i64 0))
br label %135
135: ; preds = %132, %129
%136 = load i32, i32* %6
%137 = icmp eq i32 %136, 27
br i1 %137, label %138, label %141
138: ; preds = %135
%139 = getelementptr inbounds [0 x i8], [0 x i8]* %7, i64 0, i64 0
%140 = call i32 @strcpy(i8* %139, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.19, i64 0, i64 0))
br label %141
141: ; preds = %138, %135
%142 = load i32, i32* %6
%143 = icmp eq i32 %142, 28
br i1 %143, label %144, label %147
144: ; preds = %141
%145 = getelementptr inbounds [0 x i8], [0 x i8]* %7, i64 0, i64 0
%146 = call i32 @strcpy(i8* %145, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.20, i64 0, i64 0))
br label %147
147: ; preds = %144, %141
%148 = load i32, i32* %6
%149 = icmp eq i32 %148, 29
br i1 %149, label %150, label %153
150: ; preds = %147
%151 = getelementptr inbounds [0 x i8], [0 x i8]* %7, i64 0, i64 0
%152 = call i32 @strcpy(i8* %151, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.21, i64 0, i64 0))
br label %153
153: ; preds = %150, %147
%154 = load i32, i32* %6
%155 = icmp eq i32 %154, 30
br i1 %155, label %156, label %159
156: ; preds = %153
%157 = getelementptr inbounds [0 x i8], [0 x i8]* %7, i64 0, i64 0
%158 = call i32 @strcpy(i8* %157, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.22, i64 0, i64 0))
br label %159
159: ; preds = %156, %153
%160 = load i32, i32* %6
%161 = icmp eq i32 %160, 31
br i1 %161, label %162, label %165
162: ; preds = %159
%163 = getelementptr inbounds [0 x i8], [0 x i8]* %7, i64 0, i64 0
%164 = call i32 @strcpy(i8* %163, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.23, i64 0, i64 0))
br label %165
165: ; preds = %162, %159
%166 = load i32, i32* %6
%167 = icmp eq i32 %166, 32
br i1 %167, label %168, label %171
168: ; preds = %165
%169 = getelementptr inbounds [0 x i8], [0 x i8]* %7, i64 0, i64 0
%170 = call i32 @strcpy(i8* %169, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.24, i64 0, i64 0))
br label %171
171: ; preds = %168, %165
%172 = load i32, i32* %6
%173 = icmp eq i32 %172, 33
br i1 %173, label %174, label %177
174: ; preds = %171
%175 = getelementptr inbounds [0 x i8], [0 x i8]* %7, i64 0, i64 0
%176 = call i32 @strcpy(i8* %175, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.25, i64 0, i64 0))
br label %177
177: ; preds = %174, %171
%178 = load i32, i32* %6
%179 = icmp eq i32 %178, 34
br i1 %179, label %180, label %183
180: ; preds = %177
%181 = getelementptr inbounds [0 x i8], [0 x i8]* %7, i64 0, i64 0
%182 = call i32 @strcpy(i8* %181, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.26, i64 0, i64 0))
br label %183
183: ; preds = %180, %177
%184 = load i32, i32* %6
%185 = icmp eq i32 %184, 35
br i1 %185, label %186, label %189
186: ; preds = %183
%187 = getelementptr inbounds [0 x i8], [0 x i8]* %7, i64 0, i64 0
%188 = call i32 @strcpy(i8* %187, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.27, i64 0, i64 0))
br label %189
189: ; preds = %186, %183
%190 = load i32, i32* %6
%191 = getelementptr inbounds [0 x i8], [0 x i8]* %7, i64 0, i64 0
%192 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.28, i64 0, i64 0), i32 %190, i8* %191)
%193 = getelementptr inbounds [0 x i8], [0 x i8]* %7, i64 0, i64 0
%194 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([44 x i8], [44 x i8]* @.str.29, i64 0, i64 0), i8* %193)
store i32 1, i32* %3
br label %195
195: ; preds = %189, %10
%196 = load i32, i32* %3
ret i32 %196
}

LLVM IR (-O2):
@.str.2 = [2 x i8] c"A\00"
@.str.3 = [2 x i8] c"B\00"
@.str.4 = [2 x i8] c"C\00"
@.str.5 = [2 x i8] c"D\00"
@.str.6 = [2 x i8] c"E\00"
@.str.7 = [2 x i8] c"F\00"
@.str.8 = [2 x i8] c"G\00"
@.str.9 = [2 x i8] c"H\00"
@.str.10 = [2 x i8] c"I\00"
@.str.11 = [2 x i8] c"J\00"
@.str.12 = [2 x i8] c"K\00"
@.str.13 = [2 x i8] c"L\00"
@.str.14 = [2 x i8] c"M\00"
@.str.15 = [2 x i8] c"N\00"
@.str.16 = [2 x i8] c"O\00"
@.str.17 = [2 x i8] c"P\00"
@.str.18 = [2 x i8] c"Q\00"
@.str.19 = [2 x i8] c"R\00"
@.str.20 = [2 x i8] c"S\00"
@.str.21 = [2 x i8] c"T\00"
@.str.22 = [2 x i8] c"U\00"
@.str.23 = [2 x i8] c"V\00"
@.str.24 = [2 x i8] c"W\00"
@.str.25 = [2 x i8] c"X\00"
@.str.26 = [2 x i8] c"Y\00"
@.str.27 = [2 x i8] c"Z\00"
@.str.28 = [27 x i8] c"Translated chip #%d to %s\0A\00"
@.str.29 = [44 x i8] c"So objname is l|o|t|r|s FIELDNAME a|b|c %s\0A\00"
@str = [32 x i8] c"chip out of bounds, come on now\00"
@str.30 = [44 x i8] c"Give me the chip number you want translated\00"
@reltable.main = [26 x i32] [i32 trunc (i64 sub (i64 ptrtoint ([2 x i8]* @.str.2 to i64), i64 ptrtoint ([26 x i32]* @reltable.main to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([2 x i8]* @.str.3 to i64), i64 ptrtoint ([26 x i32]* @reltable.main to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([2 x i8]* @.str.4 to i64), i64 ptrtoint ([26 x i32]* @reltable.main to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([2 x i8]* @.str.5 to i64), i64 ptrtoint ([26 x i32]* @reltable.main to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([2 x i8]* @.str.6 to i64), i64 ptrtoint ([26 x i32]* @reltable.main to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([2 x i8]* @.str.7 to i64), i64 ptrtoint ([26 x i32]* @reltable.main to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([2 x i8]* @.str.8 to i64), i64 ptrtoint ([26 x i32]* @reltable.main to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([2 x i8]* @.str.9 to i64), i64 ptrtoint ([26 x i32]* @reltable.main to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([2 x i8]* @.str.10 to i64), i64 ptrtoint ([26 x i32]* @reltable.main to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([2 x i8]* @.str.11 to i64), i64 ptrtoint ([26 x i32]* @reltable.main to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([2 x i8]* @.str.12 to i64), i64 ptrtoint ([26 x i32]* @reltable.main to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([2 x i8]* @.str.13 to i64), i64 ptrtoint ([26 x i32]* @reltable.main to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([2 x i8]* @.str.14 to i64), i64 ptrtoint ([26 x i32]* @reltable.main to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([2 x i8]* @.str.15 to i64), i64 ptrtoint ([26 x i32]* @reltable.main to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([2 x i8]* @.str.16 to i64), i64 ptrtoint ([26 x i32]* @reltable.main to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([2 x i8]* @.str.17 to i64), i64 ptrtoint ([26 x i32]* @reltable.main to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([2 x i8]* @.str.18 to i64), i64 ptrtoint ([26 x i32]* @reltable.main to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([2 x i8]* @.str.19 to i64), i64 ptrtoint ([26 x i32]* @reltable.main to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([2 x i8]* @.str.20 to i64), i64 ptrtoint ([26 x i32]* @reltable.main to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([2 x i8]* @.str.21 to i64), i64 ptrtoint ([26 x i32]* @reltable.main to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([2 x i8]* @.str.22 to i64), i64 ptrtoint ([26 x i32]* @reltable.main to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([2 x i8]* @.str.23 to i64), i64 ptrtoint ([26 x i32]* @reltable.main to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([2 x i8]* @.str.24 to i64), i64 ptrtoint ([26 x i32]* @reltable.main to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([2 x i8]* @.str.25 to i64), i64 ptrtoint ([26 x i32]* @reltable.main to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([2 x i8]* @.str.26 to i64), i64 ptrtoint ([26 x i32]* @reltable.main to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([2 x i8]* @.str.27 to i64), i64 ptrtoint ([26 x i32]* @reltable.main to i64)) to i32)]
define i32 @main(i32 %0, i8** nocapture %1) {
%3 = alloca [0 x i8]
%4 = getelementptr inbounds [0 x i8], [0 x i8]* %3, i64 0, i64 0
%5 = icmp slt i32 %0, 2
br i1 %5, label %6, label %8
6: ; preds = %2
%7 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([44 x i8], [44 x i8]* @str.30, i64 0, i64 0))
br label %31
8: ; preds = %2
%9 = getelementptr inbounds i8*, i8** %1, i64 1
%10 = load i8*, i8** %9
%11 = tail call i32 @atoi(i8* %10)
%12 = icmp ugt i32 %11, 36
br i1 %12, label %13, label %15
13: ; preds = %8
%14 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([32 x i8], [32 x i8]* @str, i64 0, i64 0))
br label %15
15: ; preds = %8, %13
%16 = icmp slt i32 %11, 10
br i1 %16, label %17, label %20
17: ; preds = %15
%18 = load i8*, i8** %9
%19 = call i32 @strcpy(i8* %4, i8* %18)
br label %20
20: ; preds = %17, %15
%21 = add i32 %11, -10
%22 = icmp ult i32 %21, 26
br i1 %22, label %23, label %28
23: ; preds = %20
%24 = sext i32 %21 to i64
%25 = shl i64 %24, 2
%26 = call i8* @llvm.load.relative.i64(i8* bitcast ([26 x i32]* @reltable.main to i8*), i64 %25)
%27 = call i32 @strcpy(i8* %4, i8* %26)
br label %28
28: ; preds = %20, %23
%29 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([27 x i8], [27 x i8]* @.str.28, i64 0, i64 0), i32 %11, i8* %4)
%30 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([44 x i8], [44 x i8]* @.str.29, i64 0, i64 0), i8* %4)
br label %31
31: ; preds = %28, %6
%32 = phi i32 [ 0, %6 ], [ 1, %28 ]
ret i32 %32
}