#define NULL ((void *)0)
typedef unsigned long size_t; // Customize by platform.
typedef long intptr_t;
typedef unsigned long uintptr_t;
typedef long scalar_t__; // Either arithmetic or pointer type.
/* By default, we understand bool (as a convenience). */
typedef int bool;
#define false 0
#define true 1

/* Forward declarations */

/* Type definitions */

/* Variables and functions */
int /*<<< orphan*/ assert_parse_line(char *, int, int, char *, char *);
void test_parse_line() {
  assert_parse_line("    3000:	ff10 ffff 	vmaxnm.f<illegal width "
                    "64>	<illegal reg q7.5>, q8, <illegal reg q15.5>",
                    -1, 0, "", "");
  assert_parse_line("    3004:	e5db      	b.n	0x2bbe", 0, 0x3004,
                    "b.n", "0x2bbe");
  assert_parse_line("    304e:	a1f3      	add	r1, pc, #972	; (adr "
                    "r1, 0x341c)",
                    0, 0x304e, "add", "r1, pc, #972");
  assert_parse_line(" 600:	bf00      	nop", 0, 0x600, "nop", "");
  assert_parse_line(
      " 250:	4ad7      	ldr	r2, [pc, #860]	; (0x5b0)", 0, 0x250,
      "ldr", "r2, [pc, #860]");
  assert_parse_line(" 276:	b5f0      	push	{r4, r5, r6, r7, lr}",
                    0, 0x276, "push", "{r4, r5, r6, r7, lr}");
  assert_parse_line(" 28a:	f7ff ffdd 	bl	0x248", 0, 0x28a, "bl",
                    "0x248");
  assert_parse_line("00001000 <.sec2>:", -1, 0, "", "");
  assert_parse_line("	...", -1, 0, "", "");
  assert_parse_line("", -1, 0, "", "");
}


x86 assembly (clang, -O0):
<test_parse_line>:
push   %rbp
mov    %rsp,%rbp
lea    0xee5(%rip),%rdi
mov    $0xffffffff,%esi
xor    %edx,%edx
lea    0xfe3(%rip),%r8
mov    %r8,%rcx
call   1030 <assert_parse_line@plt>
lea    0xf24(%rip),%rdi
xor    %esi,%esi
mov    $0x3004,%edx
lea    0xf36(%rip),%rcx
lea    0xf28(%rip),%r8
call   1030 <assert_parse_line@plt>
lea    0xf27(%rip),%rdi
xor    %esi,%esi
mov    $0x304e,%edx
lea    0xf52(%rip),%rcx
lea    0xf4f(%rip),%r8
call   1030 <assert_parse_line@plt>
lea    0xf50(%rip),%rdi
xor    %esi,%esi
mov    $0x600,%edx
lea    0xf53(%rip),%rcx
lea    0xf7d(%rip),%r8
call   1030 <assert_parse_line@plt>
lea    0xf44(%rip),%rdi
xor    %esi,%esi
mov    $0x250,%edx
lea    0xf64(%rip),%rcx
lea    0xf61(%rip),%r8
call   1030 <assert_parse_line@plt>
lea    0xf64(%rip),%rdi
xor    %esi,%esi
mov    $0x276,%edx
lea    0xf81(%rip),%rcx
lea    0xf65(%rip),%r8
call   1030 <assert_parse_line@plt>
lea    0xf73(%rip),%rdi
xor    %esi,%esi
mov    $0x28a,%edx
lea    0xf7f(%rip),%rcx
lea    0xf72(%rip),%r8
call   1030 <assert_parse_line@plt>
lea    0xf6f(%rip),%rdi
mov    $0xffffffff,%esi
xor    %edx,%edx
lea    0xf00(%rip),%r8
mov    %r8,%rcx
call   1030 <assert_parse_line@plt>
lea    0xf64(%rip),%rdi
mov    $0xffffffff,%esi
xor    %edx,%edx
lea    0xee3(%rip),%r8
mov    %r8,%rcx
call   1030 <assert_parse_line@plt>
lea    0xed4(%rip),%r8
mov    $0xffffffff,%esi
xor    %edx,%edx
mov    %r8,%rdi
mov    %r8,%rcx
call   1030 <assert_parse_line@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<test_parse_line>:
push   %rbx
lea    0xee8(%rip),%rdi
lea    0xfed(%rip),%rbx
mov    $0xffffffff,%esi
xor    %edx,%edx
mov    %rbx,%rcx
mov    %rbx,%r8
call   1030 <assert_parse_line@plt>
lea    0xf24(%rip),%rdi
lea    0xf3d(%rip),%rcx
lea    0xf2f(%rip),%r8
xor    %esi,%esi
mov    $0x3004,%edx
call   1030 <assert_parse_line@plt>
lea    0xf27(%rip),%rdi
lea    0xf59(%rip),%rcx
lea    0xf56(%rip),%r8
xor    %esi,%esi
mov    $0x304e,%edx
call   1030 <assert_parse_line@plt>
lea    0xf50(%rip),%rdi
lea    0xf5a(%rip),%rcx
xor    %esi,%esi
mov    $0x600,%edx
mov    %rbx,%r8
call   1030 <assert_parse_line@plt>
lea    0xf48(%rip),%rdi
lea    0xf6f(%rip),%rcx
lea    0xf6c(%rip),%r8
xor    %esi,%esi
mov    $0x250,%edx
call   1030 <assert_parse_line@plt>
lea    0xf68(%rip),%rdi
lea    0xf8c(%rip),%rcx
lea    0xf70(%rip),%r8
xor    %esi,%esi
mov    $0x276,%edx
call   1030 <assert_parse_line@plt>
lea    0xf77(%rip),%rdi
lea    0xf8a(%rip),%rcx
lea    0xf7d(%rip),%r8
xor    %esi,%esi
mov    $0x28a,%edx
call   1030 <assert_parse_line@plt>
lea    0xf73(%rip),%rdi
mov    $0xffffffff,%esi
xor    %edx,%edx
mov    %rbx,%rcx
mov    %rbx,%r8
call   1030 <assert_parse_line@plt>
lea    0xf6c(%rip),%rdi
mov    $0xffffffff,%esi
xor    %edx,%edx
mov    %rbx,%rcx
mov    %rbx,%r8
call   1030 <assert_parse_line@plt>
mov    %rbx,%rdi
mov    $0xffffffff,%esi
xor    %edx,%edx
mov    %rbx,%rcx
mov    %rbx,%r8
pop    %rbx
jmp    1030 <assert_parse_line@plt>

