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


x86 assembly (clang, -O0):
<WSQ_AddOp_2_1>:
push   %rbp
mov    %rsp,%rbp
sub    $0x130,%rsp
mov    %edi,-0x4(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %edx,-0x14(%rbp)
mov    %ecx,-0x18(%rbp)
mov    %r8d,-0x1c(%rbp)
mov    %r9,-0x28(%rbp)
lea    -0xb0(%rbp),%rdi
mov    -0x14(%rbp),%edx
mov    -0x18(%rbp),%ecx
lea    0xeac(%rip),%rsi
mov    $0x0,%al
call   1040 <sprintf@plt>
lea    -0x130(%rbp),%rdi
mov    -0x1c(%rbp),%edx
lea    0xe97(%rip),%rsi
mov    $0x0,%al
call   1040 <sprintf@plt>
mov    -0x4(%rbp),%edi
mov    -0x10(%rbp),%rsi
lea    -0xb0(%rbp),%rdx
lea    -0x130(%rbp),%rcx
mov    -0x28(%rbp),%r8
call   1030 <WSQ_AddOp@plt>
add    $0x130,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<WSQ_AddOp_2_1>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x108,%rsp
mov    %r9,%r14
mov    %r8d,%ebp
mov    %rsi,%r15
mov    %edi,%ebx
lea    0xebd(%rip),%rsi
lea    0x80(%rsp),%r12
mov    %r12,%rdi
xor    %eax,%eax
call   1040 <sprintf@plt>
lea    0xea7(%rip),%rsi
mov    %rsp,%r13
mov    %r13,%rdi
mov    %ebp,%edx
xor    %eax,%eax
call   1040 <sprintf@plt>
mov    %ebx,%edi
mov    %r15,%rsi
mov    %r12,%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 = [6 x i8] c"%d %d\00"
@.str.1 = [3 x i8] c"%d\00"
define void @WSQ_AddOp_2_1(i32 %0, i8* %1, i32 %2, i32 %3, i32 %4, i8* %5) {
%7 = alloca i32
%8 = alloca i8*
%9 = alloca i32
%10 = alloca i32
%11 = alloca i32
%12 = alloca i8*
%13 = alloca [128 x i8]
%14 = alloca [128 x i8]
store i32 %0, i32* %7
store i8* %1, i8** %8
store i32 %2, i32* %9
store i32 %3, i32* %10
store i32 %4, i32* %11
store i8* %5, i8** %12
%15 = getelementptr inbounds [128 x i8], [128 x i8]* %13, i64 0, i64 0
%16 = load i32, i32* %9
%17 = load i32, i32* %10
%18 = call i32 (i8*, i8*, i32, ...) @sprintf(i8* %15, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0), i32 %16, i32 %17)
%19 = getelementptr inbounds [128 x i8], [128 x i8]* %14, i64 0, i64 0
%20 = load i32, i32* %11
%21 = call i32 (i8*, i8*, i32, ...) @sprintf(i8* %19, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32 %20)
%22 = load i32, i32* %7
%23 = load i8*, i8** %8
%24 = getelementptr inbounds [128 x i8], [128 x i8]* %13, i64 0, i64 0
%25 = getelementptr inbounds [128 x i8], [128 x i8]* %14, i64 0, i64 0
%26 = load i8*, i8** %12
%27 = call i32 @WSQ_AddOp(i32 %22, i8* %23, i8* %24, i8* %25, i8* %26)
ret void
}

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