#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 fail(char *, int);
int getreg(int);
int /*<<< orphan*/ printf(char *, ...);
int /*<<< orphan*/ recv_char(char);
int /*<<< orphan*/ send_char(char);
int /*<<< orphan*/ setreg(int, int);
void break_test() {
  unsigned x;
  char *s;
  printf("break_test\n");
  printf("Passed line %i\n", 389);
  {
    unsigned x = getreg(((0x9c000000) + 5));
    if ((x & ((0x10) | (0x08) | (0x04) | (0x02))) && !(x & (0x80)))
      printf("LSR7 (0x%02x) ERR @ %i\n", x, 391);
    ((!(x & (0x80)) && ((x & 0x60) != 0x40)) ? 1 : fail("?", 391));
  };
  printf("Passed line %i\n", 392);
  setreg(((0x9c000000) + 3), 0x03 | (0x40));
  printf("Passed line %i\n", 394);
  send_char('b');
  printf("Passed line %i\n", 396);
  recv_char('*');
  setreg(((0x9c000000) + 3), 0x03);
  printf("Passed line %i\n", 399);
  send_char('!');
  printf("Passed line %i\n", 403);
  while (!((x = getreg(((0x9c000000) + 5))) & (0x01)))
    ;
  printf("[%x]\n", ((0x01) | (0x10) | (0x80) | (0x20) | (0x40)));
  ((x == ((0x01) | (0x10) | (0x80) | (0x20) | (0x40))) ? 1 : fail("?", 407));
  ((getreg(((0x9c000000) + 0)) == 0) ? 1 : fail("?", 408));
  printf("Passed line %i\n", 409);
  setreg(((0x9c000000) + 0), '#');
  while (!(getreg(((0x9c000000) + 5)) & (0x01)))
    ;
  {
    unsigned x = getreg(((0x9c000000) + 5));
    if ((x & ((0x10) | (0x08) | (0x04) | (0x02))) && !(x & (0x80)))
      printf("LSR7 (0x%02x) ERR @ %i\n", x, 414);
    ((!(x & (0x80)) && ((x & 0x60) != 0x40)) ? 1 : fail("?", 414));
  };
  ((getreg(((0x9c000000) + 0)) == '$') ? 1 : fail("?", 415));
  printf("Passed line %i\n", 416);
  s = "ns";
  while (*s)
    send_char(*s++);
  ((!(getreg(((0x9c000000) + 5)) & (0x01))) ? 1 : fail("?", 421));
  while (!(getreg(((0x9c000000) + 5)) & (0x40)))
    ;
  setreg(((0x9c000000) + 0), '*');
  setreg(((0x9c000000) + 3), 0x3 | (0x40));
  printf("Passed line %i\n", 426);
  recv_char('?');
  setreg(((0x9c000000) + 3), 0x3);
  {
    unsigned x = getreg(((0x9c000000) + 5));
    if ((x & ((0x10) | (0x08) | (0x04) | (0x02))) && !(x & (0x80)))
      printf("LSR7 (0x%02x) ERR @ %i\n", x, 431);
    ((!(x & (0x80)) && ((x & 0x60) != 0x40)) ? 1 : fail("?", 431));
  };
  printf("Passed line %i\n", 432);
  send_char('#');
  while (!((x = getreg(((0x9c000000) + 5))) & (0x01)))
    ;
  printf("[%x:%x]\n", x, ((0x01) | (0x10) | (0x80) | (0x20) | (0x40)));
  ((x == ((0x01) | (0x10) | (0x80) | (0x20) | (0x40))) ? 1 : fail("?", 440));
  ((getreg(((0x9c000000) + 0)) == 0) ? 1 : fail("?", 441));
  printf("Passed line %i\n", 442);
  send_char('?');
  printf("Passed line %i\n", 444);
  while (!(getreg(((0x9c000000) + 5)) & (0x01)))
    ;
  recv_char('!');
  printf("OK\n");
}


