#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*/ strncat_s(char *, size_t, char *, size_t);
void uninitvar_strncat_s(char *Ct, size_t N1, char *S, size_t N2) {
  char *ct_1, *ct_2;
  char *s;
  size_t n1;
  size_t n2;
  size_t n3;
  size_t n4;
  (void)strncat_s(ct_1, n1, s, n2);
  (void)strncat_s(ct_2, N1, S, N2);
  (void)strncat_s(Ct, n3, S, N2);
  (void)strncat_s(Ct, N1, s, N2);
  (void)strncat_s(Ct, N1, S, n4);
  (void)strncat_s(Ct, N1, S, N2);
}


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

x86 assembly (clang, -O2):
<uninitvar_strncat_s>:
push   %r15
push   %r14
push   %r12
push   %rbx
push   %rax
mov    %rcx,%r14
mov    %rdx,%r15
mov    %rsi,%r12
mov    %rdi,%rbx
call   1030 <strncat_s@plt>
mov    %r12,%rsi
mov    %r15,%rdx
mov    %r14,%rcx
call   1030 <strncat_s@plt>
mov    %rbx,%rdi
mov    %r15,%rdx
mov    %r14,%rcx
call   1030 <strncat_s@plt>
mov    %rbx,%rdi
mov    %r12,%rsi
mov    %r14,%rcx
call   1030 <strncat_s@plt>
mov    %rbx,%rdi
mov    %r12,%rsi
mov    %r15,%rdx
call   1030 <strncat_s@plt>
mov    %rbx,%rdi
mov    %r12,%rsi
mov    %r15,%rdx
mov    %r14,%rcx
add    $0x8,%rsp
pop    %rbx
pop    %r12
pop    %r14
pop    %r15
jmp    1030 <strncat_s@plt>

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

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