#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*/ exit(int);
int /*<<< orphan*/ kittenclose();
char *kittengets(int, int, char *);
int kittenopen(char *);
char *strchr(char *, char);
int /*<<< orphan*/ strcmp(char *, char *);
int strlen(char *);
int /*<<< orphan*/ usage(int);
int /*<<< orphan*/ write(int, char *, int);
int main(int argc, char **argv) {
  char *s;
  char *s2;
  int c, x, y;
  int cat;
  cat = kittenopen("localize");
  if (argc < 2) {
    usage(cat);
    kittenclose();
    exit(2);
  }
  s = argv[1];
  s2 = strchr(s, '.');
  if (s2 != NULL) {
    s2[0] = '\0';
    s2++;
    x = atoi(s);
    if ((x == 0) && (s[0] != '0'))
      x = -1;
    y = atoi(s2);
    if ((y == 0) && (s2[0] != '0'))
      y = -1;
    s2--;
    s2[0] = '.';
    s2 = s;
  } else {
    x = -1;
    y = -1;
  }
  if ((x < 0) || (y < 0)) {
    usage(cat);
    kittenclose();
    exit(2);
  }
  if (cat >= 0)
    s = kittengets(x, y, "[Undefined message ");
  if ((cat < 0) || !strcmp(s, "[Undefined message ")) {
    c = 2;
    while (argc > c) {
      if (!strcmp(argv[c], "@@@"))
        break;
      c++;
    }
    c++;
    while (argc > c) {
      write(1, argv[c], strlen(argv[c]));
      write(1, " ", 1);
      c++;
    }
  }
  if ((cat >= 0) && !strcmp(s, "[Undefined message ")) {
    write(1, s, strlen(s));
    write(1, s2, strlen(s2));
    write(1, "]", 1);
    x = 1;
  } else {
    if (cat >= 0) {
      write(1, s, strlen(s));
      x = 0;
    } else {
      x = 1;
    }
  }
  c = 2;
  while (argc > c) {
    write(1, " ", 1);
    if (!strcmp(argv[c], "@@@"))
      break;
    write(1, argv[c], strlen(argv[c]));
    c++;
  }
  write(1, "\r\n", 2);
  if (cat >= 0) {
    kittenclose();
  } else {
    exit(1);
  }
  exit(x);
  return x;
}


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)
lea    0xe43(%rip),%rdi
call   1070 <kittenopen@plt>
mov    %eax,-0x30(%rbp)
cmpl   $0x2,-0x8(%rbp)
jge    11e8 <main+0x48>
mov    -0x30(%rbp),%edi
call   10a0 <usage@plt>
mov    $0x0,%al
call   1090 <kittenclose@plt>
mov    $0x2,%edi
call   10c0 <exit@plt>
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rax
mov    %rax,-0x18(%rbp)
mov    -0x18(%rbp),%rdi
mov    $0x2e,%esi
call   1050 <strchr@plt>
mov    %rax,-0x20(%rbp)
cmpq   $0x0,-0x20(%rbp)
je     129e <main+0xfe>
mov    -0x20(%rbp),%rax
movb   $0x0,(%rax)
mov    -0x20(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x20(%rbp)
mov    -0x18(%rbp),%rdi
call   10b0 <atoi@plt>
mov    %eax,-0x28(%rbp)
cmpl   $0x0,-0x28(%rbp)
jne    1251 <main+0xb1>
mov    -0x18(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x30,%eax
je     1251 <main+0xb1>
movl   $0xffffffff,-0x28(%rbp)
mov    -0x20(%rbp),%rdi
call   10b0 <atoi@plt>
mov    %eax,-0x2c(%rbp)
cmpl   $0x0,-0x2c(%rbp)
jne    127e <main+0xde>
mov    -0x20(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x30,%eax
je     127e <main+0xde>
movl   $0xffffffff,-0x2c(%rbp)
mov    -0x20(%rbp),%rax
add    $0xffffffffffffffff,%rax
mov    %rax,-0x20(%rbp)
mov    -0x20(%rbp),%rax
movb   $0x2e,(%rax)
mov    -0x18(%rbp),%rax
mov    %rax,-0x20(%rbp)
jmp    12ac <main+0x10c>
movl   $0xffffffff,-0x28(%rbp)
movl   $0xffffffff,-0x2c(%rbp)
cmpl   $0x0,-0x28(%rbp)
jl     12c0 <main+0x120>
cmpl   $0x0,-0x2c(%rbp)
jge    12d9 <main+0x139>
mov    -0x30(%rbp),%edi
call   10a0 <usage@plt>
mov    $0x0,%al
call   1090 <kittenclose@plt>
mov    $0x2,%edi
call   10c0 <exit@plt>
cmpl   $0x0,-0x30(%rbp)
jl     12f9 <main+0x159>
mov    -0x28(%rbp),%edi
mov    -0x2c(%rbp),%esi
lea    0xd19(%rip),%rdx
call   1060 <kittengets@plt>
mov    %rax,-0x18(%rbp)
cmpl   $0x0,-0x30(%rbp)
jl     131c <main+0x17c>
mov    -0x18(%rbp),%rdi
lea    0xcfb(%rip),%rsi
call   1080 <strcmp@plt>
cmp    $0x0,%eax
jne    13cf <main+0x22f>
movl   $0x2,-0x24(%rbp)
mov    -0x8(%rbp),%eax
cmp    -0x24(%rbp),%eax
jle    1363 <main+0x1c3>
mov    -0x10(%rbp),%rax
movslq -0x24(%rbp),%rcx
mov    (%rax,%rcx,8),%rdi
lea    0xcdb(%rip),%rsi
call   1080 <strcmp@plt>
cmp    $0x0,%eax
jne    1355 <main+0x1b5>
jmp    1363 <main+0x1c3>
mov    -0x24(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x24(%rbp)
jmp    1323 <main+0x183>
mov    -0x24(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x24(%rbp)
mov    -0x8(%rbp),%eax
cmp    -0x24(%rbp),%eax
jle    13ca <main+0x22a>
mov    -0x10(%rbp),%rax
movslq -0x24(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
mov    %rax,-0x38(%rbp)
mov    -0x10(%rbp),%rax
movslq -0x24(%rbp),%rcx
mov    (%rax,%rcx,8),%rdi
call   1040 <strlen@plt>
mov    -0x38(%rbp),%rsi
mov    %eax,%edx
mov    $0x1,%edi
call   1030 <write@plt>
mov    $0x1,%edx
lea    0xc66(%rip),%rsi
mov    %edx,%edi
call   1030 <write@plt>
mov    -0x24(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x24(%rbp)
jmp    136c <main+0x1cc>
jmp    13cf <main+0x22f>
cmpl   $0x0,-0x30(%rbp)
jl     1453 <main+0x2b3>
mov    -0x18(%rbp),%rdi
lea    0xc25(%rip),%rsi
call   1080 <strcmp@plt>
cmp    $0x0,%eax
jne    1453 <main+0x2b3>
mov    -0x18(%rbp),%rax
mov    %rax,-0x48(%rbp)
mov    -0x18(%rbp),%rdi
call   1040 <strlen@plt>
mov    -0x48(%rbp),%rsi
mov    %eax,%edx
mov    $0x1,%edi
call   1030 <write@plt>
mov    -0x20(%rbp),%rax
mov    %rax,-0x40(%rbp)
mov    -0x20(%rbp),%rdi
call   1040 <strlen@plt>
mov    -0x40(%rbp),%rsi
mov    %eax,%edx
mov    $0x1,%edi
call   1030 <write@plt>
mov    $0x1,%edx
lea    0xbe1(%rip),%rsi
mov    %edx,%edi
call   1030 <write@plt>
movl   $0x1,-0x28(%rbp)
jmp    1496 <main+0x2f6>
cmpl   $0x0,-0x30(%rbp)
jl     148a <main+0x2ea>
mov    -0x18(%rbp),%rax
mov    %rax,-0x50(%rbp)
mov    -0x18(%rbp),%rdi
call   1040 <strlen@plt>
mov    -0x50(%rbp),%rsi
mov    %eax,%edx
mov    $0x1,%edi
call   1030 <write@plt>
movl   $0x0,-0x28(%rbp)
jmp    1491 <main+0x2f1>
movl   $0x1,-0x28(%rbp)
jmp    1496 <main+0x2f6>
movl   $0x2,-0x24(%rbp)
mov    -0x8(%rbp),%eax
cmp    -0x24(%rbp),%eax
jle    1521 <main+0x381>
mov    $0x1,%edx
lea    0xb66(%rip),%rsi
mov    %edx,%edi
call   1030 <write@plt>
mov    -0x10(%rbp),%rax
movslq -0x24(%rbp),%rcx
mov    (%rax,%rcx,8),%rdi
lea    0xb4e(%rip),%rsi
call   1080 <strcmp@plt>
cmp    $0x0,%eax
jne    14e2 <main+0x342>
jmp    1521 <main+0x381>
mov    -0x10(%rbp),%rax
movslq -0x24(%rbp),%rcx
mov    (%rax,%rcx,8),%rax
mov    %rax,-0x58(%rbp)
mov    -0x10(%rbp),%rax
movslq -0x24(%rbp),%rcx
mov    (%rax,%rcx,8),%rdi
call   1040 <strlen@plt>
mov    -0x58(%rbp),%rsi
mov    %eax,%edx
mov    $0x1,%edi
call   1030 <write@plt>
mov    -0x24(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x24(%rbp)
jmp    149d <main+0x2fd>
mov    $0x1,%edi
lea    0xaf6(%rip),%rsi
mov    $0x2,%edx
call   1030 <write@plt>
cmpl   $0x0,-0x30(%rbp)
jl     154d <main+0x3ad>
mov    $0x0,%al
call   1090 <kittenclose@plt>
jmp    1557 <main+0x3b7>
mov    $0x1,%edi
call   10c0 <exit@plt>
mov    -0x28(%rbp),%edi
call   10c0 <exit@plt>

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x28,%rsp
mov    %rsi,%rbx
mov    %edi,%r14d
lea    0xe45(%rip),%rdi
call   1070 <kittenopen@plt>
mov    %eax,%r13d
cmp    $0x1,%r14d
jle    11e4 <main+0x44>
mov    %rbx,0x10(%rsp)
mov    0x8(%rbx),%r15
mov    %r15,%rdi
mov    $0x2e,%esi
call   1050 <strchr@plt>
test   %rax,%rax
jne    11fd <main+0x5d>
mov    %r13d,%edi
call   10a0 <usage@plt>
xor    %eax,%eax
call   1090 <kittenclose@plt>
mov    $0x2,%edi
call   10c0 <exit@plt>
mov    %rax,%r12
movb   $0x0,(%rax)
mov    %rax,%rbx
add    $0x1,%rbx
mov    %r15,%rdi
call   10b0 <atoi@plt>
mov    %eax,%ebp
test   %eax,%eax
jne    1224 <main+0x84>
xor    %ebp,%ebp
cmpb   $0x30,(%r15)
setne  %bpl
neg    %ebp
mov    %rbx,%rdi
call   10b0 <atoi@plt>
test   %eax,%eax
jne    123a <main+0x9a>
xor    %eax,%eax
cmpb   $0x30,(%rbx)
setne  %al
neg    %eax
movb   $0x2e,(%r12)
test   %ebp,%ebp
js     11e4 <main+0x44>
test   %eax,%eax
js     11e4 <main+0x44>
mov    %r15,%r12
mov    %r14d,%r15d
mov    %r12,0x18(%rsp)
test   %r13d,%r13d
js     1280 <main+0xe0>
lea    0xdab(%rip),%rbx
mov    %ebp,%edi
mov    %eax,%esi
mov    %rbx,%rdx
call   1060 <kittengets@plt>
mov    %rax,%r12
mov    %rax,%rdi
mov    %rbx,%rsi
call   1080 <strcmp@plt>
test   %eax,%eax
jne    133e <main+0x19e>
mov    %r13d,0xc(%rsp)
mov    $0x2,%r13d
cmp    $0x3,%r14d
jb     12cd <main+0x12d>
mov    $0x2,%r13d
lea    0xd7f(%rip),%rbx
mov    0x10(%rsp),%rbp
cs nopw 0x0(%rax,%rax,1)
nopl   (%rax)
mov    0x0(%rbp,%r13,8),%rdi
mov    %rbx,%rsi
call   1080 <strcmp@plt>
test   %eax,%eax
je     12cd <main+0x12d>
add    $0x1,%r13
cmp    %r13,%r15
jne    12b0 <main+0x110>
mov    %r15d,%r13d
mov    %r12,0x20(%rsp)
add    $0x1,%r13d
cmp    %r14d,%r13d
jge    132a <main+0x18a>
mov    %r13d,%eax
mov    0x10(%rsp),%rcx
lea    (%rcx,%rax,8),%r12
lea    0xd2d(%rip),%rbx
xchg   %ax,%ax
mov    (%r12),%rbp
mov    %rbp,%rdi
call   1040 <strlen@plt>
mov    $0x1,%edi
mov    %rbp,%rsi
mov    %eax,%edx
call   1030 <write@plt>
mov    $0x1,%edi
mov    %rbx,%rsi
mov    $0x1,%edx
call   1030 <write@plt>
add    $0x8,%r12
add    $0x1,%r13d
cmp    %r14d,%r13d
jl     12f0 <main+0x150>
mov    $0x1,%eax
mov    0xc(%rsp),%r13d
test   %r13d,%r13d
mov    0x20(%rsp),%r12
js     13a3 <main+0x203>
lea    0xcc4(%rip),%rsi
mov    %r12,%rdi
call   1080 <strcmp@plt>
mov    %eax,%ebx
mov    %r12,%rdi
call   1040 <strlen@plt>
mov    $0x1,%edi
mov    %r12,%rsi
mov    %eax,%edx
call   1030 <write@plt>
xor    %eax,%eax
test   %ebx,%ebx
jne    13a3 <main+0x203>
mov    0x18(%rsp),%rbx
mov    %rbx,%rdi
call   1040 <strlen@plt>
mov    $0x1,%edi
mov    %rbx,%rsi
mov    %eax,%edx
call   1030 <write@plt>
lea    0xc92(%rip),%rsi
mov    $0x1,%edi
mov    $0x1,%edx
call   1030 <write@plt>
mov    $0x1,%eax
mov    %eax,0xc(%rsp)
cmp    $0x3,%r14d
jl     140a <main+0x26a>
mov    $0x2,%ebx
lea    0xc62(%rip),%r12
lea    0xc5d(%rip),%r14
mov    $0x1,%edi
mov    %r12,%rsi
mov    $0x1,%edx
call   1030 <write@plt>
mov    0x10(%rsp),%rax
mov    (%rax,%rbx,8),%rbp
mov    %rbp,%rdi
mov    %r14,%rsi
call   1080 <strcmp@plt>
test   %eax,%eax
je     140a <main+0x26a>
mov    %rbp,%rdi
call   1040 <strlen@plt>
mov    $0x1,%edi
mov    %rbp,%rsi
mov    %eax,%edx
call   1030 <write@plt>
add    $0x1,%rbx
cmp    %rbx,%r15
jne    13c0 <main+0x220>
lea    0xc12(%rip),%rsi
mov    $0x1,%edi
mov    $0x2,%edx
call   1030 <write@plt>
test   %r13d,%r13d
js     1435 <main+0x295>
xor    %eax,%eax
call   1090 <kittenclose@plt>
mov    0xc(%rsp),%edi
call   10c0 <exit@plt>
mov    $0x1,%edi
call   10c0 <exit@plt>

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

LLVM IR (-O2):
@.str = [9 x i8] c"localize\00"
@.str.1 = [20 x i8] c"[Undefined message \00"
@.str.2 = [4 x i8] c"@@@\00"
@.str.3 = [2 x i8] c" \00"
@.str.4 = [2 x i8] c"]\00"
@.str.5 = [3 x i8] c"\0D\0A\00"
define i32 @main(i32 %0, i8** nocapture %1) {
%3 = tail call i32 @kittenopen(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str, i64 0, i64 0))
%4 = icmp slt i32 %0, 2
br i1 %4, label %5, label %9
5: ; preds = %2
%6 = tail call i32 @usage(i32 %3)
%7 = tail call i32 (...) @kittenclose()
%8 = tail call i32 @exit(i32 2)
unreachable
9: ; preds = %2
%10 = getelementptr inbounds i8*, i8** %1, i64 1
%11 = load i8*, i8** %10
%12 = tail call i8* @strchr(i8* dereferenceable(1) %11, i8 signext 46)
%13 = icmp eq i8* %12, null
br i1 %13, label %35, label %14
14: ; preds = %9
store i8 0, i8* %12
%15 = getelementptr inbounds i8, i8* %12, i64 1
%16 = tail call i32 @atoi(i8* %11)
%17 = icmp eq i32 %16, 0
br i1 %17, label %18, label %22
18: ; preds = %14
%19 = load i8, i8* %11
%20 = icmp ne i8 %19, 48
%21 = sext i1 %20 to i32
br label %22
22: ; preds = %18, %14
%23 = phi i32 [ %16, %14 ], [ %21, %18 ]
%24 = tail call i32 @atoi(i8* %15)
%25 = icmp eq i32 %24, 0
br i1 %25, label %26, label %30
26: ; preds = %22
%27 = load i8, i8* %15
%28 = icmp ne i8 %27, 48
%29 = sext i1 %28 to i32
br label %30
30: ; preds = %22, %26
%31 = phi i32 [ %24, %22 ], [ %29, %26 ]
store i8 46, i8* %12
%32 = icmp slt i32 %23, 0
%33 = icmp slt i32 %31, 0
%34 = select i1 %32, i1 true, i1 %33
br i1 %34, label %35, label %39
35: ; preds = %9, %30
%36 = tail call i32 @usage(i32 %3)
%37 = tail call i32 (...) @kittenclose()
%38 = tail call i32 @exit(i32 2)
unreachable
39: ; preds = %30
%40 = icmp sgt i32 %3, -1
br i1 %40, label %41, label %45
41: ; preds = %39
%42 = tail call i8* @kittengets(i32 %23, i32 %31, i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.1, i64 0, i64 0))
%43 = tail call i32 @strcmp(i8* dereferenceable(1) %42, i8* dereferenceable(20) getelementptr inbounds ([20 x i8], [20 x i8]* @.str.1, i64 0, i64 0))
%44 = icmp eq i32 %43, 0
br i1 %44, label %45, label %78
45: ; preds = %39, %41
%46 = phi i8* [ %42, %41 ], [ %11, %39 ]
%47 = icmp ugt i32 %0, 2
br i1 %47, label %48, label %61
48: ; preds = %45
%49 = zext i32 %0 to i64
br label %50
50: ; preds = %48, %56
%51 = phi i64 [ 2, %48 ], [ %57, %56 ]
%52 = getelementptr inbounds i8*, i8** %1, i64 %51
%53 = load i8*, i8** %52
%54 = tail call i32 @strcmp(i8* dereferenceable(1) %53, i8* dereferenceable(4) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0))
%55 = icmp eq i32 %54, 0
br i1 %55, label %59, label %56
56: ; preds = %50
%57 = add nuw nsw i64 %51, 1
%58 = icmp eq i64 %57, %49
br i1 %58, label %61, label %50
59: ; preds = %50
%60 = trunc i64 %51 to i32
br label %61
61: ; preds = %56, %59, %45
%62 = phi i32 [ 2, %45 ], [ %60, %59 ], [ %0, %56 ]
%63 = add i32 %62, 1
%64 = icmp slt i32 %63, %0
br i1 %64, label %65, label %77
65: ; preds = %61
%66 = zext i32 %63 to i64
br label %67
67: ; preds = %65, %67
%68 = phi i64 [ %66, %65 ], [ %74, %67 ]
%69 = getelementptr inbounds i8*, i8** %1, i64 %68
%70 = load i8*, i8** %69
%71 = tail call i32 @strlen(i8* %70)
%72 = tail call i32 @write(i32 1, i8* %70, i32 %71)
%73 = tail call i32 @write(i32 1, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.3, i64 0, i64 0), i32 1)
%74 = add nuw nsw i64 %68, 1
%75 = trunc i64 %74 to i32
%76 = icmp slt i32 %75, %0
br i1 %76, label %67, label %77
77: ; preds = %67, %61
br i1 %40, label %78, label %88
78: ; preds = %41, %77
%79 = phi i8* [ %46, %77 ], [ %42, %41 ]
%80 = tail call i32 @strcmp(i8* dereferenceable(1) %79, i8* dereferenceable(20) getelementptr inbounds ([20 x i8], [20 x i8]* @.str.1, i64 0, i64 0))
%81 = icmp eq i32 %80, 0
%82 = tail call i32 @strlen(i8* %79)
%83 = tail call i32 @write(i32 1, i8* %79, i32 %82)
br i1 %81, label %84, label %88
84: ; preds = %78
%85 = tail call i32 @strlen(i8* %11)
%86 = tail call i32 @write(i32 1, i8* %11, i32 %85)
%87 = tail call i32 @write(i32 1, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.4, i64 0, i64 0), i32 1)
br label %88
88: ; preds = %78, %77, %84
%89 = phi i32 [ 1, %84 ], [ 1, %77 ], [ 0, %78 ]
%90 = icmp sgt i32 %0, 2
br i1 %90, label %91, label %105
91: ; preds = %88
%92 = zext i32 %0 to i64
br label %93
93: ; preds = %91, %100
%94 = phi i64 [ 2, %91 ], [ %103, %100 ]
%95 = tail call i32 @write(i32 1, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.3, i64 0, i64 0), i32 1)
%96 = getelementptr inbounds i8*, i8** %1, i64 %94
%97 = load i8*, i8** %96
%98 = tail call i32 @strcmp(i8* dereferenceable(1) %97, i8* dereferenceable(4) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.2, i64 0, i64 0))
%99 = icmp eq i32 %98, 0
br i1 %99, label %105, label %100
100: ; preds = %93
%101 = tail call i32 @strlen(i8* %97)
%102 = tail call i32 @write(i32 1, i8* %97, i32 %101)
%103 = add nuw nsw i64 %94, 1
%104 = icmp eq i64 %103, %92
br i1 %104, label %105, label %93
105: ; preds = %100, %93, %88
%106 = tail call i32 @write(i32 1, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.5, i64 0, i64 0), i32 2)
br i1 %40, label %107, label %110
107: ; preds = %105
%108 = tail call i32 (...) @kittenclose()
%109 = tail call i32 @exit(i32 %89)
unreachable
110: ; preds = %105
%111 = tail call i32 @exit(i32 1)
unreachable
}