#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 scanf(char *, int *);
int main() {
  int inst;
  char *opcodes1[] = {"adds", "subs"};
  char *opcodes2[] = {"ands", "eors", "lsls", "lsrs", "asrs", "adcs",
                      "sbcs", "rors", "tst",  "rsbs", "cmp",  "cmn",
                      "orrs", "muls", "bics", "mvns"};
  char *regnames[] = {"r0", "r1", "r2",  "r3",  "r4",  "r5", "r6", "r7",
                      "r8", "r9", "r10", "r11", "r12", "sp", "lr", "pc"};
  printf(".text\n.syntax unified\n.thumb\n");
  while (scanf("%x", &inst) == 1) {
    switch (inst >> 10) {
    case 6:
      printf("\t %s, %s, %s, %s \n", opcodes1[(((inst) >> 9) & 0x1)],
             regnames[(((inst) >> 6) & 0x3)], regnames[(((inst) >> 3) & 0x3)],
             regnames[(inst & 0x3)]);
      break;
    case 16:
      printf("\t %s, %s, %s\n", opcodes2[(((inst) >> 6) & 0x4)],
             regnames[(((inst) >> 3) & 0x3)], regnames[(inst & 0x3)]);
      break;
    default:
      printf("not legal number");
      break;
    }
  }
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x130,%rsp
movl   $0x0,-0x4(%rbp)
mov    0x2bc7(%rip),%rax
mov    %rax,-0x20(%rbp)
mov    0x2bc4(%rip),%rax
mov    %rax,-0x18(%rbp)
lea    -0xa0(%rbp),%rdi
lea    0x2bba(%rip),%rsi
mov    $0x80,%edx
call   1040 <memcpy@plt>
lea    -0x120(%rbp),%rdi
lea    0x2c22(%rip),%rsi
mov    $0x80,%edx
call   1040 <memcpy@plt>
lea    0xefb(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
lea    0xf0b(%rip),%rdi
lea    -0x8(%rbp),%rsi
call   1050 <scanf@plt>
cmp    $0x1,%eax
jne    1292 <main+0x162>
mov    -0x8(%rbp),%eax
sar    $0xa,%eax
mov    %eax,-0x124(%rbp)
sub    $0x6,%eax
je     11dd <main+0xad>
jmp    11c9 <main+0x99>
mov    -0x124(%rbp),%eax
sub    $0x10,%eax
je     1236 <main+0x106>
jmp    127f <main+0x14f>
mov    -0x8(%rbp),%eax
sar    $0x9,%eax
and    $0x1,%eax
cltq
mov    -0x20(%rbp,%rax,8),%rsi
mov    -0x8(%rbp),%eax
sar    $0x6,%eax
and    $0x3,%eax
cltq
mov    -0x120(%rbp,%rax,8),%rdx
ff
mov    -0x8(%rbp),%eax
sar    $0x3,%eax
and    $0x3,%eax
cltq
mov    -0x120(%rbp,%rax,8),%rcx
ff
mov    -0x8(%rbp),%eax
and    $0x3,%eax
cltq
mov    -0x120(%rbp,%rax,8),%r8
ff
lea    0xe81(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    128d <main+0x15d>
mov    -0x8(%rbp),%eax
sar    $0x6,%eax
and    $0x4,%eax
cltq
mov    -0xa0(%rbp,%rax,8),%rsi
ff
mov    -0x8(%rbp),%eax
sar    $0x3,%eax
and    $0x3,%eax
cltq
mov    -0x120(%rbp,%rax,8),%rdx
ff
mov    -0x8(%rbp),%eax
and    $0x3,%eax
cltq
mov    -0x120(%rbp,%rax,8),%rcx
ff
lea    0xe4b(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    128d <main+0x15d>
lea    0xe46(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
jmp    1196 <main+0x66>
mov    -0x4(%rbp),%eax
add    $0x130,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
push   %rax
lea    0xf7d(%rip),%rdi
call   1030 <puts@plt>
lea    0xf3c(%rip),%rdi
lea    0x4(%rsp),%rsi
call   1050 <scanf@plt>
cmp    $0x1,%eax
jne    1246 <main+0x116>
lea    0xf7c(%rip),%rbp
lea    0x2c31(%rip),%r14
lea    0xf14(%rip),%r15
lea    0x4(%rsp),%rbx
lea    0xf5a(%rip),%r12
lea    0xf25(%rip),%r13
jmp    11ae <main+0x7e>
nopl   0x0(%rax,%rax,1)
mov    %r13,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    %r15,%rdi
mov    %rbx,%rsi
call   1050 <scanf@plt>
cmp    $0x1,%eax
jne    1246 <main+0x116>
mov    0x4(%rsp),%eax
mov    %eax,%ecx
sar    $0xa,%ecx
cmp    $0x10,%ecx
je     1210 <main+0xe0>
cmp    $0x6,%ecx
jne    1190 <main+0x60>
mov    %rax,%rcx
shr    $0x7,%rcx
and    $0x4,%ecx
movslq (%rcx,%r12,1),%rsi
add    %r12,%rsi
mov    %rax,%rcx
shr    $0x3,%rcx
and    $0x18,%ecx
mov    (%rcx,%r14,1),%rdx
mov    %eax,%ecx
shr    $0x3,%ecx
and    $0x3,%ecx
mov    (%r14,%rcx,8),%rcx
and    $0x3,%eax
mov    (%r14,%rax,8),%r8
lea    0xe93(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
jmp    119a <main+0x6a>
cs nopw 0x0(%rax,%rax,1)
nopl   (%rax)
mov    %eax,%ecx
shr    $0x6,%ecx
and    $0x4,%ecx
movslq 0x0(%rbp,%rcx,4),%rsi
add    %rbp,%rsi
mov    %eax,%ecx
shr    $0x3,%ecx
and    $0x3,%ecx
mov    (%r14,%rcx,8),%rdx
and    $0x3,%eax
mov    (%r14,%rax,8),%rcx
lea    0xe66(%rip),%rdi
xor    %eax,%eax
call   1040 <printf@plt>
jmp    119a <main+0x6a>
xor    %eax,%eax
add    $0x8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [5 x i8] c"adds\00"
@.str.1 = [5 x i8] c"subs\00"
@__const.main.opcodes1 = [2 x i8*] [i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i32 0, i32 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i32 0, i32 0)]
@.str.2 = [5 x i8] c"ands\00"
@.str.3 = [5 x i8] c"eors\00"
@.str.4 = [5 x i8] c"lsls\00"
@.str.5 = [5 x i8] c"lsrs\00"
@.str.6 = [5 x i8] c"asrs\00"
@.str.7 = [5 x i8] c"adcs\00"
@.str.8 = [5 x i8] c"sbcs\00"
@.str.9 = [5 x i8] c"rors\00"
@.str.10 = [4 x i8] c"tst\00"
@.str.11 = [5 x i8] c"rsbs\00"
@.str.12 = [4 x i8] c"cmp\00"
@.str.13 = [4 x i8] c"cmn\00"
@.str.14 = [5 x i8] c"orrs\00"
@.str.15 = [5 x i8] c"muls\00"
@.str.16 = [5 x i8] c"bics\00"
@.str.17 = [5 x i8] c"mvns\00"
@__const.main.opcodes2 = [16 x i8*] [i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i32 0, i32 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i32 0, i32 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.4, i32 0, i32 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.5, i32 0, i32 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.6, i32 0, i32 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.7, i32 0, i32 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.8, i32 0, i32 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.9, i32 0, i32 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.10, i32 0, i32 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.11, i32 0, i32 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.12, i32 0, i32 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.13, i32 0, i32 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.14, i32 0, i32 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.15, i32 0, i32 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.16, i32 0, i32 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.17, i32 0, i32 0)]
@.str.18 = [3 x i8] c"r0\00"
@.str.19 = [3 x i8] c"r1\00"
@.str.20 = [3 x i8] c"r2\00"
@.str.21 = [3 x i8] c"r3\00"
@.str.22 = [3 x i8] c"r4\00"
@.str.23 = [3 x i8] c"r5\00"
@.str.24 = [3 x i8] c"r6\00"
@.str.25 = [3 x i8] c"r7\00"
@.str.26 = [3 x i8] c"r8\00"
@.str.27 = [3 x i8] c"r9\00"
@.str.28 = [4 x i8] c"r10\00"
@.str.29 = [4 x i8] c"r11\00"
@.str.30 = [4 x i8] c"r12\00"
@.str.31 = [3 x i8] c"sp\00"
@.str.32 = [3 x i8] c"lr\00"
@.str.33 = [3 x i8] c"pc\00"
@__const.main.regnames = [16 x i8*] [i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.18, i32 0, i32 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.19, i32 0, i32 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.20, i32 0, i32 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.21, i32 0, i32 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.22, i32 0, i32 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.23, i32 0, i32 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.24, i32 0, i32 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.25, i32 0, i32 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.26, i32 0, i32 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.27, i32 0, i32 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.28, i32 0, i32 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.29, i32 0, i32 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.30, i32 0, i32 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.31, i32 0, i32 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.32, i32 0, i32 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.33, i32 0, i32 0)]
@.str.34 = [30 x i8] c".text\0A.syntax unified\0A.thumb\0A\00"
@.str.35 = [3 x i8] c"%x\00"
@.str.36 = [19 x i8] c"\09 %s, %s, %s, %s \0A\00"
@.str.37 = [14 x i8] c"\09 %s, %s, %s\0A\00"
@.str.38 = [17 x i8] c"not legal number\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca [2 x i8*]
%4 = alloca [16 x i8*]
%5 = alloca [16 x i8*]
store i32 0, i32* %1
%6 = bitcast [2 x i8*]* %3 to i8*
%7 = bitcast [16 x i8*]* %4 to i8*
%8 = bitcast [16 x i8*]* %5 to i8*
%9 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.34, i64 0, i64 0))
br label %10
10: ; preds = %62, %0
%11 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.35, i64 0, i64 0), i32* %2)
%12 = icmp eq i32 %11, 1
br i1 %12, label %13, label %63
13: ; preds = %10
%14 = load i32, i32* %2
%15 = ashr i32 %14, 10
switch i32 %15, label %60 [
i32 6, label %16
i32 16, label %41
]
16: ; preds = %13
%17 = load i32, i32* %2
%18 = ashr i32 %17, 9
%19 = and i32 %18, 1
%20 = sext i32 %19 to i64
%21 = getelementptr inbounds [2 x i8*], [2 x i8*]* %3, i64 0, i64 %20
%22 = load i8*, i8** %21
%23 = load i32, i32* %2
%24 = ashr i32 %23, 6
%25 = and i32 %24, 3
%26 = sext i32 %25 to i64
%27 = getelementptr inbounds [16 x i8*], [16 x i8*]* %5, i64 0, i64 %26
%28 = load i8*, i8** %27
%29 = load i32, i32* %2
%30 = ashr i32 %29, 3
%31 = and i32 %30, 3
%32 = sext i32 %31 to i64
%33 = getelementptr inbounds [16 x i8*], [16 x i8*]* %5, i64 0, i64 %32
%34 = load i8*, i8** %33
%35 = load i32, i32* %2
%36 = and i32 %35, 3
%37 = sext i32 %36 to i64
%38 = getelementptr inbounds [16 x i8*], [16 x i8*]* %5, i64 0, i64 %37
%39 = load i8*, i8** %38
%40 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([19 x i8], [19 x i8]* @.str.36, i64 0, i64 0), i8* %22, i8* %28, i8* %34, i8* %39)
br label %62
41: ; preds = %13
%42 = load i32, i32* %2
%43 = ashr i32 %42, 6
%44 = and i32 %43, 4
%45 = sext i32 %44 to i64
%46 = getelementptr inbounds [16 x i8*], [16 x i8*]* %4, i64 0, i64 %45
%47 = load i8*, i8** %46
%48 = load i32, i32* %2
%49 = ashr i32 %48, 3
%50 = and i32 %49, 3
%51 = sext i32 %50 to i64
%52 = getelementptr inbounds [16 x i8*], [16 x i8*]* %5, i64 0, i64 %51
%53 = load i8*, i8** %52
%54 = load i32, i32* %2
%55 = and i32 %54, 3
%56 = sext i32 %55 to i64
%57 = getelementptr inbounds [16 x i8*], [16 x i8*]* %5, i64 0, i64 %56
%58 = load i8*, i8** %57
%59 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.37, i64 0, i64 0), i8* %47, i8* %53, i8* %58)
br label %62
60: ; preds = %13
%61 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([17 x i8], [17 x i8]* @.str.38, i64 0, i64 0))
br label %62
62: ; preds = %60, %41, %16
br label %10
63: ; preds = %10
%64 = load i32, i32* %1
ret i32 %64
}