LLVM IR (-O0):
@.str = [92 x i8] c" 3000:\09ff10 ffff \09vmaxnm.f<illegal width 64>\09<illegal reg q7.5>, q8, <illegal reg q15.5>\00"
@.str.1 = [1 x i8] zeroinitializer
@.str.2 = [32 x i8] c" 3004:\09e5db \09b.n\090x2bbe\00"
@.str.3 = [4 x i8] c"b.n\00"
@.str.4 = [7 x i8] c"0x2bbe\00"
@.str.5 = [57 x i8] c" 304e:\09a1f3 \09add\09r1, pc,\09; (adr r1, 0x341c)\00"
@.str.6 = [4 x i8] c"add\00"
@.str.7 = [13 x i8] c"r1, pc,\00"
@.str.8 = [21 x i8] c" 600:\09bf00 \09nop\00"
@.str.9 = [4 x i8] c"nop\00"
@.str.10 = [46 x i8] c" 250:\094ad7 \09ldr\09r2, [pc,]\09; (0x5b0)\00"
@.str.11 = [4 x i8] c"ldr\00"
@.str.12 = [15 x i8] c"r2, [pc,]\00"
@.str.13 = [43 x i8] c" 276:\09b5f0 \09push\09{r4, r5, r6, r7, lr}\00"
@.str.14 = [5 x i8] c"push\00"
@.str.15 = [21 x i8] c"{r4, r5, r6, r7, lr}\00"
@.str.16 = [26 x i8] c" 28a:\09f7ff ffdd \09bl\090x248\00"
@.str.17 = [3 x i8] c"bl\00"
@.str.18 = [6 x i8] c"0x248\00"
@.str.19 = [18 x i8] c"00001000 <.sec2>:\00"
@.str.20 = [5 x i8] c"\09...\00"
define void @test_parse_line() {
%1 = call i32 @assert_parse_line(i8* getelementptr inbounds ([92 x i8], [92 x i8]* @.str, i64 0, i64 0), i32 -1, i32 0, i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.1, i64 0, i64 0))
%2 = call i32 @assert_parse_line(i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.2, i64 0, i64 0), i32 0, i32 12292, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.4, i64 0, i64 0))
%3 = call i32 @assert_parse_line(i8* getelementptr inbounds ([57 x i8], [57 x i8]* @.str.5, i64 0, i64 0), i32 0, i32 12366, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.6, i64 0, i64 0), i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.7, i64 0, i64 0))
%4 = call i32 @assert_parse_line(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.8, i64 0, i64 0), i32 0, i32 1536, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.9, i64 0, i64 0), i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.1, i64 0, i64 0))
%5 = call i32 @assert_parse_line(i8* getelementptr inbounds ([46 x i8], [46 x i8]* @.str.10, i64 0, i64 0), i32 0, i32 592, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.11, i64 0, i64 0), i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.12, i64 0, i64 0))
%6 = call i32 @assert_parse_line(i8* getelementptr inbounds ([43 x i8], [43 x i8]* @.str.13, i64 0, i64 0), i32 0, i32 630, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.14, i64 0, i64 0), i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.15, i64 0, i64 0))
%7 = call i32 @assert_parse_line(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.16, i64 0, i64 0), i32 0, i32 650, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.17, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.18, i64 0, i64 0))
%8 = call i32 @assert_parse_line(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.19, i64 0, i64 0), i32 -1, i32 0, i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.1, i64 0, i64 0))
%9 = call i32 @assert_parse_line(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.20, i64 0, i64 0), i32 -1, i32 0, i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.1, i64 0, i64 0))
%10 = call i32 @assert_parse_line(i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.1, i64 0, i64 0), i32 -1, i32 0, i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.1, i64 0, i64 0))
ret void
}

