#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*/ normalize_assembly_format(char const *, char *);
int parse_line(char const *, unsigned int *, char *, char *);
int parse_ovp_disassembled_line(const char *line, char *instruction_name,
                                char *instruction_args) {
  char normalized_line[100] = " 0:\t";
  normalize_assembly_format(line, normalized_line + 4);
  unsigned int unused_address;
  int result = parse_line((const char *)normalized_line, &unused_address,
                          instruction_name, instruction_args);
  return result;
}


x86 assembly (clang, -O0):
<parse_ovp_disassembled_line>:
push   %rbp
mov    %rsp,%rbp
sub    $0x90,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
lea    -0x80(%rbp),%rdi
xor    %esi,%esi
mov    $0x64,%edx
call   1030 <memset@plt>
movb   $0x20,-0x80(%rbp)
movb   $0x30,-0x7f(%rbp)
movb   $0x3a,-0x7e(%rbp)
movb   $0x9,-0x7d(%rbp)
mov    -0x8(%rbp),%rdi
lea    -0x80(%rbp),%rsi
add    $0x4,%rsi
call   1050 <normalize_assembly_format@plt>
lea    -0x80(%rbp),%rdi
mov    -0x10(%rbp),%rdx
mov    -0x18(%rbp),%rcx
lea    -0x84(%rbp),%rsi
call   1040 <parse_line@plt>
mov    %eax,-0x88(%rbp)
mov    -0x88(%rbp),%eax
add    $0x90,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<parse_ovp_disassembled_line>:
push   %r14
push   %rbx
sub    $0x78,%rsp
mov    %rdx,%r14
mov    %rsi,%rbx
xorps  %xmm0,%xmm0
movaps %xmm0,0x10(%rsp)
movaps %xmm0,0x60(%rsp)
movaps %xmm0,0x50(%rsp)
movaps %xmm0,0x40(%rsp)
movaps %xmm0,0x30(%rsp)
movaps %xmm0,0x20(%rsp)
movl   $0x0,0x70(%rsp)
movl   $0x93a3020,0x10(%rsp)
09
lea    0x14(%rsp),%rsi
call   1040 <normalize_assembly_format@plt>
lea    0x10(%rsp),%rdi
lea    0xc(%rsp),%rsi
mov    %rbx,%rdx
mov    %r14,%rcx
call   1030 <parse_line@plt>
add    $0x78,%rsp
pop    %rbx
pop    %r14
ret

LLVM IR (-O0):
define i32 @parse_ovp_disassembled_line(i8* %0, i8* %1, i8* %2) {
%4 = alloca i8*
%5 = alloca i8*
%6 = alloca i8*
%7 = alloca [100 x i8]
%8 = alloca i32
%9 = alloca i32
store i8* %0, i8** %4
store i8* %1, i8** %5
store i8* %2, i8** %6
%10 = bitcast [100 x i8]* %7 to i8*
%11 = bitcast i8* %10 to [100 x i8]*
%12 = getelementptr inbounds [100 x i8], [100 x i8]* %11, i32 0, i32 0
store i8 32, i8* %12
%13 = getelementptr inbounds [100 x i8], [100 x i8]* %11, i32 0, i32 1
store i8 48, i8* %13
%14 = getelementptr inbounds [100 x i8], [100 x i8]* %11, i32 0, i32 2
store i8 58, i8* %14
%15 = getelementptr inbounds [100 x i8], [100 x i8]* %11, i32 0, i32 3
store i8 9, i8* %15
%16 = load i8*, i8** %4
%17 = getelementptr inbounds [100 x i8], [100 x i8]* %7, i64 0, i64 0
%18 = getelementptr inbounds i8, i8* %17, i64 4
%19 = call i32 @normalize_assembly_format(i8* %16, i8* %18)
%20 = getelementptr inbounds [100 x i8], [100 x i8]* %7, i64 0, i64 0
%21 = load i8*, i8** %5
%22 = load i8*, i8** %6
%23 = call i32 @parse_line(i8* %20, i32* %8, i8* %21, i8* %22)
store i32 %23, i32* %9
%24 = load i32, i32* %9
ret i32 %24
}

LLVM IR (-O2):
define i32 @parse_ovp_disassembled_line(i8* %0, i8* %1, i8* %2) {
%4 = alloca [100 x i8]
%5 = alloca i32
%6 = getelementptr inbounds [100 x i8], [100 x i8]* %4, i64 0, i64 0
store i8 32, i8* %6
%7 = getelementptr inbounds [100 x i8], [100 x i8]* %4, i64 0, i64 1
store i8 48, i8* %7
%8 = getelementptr inbounds [100 x i8], [100 x i8]* %4, i64 0, i64 2
store i8 58, i8* %8
%9 = getelementptr inbounds [100 x i8], [100 x i8]* %4, i64 0, i64 3
store i8 9, i8* %9
%10 = getelementptr inbounds [100 x i8], [100 x i8]* %4, i64 0, i64 4
%11 = call i32 @normalize_assembly_format(i8* %0, i8* %10)
%12 = bitcast i32* %5 to i8*
%13 = call i32 @parse_line(i8* %6, i32* %5, i8* %1, i8* %2)
ret i32 %13
}