LLVM IR (-O2):
@.str = [5 x i8] c"adds\00"
@.str.1 = [5 x i8] c"subs\00"
@reltable.main = [2 x i32] [i32 trunc (i64 sub (i64 ptrtoint ([5 x i8]* @.str to i64), i64 ptrtoint ([2 x i32]* @reltable.main to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([5 x i8]* @.str.1 to i64), i64 ptrtoint ([2 x i32]* @reltable.main to i64)) to i32)]
@.str.2 = [5 x i8] c"ands\00"
@.str.3 = [5 x i8] c"eors\00"
@.str.4 = [5 x i8] c"lsls\00"
@.str.5 = [5 x i8] c"lsrs\00"
@.str.6 = [5 x i8] c"asrs\00"
@.str.7 = [5 x i8] c"adcs\00"
@.str.8 = [5 x i8] c"sbcs\00"
@.str.9 = [5 x i8] c"rors\00"
@.str.10 = [4 x i8] c"tst\00"
@.str.11 = [5 x i8] c"rsbs\00"
@.str.12 = [4 x i8] c"cmp\00"
@.str.13 = [4 x i8] c"cmn\00"
@.str.14 = [5 x i8] c"orrs\00"
@.str.15 = [5 x i8] c"muls\00"
@.str.16 = [5 x i8] c"bics\00"
@.str.17 = [5 x i8] c"mvns\00"
@reltable.main.39 = [16 x i32] [i32 trunc (i64 sub (i64 ptrtoint ([5 x i8]* @.str.2 to i64), i64 ptrtoint ([16 x i32]* @reltable.main.39 to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([5 x i8]* @.str.3 to i64), i64 ptrtoint ([16 x i32]* @reltable.main.39 to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([5 x i8]* @.str.4 to i64), i64 ptrtoint ([16 x i32]* @reltable.main.39 to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([5 x i8]* @.str.5 to i64), i64 ptrtoint ([16 x i32]* @reltable.main.39 to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([5 x i8]* @.str.6 to i64), i64 ptrtoint ([16 x i32]* @reltable.main.39 to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([5 x i8]* @.str.7 to i64), i64 ptrtoint ([16 x i32]* @reltable.main.39 to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([5 x i8]* @.str.8 to i64), i64 ptrtoint ([16 x i32]* @reltable.main.39 to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([5 x i8]* @.str.9 to i64), i64 ptrtoint ([16 x i32]* @reltable.main.39 to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([4 x i8]* @.str.10 to i64), i64 ptrtoint ([16 x i32]* @reltable.main.39 to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([5 x i8]* @.str.11 to i64), i64 ptrtoint ([16 x i32]* @reltable.main.39 to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([4 x i8]* @.str.12 to i64), i64 ptrtoint ([16 x i32]* @reltable.main.39 to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([4 x i8]* @.str.13 to i64), i64 ptrtoint ([16 x i32]* @reltable.main.39 to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([5 x i8]* @.str.14 to i64), i64 ptrtoint ([16 x i32]* @reltable.main.39 to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([5 x i8]* @.str.15 to i64), i64 ptrtoint ([16 x i32]* @reltable.main.39 to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([5 x i8]* @.str.16 to i64), i64 ptrtoint ([16 x i32]* @reltable.main.39 to i64)) to i32), i32 trunc (i64 sub (i64 ptrtoint ([5 x i8]* @.str.17 to i64), i64 ptrtoint ([16 x i32]* @reltable.main.39 to i64)) to i32)]
@.str.18 = [3 x i8] c"r0\00"
@.str.19 = [3 x i8] c"r1\00"
@.str.20 = [3 x i8] c"r2\00"
@.str.21 = [3 x i8] c"r3\00"
@.str.22 = [3 x i8] c"r4\00"
@.str.23 = [3 x i8] c"r5\00"
@.str.24 = [3 x i8] c"r6\00"
@.str.25 = [3 x i8] c"r7\00"
@.str.26 = [3 x i8] c"r8\00"
@.str.27 = [3 x i8] c"r9\00"
@.str.28 = [4 x i8] c"r10\00"
@.str.29 = [4 x i8] c"r11\00"
@.str.30 = [4 x i8] c"r12\00"
@.str.31 = [3 x i8] c"sp\00"
@.str.32 = [3 x i8] c"lr\00"
@.str.33 = [3 x i8] c"pc\00"
@__const.main.regnames = [16 x i8*] [i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.18, i32 0, i32 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.19, i32 0, i32 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.20, i32 0, i32 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.21, i32 0, i32 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.22, i32 0, i32 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.23, i32 0, i32 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.24, i32 0, i32 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.25, i32 0, i32 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.26, i32 0, i32 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.27, i32 0, i32 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.28, i32 0, i32 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.29, i32 0, i32 0), i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.30, i32 0, i32 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.31, i32 0, i32 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.32, i32 0, i32 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.33, i32 0, i32 0)]
@.str.35 = [3 x i8] c"%x\00"
@.str.36 = [19 x i8] c"\09 %s, %s, %s, %s \0A\00"
@.str.37 = [14 x i8] c"\09 %s, %s, %s\0A\00"
@.str.38 = [17 x i8] c"not legal number\00"
@str = [29 x i8] c".text\0A.syntax unified\0A.thumb\00"
define i32 @main() {
%1 = alloca i32
%2 = bitcast i32* %1 to i8*
%3 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([29 x i8], [29 x i8]* @str, i64 0, i64 0))
%4 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.35, i64 0, i64 0), i32* %1)
%5 = icmp eq i32 %4, 1
br i1 %5, label %6, label %51
6: ; preds = %0, %48
%7 = load i32, i32* %1
%8 = ashr i32 %7, 10
switch i32 %8, label %46 [
i32 6, label %9
i32 16, label %30
]
9: ; preds = %6
%10 = lshr i32 %7, 9
%11 = and i32 %10, 1
%12 = zext i32 %11 to i64
%13 = shl i64 %12, 2
%14 = call i8* @llvm.load.relative.i64(i8* bitcast ([2 x i32]* @reltable.main to i8*), i64 %13)
%15 = lshr i32 %7, 6
%16 = and i32 %15, 3
%17 = zext i32 %16 to i64
%18 = getelementptr inbounds [16 x i8*], [16 x i8*]* @__const.main.regnames, i64 0, i64 %17
%19 = load i8*, i8** %18
%20 = lshr i32 %7, 3
%21 = and i32 %20, 3
%22 = zext i32 %21 to i64
%23 = getelementptr inbounds [16 x i8*], [16 x i8*]* @__const.main.regnames, i64 0, i64 %22
%24 = load i8*, i8** %23
%25 = and i32 %7, 3
%26 = zext i32 %25 to i64
%27 = getelementptr inbounds [16 x i8*], [16 x i8*]* @__const.main.regnames, i64 0, i64 %26
%28 = load i8*, i8** %27
%29 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([19 x i8], [19 x i8]* @.str.36, i64 0, i64 0), i8* %14, i8* %19, i8* %24, i8* %28)
br label %48
30: ; preds = %6
%31 = lshr i32 %7, 6
%32 = and i32 %31, 4
%33 = zext i32 %32 to i64
%34 = shl i64 %33, 2
%35 = call i8* @llvm.load.relative.i64(i8* bitcast ([16 x i32]* @reltable.main.39 to i8*), i64 %34)
%36 = lshr i32 %7, 3
%37 = and i32 %36, 3
%38 = zext i32 %37 to i64
%39 = getelementptr inbounds [16 x i8*], [16 x i8*]* @__const.main.regnames, i64 0, i64 %38
%40 = load i8*, i8** %39
%41 = and i32 %7, 3
%42 = zext i32 %41 to i64
%43 = getelementptr inbounds [16 x i8*], [16 x i8*]* @__const.main.regnames, i64 0, i64 %42
%44 = load i8*, i8** %43
%45 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([14 x i8], [14 x i8]* @.str.37, i64 0, i64 0), i8* %35, i8* %40, i8* %44)
br label %48
46: ; preds = %6
%47 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([17 x i8], [17 x i8]* @.str.38, i64 0, i64 0))
br label %48
48: ; preds = %46, %30, %9
%49 = call i32 @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.35, i64 0, i64 0), i32* %1)
%50 = icmp eq i32 %49, 1
br i1 %50, label %6, label %51
51: ; preds = %48, %0
ret i32 0
}