LLVM IR (-O2):
@.str = [92 x i8] c" 3000:\09ff10 ffff \09vmaxnm.f<illegal width 64>\09<illegal reg q7.5>, q8, <illegal reg q15.5>\00"
@.str.1 = [1 x i8] zeroinitializer
@.str.2 = [32 x i8] c" 3004:\09e5db \09b.n\090x2bbe\00"
@.str.3 = [4 x i8] c"b.n\00"
@.str.4 = [7 x i8] c"0x2bbe\00"
@.str.5 = [57 x i8] c" 304e:\09a1f3 \09add\09r1, pc,\09; (adr r1, 0x341c)\00"
@.str.6 = [4 x i8] c"add\00"
@.str.7 = [13 x i8] c"r1, pc,\00"
@.str.8 = [21 x i8] c" 600:\09bf00 \09nop\00"
@.str.9 = [4 x i8] c"nop\00"
@.str.10 = [46 x i8] c" 250:\094ad7 \09ldr\09r2, [pc,]\09; (0x5b0)\00"
@.str.11 = [4 x i8] c"ldr\00"
@.str.12 = [15 x i8] c"r2, [pc,]\00"
@.str.13 = [43 x i8] c" 276:\09b5f0 \09push\09{r4, r5, r6, r7, lr}\00"
@.str.14 = [5 x i8] c"push\00"
@.str.15 = [21 x i8] c"{r4, r5, r6, r7, lr}\00"
@.str.16 = [26 x i8] c" 28a:\09f7ff ffdd \09bl\090x248\00"
@.str.17 = [3 x i8] c"bl\00"
@.str.18 = [6 x i8] c"0x248\00"
@.str.19 = [18 x i8] c"00001000 <.sec2>:\00"
@.str.20 = [5 x i8] c"\09...\00"
define void @test_parse_line() {
%1 = tail call i32 @assert_parse_line(i8* getelementptr inbounds ([92 x i8], [92 x i8]* @.str, i64 0, i64 0), i32 -1, i32 0, i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.1, i64 0, i64 0))
%2 = tail call i32 @assert_parse_line(i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.2, i64 0, i64 0), i32 0, i32 12292, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.3, i64 0, i64 0), i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.4, i64 0, i64 0))
%3 = tail call i32 @assert_parse_line(i8* getelementptr inbounds ([57 x i8], [57 x i8]* @.str.5, i64 0, i64 0), i32 0, i32 12366, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.6, i64 0, i64 0), i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.7, i64 0, i64 0))
%4 = tail call i32 @assert_parse_line(i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.8, i64 0, i64 0), i32 0, i32 1536, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.9, i64 0, i64 0), i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.1, i64 0, i64 0))
%5 = tail call i32 @assert_parse_line(i8* getelementptr inbounds ([46 x i8], [46 x i8]* @.str.10, i64 0, i64 0), i32 0, i32 592, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.11, i64 0, i64 0), i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.12, i64 0, i64 0))
%6 = tail call i32 @assert_parse_line(i8* getelementptr inbounds ([43 x i8], [43 x i8]* @.str.13, i64 0, i64 0), i32 0, i32 630, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.14, i64 0, i64 0), i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.15, i64 0, i64 0))
%7 = tail call i32 @assert_parse_line(i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.16, i64 0, i64 0), i32 0, i32 650, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.17, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.18, i64 0, i64 0))
%8 = tail call i32 @assert_parse_line(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.19, i64 0, i64 0), i32 -1, i32 0, i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.1, i64 0, i64 0))
%9 = tail call i32 @assert_parse_line(i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.20, i64 0, i64 0), i32 -1, i32 0, i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.1, i64 0, i64 0))
%10 = tail call i32 @assert_parse_line(i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.1, i64 0, i64 0), i32 -1, i32 0, i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.1, i64 0, i64 0))
ret void
}