x86 assembly (clang, -O0):
<break_test>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
lea    0xe91(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
lea    0xe8f(%rip),%rdi
mov    $0x185,%esi
mov    $0x0,%al
call   1060 <printf@plt>
mov    $0x9c000005,%edi
call   1080 <getreg@plt>
mov    %eax,-0x14(%rbp)
mov    -0x14(%rbp),%eax
and    $0x1e,%eax
cmp    $0x0,%eax
je     11cc <break_test+0x6c>
mov    -0x14(%rbp),%eax
and    $0x80,%eax
cmp    $0x0,%eax
jne    11cc <break_test+0x6c>
mov    -0x14(%rbp),%esi
lea    0xe5c(%rip),%rdi
mov    $0x187,%edx
mov    $0x0,%al
call   1060 <printf@plt>
mov    -0x14(%rbp),%eax
and    $0x80,%eax
cmp    $0x0,%eax
jne    11f1 <break_test+0x91>
mov    -0x14(%rbp),%eax
and    $0x60,%eax
cmp    $0x40,%eax
je     11f1 <break_test+0x91>
jmp    1202 <break_test+0xa2>
lea    0xe3c(%rip),%rdi
mov    $0x187,%esi
call   1040 <fail@plt>
lea    0xe03(%rip),%rdi
mov    $0x188,%esi
mov    $0x0,%al
call   1060 <printf@plt>
mov    $0x9c000003,%edi
mov    $0x43,%esi
call   1050 <setreg@plt>
lea    0xde1(%rip),%rdi
mov    $0x18a,%esi
mov    $0x0,%al
call   1060 <printf@plt>
mov    $0x62,%edi
call   1070 <send_char@plt>
lea    0xdc4(%rip),%rdi
mov    $0x18c,%esi
mov    $0x0,%al
call   1060 <printf@plt>
mov    $0x2a,%edi
call   1030 <recv_char@plt>
mov    $0x9c000003,%edi
mov    $0x3,%esi
call   1050 <setreg@plt>
lea    0xd98(%rip),%rdi
mov    $0x18f,%esi
mov    $0x0,%al
call   1060 <printf@plt>
mov    $0x21,%edi
call   1070 <send_char@plt>
lea    0xd7b(%rip),%rdi
mov    $0x193,%esi
mov    $0x0,%al
call   1060 <printf@plt>
mov    $0x9c000005,%edi
call   1080 <getreg@plt>
mov    %eax,-0x4(%rbp)
and    $0x1,%eax
cmp    $0x0,%eax
setne  %al
xor    $0xff,%al
test   $0x1,%al
jne    12c2 <break_test+0x162>
jmp    12c7 <break_test+0x167>
jmp    129d <break_test+0x13d>
lea    0xd68(%rip),%rdi
mov    $0xf1,%esi
mov    $0x0,%al
call   1060 <printf@plt>
cmpl   $0xf1,-0x4(%rbp)
jne    12ec <break_test+0x18c>
jmp    12fd <break_test+0x19d>
lea    0xd41(%rip),%rdi
mov    $0x197,%esi
call   1040 <fail@plt>
mov    $0x9c000000,%edi
call   1080 <getreg@plt>
cmp    $0x0,%eax
jne    1315 <break_test+0x1b5>
jmp    1326 <break_test+0x1c6>
lea    0xd18(%rip),%rdi
mov    $0x198,%esi
call   1040 <fail@plt>
lea    0xcdf(%rip),%rdi
mov    $0x199,%esi
mov    $0x0,%al
call   1060 <printf@plt>
mov    $0x9c000000,%edi
mov    $0x23,%esi
call   1050 <setreg@plt>
mov    $0x9c000005,%edi
call   1080 <getreg@plt>
and    $0x1,%eax
cmp    $0x0,%eax
setne  %al
xor    $0xff,%al
test   $0x1,%al
jne    136a <break_test+0x20a>
jmp    136f <break_test+0x20f>
jmp    1348 <break_test+0x1e8>
mov    $0x9c000005,%edi
call   1080 <getreg@plt>
mov    %eax,-0x18(%rbp)
mov    -0x18(%rbp),%eax
and    $0x1e,%eax
cmp    $0x0,%eax
je     13b2 <break_test+0x252>
mov    -0x18(%rbp),%eax
and    $0x80,%eax
cmp    $0x0,%eax
jne    13b2 <break_test+0x252>
mov    -0x18(%rbp),%esi
lea    0xc76(%rip),%rdi
mov    $0x19e,%edx
mov    $0x0,%al
call   1060 <printf@plt>
mov    -0x18(%rbp),%eax
and    $0x80,%eax
cmp    $0x0,%eax
jne    13d7 <break_test+0x277>
mov    -0x18(%rbp),%eax
and    $0x60,%eax
cmp    $0x40,%eax
je     13d7 <break_test+0x277>
jmp    13e8 <break_test+0x288>
lea    0xc56(%rip),%rdi
mov    $0x19e,%esi
call   1040 <fail@plt>
mov    $0x9c000000,%edi
call   1080 <getreg@plt>
cmp    $0x24,%eax
jne    1400 <break_test+0x2a0>
jmp    1411 <break_test+0x2b1>
lea    0xc2d(%rip),%rdi
mov    $0x19f,%esi
call   1040 <fail@plt>
lea    0xbf4(%rip),%rdi
mov    $0x1a0,%esi
mov    $0x0,%al
call   1060 <printf@plt>
lea    0xc11(%rip),%rax
mov    %rax,-0x10(%rbp)
mov    -0x10(%rbp),%rax
cmpb   $0x0,(%rax)
je     1458 <break_test+0x2f8>
mov    -0x10(%rbp),%rax
mov    %rax,%rcx
add    $0x1,%rcx
mov    %rcx,-0x10(%rbp)
movsbl (%rax),%edi
call   1070 <send_char@plt>
jmp    142f <break_test+0x2cf>
mov    $0x9c000005,%edi
call   1080 <getreg@plt>
and    $0x1,%eax
cmp    $0x0,%eax
jne    1473 <break_test+0x313>
jmp    1484 <break_test+0x324>
lea    0xbba(%rip),%rdi
mov    $0x1a5,%esi
call   1040 <fail@plt>
mov    $0x9c000005,%edi
call   1080 <getreg@plt>
and    $0x40,%eax
cmp    $0x0,%eax
setne  %al
xor    $0xff,%al
test   $0x1,%al
jne    14a6 <break_test+0x346>
jmp    14ab <break_test+0x34b>
jmp    1484 <break_test+0x324>
mov    $0x9c000000,%edi
mov    $0x2a,%esi
call   1050 <setreg@plt>
mov    $0x9c000003,%edi
mov    $0x43,%esi
call   1050 <setreg@plt>
lea    0xb3c(%rip),%rdi
mov    $0x1aa,%esi
mov    $0x0,%al
call   1060 <printf@plt>
mov    $0x3f,%edi
call   1030 <recv_char@plt>
mov    $0x9c000003,%edi
mov    $0x3,%esi
call   1050 <setreg@plt>
mov    $0x9c000005,%edi
call   1080 <getreg@plt>
mov    %eax,-0x1c(%rbp)
mov    -0x1c(%rbp),%eax
and    $0x1e,%eax
cmp    $0x0,%eax
je     1538 <break_test+0x3d8>
mov    -0x1c(%rbp),%eax
and    $0x80,%eax
cmp    $0x0,%eax
jne    1538 <break_test+0x3d8>
mov    -0x1c(%rbp),%esi
lea    0xaf0(%rip),%rdi
mov    $0x1af,%edx
mov    $0x0,%al
call   1060 <printf@plt>
mov    -0x1c(%rbp),%eax
and    $0x80,%eax
cmp    $0x0,%eax
jne    155d <break_test+0x3fd>
mov    -0x1c(%rbp),%eax
and    $0x60,%eax
cmp    $0x40,%eax
je     155d <break_test+0x3fd>
jmp    156e <break_test+0x40e>
lea    0xad0(%rip),%rdi
mov    $0x1af,%esi
call   1040 <fail@plt>
lea    0xa97(%rip),%rdi
mov    $0x1b0,%esi
mov    $0x0,%al
call   1060 <printf@plt>
mov    $0x23,%edi
call   1070 <send_char@plt>
mov    $0x9c000005,%edi
call   1080 <getreg@plt>
mov    %eax,-0x4(%rbp)
and    $0x1,%eax
cmp    $0x0,%eax
setne  %al
xor    $0xff,%al
test   $0x1,%al
jne    15b0 <break_test+0x450>
jmp    15b5 <break_test+0x455>
jmp    158b <break_test+0x42b>
mov    -0x4(%rbp),%esi
lea    0xa80(%rip),%rdi
mov    $0xf1,%edx
mov    $0x0,%al
call   1060 <printf@plt>
cmpl   $0xf1,-0x4(%rbp)
jne    15dd <break_test+0x47d>
jmp    15ee <break_test+0x48e>
lea    0xa50(%rip),%rdi
mov    $0x1b8,%esi
call   1040 <fail@plt>
mov    $0x9c000000,%edi
call   1080 <getreg@plt>
cmp    $0x0,%eax
jne    1606 <break_test+0x4a6>
jmp    1617 <break_test+0x4b7>
lea    0xa27(%rip),%rdi
mov    $0x1b9,%esi
call   1040 <fail@plt>
lea    0x9ee(%rip),%rdi
mov    $0x1ba,%esi
mov    $0x0,%al
call   1060 <printf@plt>
mov    $0x3f,%edi
call   1070 <send_char@plt>
lea    0x9d1(%rip),%rdi
mov    $0x1bc,%esi
mov    $0x0,%al
call   1060 <printf@plt>
mov    $0x9c000005,%edi
call   1080 <getreg@plt>
and    $0x1,%eax
cmp    $0x0,%eax
setne  %al
xor    $0xff,%al
test   $0x1,%al
jne    1669 <break_test+0x509>
jmp    166e <break_test+0x50e>
jmp    1647 <break_test+0x4e7>
mov    $0x21,%edi
call   1030 <recv_char@plt>
lea    0x9c9(%rip),%rdi
mov    $0x0,%al
call   1060 <printf@plt>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<break_test>:
push   %rbx
lea    0xec1(%rip),%rdi
call   1040 <puts@plt>
lea    0xe7c(%rip),%rdi
mov    $0x185,%esi
xor    %eax,%eax
call   1070 <printf@plt>
mov    $0x9c000005,%edi
call   1090 <getreg@plt>
mov    %eax,%ebx
test   $0x1e,%bl
je     11bf <break_test+0x4f>
mov    %ebx,%eax
and    $0x80,%eax
jne    11bf <break_test+0x4f>
lea    0xe5f(%rip),%rdi
mov    %ebx,%esi
mov    $0x187,%edx
xor    %eax,%eax
call   1070 <printf@plt>
test   $0x80,%bl
jne    11cc <break_test+0x5c>
and    $0x60,%ebx
cmp    $0x40,%ebx
jne    11dd <break_test+0x6d>
lea    0xe55(%rip),%rdi
mov    $0x187,%esi
call   1050 <fail@plt>
lea    0xe1c(%rip),%rbx
mov    %rbx,%rdi
mov    $0x188,%esi
xor    %eax,%eax
call   1070 <printf@plt>
mov    $0x9c000003,%edi
mov    $0x43,%esi
call   1060 <setreg@plt>
mov    %rbx,%rdi
mov    $0x18a,%esi
xor    %eax,%eax
call   1070 <printf@plt>
mov    $0x62,%edi
call   1080 <send_char@plt>
mov    %rbx,%rdi
mov    $0x18c,%esi
xor    %eax,%eax
call   1070 <printf@plt>
mov    $0x2a,%edi
call   1030 <recv_char@plt>
mov    $0x9c000003,%edi
mov    $0x3,%esi
call   1060 <setreg@plt>
mov    %rbx,%rdi
mov    $0x18f,%esi
xor    %eax,%eax
call   1070 <printf@plt>
mov    $0x21,%edi
call   1080 <send_char@plt>
mov    %rbx,%rdi
mov    $0x193,%esi
xor    %eax,%eax
call   1070 <printf@plt>
nopl   0x0(%rax,%rax,1)
mov    $0x9c000005,%edi
call   1090 <getreg@plt>
mov    %eax,%ebx
test   $0x1,%bl
je     1270 <break_test+0x100>
lea    0xda2(%rip),%rdi
mov    $0xf1,%esi
xor    %eax,%eax
call   1070 <printf@plt>
cmp    $0xf1,%ebx
je     12ad <break_test+0x13d>
lea    0xd85(%rip),%rdi
mov    $0x197,%esi
call   1050 <fail@plt>
mov    $0x9c000000,%edi
call   1090 <getreg@plt>
test   %eax,%eax
je     12cc <break_test+0x15c>
lea    0xd66(%rip),%rdi
mov    $0x198,%esi
call   1050 <fail@plt>
lea    0xd2d(%rip),%rdi
mov    $0x199,%esi
xor    %eax,%eax
call   1070 <printf@plt>
mov    $0x9c000000,%edi
mov    $0x23,%esi
call   1060 <setreg@plt>
xchg   %ax,%ax
mov    $0x9c000005,%edi
call   1090 <getreg@plt>
test   $0x1,%al
je     12f0 <break_test+0x180>
mov    $0x9c000005,%edi
call   1090 <getreg@plt>
mov    %eax,%ebx
test   $0x1e,%bl
je     132d <break_test+0x1bd>
mov    %ebx,%eax
and    $0x80,%eax
jne    132d <break_test+0x1bd>
lea    0xcf1(%rip),%rdi
mov    %ebx,%esi
mov    $0x19e,%edx
xor    %eax,%eax
call   1070 <printf@plt>
test   $0x80,%bl
jne    133a <break_test+0x1ca>
and    $0x60,%ebx
cmp    $0x40,%ebx
jne    134b <break_test+0x1db>
lea    0xce7(%rip),%rdi
mov    $0x19e,%esi
call   1050 <fail@plt>
mov    $0x9c000000,%edi
call   1090 <getreg@plt>
cmp    $0x24,%eax
je     136b <break_test+0x1fb>
lea    0xcc7(%rip),%rdi
mov    $0x19f,%esi
call   1050 <fail@plt>
lea    0xc8e(%rip),%rdi
mov    $0x1a0,%esi
xor    %eax,%eax
call   1070 <printf@plt>
mov    $0x6e,%edi
call   1080 <send_char@plt>
mov    $0x73,%edi
call   1080 <send_char@plt>
mov    $0x9c000005,%edi
call   1090 <getreg@plt>
test   $0x1,%al
je     13c0 <break_test+0x250>
lea    0xc81(%rip),%rdi
mov    $0x1a5,%esi
call   1050 <fail@plt>
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
mov    $0x9c000005,%edi
call   1090 <getreg@plt>
test   $0x40,%al
je     13c0 <break_test+0x250>
mov    $0x9c000000,%edi
mov    $0x2a,%esi
call   1060 <setreg@plt>
mov    $0x9c000003,%edi
mov    $0x43,%esi
call   1060 <setreg@plt>
lea    0xc0d(%rip),%rdi
mov    $0x1aa,%esi
xor    %eax,%eax
call   1070 <printf@plt>
mov    $0x3f,%edi
call   1030 <recv_char@plt>
mov    $0x9c000003,%edi
mov    $0x3,%esi
call   1060 <setreg@plt>
mov    $0x9c000005,%edi
call   1090 <getreg@plt>
mov    %eax,%ebx
test   $0x1e,%bl
je     1447 <break_test+0x2d7>
mov    %ebx,%eax
and    $0x80,%eax
jne    1447 <break_test+0x2d7>
lea    0xbd7(%rip),%rdi
mov    %ebx,%esi
mov    $0x1af,%edx
xor    %eax,%eax
call   1070 <printf@plt>
test   $0x80,%bl
jne    1454 <break_test+0x2e4>
and    $0x60,%ebx
cmp    $0x40,%ebx
jne    1465 <break_test+0x2f5>
lea    0xbcd(%rip),%rdi
mov    $0x1af,%esi
call   1050 <fail@plt>
lea    0xb94(%rip),%rdi
mov    $0x1b0,%esi
xor    %eax,%eax
call   1070 <printf@plt>
mov    $0x23,%edi
call   1080 <send_char@plt>
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax)
mov    $0x9c000005,%edi
call   1090 <getreg@plt>
mov    %eax,%ebx
test   $0x1,%bl
je     1490 <break_test+0x320>
lea    0xb88(%rip),%rdi
mov    %ebx,%esi
mov    $0xf1,%edx
xor    %eax,%eax
call   1070 <printf@plt>
cmp    $0xf1,%ebx
je     14cf <break_test+0x35f>
lea    0xb63(%rip),%rdi
mov    $0x1b8,%esi
call   1050 <fail@plt>
mov    $0x9c000000,%edi
call   1090 <getreg@plt>
test   %eax,%eax
je     14ee <break_test+0x37e>
lea    0xb44(%rip),%rdi
mov    $0x1b9,%esi
call   1050 <fail@plt>
lea    0xb0b(%rip),%rbx
mov    %rbx,%rdi
mov    $0x1ba,%esi
xor    %eax,%eax
call   1070 <printf@plt>
mov    $0x3f,%edi
call   1080 <send_char@plt>
mov    %rbx,%rdi
mov    $0x1bc,%esi
xor    %eax,%eax
call   1070 <printf@plt>
nopl   (%rax)
mov    $0x9c000005,%edi
call   1090 <getreg@plt>
test   $0x1,%al
je     1520 <break_test+0x3b0>
mov    $0x21,%edi
call   1030 <recv_char@plt>
lea    0xb05(%rip),%rdi
pop    %rbx
jmp    1040 <puts@plt>

