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


x86 assembly (clang, -O0):
<infinite_taunt2>:
push   %rbp
mov    %rsp,%rbp
sub    $0x50,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %edx,-0x14(%rbp)
mov    -0x10(%rbp),%rax
mov    %rax,-0x40(%rbp)
mov    -0x14(%rbp),%eax
mov    %eax,-0x34(%rbp)
mov    -0x8(%rbp),%rdi
call   1060 <you@plt>
mov    %rax,-0x30(%rbp)
mov    -0x8(%rbp),%rdi
call   1040 <are@plt>
mov    %rax,-0x28(%rbp)
mov    -0x8(%rbp),%rdi
call   1070 <adjective@plt>
mov    %rax,-0x20(%rbp)
mov    -0x8(%rbp),%rdi
call   1030 <bad_thing@plt>
mov    -0x40(%rbp),%rdi
mov    -0x34(%rbp),%esi
mov    -0x30(%rbp),%rcx
mov    -0x28(%rbp),%r8
mov    -0x20(%rbp),%r9
lea    0xe45(%rip),%rdx
mov    %rax,(%rsp)
call   1050 <snprintf@plt>
add    $0x50,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<infinite_taunt2>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
push   %rax
mov    %edx,%r14d
mov    %rsi,%r15
mov    %rdi,%rbp
call   1060 <you@plt>
mov    %rax,%r12
mov    %rbp,%rdi
call   1040 <are@plt>
mov    %rax,%r13
mov    %rbp,%rdi
call   1070 <adjective@plt>
mov    %rax,%rbx
mov    %rbp,%rdi
call   1030 <bad_thing@plt>
mov    %rax,(%rsp)
lea    0xe6b(%rip),%rdx
mov    %r15,%rdi
mov    %r14d,%esi
mov    %r12,%rcx
mov    %r13,%r8
mov    %rbx,%r9
call   1050 <snprintf@plt>
add    $0x8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
%struct.mtwist_state = type { i32 }
@.str = [12 x i8] c"%s %s %s %s\00"
define void @infinite_taunt2(%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* @are(%struct.mtwist_state* %11)
%13 = load %struct.mtwist_state*, %struct.mtwist_state** %4
%14 = call i8* @adjective(%struct.mtwist_state* %13)
%15 = load %struct.mtwist_state*, %struct.mtwist_state** %4
%16 = call i8* @bad_thing(%struct.mtwist_state* %15)
%17 = call i32 @snprintf(i8* %7, i32 %8, i8* getelementptr inbounds ([12 x i8], [12 x i8]* @.str, i64 0, i64 0), i8* %10, i8* %12, i8* %14, i8* %16)
ret void
}

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