#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*/ wcscat_s(int /*<<< orphan*/ *, size_t, int /*<<< orphan*/ *);
void uninitvar_wcscat_s(wchar_t *Ct, size_t N, wchar_t *S) {
  wchar_t *ct_1, *ct_2;
  wchar_t *s;
  size_t n1, n2;
  (void)wcscat_s(ct_1, n1, s);
  (void)wcscat_s(ct_2, N, S);
  (void)wcscat_s(Ct, N, s);
  (void)wcscat_s(Ct, n2, S);
  (void)wcscat_s(Ct, N, S);
}


x86 assembly (clang, -O0):
<uninitvar_wcscat_s>:
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    -0x38(%rbp),%rsi
mov    -0x30(%rbp),%rdx
call   1030 <wcscat_s@plt>
mov    -0x28(%rbp),%rdi
mov    -0x10(%rbp),%rsi
mov    -0x18(%rbp),%rdx
call   1030 <wcscat_s@plt>
mov    -0x8(%rbp),%rdi
mov    -0x10(%rbp),%rsi
mov    -0x30(%rbp),%rdx
call   1030 <wcscat_s@plt>
mov    -0x8(%rbp),%rdi
mov    -0x40(%rbp),%rsi
mov    -0x18(%rbp),%rdx
call   1030 <wcscat_s@plt>
mov    -0x8(%rbp),%rdi
mov    -0x10(%rbp),%rsi
mov    -0x18(%rbp),%rdx
call   1030 <wcscat_s@plt>
add    $0x40,%rsp
pop    %rbp
ret

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

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

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