#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*/ printf(char *, ...);
void uninitvar_printf(char *Format, int Argument) {
  char *format_1, *format_2, *format_3;
  int argument1, argument2;
  (void)printf("x");
  (void)printf(format_1, argument1);
  (void)printf(Format, argument2);
  (void)printf(format_2, Argument);
  (void)printf(format_3, 1);
  (void)printf(Format, Argument);
}


x86 assembly (clang, -O0):
<uninitvar_printf>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
mov    %rdi,-0x8(%rbp)
mov    %esi,-0xc(%rbp)
lea    0xeda(%rip),%rdi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x18(%rbp),%rdi
mov    -0x2c(%rbp),%esi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x8(%rbp),%rdi
mov    -0x30(%rbp),%esi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x20(%rbp),%rdi
mov    -0xc(%rbp),%esi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x28(%rbp),%rdi
mov    $0x1,%esi
mov    $0x0,%al
call   1030 <printf@plt>
mov    -0x8(%rbp),%rdi
mov    -0xc(%rbp),%esi
mov    $0x0,%al
call   1030 <printf@plt>
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<uninitvar_printf>:
push   %rbp
push   %rbx
push   %rax
mov    %esi,%ebp
mov    %rdi,%rbx
mov    $0x78,%edi
call   1030 <putchar@plt>
xor    %eax,%eax
call   1040 <printf@plt>
mov    %rbx,%rdi
xor    %eax,%eax
call   1040 <printf@plt>
mov    %ebp,%esi
xor    %eax,%eax
call   1040 <printf@plt>
mov    $0x1,%esi
xor    %eax,%eax
call   1040 <printf@plt>
mov    %rbx,%rdi
mov    %ebp,%esi
xor    %eax,%eax
add    $0x8,%rsp
pop    %rbx
pop    %rbp
jmp    1040 <printf@plt>

LLVM IR (-O0):
@.str = [2 x i8] c"x\00"
define void @uninitvar_printf(i8* %0, i32 %1) {
%3 = alloca i8*
%4 = alloca i32
%5 = alloca i8*
%6 = alloca i8*
%7 = alloca i8*
%8 = alloca i32
%9 = alloca i32
store i8* %0, i8** %3
store i32 %1, i32* %4
%10 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
%11 = load i8*, i8** %5
%12 = load i32, i32* %8
%13 = call i32 (i8*, ...) @printf(i8* %11, i32 %12)
%14 = load i8*, i8** %3
%15 = load i32, i32* %9
%16 = call i32 (i8*, ...) @printf(i8* %14, i32 %15)
%17 = load i8*, i8** %6
%18 = load i32, i32* %4
%19 = call i32 (i8*, ...) @printf(i8* %17, i32 %18)
%20 = load i8*, i8** %7
%21 = call i32 (i8*, ...) @printf(i8* %20, i32 1)
%22 = load i8*, i8** %3
%23 = load i32, i32* %4
%24 = call i32 (i8*, ...) @printf(i8* %22, i32 %23)
ret void
}

LLVM IR (-O2):
define void @uninitvar_printf(i8* nocapture %0, i32 %1) {
%3 = tail call i32 @putchar(i32 120)
%4 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) undef, i32 undef)
%5 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) %0, i32 undef)
%6 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) undef, i32 %1)
%7 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) undef, i32 1)
%8 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) %0, i32 %1)
ret void
}