#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*/ fprintf(int /*<<< orphan*/, char *, int *, int *,
                           unsigned int *, unsigned int *, unsigned char *,
                           unsigned long *);
int /*<<< orphan*/ stderr;
void foo(unsigned int x, unsigned int y, unsigned char z, unsigned long q) {
  int *******qvv[1000];
  int s = 0xbeefbeef;
  int t = 0xabababab;
  fprintf(stderr, "s=%p t=%p x=%p, y=%p, z=%p, q=%p\n", &s, &t, &x, &y, &z, &q);
  *((int *)0x0) = 0x19931993;
}


x86 assembly (clang, -O0):
<foo>:
push   %rbp
mov    %rsp,%rbp
sub    $0x1f80,%rsp
mov    %dl,%al
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
mov    %al,-0x9(%rbp)
mov    %rcx,-0x18(%rbp)
movl   $0xbeefbeef,-0x1f64(%rbp)
be ef be
movl   $0xabababab,-0x1f68(%rbp)
ab ab ab
mov    0x2e9b(%rip),%rax
mov    (%rax),%edi
lea    0xeb2(%rip),%rsi
lea    -0x1f64(%rbp),%rdx
lea    -0x1f68(%rbp),%rcx
lea    -0x4(%rbp),%r8
lea    -0x8(%rbp),%r9
lea    -0x9(%rbp),%r10
lea    -0x18(%rbp),%rax
mov    %r10,(%rsp)
mov    %rax,0x8(%rsp)
call   1030 <fprintf@plt>
xor    %eax,%eax
movl   $0x19931993,(%rax)
add    $0x1f80,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<foo>:
sub    $0x28,%rsp
mov    %edi,0x1c(%rsp)
mov    %esi,0x18(%rsp)
mov    %dl,0xf(%rsp)
mov    %rcx,0x20(%rsp)
movl   $0xbeefbeef,0x14(%rsp)
be
movl   $0xabababab,0x10(%rsp)
ab
mov    0x2ea4(%rip),%rax
mov    (%rax),%edi
lea    0x20(%rsp),%rax
lea    0xf(%rsp),%r10
lea    0xeb1(%rip),%rsi
lea    0x14(%rsp),%rdx
lea    0x10(%rsp),%rcx
lea    0x1c(%rsp),%r8
lea    0x18(%rsp),%r9
push   %rax
push   %r10
call   1030 <fprintf@plt>

LLVM IR (-O0):
@stderr = global i32 0
@.str = [34 x i8] c"s=%p t=%p x=%p, y=%p, z=%p, q=%p\0A\00"
define void @foo(i32 %0, i32 %1, i8 zeroext %2, i64 %3) {
%5 = alloca i32
%6 = alloca i32
%7 = alloca i8
%8 = alloca i64
%9 = alloca [1000 x i32*******]
%10 = alloca i32
%11 = alloca i32
store i32 %0, i32* %5
store i32 %1, i32* %6
store i8 %2, i8* %7
store i64 %3, i64* %8
store i32 -1091584273, i32* %10
store i32 -1414812757, i32* %11
%12 = load i32, i32* @stderr
%13 = call i32 @fprintf(i32 %12, i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str, i64 0, i64 0), i32* %10, i32* %11, i32* %5, i32* %6, i8* %7, i64* %8)
store i32 429070739, i32* null
ret void
}

LLVM IR (-O2):
@stderr = global i32 0
@.str = [34 x i8] c"s=%p t=%p x=%p, y=%p, z=%p, q=%p\0A\00"
define void @foo(i32 %0, i32 %1, i8 zeroext %2, i64 %3) {
%5 = alloca i32
%6 = alloca i32
%7 = alloca i8
%8 = alloca i64
%9 = alloca i32
%10 = alloca i32
store i32 %0, i32* %5
store i32 %1, i32* %6
store i8 %2, i8* %7
store i64 %3, i64* %8
%11 = bitcast i32* %9 to i8*
store i32 -1091584273, i32* %9
%12 = bitcast i32* %10 to i8*
store i32 -1414812757, i32* %10
%13 = load i32, i32* @stderr
%14 = call i32 @fprintf(i32 %13, i8* getelementptr inbounds ([34 x i8], [34 x i8]* @.str, i64 0, i64 0), i32* %9, i32* %10, i32* %5, i32* %6, i8* %7, i64* %8)
unreachable
}