#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*/ snprintf(char *, size_t, char *, int);
void uninitvar_snprintf(char *S, size_t N, char *Format, int Int) {
  size_t n1, n2;
  char *format;
  int i1, i2;
  char *s1, *s2;
  (void)snprintf(s1, n1, format, i1);
  (void)snprintf(S, n2, Format, Int);
  (void)snprintf(S, N, format, Int);
  (void)snprintf(S, N, Format, i2);
  (void)snprintf(s2, N, Format, Int);
  (void)snprintf(S, N, Format, Int);
}


x86 assembly (clang, -O0):
<uninitvar_snprintf>:
push   %rbp
mov    %rsp,%rbp
sub    $0x50,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    %ecx,-0x1c(%rbp)
mov    -0x48(%rbp),%rdi
mov    -0x28(%rbp),%rsi
mov    -0x38(%rbp),%rdx
mov    -0x3c(%rbp),%ecx
call   1030 <snprintf@plt>
mov    -0x8(%rbp),%rdi
mov    -0x30(%rbp),%rsi
mov    -0x18(%rbp),%rdx
mov    -0x1c(%rbp),%ecx
call   1030 <snprintf@plt>
mov    -0x8(%rbp),%rdi
mov    -0x10(%rbp),%rsi
mov    -0x38(%rbp),%rdx
mov    -0x1c(%rbp),%ecx
call   1030 <snprintf@plt>
mov    -0x8(%rbp),%rdi
mov    -0x10(%rbp),%rsi
mov    -0x18(%rbp),%rdx
mov    -0x40(%rbp),%ecx
call   1030 <snprintf@plt>
mov    -0x50(%rbp),%rdi
mov    -0x10(%rbp),%rsi
mov    -0x18(%rbp),%rdx
mov    -0x1c(%rbp),%ecx
call   1030 <snprintf@plt>
mov    -0x8(%rbp),%rdi
mov    -0x10(%rbp),%rsi
mov    -0x18(%rbp),%rdx
mov    -0x1c(%rbp),%ecx
call   1030 <snprintf@plt>
add    $0x50,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<uninitvar_snprintf>:
push   %rbp
push   %r15
push   %r14
push   %rbx
push   %rax
mov    %ecx,%r14d
mov    %rdx,%r15
mov    %rsi,%rbp
mov    %rdi,%rbx
call   1030 <snprintf@plt>
mov    %rbx,%rdi
mov    %r15,%rdx
mov    %r14d,%ecx
call   1030 <snprintf@plt>
mov    %rbx,%rdi
mov    %rbp,%rsi
mov    %r14d,%ecx
call   1030 <snprintf@plt>
mov    %rbx,%rdi
mov    %rbp,%rsi
mov    %r15,%rdx
call   1030 <snprintf@plt>
mov    %rbp,%rsi
mov    %r15,%rdx
mov    %r14d,%ecx
call   1030 <snprintf@plt>
mov    %rbx,%rdi
mov    %rbp,%rsi
mov    %r15,%rdx
mov    %r14d,%ecx
add    $0x8,%rsp
pop    %rbx
pop    %r14
pop    %r15
pop    %rbp
jmp    1030 <snprintf@plt>

LLVM IR (-O0):
define void @uninitvar_snprintf(i8* %0, i64 %1, i8* %2, i32 %3) {
%5 = alloca i8*
%6 = alloca i64
%7 = alloca i8*
%8 = alloca i32
%9 = alloca i64
%10 = alloca i64
%11 = alloca i8*
%12 = alloca i32
%13 = alloca i32
%14 = alloca i8*
%15 = alloca i8*
store i8* %0, i8** %5
store i64 %1, i64* %6
store i8* %2, i8** %7
store i32 %3, i32* %8
%16 = load i8*, i8** %14
%17 = load i64, i64* %9
%18 = load i8*, i8** %11
%19 = load i32, i32* %12
%20 = call i32 @snprintf(i8* %16, i64 %17, i8* %18, i32 %19)
%21 = load i8*, i8** %5
%22 = load i64, i64* %10
%23 = load i8*, i8** %7
%24 = load i32, i32* %8
%25 = call i32 @snprintf(i8* %21, i64 %22, i8* %23, i32 %24)
%26 = load i8*, i8** %5
%27 = load i64, i64* %6
%28 = load i8*, i8** %11
%29 = load i32, i32* %8
%30 = call i32 @snprintf(i8* %26, i64 %27, i8* %28, i32 %29)
%31 = load i8*, i8** %5
%32 = load i64, i64* %6
%33 = load i8*, i8** %7
%34 = load i32, i32* %13
%35 = call i32 @snprintf(i8* %31, i64 %32, i8* %33, i32 %34)
%36 = load i8*, i8** %15
%37 = load i64, i64* %6
%38 = load i8*, i8** %7
%39 = load i32, i32* %8
%40 = call i32 @snprintf(i8* %36, i64 %37, i8* %38, i32 %39)
%41 = load i8*, i8** %5
%42 = load i64, i64* %6
%43 = load i8*, i8** %7
%44 = load i32, i32* %8
%45 = call i32 @snprintf(i8* %41, i64 %42, i8* %43, i32 %44)
ret void
}

LLVM IR (-O2):
define void @uninitvar_snprintf(i8* %0, i64 %1, i8* %2, i32 %3) {
%5 = tail call i32 @snprintf(i8* undef, i64 undef, i8* undef, i32 undef)
%6 = tail call i32 @snprintf(i8* %0, i64 undef, i8* %2, i32 %3)
%7 = tail call i32 @snprintf(i8* %0, i64 %1, i8* undef, i32 %3)
%8 = tail call i32 @snprintf(i8* %0, i64 %1, i8* %2, i32 undef)
%9 = tail call i32 @snprintf(i8* undef, i64 %1, i8* %2, i32 %3)
%10 = tail call i32 @snprintf(i8* %0, i64 %1, i8* %2, i32 %3)
ret void
}