#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*/ time_t;
struct tm {
  int dummy;
};
typedef int /*<<< orphan*/ FILE;

/* Variables and functions */
int /*<<< orphan*/ fwrite(char *, int, int, int /*<<< orphan*/ *);
struct tm *localtime(int /*<<< orphan*/ *);
int /*<<< orphan*/ pad(char *, int);
int /*<<< orphan*/ sprintf(char *, char *, char *, ...);
int /*<<< orphan*/ strcpy(char *, char *);
int /*<<< orphan*/ strftime(char *, int, char *, struct tm *);
int /*<<< orphan*/ time(int /*<<< orphan*/ *);
int write_dcdheader(FILE *fd, char *filename, int N, int NSET, int ISTART,
                    int NSAVC, double DELTA) {
  int out_integer;
  char title_string[200];
  time_t cur_time;
  struct tm *tmbuf;
  char time_str[11];
  out_integer = 84;
  fwrite(((char *)&out_integer), (sizeof(int)), 1, (fd));
  strcpy(title_string, "CORD");
  fwrite((title_string), (4), 1, (fd));
  fwrite(((char *)&NSET), (sizeof(int)), 1, (fd));
  fwrite(((char *)&ISTART), (sizeof(int)), 1, (fd));
  fwrite(((char *)&NSAVC), (sizeof(int)), 1, (fd));
  out_integer = 0;
  fwrite(((char *)&out_integer), (sizeof(int)), 1, (fd));
  fwrite(((char *)&out_integer), (sizeof(int)), 1, (fd));
  fwrite(((char *)&out_integer), (sizeof(int)), 1, (fd));
  fwrite(((char *)&out_integer), (sizeof(int)), 1, (fd));
  fwrite(((char *)&out_integer), (sizeof(int)), 1, (fd));
  fwrite(((char *)&out_integer), (sizeof(int)), 1, (fd));
  fwrite(((char *)&DELTA), (sizeof(double)), 1, (fd));
  fwrite(((char *)&out_integer), (sizeof(int)), 1, (fd));
  fwrite(((char *)&out_integer), (sizeof(int)), 1, (fd));
  fwrite(((char *)&out_integer), (sizeof(int)), 1, (fd));
  fwrite(((char *)&out_integer), (sizeof(int)), 1, (fd));
  fwrite(((char *)&out_integer), (sizeof(int)), 1, (fd));
  fwrite(((char *)&out_integer), (sizeof(int)), 1, (fd));
  fwrite(((char *)&out_integer), (sizeof(int)), 1, (fd));
  fwrite(((char *)&out_integer), (sizeof(int)), 1, (fd));
  fwrite(((char *)&out_integer), (sizeof(int)), 1, (fd));
  out_integer = 84;
  fwrite(((char *)&out_integer), (sizeof(int)), 1, (fd));
  out_integer = 164;
  fwrite(((char *)&out_integer), (sizeof(int)), 1, (fd));
  out_integer = 2;
  fwrite(((char *)&out_integer), (sizeof(int)), 1, (fd));
  sprintf(title_string, "REMARKS FILENAME=%s :: SASSIE", "A.DCD");
  pad(title_string, 80);
  fwrite((title_string), (80), 1, (fd));
  cur_time = time(NULL);
  tmbuf = localtime(&cur_time);
  strftime(time_str, 10, "%m/%d/%y", tmbuf);
  sprintf(title_string, "REMARKS DATE: %s CREATED BY USER: %s", time_str,
          "ikuo");
  pad(title_string, 80);
  fwrite((title_string), (80), 1, (fd));
  out_integer = 164;
  fwrite(((char *)&out_integer), (sizeof(int)), 1, (fd));
  out_integer = 4;
  fwrite(((char *)&out_integer), (sizeof(int)), 1, (fd));
  out_integer = N;
  fwrite(((char *)&out_integer), (sizeof(int)), 1, (fd));
  out_integer = 4;
  fwrite(((char *)&out_integer), (sizeof(int)), 1, (fd));
  return 1;
}


