#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, al, bl, 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    $0x70,%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    -0x20(%rbp),%rdx
call   1060 <sscanf@plt>
cmp    $0x0,%rax
jne    11c7 <main+0x57>
lea    0xe41(%rip),%rdi
call   1070 <usage@plt>
cmpl   $0x0,-0x20(%rbp)
jle    11f2 <main+0x82>
cmpl   $0x20,-0x20(%rbp)
jle    11fe <main+0x8e>
cmpl   $0x40,-0x20(%rbp)
je     11fe <main+0x8e>
cmpl   $0x80,-0x20(%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,-0x20(%rbp)
jne    123f <main+0xcf>
xor    %eax,%eax
mov    %eax,%edi
call   1070 <usage@plt>
cmpl   $0x20,-0x20(%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,-0x60(%rbp)
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rdi
mov    -0x60(%rbp),%rsi
lea    -0x24(%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    -0x60(%rbp),%rsi
lea    -0x28(%rbp),%rdx
call   1060 <sscanf@plt>
cmp    $0x0,%rax
jne    12bb <main+0x14b>
lea    0xd67(%rip),%rdi
call   1070 <usage@plt>
cmpl   $0x20,-0x20(%rbp)
jge    1338 <main+0x1c8>
cmpl   $0x1f,-0x20(%rbp)
jne    12dc <main+0x16c>
mov    $0x80000000,%eax
mov    %eax,-0x64(%rbp)
jmp    12e9 <main+0x179>
mov    -0x20(%rbp),%ecx
mov    $0x1,%eax
shl    %cl,%eax
mov    %eax,-0x64(%rbp)
mov    -0x64(%rbp),%eax
mov    %eax,-0x30(%rbp)
cmpl   $0x20,-0x20(%rbp)
je     1311 <main+0x1a1>
mov    -0x24(%rbp),%eax
cmp    -0x30(%rbp),%eax
jl     1311 <main+0x1a1>
lea    0xd18(%rip),%rdi
call   1070 <usage@plt>
cmpl   $0x20,-0x20(%rbp)
je     1333 <main+0x1c3>
mov    -0x28(%rbp),%eax
cmp    -0x30(%rbp),%eax
jl     1333 <main+0x1c3>
lea    0xd06(%rip),%rdi
call   1070 <usage@plt>
jmp    1338 <main+0x1c8>
mov    -0x24(%rbp),%eax
xor    -0x28(%rbp),%eax
mov    %eax,-0x2c(%rbp)
mov    -0x60(%rbp),%rdi
mov    -0x2c(%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,-0x20(%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,-0x60(%rbp)
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rdi
mov    -0x60(%rbp),%rsi
lea    -0x34(%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    -0x60(%rbp),%rsi
lea    -0x38(%rbp),%rdx
call   1060 <sscanf@plt>
cmp    $0x0,%rax
jne    13de <main+0x26e>
lea    0xc44(%rip),%rdi
call   1070 <usage@plt>
mov    -0x34(%rbp),%eax
xor    -0x38(%rbp),%eax
mov    %eax,-0x3c(%rbp)
mov    -0x60(%rbp),%rdi
mov    -0x3c(%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,-0x20(%rbp)
jne    147e <main+0x30e>
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rdi
lea    -0x44(%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    -0x4c(%rbp),%rsi
call   1030 <read_128@plt>
cmp    $0x0,%rax
jne    1463 <main+0x2f3>
lea    0xbbf(%rip),%rdi
call   1070 <usage@plt>
mov    -0x44(%rbp),%eax
xor    -0x4c(%rbp),%eax
mov    %eax,-0x54(%rbp)
mov    -0x40(%rbp),%eax
xor    -0x48(%rbp),%eax
mov    %eax,-0x50(%rbp)
lea    -0x54(%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 i32
%16 = alloca i32
%17 = alloca [2 x i32]
%18 = alloca [2 x i32]
%19 = alloca [2 x i32]
%20 = alloca i8*
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
%21 = load i32, i32* %4
%22 = icmp ne i32 %21, 4
br i1 %22, label %23, label %25
23: ; preds = %2
%24 = call i32 @usage(i8* null)
br label %25
25: ; preds = %23, %2
%26 = load i8**, i8*** %5
%27 = getelementptr inbounds i8*, i8** %26, i64 3
%28 = load i8*, i8** %27
%29 = call i64 @sscanf(i8* %28, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32* %9)
%30 = icmp eq i64 %29, 0
br i1 %30, label %31, label %33
31: ; preds = %25
%32 = call i32 @usage(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.1, i64 0, i64 0))
br label %33
33: ; preds = %31, %25
%34 = load i32, i32* %9
%35 = icmp sle i32 %34, 0
br i1 %35, label %45, label %36
36: ; preds = %33
%37 = load i32, i32* %9
%38 = icmp sgt i32 %37, 32
br i1 %38, label %39, label %47
39: ; preds = %36
%40 = load i32, i32* %9
%41 = icmp ne i32 %40, 64
br i1 %41, label %42, label %47
42: ; preds = %39
%43 = load i32, i32* %9
%44 = icmp ne i32 %43, 128
br i1 %44, label %45, label %47
45: ; preds = %42, %33
%46 = call i32 @usage(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.2, i64 0, i64 0))
br label %47
47: ; preds = %45, %42, %39, %36
%48 = load i8**, i8*** %5
%49 = getelementptr inbounds i8*, i8** %48, i64 3
%50 = load i8*, i8** %49
%51 = call i32* @strchr(i8* %50, i8 signext 104)
%52 = icmp ne i32* %51, null
%53 = zext i1 %52 to i32
store i32 %53, i32* %6
%54 = load i32, i32* %6
%55 = icmp ne i32 %54, 0
br i1 %55, label %61, label %56
56: ; preds = %47
%57 = load i32, i32* %9
%58 = icmp eq i32 %57, 128
br i1 %58, label %59, label %61
59: ; preds = %56
%60 = call i32 @usage(i8* null)
br label %61
61: ; preds = %59, %56, %47
%62 = load i32, i32* %9
%63 = icmp sle i32 %62, 32
br i1 %63, label %64, label %124
64: ; preds = %61
%65 = load i32, i32* %6
%66 = icmp ne i32 %65, 0
%67 = zext i1 %66 to i64
%68 = select i1 %66, 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* %68, i8** %20
%69 = load i8**, i8*** %5
%70 = getelementptr inbounds i8*, i8** %69, i64 1
%71 = load i8*, i8** %70
%72 = load i8*, i8** %20
%73 = call i64 @sscanf(i8* %71, i8* %72, i32* %10)
%74 = icmp eq i64 %73, 0
br i1 %74, label %75, label %77
75: ; preds = %64
%76 = call i32 @usage(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.5, i64 0, i64 0))
br label %77
77: ; preds = %75, %64
%78 = load i8**, i8*** %5
%79 = getelementptr inbounds i8*, i8** %78, i64 2
%80 = load i8*, i8** %79
%81 = load i8*, i8** %20
%82 = call i64 @sscanf(i8* %80, i8* %81, i32* %11)
%83 = icmp eq i64 %82, 0
br i1 %83, label %84, label %86
84: ; preds = %77
%85 = call i32 @usage(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.6, i64 0, i64 0))
br label %86
86: ; preds = %84, %77
%87 = load i32, i32* %9
%88 = icmp slt i32 %87, 32
br i1 %88, label %89, label %116
89: ; preds = %86
%90 = load i32, i32* %9
%91 = icmp eq i32 %90, 31
br i1 %91, label %92, label %93
92: ; preds = %89
br label %96
93: ; preds = %89
%94 = load i32, i32* %9
%95 = shl i32 1, %94
br label %96
96: ; preds = %93, %92
%97 = phi i32 [ -2147483648, %92 ], [ %95, %93 ]
store i32 %97, i32* %13
%98 = load i32, i32* %9
%99 = icmp ne i32 %98, 32
br i1 %99, label %100, label %106
100: ; preds = %96
%101 = load i32, i32* %10
%102 = load i32, i32* %13
%103 = icmp sge i32 %101, %102
br i1 %103, label %104, label %106
104: ; preds = %100
%105 = call i32 @usage(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.7, i64 0, i64 0))
br label %106
106: ; preds = %104, %100, %96
%107 = load i32, i32* %9
%108 = icmp ne i32 %107, 32
br i1 %108, label %109, label %115
109: ; preds = %106
%110 = load i32, i32* %11
%111 = load i32, i32* %13
%112 = icmp sge i32 %110, %111
br i1 %112, label %113, label %115
113: ; preds = %109
%114 = call i32 @usage(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.8, i64 0, i64 0))
br label %115
115: ; preds = %113, %109, %106
br label %116
116: ; preds = %115, %86
%117 = load i32, i32* %10
%118 = load i32, i32* %11
%119 = xor i32 %117, %118
store i32 %119, i32* %12
%120 = load i8*, i8** %20
%121 = load i32, i32* %12
%122 = call i32 (i8*, ...) @printf(i8* %120, i32 %121)
%123 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.9, i64 0, i64 0))
br label %195
124: ; preds = %61
%125 = load i32, i32* %9
%126 = icmp eq i32 %125, 64
br i1 %126, label %127, label %157
127: ; preds = %124
%128 = load i32, i32* %6
%129 = icmp ne i32 %128, 0
%130 = zext i1 %129 to i64
%131 = select i1 %129, 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* %131, i8** %20
%132 = load i8**, i8*** %5
%133 = getelementptr inbounds i8*, i8** %132, i64 1
%134 = load i8*, i8** %133
%135 = load i8*, i8** %20
%136 = call i64 @sscanf(i8* %134, i8* %135, i32* %14)
%137 = icmp eq i64 %136, 0
br i1 %137, label %138, label %140
138: ; preds = %127
%139 = call i32 @usage(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.5, i64 0, i64 0))
br label %140
140: ; preds = %138, %127
%141 = load i8**, i8*** %5
%142 = getelementptr inbounds i8*, i8** %141, i64 2
%143 = load i8*, i8** %142
%144 = load i8*, i8** %20
%145 = call i64 @sscanf(i8* %143, i8* %144, i32* %15)
%146 = icmp eq i64 %145, 0
br i1 %146, label %147, label %149
147: ; preds = %140
%148 = call i32 @usage(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.6, i64 0, i64 0))
br label %149
149: ; preds = %147, %140
%150 = load i32, i32* %14
%151 = load i32, i32* %15
%152 = xor i32 %150, %151
store i32 %152, i32* %16
%153 = load i8*, i8** %20
%154 = load i32, i32* %16
%155 = call i32 (i8*, ...) @printf(i8* %153, i32 %154)
%156 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.9, i64 0, i64 0))
br label %194
157: ; preds = %124
%158 = load i32, i32* %9
%159 = icmp eq i32 %158, 128
br i1 %159, label %160, label %193
160: ; preds = %157
%161 = load i8**, i8*** %5
%162 = getelementptr inbounds i8*, i8** %161, i64 1
%163 = load i8*, i8** %162
%164 = getelementptr inbounds [2 x i32], [2 x i32]* %17, i64 0, i64 0
%165 = call i64 @read_128(i8* %163, i32* %164)
%166 = icmp eq i64 %165, 0
br i1 %166, label %167, label %169
167: ; preds = %160
%168 = call i32 @usage(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.5, i64 0, i64 0))
br label %169
169: ; preds = %167, %160
%170 = load i8**, i8*** %5
%171 = getelementptr inbounds i8*, i8** %170, i64 2
%172 = load i8*, i8** %171
%173 = getelementptr inbounds [2 x i32], [2 x i32]* %18, i64 0, i64 0
%174 = call i64 @read_128(i8* %172, i32* %173)
%175 = icmp eq i64 %174, 0
br i1 %175, label %176, label %178
176: ; preds = %169
%177 = call i32 @usage(i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.6, i64 0, i64 0))
br label %178
178: ; preds = %176, %169
%179 = getelementptr inbounds [2 x i32], [2 x i32]* %17, i64 0, i64 0
%180 = load i32, i32* %179
%181 = getelementptr inbounds [2 x i32], [2 x i32]* %18, i64 0, i64 0
%182 = load i32, i32* %181
%183 = xor i32 %180, %182
%184 = getelementptr inbounds [2 x i32], [2 x i32]* %19, i64 0, i64 0
store i32 %183, i32* %184
%185 = getelementptr inbounds [2 x i32], [2 x i32]* %17, i64 0, i64 1
%186 = load i32, i32* %185
%187 = getelementptr inbounds [2 x i32], [2 x i32]* %18, i64 0, i64 1
%188 = load i32, i32* %187
%189 = xor i32 %186, %188
%190 = getelementptr inbounds [2 x i32], [2 x i32]* %19, i64 0, i64 1
store i32 %189, i32* %190
%191 = getelementptr inbounds [2 x i32], [2 x i32]* %19, i64 0, i64 0
%192 = call i32 @print_128(i32* %191)
br label %193
193: ; preds = %178, %157
br label %194
194: ; preds = %193, %149
br label %195
195: ; preds = %194, %116
%196 = 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
}