#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 Value {
  int dummy;
};
struct ParseState {
  int dummy;
};
struct ExpressionStack {
  int dummy;
};

/* Variables and functions */
int /*<<< orphan*/ ExpressionStackPushValueNode(struct ParseState *,
                                                struct ExpressionStack **,
                                                struct Value *);
struct Value *VariableAllocValueAndCopy(struct ParseState *, struct Value *,
                                        int /*<<< orphan*/);
void ExpressionStackPushValue(struct ParseState *Parser,
                              struct ExpressionStack **StackTop,
                              struct Value *PushValue) {
  struct Value *ValueLoc = VariableAllocValueAndCopy(Parser, PushValue, 0);
  ExpressionStackPushValueNode(Parser, StackTop, ValueLoc);
}


x86 assembly (clang, -O0):
<ExpressionStackPushValue>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    -0x8(%rbp),%rdi
mov    -0x18(%rbp),%rsi
xor    %edx,%edx
call   1030 <VariableAllocValueAndCopy@plt>
mov    %rax,-0x20(%rbp)
mov    -0x8(%rbp),%rdi
mov    -0x10(%rbp),%rsi
mov    -0x20(%rbp),%rdx
call   1040 <ExpressionStackPushValueNode@plt>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<ExpressionStackPushValue>:
push   %r14
push   %rbx
push   %rax
mov    %rsi,%r14
mov    %rdi,%rbx
mov    %rdx,%rsi
xor    %edx,%edx
call   1030 <VariableAllocValueAndCopy@plt>
mov    %rbx,%rdi
mov    %r14,%rsi
mov    %rax,%rdx
add    $0x8,%rsp
pop    %rbx
pop    %r14
jmp    1040 <ExpressionStackPushValueNode@plt>

LLVM IR (-O0):
%struct.ParseState = type { i32 }
%struct.ExpressionStack = type { i32 }
%struct.Value = type { i32 }
define void @ExpressionStackPushValue(%struct.ParseState* %0, %struct.ExpressionStack** %1, %struct.Value* %2) {
%4 = alloca %struct.ParseState*
%5 = alloca %struct.ExpressionStack**
%6 = alloca %struct.Value*
%7 = alloca %struct.Value*
store %struct.ParseState* %0, %struct.ParseState** %4
store %struct.ExpressionStack** %1, %struct.ExpressionStack*** %5
store %struct.Value* %2, %struct.Value** %6
%8 = load %struct.ParseState*, %struct.ParseState** %4
%9 = load %struct.Value*, %struct.Value** %6
%10 = call %struct.Value* @VariableAllocValueAndCopy(%struct.ParseState* %8, %struct.Value* %9, i32 0)
store %struct.Value* %10, %struct.Value** %7
%11 = load %struct.ParseState*, %struct.ParseState** %4
%12 = load %struct.ExpressionStack**, %struct.ExpressionStack*** %5
%13 = load %struct.Value*, %struct.Value** %7
%14 = call i32 @ExpressionStackPushValueNode(%struct.ParseState* %11, %struct.ExpressionStack** %12, %struct.Value* %13)
ret void
}

LLVM IR (-O2):
%struct.ParseState = type { i32 }
%struct.ExpressionStack = type { i32 }
%struct.Value = type { i32 }
define void @ExpressionStackPushValue(%struct.ParseState* %0, %struct.ExpressionStack** %1, %struct.Value* %2) {
%4 = tail call %struct.Value* @VariableAllocValueAndCopy(%struct.ParseState* %0, %struct.Value* %2, i32 0)
%5 = tail call i32 @ExpressionStackPushValueNode(%struct.ParseState* %0, %struct.ExpressionStack** %1, %struct.Value* %4)
ret void
}