x86 assembly (clang, -O0):
<write_dcdheader>:
push   %rbp
mov    %rsp,%rbp
sub    $0x120,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %edx,-0x14(%rbp)
mov    %ecx,-0x18(%rbp)
mov    %r8d,-0x1c(%rbp)
mov    %r9d,-0x20(%rbp)
movsd  %xmm0,-0x28(%rbp)
movl   $0x54,-0x2c(%rbp)
lea    -0x2c(%rbp),%rdi
mov    -0x8(%rbp),%rcx
mov    $0x4,%esi
mov    $0x1,%edx
call   1090 <fwrite@plt>
lea    -0x100(%rbp),%rdi
lea    0xe3e(%rip),%rsi
call   1040 <strcpy@plt>
lea    -0x100(%rbp),%rdi
mov    -0x8(%rbp),%rcx
mov    $0x4,%esi
mov    $0x1,%edx
call   1090 <fwrite@plt>
lea    -0x18(%rbp),%rdi
mov    -0x8(%rbp),%rcx
mov    $0x4,%esi
mov    $0x1,%edx
call   1090 <fwrite@plt>
lea    -0x1c(%rbp),%rdi
mov    -0x8(%rbp),%rcx
mov    $0x4,%esi
mov    $0x1,%edx
call   1090 <fwrite@plt>
lea    -0x20(%rbp),%rdi
mov    -0x8(%rbp),%rcx
mov    $0x4,%esi
mov    $0x1,%edx
call   1090 <fwrite@plt>
movl   $0x0,-0x2c(%rbp)
lea    -0x2c(%rbp),%rdi
mov    -0x8(%rbp),%rcx
mov    $0x4,%esi
mov    $0x1,%edx
call   1090 <fwrite@plt>
lea    -0x2c(%rbp),%rdi
mov    -0x8(%rbp),%rcx
mov    $0x4,%esi
mov    $0x1,%edx
call   1090 <fwrite@plt>
lea    -0x2c(%rbp),%rdi
mov    -0x8(%rbp),%rcx
mov    $0x4,%esi
mov    $0x1,%edx
call   1090 <fwrite@plt>
lea    -0x2c(%rbp),%rdi
mov    -0x8(%rbp),%rcx
mov    $0x4,%esi
mov    $0x1,%edx
call   1090 <fwrite@plt>
lea    -0x2c(%rbp),%rdi
mov    -0x8(%rbp),%rcx
mov    $0x4,%esi
mov    $0x1,%edx
call   1090 <fwrite@plt>
lea    -0x2c(%rbp),%rdi
mov    -0x8(%rbp),%rcx
mov    $0x4,%esi
mov    $0x1,%edx
call   1090 <fwrite@plt>
lea    -0x28(%rbp),%rdi
mov    -0x8(%rbp),%rcx
mov    $0x8,%esi
mov    $0x1,%edx
call   1090 <fwrite@plt>
lea    -0x2c(%rbp),%rdi
mov    -0x8(%rbp),%rcx
mov    $0x4,%esi
mov    $0x1,%edx
call   1090 <fwrite@plt>
lea    -0x2c(%rbp),%rdi
mov    -0x8(%rbp),%rcx
mov    $0x4,%esi
mov    $0x1,%edx
call   1090 <fwrite@plt>
lea    -0x2c(%rbp),%rdi
mov    -0x8(%rbp),%rcx
mov    $0x4,%esi
mov    $0x1,%edx
call   1090 <fwrite@plt>
lea    -0x2c(%rbp),%rdi
mov    -0x8(%rbp),%rcx
mov    $0x4,%esi
mov    $0x1,%edx
call   1090 <fwrite@plt>
lea    -0x2c(%rbp),%rdi
mov    -0x8(%rbp),%rcx
mov    $0x4,%esi
mov    $0x1,%edx
call   1090 <fwrite@plt>
lea    -0x2c(%rbp),%rdi
mov    -0x8(%rbp),%rcx
mov    $0x4,%esi
mov    $0x1,%edx
call   1090 <fwrite@plt>
lea    -0x2c(%rbp),%rdi
mov    -0x8(%rbp),%rcx
mov    $0x4,%esi
mov    $0x1,%edx
call   1090 <fwrite@plt>
lea    -0x2c(%rbp),%rdi
mov    -0x8(%rbp),%rcx
mov    $0x4,%esi
mov    $0x1,%edx
call   1090 <fwrite@plt>
lea    -0x2c(%rbp),%rdi
mov    -0x8(%rbp),%rcx
mov    $0x4,%esi
mov    $0x1,%edx
call   1090 <fwrite@plt>
movl   $0x54,-0x2c(%rbp)
lea    -0x2c(%rbp),%rdi
mov    -0x8(%rbp),%rcx
mov    $0x4,%esi
mov    $0x1,%edx
call   1090 <fwrite@plt>
movl   $0xa4,-0x2c(%rbp)
lea    -0x2c(%rbp),%rdi
mov    -0x8(%rbp),%rcx
mov    $0x4,%esi
mov    $0x1,%edx
call   1090 <fwrite@plt>
movl   $0x2,-0x2c(%rbp)
lea    -0x2c(%rbp),%rdi
mov    -0x8(%rbp),%rcx
mov    $0x4,%esi
mov    $0x1,%edx
call   1090 <fwrite@plt>
lea    -0x100(%rbp),%rdi
lea    0xc00(%rip),%rsi
lea    0xc17(%rip),%rdx
mov    $0x0,%al
call   1080 <sprintf@plt>
lea    -0x100(%rbp),%rdi
mov    $0x50,%esi
call   1060 <pad@plt>
lea    -0x100(%rbp),%rdi
mov    -0x8(%rbp),%rcx
mov    $0x50,%esi
mov    $0x1,%edx
call   1090 <fwrite@plt>
xor    %eax,%eax
mov    %eax,%edi
call   1050 <time@plt>
mov    %eax,-0x104(%rbp)
lea    -0x104(%rbp),%rdi
call   1030 <localtime@plt>
mov    %rax,-0x110(%rbp)
lea    -0x11b(%rbp),%rdi
mov    -0x110(%rbp),%rcx
mov    $0xa,%esi
lea    0xbaf(%rip),%rdx
call   1070 <strftime@plt>
lea    -0x100(%rbp),%rdi
lea    -0x11b(%rbp),%rdx
lea    0xb9e(%rip),%rsi
lea    0xbbc(%rip),%rcx
mov    $0x0,%al
call   1080 <sprintf@plt>
lea    -0x100(%rbp),%rdi
mov    $0x50,%esi
call   1060 <pad@plt>
lea    -0x100(%rbp),%rdi
mov    -0x8(%rbp),%rcx
mov    $0x50,%esi
mov    $0x1,%edx
call   1090 <fwrite@plt>
movl   $0xa4,-0x2c(%rbp)
lea    -0x2c(%rbp),%rdi
mov    -0x8(%rbp),%rcx
mov    $0x4,%esi
mov    $0x1,%edx
call   1090 <fwrite@plt>
movl   $0x4,-0x2c(%rbp)
lea    -0x2c(%rbp),%rdi
mov    -0x8(%rbp),%rcx
mov    $0x4,%esi
mov    $0x1,%edx
call   1090 <fwrite@plt>
mov    -0x14(%rbp),%eax
mov    %eax,-0x2c(%rbp)
lea    -0x2c(%rbp),%rdi
mov    -0x8(%rbp),%rcx
mov    $0x4,%esi
mov    $0x1,%edx
call   1090 <fwrite@plt>
movl   $0x4,-0x2c(%rbp)
lea    -0x2c(%rbp),%rdi
mov    -0x8(%rbp),%rcx
mov    $0x4,%esi
mov    $0x1,%edx
call   1090 <fwrite@plt>
mov    $0x1,%eax
add    $0x120,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<write_dcdheader>:
push   %rbp
push   %r15
push   %r14
push   %r12
push   %rbx
sub    $0x100,%rsp
mov    %edx,%r15d
mov    %rdi,%rbx
mov    %ecx,0x14(%rsp)
mov    %r8d,0x10(%rsp)
mov    %r9d,0xc(%rsp)
movsd  %xmm0,0x18(%rsp)
movl   $0x54,0x4(%rsp)
lea    0x4(%rsp),%r14
mov    %r14,%rdi
mov    $0x4,%esi
mov    $0x1,%edx
mov    %rbx,%rcx
call   1090 <fwrite@plt>
lea    0xe3e(%rip),%rsi
lea    0x30(%rsp),%r12
mov    %r12,%rdi
call   1040 <strcpy@plt>
mov    %r12,%rdi
mov    $0x4,%esi
mov    $0x1,%edx
mov    %rbx,%rcx
call   1090 <fwrite@plt>
lea    0x14(%rsp),%rdi
mov    $0x4,%esi
mov    $0x1,%edx
mov    %rbx,%rcx
call   1090 <fwrite@plt>
lea    0x10(%rsp),%rdi
mov    $0x4,%esi
mov    $0x1,%edx
mov    %rbx,%rcx
call   1090 <fwrite@plt>
lea    0xc(%rsp),%rdi
mov    $0x4,%esi
mov    $0x1,%edx
mov    %rbx,%rcx
call   1090 <fwrite@plt>
movl   $0x0,0x4(%rsp)
mov    %r14,%rdi
mov    $0x4,%esi
mov    $0x1,%edx
mov    %rbx,%rcx
call   1090 <fwrite@plt>
mov    %r14,%rdi
mov    $0x4,%esi
mov    $0x1,%edx
mov    %rbx,%rcx
call   1090 <fwrite@plt>
mov    %r14,%rdi
mov    $0x4,%esi
mov    $0x1,%edx
mov    %rbx,%rcx
call   1090 <fwrite@plt>
mov    %r14,%rdi
mov    $0x4,%esi
mov    $0x1,%edx
mov    %rbx,%rcx
call   1090 <fwrite@plt>
mov    %r14,%rdi
mov    $0x4,%esi
mov    $0x1,%edx
mov    %rbx,%rcx
call   1090 <fwrite@plt>
mov    %r14,%rdi
mov    $0x4,%esi
mov    $0x1,%edx
mov    %rbx,%rcx
call   1090 <fwrite@plt>
lea    0x18(%rsp),%rdi
mov    $0x8,%esi
mov    $0x1,%edx
mov    %rbx,%rcx
call   1090 <fwrite@plt>
mov    %r14,%rdi
mov    $0x4,%esi
mov    $0x1,%edx
mov    %rbx,%rcx
call   1090 <fwrite@plt>
mov    %r14,%rdi
mov    $0x4,%esi
mov    $0x1,%edx
mov    %rbx,%rcx
call   1090 <fwrite@plt>
mov    %r14,%rdi
mov    $0x4,%esi
mov    $0x1,%edx
mov    %rbx,%rcx
call   1090 <fwrite@plt>
mov    %r14,%rdi
mov    $0x4,%esi
mov    $0x1,%edx
mov    %rbx,%rcx
call   1090 <fwrite@plt>
mov    %r14,%rdi
mov    $0x4,%esi
mov    $0x1,%edx
mov    %rbx,%rcx
call   1090 <fwrite@plt>
mov    %r14,%rdi
mov    $0x4,%esi
mov    $0x1,%edx
mov    %rbx,%rcx
call   1090 <fwrite@plt>
mov    %r14,%rdi
mov    $0x4,%esi
mov    $0x1,%edx
mov    %rbx,%rcx
call   1090 <fwrite@plt>
mov    %r14,%rdi
mov    $0x4,%esi
mov    $0x1,%edx
mov    %rbx,%rcx
call   1090 <fwrite@plt>
mov    %r14,%rdi
mov    $0x4,%esi
mov    $0x1,%edx
mov    %rbx,%rcx
call   1090 <fwrite@plt>
movl   $0x54,0x4(%rsp)
mov    %r14,%rdi
mov    $0x4,%esi
mov    $0x1,%edx
mov    %rbx,%rcx
call   1090 <fwrite@plt>
movl   $0xa4,0x4(%rsp)
mov    %r14,%rdi
mov    $0x4,%esi
mov    $0x1,%edx
mov    %rbx,%rcx
call   1090 <fwrite@plt>
movl   $0x2,0x4(%rsp)
mov    %r14,%rdi
mov    $0x4,%esi
mov    $0x1,%edx
mov    %rbx,%rcx
call   1090 <fwrite@plt>
lea    0xc24(%rip),%rsi
lea    0xc3b(%rip),%rdx
mov    %r12,%rdi
xor    %eax,%eax
call   1080 <sprintf@plt>
mov    %r12,%rdi
mov    $0x50,%esi
call   1060 <pad@plt>
mov    %r12,%rdi
mov    $0x50,%esi
mov    $0x1,%edx
mov    %rbx,%rcx
call   1090 <fwrite@plt>
xor    %edi,%edi
call   1050 <time@plt>
mov    %eax,0x8(%rsp)
lea    0x8(%rsp),%rdi
call   1030 <localtime@plt>
lea    0xbf9(%rip),%rdx
lea    0x25(%rsp),%rbp
mov    %rbp,%rdi
mov    $0xa,%esi
mov    %rax,%rcx
call   1070 <strftime@plt>
lea    0xbe6(%rip),%rsi
lea    0xc04(%rip),%rcx
mov    %r12,%rdi
mov    %rbp,%rdx
xor    %eax,%eax
call   1080 <sprintf@plt>
mov    %r12,%rdi
mov    $0x50,%esi
call   1060 <pad@plt>
mov    %r12,%rdi
mov    $0x50,%esi
mov    $0x1,%edx
mov    %rbx,%rcx
call   1090 <fwrite@plt>
movl   $0xa4,0x4(%rsp)
mov    %r14,%rdi
mov    $0x4,%esi
mov    $0x1,%edx
mov    %rbx,%rcx
call   1090 <fwrite@plt>
movl   $0x4,0x4(%rsp)
mov    %r14,%rdi
mov    $0x4,%esi
mov    $0x1,%edx
mov    %rbx,%rcx
call   1090 <fwrite@plt>
mov    %r15d,0x4(%rsp)
mov    %r14,%rdi
mov    $0x4,%esi
mov    $0x1,%edx
mov    %rbx,%rcx
call   1090 <fwrite@plt>
movl   $0x4,0x4(%rsp)
mov    %r14,%rdi
mov    $0x4,%esi
mov    $0x1,%edx
mov    %rbx,%rcx
call   1090 <fwrite@plt>
mov    $0x1,%eax
add    $0x100,%rsp
pop    %rbx
pop    %r12
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
%struct.tm = type { i32 }
@.str = [5 x i8] c"CORD\00"
@.str.1 = [30 x i8] c"REMARKS FILENAME=%s :: SASSIE\00"
@.str.2 = [6 x i8] c"A.DCD\00"
@.str.3 = [9 x i8] c"%m/%d/%y\00"
@.str.4 = [37 x i8] c"REMARKS DATE: %s CREATED BY USER: %s\00"
@.str.5 = [5 x i8] c"ikuo\00"
define i32 @write_dcdheader(i32* %0, i8* %1, i32 %2, i32 %3, i32 %4, i32 %5, double %6) {
%8 = alloca i32*
%9 = alloca i8*
%10 = alloca i32
%11 = alloca i32
%12 = alloca i32
%13 = alloca i32
%14 = alloca double
%15 = alloca i32
%16 = alloca [200 x i8]
%17 = alloca i32
%18 = alloca %struct.tm*
%19 = alloca [11 x i8]
store i32* %0, i32** %8
store i8* %1, i8** %9
store i32 %2, i32* %10
store i32 %3, i32* %11
store i32 %4, i32* %12
store i32 %5, i32* %13
store double %6, double* %14
store i32 84, i32* %15
%20 = bitcast i32* %15 to i8*
%21 = load i32*, i32** %8
%22 = call i32 @fwrite(i8* %20, i32 4, i32 1, i32* %21)
%23 = getelementptr inbounds [200 x i8], [200 x i8]* %16, i64 0, i64 0
%24 = call i32 @strcpy(i8* %23, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0))
%25 = getelementptr inbounds [200 x i8], [200 x i8]* %16, i64 0, i64 0
%26 = load i32*, i32** %8
%27 = call i32 @fwrite(i8* %25, i32 4, i32 1, i32* %26)
%28 = bitcast i32* %11 to i8*
%29 = load i32*, i32** %8
%30 = call i32 @fwrite(i8* %28, i32 4, i32 1, i32* %29)
%31 = bitcast i32* %12 to i8*
%32 = load i32*, i32** %8
%33 = call i32 @fwrite(i8* %31, i32 4, i32 1, i32* %32)
%34 = bitcast i32* %13 to i8*
%35 = load i32*, i32** %8
%36 = call i32 @fwrite(i8* %34, i32 4, i32 1, i32* %35)
store i32 0, i32* %15
%37 = bitcast i32* %15 to i8*
%38 = load i32*, i32** %8
%39 = call i32 @fwrite(i8* %37, i32 4, i32 1, i32* %38)
%40 = bitcast i32* %15 to i8*
%41 = load i32*, i32** %8
%42 = call i32 @fwrite(i8* %40, i32 4, i32 1, i32* %41)
%43 = bitcast i32* %15 to i8*
%44 = load i32*, i32** %8
%45 = call i32 @fwrite(i8* %43, i32 4, i32 1, i32* %44)
%46 = bitcast i32* %15 to i8*
%47 = load i32*, i32** %8
%48 = call i32 @fwrite(i8* %46, i32 4, i32 1, i32* %47)
%49 = bitcast i32* %15 to i8*
%50 = load i32*, i32** %8
%51 = call i32 @fwrite(i8* %49, i32 4, i32 1, i32* %50)
%52 = bitcast i32* %15 to i8*
%53 = load i32*, i32** %8
%54 = call i32 @fwrite(i8* %52, i32 4, i32 1, i32* %53)
%55 = bitcast double* %14 to i8*
%56 = load i32*, i32** %8
%57 = call i32 @fwrite(i8* %55, i32 8, i32 1, i32* %56)
%58 = bitcast i32* %15 to i8*
%59 = load i32*, i32** %8
%60 = call i32 @fwrite(i8* %58, i32 4, i32 1, i32* %59)
%61 = bitcast i32* %15 to i8*
%62 = load i32*, i32** %8
%63 = call i32 @fwrite(i8* %61, i32 4, i32 1, i32* %62)
%64 = bitcast i32* %15 to i8*
%65 = load i32*, i32** %8
%66 = call i32 @fwrite(i8* %64, i32 4, i32 1, i32* %65)
%67 = bitcast i32* %15 to i8*
%68 = load i32*, i32** %8
%69 = call i32 @fwrite(i8* %67, i32 4, i32 1, i32* %68)
%70 = bitcast i32* %15 to i8*
%71 = load i32*, i32** %8
%72 = call i32 @fwrite(i8* %70, i32 4, i32 1, i32* %71)
%73 = bitcast i32* %15 to i8*
%74 = load i32*, i32** %8
%75 = call i32 @fwrite(i8* %73, i32 4, i32 1, i32* %74)
%76 = bitcast i32* %15 to i8*
%77 = load i32*, i32** %8
%78 = call i32 @fwrite(i8* %76, i32 4, i32 1, i32* %77)
%79 = bitcast i32* %15 to i8*
%80 = load i32*, i32** %8
%81 = call i32 @fwrite(i8* %79, i32 4, i32 1, i32* %80)
%82 = bitcast i32* %15 to i8*
%83 = load i32*, i32** %8
%84 = call i32 @fwrite(i8* %82, i32 4, i32 1, i32* %83)
store i32 84, i32* %15
%85 = bitcast i32* %15 to i8*
%86 = load i32*, i32** %8
%87 = call i32 @fwrite(i8* %85, i32 4, i32 1, i32* %86)
store i32 164, i32* %15
%88 = bitcast i32* %15 to i8*
%89 = load i32*, i32** %8
%90 = call i32 @fwrite(i8* %88, i32 4, i32 1, i32* %89)
store i32 2, i32* %15
%91 = bitcast i32* %15 to i8*
%92 = load i32*, i32** %8
%93 = call i32 @fwrite(i8* %91, i32 4, i32 1, i32* %92)
%94 = getelementptr inbounds [200 x i8], [200 x i8]* %16, i64 0, i64 0
%95 = call i32 (i8*, i8*, i8*, ...) @sprintf(i8* %94, i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.2, i64 0, i64 0))
%96 = getelementptr inbounds [200 x i8], [200 x i8]* %16, i64 0, i64 0
%97 = call i32 @pad(i8* %96, i32 80)
%98 = getelementptr inbounds [200 x i8], [200 x i8]* %16, i64 0, i64 0
%99 = load i32*, i32** %8
%100 = call i32 @fwrite(i8* %98, i32 80, i32 1, i32* %99)
%101 = call i32 @time(i32* null)
store i32 %101, i32* %17
%102 = call %struct.tm* @localtime(i32* %17)
store %struct.tm* %102, %struct.tm** %18
%103 = getelementptr inbounds [11 x i8], [11 x i8]* %19, i64 0, i64 0
%104 = load %struct.tm*, %struct.tm** %18
%105 = call i32 @strftime(i8* %103, i32 10, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.3, i64 0, i64 0), %struct.tm* %104)
%106 = getelementptr inbounds [200 x i8], [200 x i8]* %16, i64 0, i64 0
%107 = getelementptr inbounds [11 x i8], [11 x i8]* %19, i64 0, i64 0
%108 = call i32 (i8*, i8*, i8*, ...) @sprintf(i8* %106, i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.4, i64 0, i64 0), i8* %107, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.5, i64 0, i64 0))
%109 = getelementptr inbounds [200 x i8], [200 x i8]* %16, i64 0, i64 0
%110 = call i32 @pad(i8* %109, i32 80)
%111 = getelementptr inbounds [200 x i8], [200 x i8]* %16, i64 0, i64 0
%112 = load i32*, i32** %8
%113 = call i32 @fwrite(i8* %111, i32 80, i32 1, i32* %112)
store i32 164, i32* %15
%114 = bitcast i32* %15 to i8*
%115 = load i32*, i32** %8
%116 = call i32 @fwrite(i8* %114, i32 4, i32 1, i32* %115)
store i32 4, i32* %15
%117 = bitcast i32* %15 to i8*
%118 = load i32*, i32** %8
%119 = call i32 @fwrite(i8* %117, i32 4, i32 1, i32* %118)
%120 = load i32, i32* %10
store i32 %120, i32* %15
%121 = bitcast i32* %15 to i8*
%122 = load i32*, i32** %8
%123 = call i32 @fwrite(i8* %121, i32 4, i32 1, i32* %122)
store i32 4, i32* %15
%124 = bitcast i32* %15 to i8*
%125 = load i32*, i32** %8
%126 = call i32 @fwrite(i8* %124, i32 4, i32 1, i32* %125)
ret i32 1
}

