#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 *);
char *nationality(struct mtwist_state *);
int /*<<< orphan*/ snprintf(char *, int, char *, char *, char *, char *, char *,
                            char *, char *);
char *you(struct mtwist_state *);
void infinite_taunt1(struct mtwist_state *mt, char *buffer, int buflen) {
  snprintf(buffer, buflen, "%s %s %s %s %s %s", you(mt), action(mt), like(mt),
           adjective(mt), nationality(mt), beast(mt));
}


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

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

LLVM IR (-O0):
%struct.mtwist_state = type { i32 }
@.str = [18 x i8] c"%s %s %s %s %s %s\00"
define void @infinite_taunt1(%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* @nationality(%struct.mtwist_state* %17)
%19 = load %struct.mtwist_state*, %struct.mtwist_state** %4
%20 = call i8* @beast(%struct.mtwist_state* %19)
%21 = call i32 @snprintf(i8* %7, i32 %8, i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str, i64 0, i64 0), i8* %10, i8* %12, i8* %14, i8* %16, i8* %18, i8* %20)
ret void
}

LLVM IR (-O2):
%struct.mtwist_state = type { i32 }
@.str = [18 x i8] c"%s %s %s %s %s %s\00"
define void @infinite_taunt1(%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* @nationality(%struct.mtwist_state* %0)
%9 = tail call i8* @beast(%struct.mtwist_state* %0)
%10 = tail call i32 @snprintf(i8* %1, i32 %2, i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str, i64 0, i64 0), i8* %4, i8* %5, i8* %6, i8* %7, i8* %8, i8* %9)
ret void
}