#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*/ WSQ_AddOp(int, char const *, char *, char *, char const *);
int /*<<< orphan*/ sprintf(char *, char *, int);
void WSQ_AddOp_1_1(int node_id, const char *optype, int in, int out,
                   const char *args) {
  char buf1[128];
  char buf2[128];
  sprintf(buf1, "%d", in);
  sprintf(buf2, "%d", out);
  WSQ_AddOp(node_id, optype, buf1, buf2, args);
}


x86 assembly (clang, -O0):
<WSQ_AddOp_1_1>:
push   %rbp
mov    %rsp,%rbp
sub    $0x120,%rsp
mov    %edi,-0x4(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %edx,-0x14(%rbp)
mov    %ecx,-0x18(%rbp)
mov    %r8,-0x20(%rbp)
lea    -0xa0(%rbp),%rdi
mov    -0x14(%rbp),%edx
lea    0xeb3(%rip),%rsi
call   1040 <sprintf@plt>
lea    -0x120(%rbp),%rdi
mov    -0x18(%rbp),%edx
lea    0xe9d(%rip),%rsi
call   1040 <sprintf@plt>
mov    -0x4(%rbp),%edi
mov    -0x10(%rbp),%rsi
lea    -0xa0(%rbp),%rdx
lea    -0x120(%rbp),%rcx
mov    -0x20(%rbp),%r8
call   1030 <WSQ_AddOp@plt>
add    $0x120,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<WSQ_AddOp_1_1>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x108,%rsp
mov    %r8,%r14
mov    %ecx,%ebp
mov    %rsi,%r15
mov    %edi,%ebx
lea    0xebe(%rip),%r12
mov    %rsp,%rdi
mov    %r12,%rsi
call   1040 <sprintf@plt>
lea    0x80(%rsp),%r13
mov    %r13,%rdi
mov    %r12,%rsi
mov    %ebp,%edx
call   1040 <sprintf@plt>
mov    %ebx,%edi
mov    %r15,%rsi
mov    %rsp,%rdx
mov    %r13,%rcx
mov    %r14,%r8
call   1030 <WSQ_AddOp@plt>
add    $0x108,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [3 x i8] c"%d\00"
define void @WSQ_AddOp_1_1(i32 %0, i8* %1, i32 %2, i32 %3, i8* %4) {
%6 = alloca i32
%7 = alloca i8*
%8 = alloca i32
%9 = alloca i32
%10 = alloca i8*
%11 = alloca [128 x i8]
%12 = alloca [128 x i8]
store i32 %0, i32* %6
store i8* %1, i8** %7
store i32 %2, i32* %8
store i32 %3, i32* %9
store i8* %4, i8** %10
%13 = getelementptr inbounds [128 x i8], [128 x i8]* %11, i64 0, i64 0
%14 = load i32, i32* %8
%15 = call i32 @sprintf(i8* %13, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32 %14)
%16 = getelementptr inbounds [128 x i8], [128 x i8]* %12, i64 0, i64 0
%17 = load i32, i32* %9
%18 = call i32 @sprintf(i8* %16, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32 %17)
%19 = load i32, i32* %6
%20 = load i8*, i8** %7
%21 = getelementptr inbounds [128 x i8], [128 x i8]* %11, i64 0, i64 0
%22 = getelementptr inbounds [128 x i8], [128 x i8]* %12, i64 0, i64 0
%23 = load i8*, i8** %10
%24 = call i32 @WSQ_AddOp(i32 %19, i8* %20, i8* %21, i8* %22, i8* %23)
ret void
}

LLVM IR (-O2):
@.str = [3 x i8] c"%d\00"
define void @WSQ_AddOp_1_1(i32 %0, i8* %1, i32 %2, i32 %3, i8* %4) {
%6 = alloca [128 x i8]
%7 = alloca [128 x i8]
%8 = getelementptr inbounds [128 x i8], [128 x i8]* %6, i64 0, i64 0
%9 = getelementptr inbounds [128 x i8], [128 x i8]* %7, i64 0, i64 0
%10 = call i32 @sprintf(i8* %8, i8* dereferenceable(1) getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32 %2)
%11 = call i32 @sprintf(i8* %9, i8* dereferenceable(1) getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i32 %3)
%12 = call i32 @WSQ_AddOp(i32 %0, i8* %1, i8* %8, i8* %9, i8* %4)
ret void
}