LLVM IR (-O2):
%struct.tm = type { i32 }
@.str = [5 x i8] c"CORD\00"
@.str.1 = [30 x i8] c"REMARKS FILENAME=%s :: SASSIE\00"
@.str.2 = [6 x i8] c"A.DCD\00"
@.str.3 = [9 x i8] c"%m/%d/%y\00"
@.str.4 = [37 x i8] c"REMARKS DATE: %s CREATED BY USER: %s\00"
@.str.5 = [5 x i8] c"ikuo\00"
define i32 @write_dcdheader(i32* %0, i8* nocapture readnone %1, i32 %2, i32 %3, i32 %4, i32 %5, double %6) {
%8 = alloca i32
%9 = alloca i32
%10 = alloca i32
%11 = alloca double
%12 = alloca i32
%13 = alloca [200 x i8]
%14 = alloca i32
%15 = alloca [11 x i8]
store i32 %3, i32* %8
store i32 %4, i32* %9
store i32 %5, i32* %10
store double %6, double* %11
%16 = bitcast i32* %12 to i8*
%17 = getelementptr inbounds [200 x i8], [200 x i8]* %13, i64 0, i64 0
%18 = bitcast i32* %14 to i8*
%19 = getelementptr inbounds [11 x i8], [11 x i8]* %15, i64 0, i64 0
store i32 84, i32* %12
%20 = call i32 @fwrite(i8* %16, i32 4, i32 1, i32* %0)
%21 = call i32 @strcpy(i8* %17, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0))
%22 = call i32 @fwrite(i8* %17, i32 4, i32 1, i32* %0)
%23 = bitcast i32* %8 to i8*
%24 = call i32 @fwrite(i8* %23, i32 4, i32 1, i32* %0)
%25 = bitcast i32* %9 to i8*
%26 = call i32 @fwrite(i8* %25, i32 4, i32 1, i32* %0)
%27 = bitcast i32* %10 to i8*
%28 = call i32 @fwrite(i8* %27, i32 4, i32 1, i32* %0)
store i32 0, i32* %12
%29 = call i32 @fwrite(i8* %16, i32 4, i32 1, i32* %0)
%30 = call i32 @fwrite(i8* %16, i32 4, i32 1, i32* %0)
%31 = call i32 @fwrite(i8* %16, i32 4, i32 1, i32* %0)
%32 = call i32 @fwrite(i8* %16, i32 4, i32 1, i32* %0)
%33 = call i32 @fwrite(i8* %16, i32 4, i32 1, i32* %0)
%34 = call i32 @fwrite(i8* %16, i32 4, i32 1, i32* %0)
%35 = bitcast double* %11 to i8*
%36 = call i32 @fwrite(i8* %35, i32 8, i32 1, i32* %0)
%37 = call i32 @fwrite(i8* %16, i32 4, i32 1, i32* %0)
%38 = call i32 @fwrite(i8* %16, i32 4, i32 1, i32* %0)
%39 = call i32 @fwrite(i8* %16, i32 4, i32 1, i32* %0)
%40 = call i32 @fwrite(i8* %16, i32 4, i32 1, i32* %0)
%41 = call i32 @fwrite(i8* %16, i32 4, i32 1, i32* %0)
%42 = call i32 @fwrite(i8* %16, i32 4, i32 1, i32* %0)
%43 = call i32 @fwrite(i8* %16, i32 4, i32 1, i32* %0)
%44 = call i32 @fwrite(i8* %16, i32 4, i32 1, i32* %0)
%45 = call i32 @fwrite(i8* %16, i32 4, i32 1, i32* %0)
store i32 84, i32* %12
%46 = call i32 @fwrite(i8* %16, i32 4, i32 1, i32* %0)
store i32 164, i32* %12
%47 = call i32 @fwrite(i8* %16, i32 4, i32 1, i32* %0)
store i32 2, i32* %12
%48 = call i32 @fwrite(i8* %16, i32 4, i32 1, i32* %0)
%49 = call i32 (i8*, i8*, i8*, ...) @sprintf(i8* %17, i8* dereferenceable(1) getelementptr inbounds ([30 x i8], [30 x i8]* @.str.1, i64 0, i64 0), i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.2, i64 0, i64 0))
%50 = call i32 @pad(i8* %17, i32 80)
%51 = call i32 @fwrite(i8* %17, i32 80, i32 1, i32* %0)
%52 = call i32 @time(i32* null)
store i32 %52, i32* %14
%53 = call %struct.tm* @localtime(i32* %14)
%54 = call i32 @strftime(i8* %19, i32 10, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.3, i64 0, i64 0), %struct.tm* %53)
%55 = call i32 (i8*, i8*, i8*, ...) @sprintf(i8* %17, i8* dereferenceable(1) getelementptr inbounds ([37 x i8], [37 x i8]* @.str.4, i64 0, i64 0), i8* %19, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.5, i64 0, i64 0))
%56 = call i32 @pad(i8* %17, i32 80)
%57 = call i32 @fwrite(i8* %17, i32 80, i32 1, i32* %0)
store i32 164, i32* %12
%58 = call i32 @fwrite(i8* %16, i32 4, i32 1, i32* %0)
store i32 4, i32* %12
%59 = call i32 @fwrite(i8* %16, i32 4, i32 1, i32* %0)
store i32 %2, i32* %12
%60 = call i32 @fwrite(i8* %16, i32 4, i32 1, i32* %0)
store i32 4, i32* %12
%61 = call i32 @fwrite(i8* %16, i32 4, i32 1, i32* %0)
ret i32 1
}