LLVM IR (-O0):
@.str = [12 x i8] c"break_test\0A\00"
@.str.1 = [16 x i8] c"Passed line %i\0A\00"
@.str.2 = [24 x i8] c"LSR7 (0x%02x) ERR @ %i\0A\00"
@.str.3 = [2 x i8] c"?\00"
@.str.4 = [6 x i8] c"[%x]\0A\00"
@.str.5 = [3 x i8] c"ns\00"
@.str.6 = [9 x i8] c"[%x:%x]\0A\00"
@.str.7 = [4 x i8] c"OK\0A\00"
define void @break_test() {
%1 = alloca i32
%2 = alloca i8*
%3 = alloca i32
%4 = alloca i32
%5 = alloca i32
%6 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str, i64 0, i64 0))
%7 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.1, i64 0, i64 0), i32 389)
%8 = call i32 @getreg(i32 -1677721595)
store i32 %8, i32* %3
%9 = load i32, i32* %3
%10 = and i32 %9, 30
%11 = icmp ne i32 %10, 0
br i1 %11, label %12, label %19
12: ; preds = %0
%13 = load i32, i32* %3
%14 = and i32 %13, 128
%15 = icmp ne i32 %14, 0
br i1 %15, label %19, label %16
16: ; preds = %12
%17 = load i32, i32* %3
%18 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.2, i64 0, i64 0), i32 %17, i32 391)
br label %19
19: ; preds = %16, %12, %0
%20 = load i32, i32* %3
%21 = and i32 %20, 128
%22 = icmp ne i32 %21, 0
br i1 %22, label %28, label %23
23: ; preds = %19
%24 = load i32, i32* %3
%25 = and i32 %24, 96
%26 = icmp ne i32 %25, 64
br i1 %26, label %27, label %28
27: ; preds = %23
br label %30
28: ; preds = %23, %19
%29 = call i32 @fail(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.3, i64 0, i64 0), i32 391)
br label %30
30: ; preds = %28, %27
%31 = phi i32 [ 1, %27 ], [ %29, %28 ]
%32 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.1, i64 0, i64 0), i32 392)
%33 = call i32 @setreg(i32 -1677721597, i32 67)
%34 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.1, i64 0, i64 0), i32 394)
%35 = call i32 @send_char(i8 signext 98)
%36 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.1, i64 0, i64 0), i32 396)
%37 = call i32 @recv_char(i8 signext 42)
%38 = call i32 @setreg(i32 -1677721597, i32 3)
%39 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.1, i64 0, i64 0), i32 399)
%40 = call i32 @send_char(i8 signext 33)
%41 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.1, i64 0, i64 0), i32 403)
br label %42
42: ; preds = %47, %30
%43 = call i32 @getreg(i32 -1677721595)
store i32 %43, i32* %1
%44 = and i32 %43, 1
%45 = icmp ne i32 %44, 0
%46 = xor i1 %45, true
br i1 %46, label %47, label %48
47: ; preds = %42
br label %42
48: ; preds = %42
%49 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.4, i64 0, i64 0), i32 241)
%50 = load i32, i32* %1
%51 = icmp eq i32 %50, 241
br i1 %51, label %52, label %53
52: ; preds = %48
br label %55
53: ; preds = %48
%54 = call i32 @fail(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.3, i64 0, i64 0), i32 407)
br label %55
55: ; preds = %53, %52
%56 = phi i32 [ 1, %52 ], [ %54, %53 ]
%57 = call i32 @getreg(i32 -1677721600)
%58 = icmp eq i32 %57, 0
br i1 %58, label %59, label %60
59: ; preds = %55
br label %62
60: ; preds = %55
%61 = call i32 @fail(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.3, i64 0, i64 0), i32 408)
br label %62
62: ; preds = %60, %59
%63 = phi i32 [ 1, %59 ], [ %61, %60 ]
%64 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.1, i64 0, i64 0), i32 409)
%65 = call i32 @setreg(i32 -1677721600, i32 35)
br label %66
66: ; preds = %71, %62
%67 = call i32 @getreg(i32 -1677721595)
%68 = and i32 %67, 1
%69 = icmp ne i32 %68, 0
%70 = xor i1 %69, true
br i1 %70, label %71, label %72
71: ; preds = %66
br label %66
72: ; preds = %66
%73 = call i32 @getreg(i32 -1677721595)
store i32 %73, i32* %4
%74 = load i32, i32* %4
%75 = and i32 %74, 30
%76 = icmp ne i32 %75, 0
br i1 %76, label %77, label %84
77: ; preds = %72
%78 = load i32, i32* %4
%79 = and i32 %78, 128
%80 = icmp ne i32 %79, 0
br i1 %80, label %84, label %81
81: ; preds = %77
%82 = load i32, i32* %4
%83 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.2, i64 0, i64 0), i32 %82, i32 414)
br label %84
84: ; preds = %81, %77, %72
%85 = load i32, i32* %4
%86 = and i32 %85, 128
%87 = icmp ne i32 %86, 0
br i1 %87, label %93, label %88
88: ; preds = %84
%89 = load i32, i32* %4
%90 = and i32 %89, 96
%91 = icmp ne i32 %90, 64
br i1 %91, label %92, label %93
92: ; preds = %88
br label %95
93: ; preds = %88, %84
%94 = call i32 @fail(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.3, i64 0, i64 0), i32 414)
br label %95
95: ; preds = %93, %92
%96 = phi i32 [ 1, %92 ], [ %94, %93 ]
%97 = call i32 @getreg(i32 -1677721600)
%98 = icmp eq i32 %97, 36
br i1 %98, label %99, label %100
99: ; preds = %95
br label %102
100: ; preds = %95
%101 = call i32 @fail(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.3, i64 0, i64 0), i32 415)
br label %102
102: ; preds = %100, %99
%103 = phi i32 [ 1, %99 ], [ %101, %100 ]
%104 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.1, i64 0, i64 0), i32 416)
store i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.5, i64 0, i64 0), i8** %2
br label %105
105: ; preds = %109, %102
%106 = load i8*, i8** %2
%107 = load i8, i8* %106
%108 = icmp ne i8 %107, 0
br i1 %108, label %109, label %114
109: ; preds = %105
%110 = load i8*, i8** %2
%111 = getelementptr inbounds i8, i8* %110, i32 1
store i8* %111, i8** %2
%112 = load i8, i8* %110
%113 = call i32 @send_char(i8 signext %112)
br label %105
114: ; preds = %105
%115 = call i32 @getreg(i32 -1677721595)
%116 = and i32 %115, 1
%117 = icmp ne i32 %116, 0
br i1 %117, label %119, label %118
118: ; preds = %114
br label %121
119: ; preds = %114
%120 = call i32 @fail(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.3, i64 0, i64 0), i32 421)
br label %121
121: ; preds = %119, %118
%122 = phi i32 [ 1, %118 ], [ %120, %119 ]
br label %123
123: ; preds = %128, %121
%124 = call i32 @getreg(i32 -1677721595)
%125 = and i32 %124, 64
%126 = icmp ne i32 %125, 0
%127 = xor i1 %126, true
br i1 %127, label %128, label %129
128: ; preds = %123
br label %123
129: ; preds = %123
%130 = call i32 @setreg(i32 -1677721600, i32 42)
%131 = call i32 @setreg(i32 -1677721597, i32 67)
%132 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.1, i64 0, i64 0), i32 426)
%133 = call i32 @recv_char(i8 signext 63)
%134 = call i32 @setreg(i32 -1677721597, i32 3)
%135 = call i32 @getreg(i32 -1677721595)
store i32 %135, i32* %5
%136 = load i32, i32* %5
%137 = and i32 %136, 30
%138 = icmp ne i32 %137, 0
br i1 %138, label %139, label %146
139: ; preds = %129
%140 = load i32, i32* %5
%141 = and i32 %140, 128
%142 = icmp ne i32 %141, 0
br i1 %142, label %146, label %143
143: ; preds = %139
%144 = load i32, i32* %5
%145 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.2, i64 0, i64 0), i32 %144, i32 431)
br label %146
146: ; preds = %143, %139, %129
%147 = load i32, i32* %5
%148 = and i32 %147, 128
%149 = icmp ne i32 %148, 0
br i1 %149, label %155, label %150
150: ; preds = %146
%151 = load i32, i32* %5
%152 = and i32 %151, 96
%153 = icmp ne i32 %152, 64
br i1 %153, label %154, label %155
154: ; preds = %150
br label %157
155: ; preds = %150, %146
%156 = call i32 @fail(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.3, i64 0, i64 0), i32 431)
br label %157
157: ; preds = %155, %154
%158 = phi i32 [ 1, %154 ], [ %156, %155 ]
%159 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.1, i64 0, i64 0), i32 432)
%160 = call i32 @send_char(i8 signext 35)
br label %161
161: ; preds = %166, %157
%162 = call i32 @getreg(i32 -1677721595)
store i32 %162, i32* %1
%163 = and i32 %162, 1
%164 = icmp ne i32 %163, 0
%165 = xor i1 %164, true
br i1 %165, label %166, label %167
166: ; preds = %161
br label %161
167: ; preds = %161
%168 = load i32, i32* %1
%169 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.6, i64 0, i64 0), i32 %168, i32 241)
%170 = load i32, i32* %1
%171 = icmp eq i32 %170, 241
br i1 %171, label %172, label %173
172: ; preds = %167
br label %175
173: ; preds = %167
%174 = call i32 @fail(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.3, i64 0, i64 0), i32 440)
br label %175
175: ; preds = %173, %172
%176 = phi i32 [ 1, %172 ], [ %174, %173 ]
%177 = call i32 @getreg(i32 -1677721600)
%178 = icmp eq i32 %177, 0
br i1 %178, label %179, label %180
179: ; preds = %175
br label %182
180: ; preds = %175
%181 = call i32 @fail(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.3, i64 0, i64 0), i32 441)
br label %182
182: ; preds = %180, %179
%183 = phi i32 [ 1, %179 ], [ %181, %180 ]
%184 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.1, i64 0, i64 0), i32 442)
%185 = call i32 @send_char(i8 signext 63)
%186 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.1, i64 0, i64 0), i32 444)
br label %187
187: ; preds = %192, %182
%188 = call i32 @getreg(i32 -1677721595)
%189 = and i32 %188, 1
%190 = icmp ne i32 %189, 0
%191 = xor i1 %190, true
br i1 %191, label %192, label %193
192: ; preds = %187
br label %187
193: ; preds = %187
%194 = call i32 @recv_char(i8 signext 33)
%195 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.7, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@.str.1 = [16 x i8] c"Passed line %i\0A\00"
@.str.2 = [24 x i8] c"LSR7 (0x%02x) ERR @ %i\0A\00"
@.str.3 = [2 x i8] c"?\00"
@.str.4 = [6 x i8] c"[%x]\0A\00"
@.str.6 = [9 x i8] c"[%x:%x]\0A\00"
@str = [11 x i8] c"break_test\00"
@str.8 = [3 x i8] c"OK\00"
define void @break_test() {
%1 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([11 x i8], [11 x i8]* @str, i64 0, i64 0))
%2 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([16 x i8], [16 x i8]* @.str.1, i64 0, i64 0), i32 389)
%3 = tail call i32 @getreg(i32 -1677721595)
%4 = and i32 %3, 30
%5 = icmp ne i32 %4, 0
%6 = and i32 %3, 128
%7 = icmp eq i32 %6, 0
%8 = and i1 %5, %7
br i1 %8, label %9, label %11
9: ; preds = %0
%10 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([24 x i8], [24 x i8]* @.str.2, i64 0, i64 0), i32 %3, i32 391)
br label %11
11: ; preds = %9, %0
%12 = icmp ne i32 %6, 0
%13 = and i32 %3, 96
%14 = icmp eq i32 %13, 64
%15 = or i1 %12, %14
br i1 %15, label %16, label %18
16: ; preds = %11
%17 = tail call i32 @fail(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.3, i64 0, i64 0), i32 391)
br label %18
18: ; preds = %11, %16
%19 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([16 x i8], [16 x i8]* @.str.1, i64 0, i64 0), i32 392)
%20 = tail call i32 @setreg(i32 -1677721597, i32 67)
%21 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([16 x i8], [16 x i8]* @.str.1, i64 0, i64 0), i32 394)
%22 = tail call i32 @send_char(i8 signext 98)
%23 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([16 x i8], [16 x i8]* @.str.1, i64 0, i64 0), i32 396)
%24 = tail call i32 @recv_char(i8 signext 42)
%25 = tail call i32 @setreg(i32 -1677721597, i32 3)
%26 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([16 x i8], [16 x i8]* @.str.1, i64 0, i64 0), i32 399)
%27 = tail call i32 @send_char(i8 signext 33)
%28 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([16 x i8], [16 x i8]* @.str.1, i64 0, i64 0), i32 403)
br label %29
29: ; preds = %29, %18
%30 = tail call i32 @getreg(i32 -1677721595)
%31 = and i32 %30, 1
%32 = icmp eq i32 %31, 0
br i1 %32, label %29, label %33
33: ; preds = %29
%34 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([6 x i8], [6 x i8]* @.str.4, i64 0, i64 0), i32 241)
%35 = icmp eq i32 %30, 241
br i1 %35, label %38, label %36
36: ; preds = %33
%37 = tail call i32 @fail(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.3, i64 0, i64 0), i32 407)
br label %38
38: ; preds = %33, %36
%39 = tail call i32 @getreg(i32 -1677721600)
%40 = icmp eq i32 %39, 0
br i1 %40, label %43, label %41
41: ; preds = %38
%42 = tail call i32 @fail(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.3, i64 0, i64 0), i32 408)
br label %43
43: ; preds = %38, %41
%44 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([16 x i8], [16 x i8]* @.str.1, i64 0, i64 0), i32 409)
%45 = tail call i32 @setreg(i32 -1677721600, i32 35)
br label %46
46: ; preds = %46, %43
%47 = tail call i32 @getreg(i32 -1677721595)
%48 = and i32 %47, 1
%49 = icmp eq i32 %48, 0
br i1 %49, label %46, label %50
50: ; preds = %46
%51 = tail call i32 @getreg(i32 -1677721595)
%52 = and i32 %51, 30
%53 = icmp ne i32 %52, 0
%54 = and i32 %51, 128
%55 = icmp eq i32 %54, 0
%56 = and i1 %53, %55
br i1 %56, label %57, label %59
57: ; preds = %50
%58 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([24 x i8], [24 x i8]* @.str.2, i64 0, i64 0), i32 %51, i32 414)
br label %59
59: ; preds = %57, %50
%60 = icmp ne i32 %54, 0
%61 = and i32 %51, 96
%62 = icmp eq i32 %61, 64
%63 = or i1 %60, %62
br i1 %63, label %64, label %66
64: ; preds = %59
%65 = tail call i32 @fail(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.3, i64 0, i64 0), i32 414)
br label %66
66: ; preds = %59, %64
%67 = tail call i32 @getreg(i32 -1677721600)
%68 = icmp eq i32 %67, 36
br i1 %68, label %71, label %69
69: ; preds = %66
%70 = tail call i32 @fail(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.3, i64 0, i64 0), i32 415)
br label %71
71: ; preds = %66, %69
%72 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([16 x i8], [16 x i8]* @.str.1, i64 0, i64 0), i32 416)
%73 = tail call i32 @send_char(i8 signext 110)
%74 = tail call i32 @send_char(i8 signext 115)
%75 = tail call i32 @getreg(i32 -1677721595)
%76 = and i32 %75, 1
%77 = icmp eq i32 %76, 0
br i1 %77, label %80, label %78
78: ; preds = %71
%79 = tail call i32 @fail(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.3, i64 0, i64 0), i32 421)
br label %80
80: ; preds = %71, %78
br label %81
81: ; preds = %80, %81
%82 = tail call i32 @getreg(i32 -1677721595)
%83 = and i32 %82, 64
%84 = icmp eq i32 %83, 0
br i1 %84, label %81, label %85
85: ; preds = %81
%86 = tail call i32 @setreg(i32 -1677721600, i32 42)
%87 = tail call i32 @setreg(i32 -1677721597, i32 67)
%88 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([16 x i8], [16 x i8]* @.str.1, i64 0, i64 0), i32 426)
%89 = tail call i32 @recv_char(i8 signext 63)
%90 = tail call i32 @setreg(i32 -1677721597, i32 3)
%91 = tail call i32 @getreg(i32 -1677721595)
%92 = and i32 %91, 30
%93 = icmp ne i32 %92, 0
%94 = and i32 %91, 128
%95 = icmp eq i32 %94, 0
%96 = and i1 %93, %95
br i1 %96, label %97, label %99
97: ; preds = %85
%98 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([24 x i8], [24 x i8]* @.str.2, i64 0, i64 0), i32 %91, i32 431)
br label %99
99: ; preds = %97, %85
%100 = icmp ne i32 %94, 0
%101 = and i32 %91, 96
%102 = icmp eq i32 %101, 64
%103 = or i1 %100, %102
br i1 %103, label %104, label %106
104: ; preds = %99
%105 = tail call i32 @fail(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.3, i64 0, i64 0), i32 431)
br label %106
106: ; preds = %99, %104
%107 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([16 x i8], [16 x i8]* @.str.1, i64 0, i64 0), i32 432)
%108 = tail call i32 @send_char(i8 signext 35)
br label %109
109: ; preds = %109, %106
%110 = tail call i32 @getreg(i32 -1677721595)
%111 = and i32 %110, 1
%112 = icmp eq i32 %111, 0
br i1 %112, label %109, label %113
113: ; preds = %109
%114 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([9 x i8], [9 x i8]* @.str.6, i64 0, i64 0), i32 %110, i32 241)
%115 = icmp eq i32 %110, 241
br i1 %115, label %118, label %116
116: ; preds = %113
%117 = tail call i32 @fail(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.3, i64 0, i64 0), i32 440)
br label %118
118: ; preds = %113, %116
%119 = tail call i32 @getreg(i32 -1677721600)
%120 = icmp eq i32 %119, 0
br i1 %120, label %123, label %121
121: ; preds = %118
%122 = tail call i32 @fail(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.3, i64 0, i64 0), i32 441)
br label %123
123: ; preds = %118, %121
%124 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([16 x i8], [16 x i8]* @.str.1, i64 0, i64 0), i32 442)
%125 = tail call i32 @send_char(i8 signext 63)
%126 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([16 x i8], [16 x i8]* @.str.1, i64 0, i64 0), i32 444)
br label %127
127: ; preds = %127, %123
%128 = tail call i32 @getreg(i32 -1677721595)
%129 = and i32 %128, 1
%130 = icmp eq i32 %129, 0
br i1 %130, label %127, label %131
131: ; preds = %127
%132 = tail call i32 @recv_char(i8 signext 33)
%133 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([3 x i8], [3 x i8]* @str.8, i64 0, i64 0))
ret void
}