#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*/ sprintf(char *, char *, int, int, int, int, int, int);
int /*<<< orphan*/ strcat(char *, char *);
void print_tentry(char *buf, int a1, int a2, int b1, int b2, int c1, int c2) {
  char tmp[256];
  sprintf(tmp, "    {%d,%d, %d,%d, %d,%d},\n", a1, a2, b1, b2, c1, c2);
  strcat(buf, tmp);
}


x86 assembly (clang, -O0):
<print_tentry>:
push   %rbp
mov    %rsp,%rbp
sub    $0x130,%rsp
mov    0x10(%rbp),%eax
mov    %rdi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
mov    %edx,-0x10(%rbp)
mov    %ecx,-0x14(%rbp)
mov    %r8d,-0x18(%rbp)
mov    %r9d,-0x1c(%rbp)
lea    -0x120(%rbp),%rdi
mov    -0xc(%rbp),%edx
mov    -0x10(%rbp),%ecx
mov    -0x14(%rbp),%r8d
mov    -0x18(%rbp),%r9d
mov    -0x1c(%rbp),%r10d
mov    0x10(%rbp),%eax
lea    0xe9a(%rip),%rsi
mov    %r10d,(%rsp)
mov    %eax,0x8(%rsp)
call   1040 <sprintf@plt>
mov    -0x8(%rbp),%rdi
lea    -0x120(%rbp),%rsi
call   1030 <strcat@plt>
add    $0x130,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<print_tentry>:
push   %r14
push   %rbx
sub    $0x108,%rsp
mov    %r9d,%eax
mov    %r8d,%r9d
mov    %ecx,%r8d
mov    %edx,%ecx
mov    %esi,%edx
mov    %rdi,%rbx
mov    0x120(%rsp),%r10d
lea    0xeb7(%rip),%rsi
mov    %rsp,%r14
mov    %r14,%rdi
push   %r10
push   %rax
call   1040 <sprintf@plt>
add    $0x10,%rsp
mov    %rbx,%rdi
mov    %r14,%rsi
call   1030 <strcat@plt>
add    $0x108,%rsp
pop    %rbx
pop    %r14
ret

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

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