#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 */
struct mtwist_state {
  int dummy;
};

/* Variables and functions */
char *action(struct mtwist_state *);
char *adjective(struct mtwist_state *);
char *beast(struct mtwist_state *);
char *like(struct mtwist_state *);
int /*<<< orphan*/ snprintf(char *, int, char *, char *, char *, char *, char *,
                            char *);
char *you(struct mtwist_state *);
void infinite_taunt0(struct mtwist_state *mt, char *buffer, int buflen) {
  snprintf(buffer, buflen, "%s %s %s %s %s", you(mt), action(mt), like(mt),
           adjective(mt), beast(mt));
}


x86 assembly (clang, -O0):
<infinite_taunt0>:
push   %rbp
mov    %rsp,%rbp
sub    $0x60,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %edx,-0x14(%rbp)
mov    -0x10(%rbp),%rax
mov    %rax,-0x48(%rbp)
mov    -0x14(%rbp),%eax
mov    %eax,-0x3c(%rbp)
mov    -0x8(%rbp),%rdi
call   1050 <you@plt>
mov    %rax,-0x38(%rbp)
mov    -0x8(%rbp),%rdi
call   1070 <action@plt>
mov    %rax,-0x30(%rbp)
mov    -0x8(%rbp),%rdi
call   1080 <like@plt>
mov    %rax,-0x28(%rbp)
mov    -0x8(%rbp),%rdi
call   1060 <adjective@plt>
mov    %rax,-0x20(%rbp)
mov    -0x8(%rbp),%rdi
call   1030 <beast@plt>
mov    -0x48(%rbp),%rdi
mov    -0x3c(%rbp),%esi
mov    -0x38(%rbp),%rcx
mov    -0x30(%rbp),%r8
mov    -0x28(%rbp),%r9
mov    -0x20(%rbp),%r10
lea    0xe24(%rip),%rdx
mov    %r10,(%rsp)
mov    %rax,0x8(%rsp)
call   1040 <snprintf@plt>
add    $0x60,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<infinite_taunt0>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
push   %rax
mov    %edx,0x4(%rsp)
mov    %rsi,%r15
mov    %rdi,%rbp
call   1050 <you@plt>
mov    %rax,%r12
mov    %rbp,%rdi
call   1070 <action@plt>
mov    %rax,%r13
mov    %rbp,%rdi
call   1080 <like@plt>
mov    %rax,%rbx
mov    %rbp,%rdi
call   1060 <adjective@plt>
mov    %rax,%r14
mov    %rbp,%rdi
call   1030 <beast@plt>
lea    0xe53(%rip),%rdx
mov    %r15,%rdi
mov    0x4(%rsp),%esi
mov    %r12,%rcx
mov    %r13,%r8
mov    %rbx,%r9
push   %rax
push   %r14
call   1040 <snprintf@plt>
add    $0x18,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
%struct.mtwist_state = type { i32 }
@.str = [15 x i8] c"%s %s %s %s %s\00"
define void @infinite_taunt0(%struct.mtwist_state* %0, i8* %1, i32 %2) {
%4 = alloca %struct.mtwist_state*
%5 = alloca i8*
%6 = alloca i32
store %struct.mtwist_state* %0, %struct.mtwist_state** %4
store i8* %1, i8** %5
store i32 %2, i32* %6
%7 = load i8*, i8** %5
%8 = load i32, i32* %6
%9 = load %struct.mtwist_state*, %struct.mtwist_state** %4
%10 = call i8* @you(%struct.mtwist_state* %9)
%11 = load %struct.mtwist_state*, %struct.mtwist_state** %4
%12 = call i8* @action(%struct.mtwist_state* %11)
%13 = load %struct.mtwist_state*, %struct.mtwist_state** %4
%14 = call i8* @like(%struct.mtwist_state* %13)
%15 = load %struct.mtwist_state*, %struct.mtwist_state** %4
%16 = call i8* @adjective(%struct.mtwist_state* %15)
%17 = load %struct.mtwist_state*, %struct.mtwist_state** %4
%18 = call i8* @beast(%struct.mtwist_state* %17)
%19 = call i32 @snprintf(i8* %7, i32 %8, i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str, i64 0, i64 0), i8* %10, i8* %12, i8* %14, i8* %16, i8* %18)
ret void
}

LLVM IR (-O2):
%struct.mtwist_state = type { i32 }
@.str = [15 x i8] c"%s %s %s %s %s\00"
define void @infinite_taunt0(%struct.mtwist_state* %0, i8* %1, i32 %2) {
%4 = tail call i8* @you(%struct.mtwist_state* %0)
%5 = tail call i8* @action(%struct.mtwist_state* %0)
%6 = tail call i8* @like(%struct.mtwist_state* %0)
%7 = tail call i8* @adjective(%struct.mtwist_state* %0)
%8 = tail call i8* @beast(%struct.mtwist_state* %0)
%9 = tail call i32 @snprintf(i8* %1, i32 %2, i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str, i64 0, i64 0), i8* %4, i8* %5, i8* %6, i8* %7, i8* %8)
ret void
}