#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*/ strncpy(char *, char *, int);
int DefaultFooter(char *source, char *dest, int size) {
  if (!source || !dest || !size) {
    return (0);
  }
  strncpy(dest,
          "     </td>\n"
          "    </tr>\n"
          "    </tbody>\n"
          "   </table>\n"
          "<center>\n"
          "<BR><BR><FONT SIZE=-1>"
          "This site is powered by <A "
          "HREF=\"http://www.wuerth-phoenix.com/neteye\">SafedAgent for "
          "UNIX.</A></FONT>"
          "</center>\n"
          "</td></tr></tbody></table>\n"
          "</body></html>",
          size);
  return (0);
}


x86 assembly (clang, -O0):
<DefaultFooter>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x10(%rbp)
mov    %rsi,-0x18(%rbp)
mov    %edx,-0x1c(%rbp)
cmpq   $0x0,-0x10(%rbp)
je     1143 <DefaultFooter+0x33>
cmpq   $0x0,-0x18(%rbp)
je     1143 <DefaultFooter+0x33>
cmpl   $0x0,-0x1c(%rbp)
jne    114f <DefaultFooter+0x3f>
movl   $0x0,-0x4(%rbp)
jmp    1169 <DefaultFooter+0x59>
mov    -0x18(%rbp),%rdi
mov    -0x1c(%rbp),%edx
lea    0xea3(%rip),%rsi
call   1030 <strncpy@plt>
movl   $0x0,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<DefaultFooter>:
test   %rdi,%rdi
je     1135 <DefaultFooter+0x25>
test   %rsi,%rsi
je     1135 <DefaultFooter+0x25>
test   %edx,%edx
je     1135 <DefaultFooter+0x25>
push   %rax
lea    0xeda(%rip),%rax
mov    %rsi,%rdi
mov    %rax,%rsi
call   1030 <strncpy@plt>
add    $0x8,%rsp
xor    %eax,%eax
ret

LLVM IR (-O0):
@.str = [231 x i8] c" </td>\0A </tr>\0A </tbody>\0A </table>\0A<center>\0A<BR><BR><FONT SIZE=-1>This site is powered by <A HREF=\22http://www.wuerth-phoenix.com/neteye\22>SafedAgent for UNIX.</A></FONT></center>\0A</td></tr></tbody></table>\0A</body></html>\00"
define i32 @DefaultFooter(i8* %0, i8* %1, i32 %2) {
%4 = alloca i32
%5 = alloca i8*
%6 = alloca i8*
%7 = alloca i32
store i8* %0, i8** %5
store i8* %1, i8** %6
store i32 %2, i32* %7
%8 = load i8*, i8** %5
%9 = icmp ne i8* %8, null
br i1 %9, label %10, label %16
10: ; preds = %3
%11 = load i8*, i8** %6
%12 = icmp ne i8* %11, null
br i1 %12, label %13, label %16
13: ; preds = %10
%14 = load i32, i32* %7
%15 = icmp ne i32 %14, 0
br i1 %15, label %17, label %16
16: ; preds = %13, %10, %3
store i32 0, i32* %4
br label %21
17: ; preds = %13
%18 = load i8*, i8** %6
%19 = load i32, i32* %7
%20 = call i32 @strncpy(i8* %18, i8* getelementptr inbounds ([231 x i8], [231 x i8]* @.str, i64 0, i64 0), i32 %19)
store i32 0, i32* %4
br label %21
21: ; preds = %17, %16
%22 = load i32, i32* %4
ret i32 %22
}

LLVM IR (-O2):
@.str = [231 x i8] c" </td>\0A </tr>\0A </tbody>\0A </table>\0A<center>\0A<BR><BR><FONT SIZE=-1>This site is powered by <A HREF=\22http://www.wuerth-phoenix.com/neteye\22>SafedAgent for UNIX.</A></FONT></center>\0A</td></tr></tbody></table>\0A</body></html>\00"
define i32 @DefaultFooter(i8* readnone %0, i8* %1, i32 %2) {
%4 = icmp ne i8* %0, null
%5 = icmp ne i8* %1, null
%6 = and i1 %4, %5
%7 = icmp ne i32 %2, 0
%8 = and i1 %6, %7
br i1 %8, label %9, label %11
9: ; preds = %3
%10 = tail call i32 @strncpy(i8* %1, i8* getelementptr inbounds ([231 x i8], [231 x i8]* @.str, i64 0, i64 0), i32 %2)
br label %11
11: ; preds = %3, %9
ret i32 0
}