#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 */
typedef int uint64_t;
typedef int uint32_t;

/* Variables and functions */
int /*<<< orphan*/ exit(int /*<<< orphan*/);
int /*<<< orphan*/ print_128(int *);
int /*<<< orphan*/ printf(char *, ...);
scalar_t__ read_128(char *, int *);
scalar_t__ sscanf(char *, char *, int *);
int /*<<< orphan*/ *strchr(char *, char);
int /*<<< orphan*/ usage(char *);
int main(int argc, char **argv) {
  int hex, w;
  uint32_t a, b, c, top;
  uint64_t a64, b64, c64;
  uint64_t a128[2], b128[2], c128[2];
  char *format;
  if (argc != 4)
    usage(NULL);
  if (sscanf(argv[3], "%d", &w) == 0)
    usage("Bad w\n");
  if (w <= 0 || (w > 32 && w != 64 && w != 128))
    usage("Bad w");
  hex = (strchr(argv[3], 'h') != NULL);
  if (!hex && w == 128)
    usage(NULL);
  if (w <= 32) {
    format = (hex) ? "%x" : "%u";
    if (sscanf(argv[1], format, &a) == 0)
      usage("Bad a\n");
    if (sscanf(argv[2], format, &b) == 0)
      usage("Bad b\n");
    if (w < 32) {
      top = (w == 31) ? 0x80000000 : (1 << w);
      if (w != 32 && a >= top)
        usage("a is too large\n");
      if (w != 32 && b >= top)
        usage("b is too large\n");
    }
    c = a ^ b;
    printf(format, c);
    printf("\n");
  } else if (w == 64) {
    format = (hex) ? "%llx" : "%llu";
    if (sscanf(argv[1], format, &a64) == 0)
      usage("Bad a\n");
    if (sscanf(argv[2], format, &b64) == 0)
      usage("Bad b\n");
    c64 = a64 ^ b64;
    printf(format, c64);
    printf("\n");
  } else if (w == 128) {
    if (read_128(argv[1], a128) == 0)
      usage("Bad a\n");
    if (read_128(argv[2], b128) == 0)
      usage("Bad b\n");
    c128[0] = a128[0] ^ b128[0];
    c128[1] = a128[1] ^ b128[1];
    print_128(c128);
  }
  exit(0);
}


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)
cmpl   $0x4,-0x8(%rbp)
je     1199 <main+0x29>
xor    %eax,%eax
mov    %eax,%edi
call   1070 <usage@plt>
mov    -0x10(%rbp),%rax
mov    0x18(%rax),%rdi
lea    0xe58(%rip),%rsi
lea    -0x18(%rbp),%rdx
call   1060 <sscanf@plt>
cmp    $0x0,%rax
jne    11c7 <main+0x57>
lea    0xe41(%rip),%rdi
call   1070 <usage@plt>
cmpl   $0x0,-0x18(%rbp)
jle    11f2 <main+0x82>
cmpl   $0x20,-0x18(%rbp)
jle    11fe <main+0x8e>
cmpl   $0x40,-0x18(%rbp)
je     11fe <main+0x8e>
cmpl   $0x80,-0x18(%rbp)
je     11fe <main+0x8e>
lea    0xe11(%rip),%rdi
call   1070 <usage@plt>
mov    -0x10(%rbp),%rax
mov    0x18(%rax),%rdi
mov    $0x68,%esi
call   1040 <strchr@plt>
cmp    $0x0,%rax
setne  %al
and    $0x1,%al
movzbl %al,%eax
mov    %eax,-0x14(%rbp)
cmpl   $0x0,-0x14(%rbp)
jne    123f <main+0xcf>
cmpl   $0x80,-0x18(%rbp)
jne    123f <main+0xcf>
xor    %eax,%eax
mov    %eax,%edi
call   1070 <usage@plt>
cmpl   $0x20,-0x18(%rbp)
jg     1362 <main+0x1f2>
mov    -0x14(%rbp),%edx
lea    0xdc0(%rip),%rax
lea    0xdb6(%rip),%rcx
cmp    $0x0,%edx
cmovne %rcx,%rax
mov    %rax,-0x58(%rbp)
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rdi
mov    -0x58(%rbp),%rsi
lea    -0x1c(%rbp),%rdx
call   1060 <sscanf@plt>
cmp    $0x0,%rax
jne    1290 <main+0x120>
lea    0xd8b(%rip),%rdi
call   1070 <usage@plt>
mov    -0x10(%rbp),%rax
mov    0x10(%rax),%rdi
mov    -0x58(%rbp),%rsi
lea    -0x20(%rbp),%rdx
call   1060 <sscanf@plt>
cmp    $0x0,%rax
jne    12bb <main+0x14b>
lea    0xd67(%rip),%rdi
call   1070 <usage@plt>
cmpl   $0x20,-0x18(%rbp)
jge    1338 <main+0x1c8>
cmpl   $0x1f,-0x18(%rbp)
jne    12dc <main+0x16c>
mov    $0x80000000,%eax
mov    %eax,-0x5c(%rbp)
jmp    12e9 <main+0x179>
mov    -0x18(%rbp),%ecx
mov    $0x1,%eax
shl    %cl,%eax
mov    %eax,-0x5c(%rbp)
mov    -0x5c(%rbp),%eax
mov    %eax,-0x28(%rbp)
cmpl   $0x20,-0x18(%rbp)
je     1311 <main+0x1a1>
mov    -0x1c(%rbp),%eax
cmp    -0x28(%rbp),%eax
jl     1311 <main+0x1a1>
lea    0xd18(%rip),%rdi
call   1070 <usage@plt>
cmpl   $0x20,-0x18(%rbp)
je     1333 <main+0x1c3>
mov    -0x20(%rbp),%eax
cmp    -0x28(%rbp),%eax
jl     1333 <main+0x1c3>
lea    0xd06(%rip),%rdi
call   1070 <usage@plt>
jmp    1338 <main+0x1c8>
mov    -0x1c(%rbp),%eax
xor    -0x20(%rbp),%eax
mov    %eax,-0x24(%rbp)
mov    -0x58(%rbp),%rdi
mov    -0x24(%rbp),%esi
mov    $0x0,%al
call   1050 <printf@plt>
lea    0xcc5(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
jmp    1488 <main+0x318>
cmpl   $0x40,-0x18(%rbp)
jne    1408 <main+0x298>
mov    -0x14(%rbp),%edx
lea    0xcd3(%rip),%rax
lea    0xcc7(%rip),%rcx
cmp    $0x0,%edx
cmovne %rcx,%rax
mov    %rax,-0x58(%rbp)
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rdi
mov    -0x58(%rbp),%rsi
lea    -0x2c(%rbp),%rdx
call   1060 <sscanf@plt>
cmp    $0x0,%rax
jne    13b3 <main+0x243>
lea    0xc68(%rip),%rdi
call   1070 <usage@plt>
mov    -0x10(%rbp),%rax
mov    0x10(%rax),%rdi
mov    -0x58(%rbp),%rsi
lea    -0x30(%rbp),%rdx
call   1060 <sscanf@plt>
cmp    $0x0,%rax
jne    13de <main+0x26e>
lea    0xc44(%rip),%rdi
call   1070 <usage@plt>
mov    -0x2c(%rbp),%eax
xor    -0x30(%rbp),%eax
mov    %eax,-0x34(%rbp)
mov    -0x58(%rbp),%rdi
mov    -0x34(%rbp),%esi
mov    $0x0,%al
call   1050 <printf@plt>
lea    0xc1f(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
jmp    1483 <main+0x313>
cmpl   $0x80,-0x18(%rbp)
jne    147e <main+0x30e>
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rdi
lea    -0x3c(%rbp),%rsi
call   1030 <read_128@plt>
cmp    $0x0,%rax
jne    143c <main+0x2cc>
lea    0xbdf(%rip),%rdi
call   1070 <usage@plt>
mov    -0x10(%rbp),%rax
mov    0x10(%rax),%rdi
lea    -0x44(%rbp),%rsi
call   1030 <read_128@plt>
cmp    $0x0,%rax
jne    1463 <main+0x2f3>
lea    0xbbf(%rip),%rdi
call   1070 <usage@plt>
mov    -0x3c(%rbp),%eax
xor    -0x44(%rbp),%eax
mov    %eax,-0x4c(%rbp)
mov    -0x38(%rbp),%eax
xor    -0x40(%rbp),%eax
mov    %eax,-0x48(%rbp)
lea    -0x4c(%rbp),%rdi
call   1080 <print_128@plt>
jmp    1483 <main+0x313>
jmp    1488 <main+0x318>
xor    %edi,%edi
call   1090 <exit@plt>

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r14
push   %rbx
sub    $0x20,%rsp
mov    %rsi,%r14
cmp    $0x4,%edi
je     1197 <main+0x17>
xor    %edi,%edi
call   1080 <usage@plt>
mov    0x18(%r14),%rdi
lea    0xe5e(%rip),%rsi
lea    0x4(%rsp),%rdx
call   1070 <sscanf@plt>
test   %rax,%rax
jne    11bd <main+0x3d>
lea    0xe4b(%rip),%rdi
call   1080 <usage@plt>
mov    0x4(%rsp),%eax
test   %eax,%eax
jg     11d3 <main+0x53>
lea    0xe3e(%rip),%rdi
call   1080 <usage@plt>
jmp    11e4 <main+0x64>
cmp    $0x21,%eax
jb     11e4 <main+0x64>
cmp    $0x40,%eax
je     11e4 <main+0x64>
cmp    $0x80,%eax
jne    11c5 <main+0x45>
mov    0x18(%r14),%rdi
mov    $0x68,%esi
call   1050 <strchr@plt>
mov    %rax,%rbx
mov    0x4(%rsp),%eax
test   %rbx,%rbx
jne    1210 <main+0x90>
cmp    $0x80,%eax
jne    1210 <main+0x90>
xor    %edi,%edi
call   1080 <usage@plt>
mov    0x4(%rsp),%eax
cmp    $0x20,%eax
jg     12bb <main+0x13b>
test   %rbx,%rbx
lea    0xdf0(%rip),%rax
lea    0xde6(%rip),%rbx
cmove  %rax,%rbx
mov    0x8(%r14),%rdi
lea    0x10(%rsp),%rdx
mov    %rbx,%rsi
call   1070 <sscanf@plt>
test   %rax,%rax
jne    1250 <main+0xd0>
lea    0xdcb(%rip),%rdi
call   1080 <usage@plt>
mov    0x10(%r14),%rdi
lea    0x8(%rsp),%rdx
mov    %rbx,%rsi
call   1070 <sscanf@plt>
test   %rax,%rax
jne    1272 <main+0xf2>
lea    0xdb0(%rip),%rdi
call   1080 <usage@plt>
mov    0x4(%rsp),%ecx
cmp    $0x1f,%ecx
jg     1328 <main+0x1a8>
mov    $0x1,%eax
shl    %cl,%eax
cmp    $0x1f,%ecx
mov    $0x80000000,%ebp
cmovne %eax,%ebp
cmp    %ebp,0x10(%rsp)
jl     12a7 <main+0x127>
lea    0xd86(%rip),%rdi
call   1080 <usage@plt>
mov    0x4(%rsp),%ecx
cmp    $0x20,%ecx
je     1328 <main+0x1a8>
cmp    %ebp,0x8(%rsp)
jl     1328 <main+0x1a8>
lea    0xd7b(%rip),%rdi
jmp    1323 <main+0x1a3>
cmp    $0x80,%eax
je     134b <main+0x1cb>
cmp    $0x40,%eax
jne    13ab <main+0x22b>
test   %rbx,%rbx
lea    0xd70(%rip),%rax
lea    0xd64(%rip),%rbx
cmove  %rax,%rbx
mov    0x8(%r14),%rdi
lea    0x10(%rsp),%rdx
mov    %rbx,%rsi
call   1070 <sscanf@plt>
test   %rax,%rax
jne    1306 <main+0x186>
lea    0xd15(%rip),%rdi
call   1080 <usage@plt>
mov    0x10(%r14),%rdi
lea    0x8(%rsp),%rdx
mov    %rbx,%rsi
call   1070 <sscanf@plt>
test   %rax,%rax
jne    1328 <main+0x1a8>
lea    0xcfa(%rip),%rdi
call   1080 <usage@plt>
mov    0x8(%rsp),%esi
xor    0x10(%rsp),%esi
mov    %rbx,%rdi
xor    %eax,%eax
call   1060 <printf@plt>
mov    $0xa,%edi
call   1030 <putchar@plt>
xor    %edi,%edi
call   10a0 <exit@plt>
mov    0x8(%r14),%rdi
lea    0x10(%rsp),%rsi
call   1040 <read_128@plt>
test   %rax,%rax
jne    136a <main+0x1ea>
lea    0xcb1(%rip),%rdi
call   1080 <usage@plt>
mov    0x10(%r14),%rdi
lea    0x8(%rsp),%rsi
call   1040 <read_128@plt>
test   %rax,%rax
jne    1389 <main+0x209>
lea    0xc99(%rip),%rdi
call   1080 <usage@plt>
mov    0x8(%rsp),%eax
mov    0xc(%rsp),%ecx
xor    0x10(%rsp),%eax
mov    %eax,0x18(%rsp)
xor    0x14(%rsp),%ecx
mov    %ecx,0x1c(%rsp)
lea    0x18(%rsp),%rdi
call   1090 <print_128@plt>
xor    %edi,%edi
call   10a0 <exit@plt>

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

LLVM IR (-O2):
@.str = [3 x i8] c"%d\00"
@.str.1 = [7 x i8] c"Bad w\0A\00"
@.str.2 = [6 x i8] c"Bad w\00"
@.str.3 = [3 x i8] c"%x\00"
@.str.4 = [3 x i8] c"%u\00"
@.str.5 = [7 x i8] c"Bad a\0A\00"
@.str.6 = [7 x i8] c"Bad b\0A\00"
@.str.7 = [16 x i8] c"a is too large\0A\00"
@.str.8 = [16 x i8] c"b is too large\0A\00"
@.str.10 = [5 x i8] c"%llx\00"
@.str.11 = [5 x i8] c"%llu\00"
define i32 @main(i32 %0, i8** nocapture %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i32
%6 = alloca i32
%7 = alloca i32
%8 = alloca [2 x i32]
%9 = alloca [2 x i32]
%10 = alloca [2 x i32]
%11 = bitcast i32* %3 to i8*
%12 = bitcast i32* %4 to i8*
%13 = bitcast i32* %5 to i8*
%14 = bitcast i32* %6 to i8*
%15 = bitcast i32* %7 to i8*
%16 = bitcast [2 x i32]* %8 to i8*
%17 = bitcast [2 x i32]* %9 to i8*
%18 = bitcast [2 x i32]* %10 to i8*
%19 = icmp eq i32 %0, 4
br i1 %19, label %22, label %20
20: ; preds = %2
%21 = tail call i32 @usage(i8* null)
br label %22
22: ; preds = %20, %2
%23 = getelementptr inbounds i8*, i8** %1, i64 3
%24 = load i8*, i8** %23
%25 = call i64 @sscanf(i8* %24, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32* %3)
%26 = icmp eq i64 %25, 0
br i1 %26, label %27, label %29
27: ; preds = %22
%28 = call i32 @usage(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.1, i64 0, i64 0))
br label %29
29: ; preds = %27, %22
%30 = load i32, i32* %3
%31 = icmp slt i32 %30, 1
br i1 %31, label %36, label %32
32: ; preds = %29
%33 = freeze i32 %30
%34 = icmp ugt i32 %33, 32
br i1 %34, label %35, label %38
35: ; preds = %32
switch i32 %33, label %36 [
i32 128, label %38
i32 64, label %38
]
36: ; preds = %35, %29
%37 = call i32 @usage(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.2, i64 0, i64 0))
br label %38
38: ; preds = %35, %35, %32, %36
%39 = load i8*, i8** %23
%40 = call i32* @strchr(i8* %39, i8 signext 104)
%41 = icmp eq i32* %40, null
%42 = load i32, i32* %3
%43 = icmp eq i32 %42, 128
%44 = select i1 %41, i1 %43, i1 false
br i1 %44, label %45, label %48
45: ; preds = %38
%46 = call i32 @usage(i8* null)
%47 = load i32, i32* %3
br label %48
48: ; preds = %45, %38
%49 = phi i32 [ %47, %45 ], [ %42, %38 ]
%50 = icmp slt i32 %49, 33
br i1 %50, label %51, label %92
51: ; preds = %48
%52 = select i1 %41, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i64 0, i64 0)
%53 = getelementptr inbounds i8*, i8** %1, i64 1
%54 = load i8*, i8** %53
%55 = call i64 @sscanf(i8* %54, i8* %52, i32* %4)
%56 = icmp eq i64 %55, 0
br i1 %56, label %57, label %59
57: ; preds = %51
%58 = call i32 @usage(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.5, i64 0, i64 0))
br label %59
59: ; preds = %57, %51
%60 = getelementptr inbounds i8*, i8** %1, i64 2
%61 = load i8*, i8** %60
%62 = call i64 @sscanf(i8* %61, i8* %52, i32* %5)
%63 = icmp eq i64 %62, 0
br i1 %63, label %64, label %66
64: ; preds = %59
%65 = call i32 @usage(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.6, i64 0, i64 0))
br label %66
66: ; preds = %64, %59
%67 = load i32, i32* %3
%68 = icmp slt i32 %67, 32
br i1 %68, label %69, label %86
69: ; preds = %66
%70 = icmp eq i32 %67, 31
%71 = shl nuw i32 1, %67
%72 = select i1 %70, i32 -2147483648, i32 %71
%73 = load i32, i32* %4
%74 = icmp slt i32 %73, %72
br i1 %74, label %78, label %75
75: ; preds = %69
%76 = call i32 @usage(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.7, i64 0, i64 0))
%77 = load i32, i32* %3
br label %78
78: ; preds = %75, %69
%79 = phi i32 [ %77, %75 ], [ %67, %69 ]
%80 = icmp eq i32 %79, 32
%81 = load i32, i32* %5
%82 = icmp slt i32 %81, %72
%83 = select i1 %80, i1 true, i1 %82
br i1 %83, label %86, label %84
84: ; preds = %78
%85 = call i32 @usage(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.8, i64 0, i64 0))
br label %86
86: ; preds = %78, %84, %66
%87 = load i32, i32* %4
%88 = load i32, i32* %5
%89 = xor i32 %88, %87
%90 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) %52, i32 %89)
%91 = call i32 @putchar(i32 10)
br label %142
92: ; preds = %48
switch i32 %49, label %142 [
i32 64, label %93
i32 128, label %114
]
93: ; preds = %92
%94 = select i1 %41, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.11, i64 0, i64 0), i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.10, i64 0, i64 0)
%95 = getelementptr inbounds i8*, i8** %1, i64 1
%96 = load i8*, i8** %95
%97 = call i64 @sscanf(i8* %96, i8* %94, i32* %6)
%98 = icmp eq i64 %97, 0
br i1 %98, label %99, label %101
99: ; preds = %93
%100 = call i32 @usage(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.5, i64 0, i64 0))
br label %101
101: ; preds = %99, %93
%102 = getelementptr inbounds i8*, i8** %1, i64 2
%103 = load i8*, i8** %102
%104 = call i64 @sscanf(i8* %103, i8* %94, i32* %7)
%105 = icmp eq i64 %104, 0
br i1 %105, label %106, label %108
106: ; preds = %101
%107 = call i32 @usage(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.6, i64 0, i64 0))
br label %108
108: ; preds = %106, %101
%109 = load i32, i32* %6
%110 = load i32, i32* %7
%111 = xor i32 %110, %109
%112 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) %94, i32 %111)
%113 = call i32 @putchar(i32 10)
br label %142
114: ; preds = %92
%115 = getelementptr inbounds i8*, i8** %1, i64 1
%116 = load i8*, i8** %115
%117 = getelementptr inbounds [2 x i32], [2 x i32]* %8, i64 0, i64 0
%118 = call i64 @read_128(i8* %116, i32* %117)
%119 = icmp eq i64 %118, 0
br i1 %119, label %120, label %122
120: ; preds = %114
%121 = call i32 @usage(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.5, i64 0, i64 0))
br label %122
122: ; preds = %120, %114
%123 = getelementptr inbounds i8*, i8** %1, i64 2
%124 = load i8*, i8** %123
%125 = getelementptr inbounds [2 x i32], [2 x i32]* %9, i64 0, i64 0
%126 = call i64 @read_128(i8* %124, i32* %125)
%127 = icmp eq i64 %126, 0
br i1 %127, label %128, label %130
128: ; preds = %122
%129 = call i32 @usage(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.6, i64 0, i64 0))
br label %130
130: ; preds = %128, %122
%131 = load i32, i32* %117
%132 = load i32, i32* %125
%133 = xor i32 %132, %131
%134 = getelementptr inbounds [2 x i32], [2 x i32]* %10, i64 0, i64 0
store i32 %133, i32* %134
%135 = getelementptr inbounds [2 x i32], [2 x i32]* %8, i64 0, i64 1
%136 = load i32, i32* %135
%137 = getelementptr inbounds [2 x i32], [2 x i32]* %9, i64 0, i64 1
%138 = load i32, i32* %137
%139 = xor i32 %138, %136
%140 = getelementptr inbounds [2 x i32], [2 x i32]* %10, i64 0, i64 1
store i32 %139, i32* %140
%141 = call i32 @print_128(i32* %134)
br label %142
142: ; preds = %92, %108, %130, %86
%143 = call i32 @exit(i32 0)
unreachable
}