#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*/ _ssdm_op_SpecInterface(int *, char *, int /*<<< orphan*/,
                                          int /*<<< orphan*/,
                                          int /*<<< orphan*/, int, char *,
                                          char *, char *);
void acc_vadd(int *sI1, int *sI2, int *mO1) {
  _ssdm_op_SpecInterface(0, "ap_ctrl_none", 0, 0, 0, 0, "", "", "");
  _ssdm_op_SpecInterface(sI1, "axis", 0, 0, 0, 16, "", "", "");
  _ssdm_op_SpecInterface(sI2, "axis", 0, 0, 0, 16, "", "", "");
  _ssdm_op_SpecInterface(mO1, "axis", 0, 0, 0, 16, "", "", "");
  *mO1 = *sI1 + *sI2;
}


x86 assembly (clang, -O0):
<acc_vadd>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
xor    %eax,%eax
mov    %eax,%edi
lea    0xed1(%rip),%rsi
xor    %r9d,%r9d
lea    0xed3(%rip),%rax
mov    %r9d,%edx
mov    %r9d,%ecx
mov    %r9d,%r8d
mov    %rax,(%rsp)
mov    %rax,0x8(%rsp)
mov    %rax,0x10(%rsp)
call   1030 <_ssdm_op_SpecInterface@plt>
mov    -0x8(%rbp),%rdi
lea    0xead(%rip),%rsi
xor    %r8d,%r8d
mov    $0x10,%r9d
lea    0xe9c(%rip),%rax
mov    %r8d,%edx
mov    %r8d,%ecx
mov    %rax,(%rsp)
mov    %rax,0x8(%rsp)
mov    %rax,0x10(%rsp)
call   1030 <_ssdm_op_SpecInterface@plt>
mov    -0x10(%rbp),%rdi
lea    0xe79(%rip),%rsi
xor    %r8d,%r8d
mov    $0x10,%r9d
lea    0xe68(%rip),%rax
mov    %r8d,%edx
mov    %r8d,%ecx
mov    %rax,(%rsp)
mov    %rax,0x8(%rsp)
mov    %rax,0x10(%rsp)
call   1030 <_ssdm_op_SpecInterface@plt>
mov    -0x18(%rbp),%rdi
lea    0xe45(%rip),%rsi
xor    %r8d,%r8d
mov    $0x10,%r9d
lea    0xe34(%rip),%rax
mov    %r8d,%edx
mov    %r8d,%ecx
mov    %rax,(%rsp)
mov    %rax,0x8(%rsp)
mov    %rax,0x10(%rsp)
call   1030 <_ssdm_op_SpecInterface@plt>
mov    -0x8(%rbp),%rax
mov    (%rax),%ecx
mov    -0x10(%rbp),%rax
add    (%rax),%ecx
mov    -0x18(%rbp),%rax
mov    %ecx,(%rax)
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<acc_vadd>:
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
mov    %rdx,%r14
mov    %rsi,%r12
mov    %rdi,%r15
sub    $0x8,%rsp
lea    0xedf(%rip),%rbx
lea    0xecc(%rip),%rsi
xor    %edi,%edi
xor    %edx,%edx
xor    %ecx,%ecx
xor    %r8d,%r8d
xor    %r9d,%r9d
push   %rbx
push   %rbx
push   %rbx
call   1030 <_ssdm_op_SpecInterface@plt>
add    $0x18,%rsp
lea    0xeba(%rip),%r13
mov    %r15,%rdi
mov    %r13,%rsi
xor    %edx,%edx
xor    %ecx,%ecx
xor    %r8d,%r8d
mov    $0x10,%r9d
push   %rbx
push   %rbx
push   %rbx
call   1030 <_ssdm_op_SpecInterface@plt>
add    $0x18,%rsp
mov    %r12,%rdi
mov    %r13,%rsi
xor    %edx,%edx
xor    %ecx,%ecx
xor    %r8d,%r8d
mov    $0x10,%r9d
push   %rbx
push   %rbx
push   %rbx
call   1030 <_ssdm_op_SpecInterface@plt>
add    $0x18,%rsp
mov    %r14,%rdi
mov    %r13,%rsi
xor    %edx,%edx
xor    %ecx,%ecx
xor    %r8d,%r8d
mov    $0x10,%r9d
push   %rbx
push   %rbx
push   %rbx
call   1030 <_ssdm_op_SpecInterface@plt>
add    $0x20,%rsp
mov    (%r12),%eax
add    (%r15),%eax
mov    %eax,(%r14)
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
ret

LLVM IR (-O0):
@.str = [13 x i8] c"ap_ctrl_none\00"
@.str.1 = [1 x i8] zeroinitializer
@.str.2 = [5 x i8] c"axis\00"
define void @acc_vadd(i32* %0, i32* %1, i32* %2) {
%4 = alloca i32*
%5 = alloca i32*
%6 = alloca i32*
store i32* %0, i32** %4
store i32* %1, i32** %5
store i32* %2, i32** %6
%7 = call i32 @_ssdm_op_SpecInterface(i32* null, i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str, i64 0, i64 0), i32 0, i32 0, i32 0, 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), i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.1, i64 0, i64 0))
%8 = load i32*, i32** %4
%9 = call i32 @_ssdm_op_SpecInterface(i32* %8, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0), i32 0, i32 0, i32 0, i32 16, 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), i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.1, i64 0, i64 0))
%10 = load i32*, i32** %5
%11 = call i32 @_ssdm_op_SpecInterface(i32* %10, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0), i32 0, i32 0, i32 0, i32 16, 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), i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.1, i64 0, i64 0))
%12 = load i32*, i32** %6
%13 = call i32 @_ssdm_op_SpecInterface(i32* %12, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0), i32 0, i32 0, i32 0, i32 16, 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), i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.1, i64 0, i64 0))
%14 = load i32*, i32** %4
%15 = load i32, i32* %14
%16 = load i32*, i32** %5
%17 = load i32, i32* %16
%18 = add nsw i32 %15, %17
%19 = load i32*, i32** %6
store i32 %18, i32* %19
ret void
}

LLVM IR (-O2):
@.str = [13 x i8] c"ap_ctrl_none\00"
@.str.1 = [1 x i8] zeroinitializer
@.str.2 = [5 x i8] c"axis\00"
define void @acc_vadd(i32* %0, i32* %1, i32* %2) {
%4 = tail call i32 @_ssdm_op_SpecInterface(i32* null, i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str, i64 0, i64 0), i32 0, i32 0, i32 0, 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), i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.1, i64 0, i64 0))
%5 = tail call i32 @_ssdm_op_SpecInterface(i32* %0, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0), i32 0, i32 0, i32 0, i32 16, 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), i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.1, i64 0, i64 0))
%6 = tail call i32 @_ssdm_op_SpecInterface(i32* %1, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0), i32 0, i32 0, i32 0, i32 16, 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), i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.1, i64 0, i64 0))
%7 = tail call i32 @_ssdm_op_SpecInterface(i32* %2, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.2, i64 0, i64 0), i32 0, i32 0, i32 0, i32 16, 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), i8* getelementptr inbounds ([1 x i8], [1 x i8]* @.str.1, i64 0, i64 0))
%8 = load i32, i32* %0
%9 = load i32, i32* %1
%10 = add nsw i32 %9, %8
store i32 %10, i32* %2
ret void
}