#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 */
typedef int /*<<< orphan*/ wchar_t;

/* Variables and functions */
int /*<<< orphan*/ wcsncat(int /*<<< orphan*/ *, int /*<<< orphan*/ *, size_t);
void uninitvar_wcsncat(wchar_t *Ct, wchar_t *S, size_t N) {
  wchar_t *ct_1, *ct_2;
  wchar_t *s;
  size_t n1, n2;
  (void)wcsncat(ct_1, s, n1);
  (void)wcsncat(ct_2, S, N);
  (void)wcsncat(Ct, s, N);
  (void)wcsncat(Ct, S, n2);
  (void)wcsncat(Ct, S, N);
}


x86 assembly (clang, -O0):
<uninitvar_wcsncat>:
push   %rbp
mov    %rsp,%rbp
sub    $0x40,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    -0x20(%rbp),%rdi
mov    -0x30(%rbp),%rsi
mov    -0x38(%rbp),%rdx
call   1030 <wcsncat@plt>
mov    -0x28(%rbp),%rdi
mov    -0x10(%rbp),%rsi
mov    -0x18(%rbp),%rdx
call   1030 <wcsncat@plt>
mov    -0x8(%rbp),%rdi
mov    -0x30(%rbp),%rsi
mov    -0x18(%rbp),%rdx
call   1030 <wcsncat@plt>
mov    -0x8(%rbp),%rdi
mov    -0x10(%rbp),%rsi
mov    -0x40(%rbp),%rdx
call   1030 <wcsncat@plt>
mov    -0x8(%rbp),%rdi
mov    -0x10(%rbp),%rsi
mov    -0x18(%rbp),%rdx
call   1030 <wcsncat@plt>
add    $0x40,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<uninitvar_wcsncat>:
push   %r15
push   %r14
push   %rbx
mov    %rdx,%r14
mov    %rsi,%r15
mov    %rdi,%rbx
call   1030 <wcsncat@plt>
mov    %r15,%rsi
mov    %r14,%rdx
call   1030 <wcsncat@plt>
mov    %rbx,%rdi
mov    %r14,%rdx
call   1030 <wcsncat@plt>
mov    %rbx,%rdi
mov    %r15,%rsi
call   1030 <wcsncat@plt>
mov    %rbx,%rdi
mov    %r15,%rsi
mov    %r14,%rdx
pop    %rbx
pop    %r14
pop    %r15
jmp    1030 <wcsncat@plt>

LLVM IR (-O0):
define void @uninitvar_wcsncat(i32* %0, i32* %1, i64 %2) {
%4 = alloca i32*
%5 = alloca i32*
%6 = alloca i64
%7 = alloca i32*
%8 = alloca i32*
%9 = alloca i32*
%10 = alloca i64
%11 = alloca i64
store i32* %0, i32** %4
store i32* %1, i32** %5
store i64 %2, i64* %6
%12 = load i32*, i32** %7
%13 = load i32*, i32** %9
%14 = load i64, i64* %10
%15 = call i32 @wcsncat(i32* %12, i32* %13, i64 %14)
%16 = load i32*, i32** %8
%17 = load i32*, i32** %5
%18 = load i64, i64* %6
%19 = call i32 @wcsncat(i32* %16, i32* %17, i64 %18)
%20 = load i32*, i32** %4
%21 = load i32*, i32** %9
%22 = load i64, i64* %6
%23 = call i32 @wcsncat(i32* %20, i32* %21, i64 %22)
%24 = load i32*, i32** %4
%25 = load i32*, i32** %5
%26 = load i64, i64* %11
%27 = call i32 @wcsncat(i32* %24, i32* %25, i64 %26)
%28 = load i32*, i32** %4
%29 = load i32*, i32** %5
%30 = load i64, i64* %6
%31 = call i32 @wcsncat(i32* %28, i32* %29, i64 %30)
ret void
}

LLVM IR (-O2):
define void @uninitvar_wcsncat(i32* %0, i32* %1, i64 %2) {
%4 = tail call i32 @wcsncat(i32* undef, i32* undef, i64 undef)
%5 = tail call i32 @wcsncat(i32* undef, i32* %1, i64 %2)
%6 = tail call i32 @wcsncat(i32* %0, i32* undef, i64 %2)
%7 = tail call i32 @wcsncat(i32* %0, i32* %1, i64 undef)
%8 = tail call i32 @wcsncat(i32* %0, i32* %1, i64 %2)
ret void
}