#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 */
struct timespec {
  void *tv_nsec;
};
struct stat {
  struct timespec st_mtim;
  struct timespec st_atim;
};
struct option {
  char *member_0;
  char member_3;
  int /*<<< orphan*/ member_2;
  int /*<<< orphan*/ member_1;
};

/* Variables and functions */
int /*<<< orphan*/ AT_FDCWD;
int /*<<< orphan*/ F_OK;
int O_CREAT;
int O_WRONLY;
void *UTIME_NOW;
void *UTIME_OMIT;
scalar_t__ access(char *, int /*<<< orphan*/);
int /*<<< orphan*/ close(int);
int /*<<< orphan*/ err(int, char *, char *);
int /*<<< orphan*/ errx(int, char *, ...);
scalar_t__ futimens(int, struct timespec *);
int getopt_long(int, char **, char *, struct option *, int /*<<< orphan*/ *);
int help(char *, char *);
int /*<<< orphan*/ no_argument;
int open(char *, int, int);
char *optarg;
int optind;
int /*<<< orphan*/ parseDate(char *, struct timespec *);
int /*<<< orphan*/ parseTime(char *, struct timespec *);
int /*<<< orphan*/ required_argument;
scalar_t__ stat(char *, struct stat *);
scalar_t__ utimensat(int /*<<< orphan*/, char *, struct timespec *,
                     int /*<<< orphan*/);
int version(char *);
int /*<<< orphan*/ warn(char *, char *);
int main(int argc, char *argv[]) {
  struct option longopts[] = {{"date", required_argument, 0, 'd'},
                              {"no-create", no_argument, 0, 'c'},
                              {"reference", required_argument, 0, 'r'},
                              {"help", no_argument, 0, 0},
                              {"version", no_argument, 0, 1},
                              {0, 0, 0, 0}};
  bool accessTime = false;
  bool modificationTime = false;
  bool noCreate = false;
  char *dateString = NULL;
  char *referenceFile = NULL;
  char *timeString = NULL;
  int c;
  while ((c = getopt_long(argc, argv, "acd:mr:t:", longopts, NULL)) != -1) {
    switch (c) {
    case 0:
      return help(argv[0],
                  "[OPTIONS] FILE...\n"
                  "  -a                       change access time\n"
                  "  -c, --no-create          do not create new files\n"
                  "  -d, --date=DATE          use DATE\n"
                  "  -m                       change modification time\n"
                  "  -r, --reference=FILE     use FILE's timestamps\n"
                  "  -t TIME                  use TIME\n"
                  "      --help               display this help\n"
                  "      --version            display version info");
    case 1:
      return version(argv[0]);
    case 'a':
      accessTime = true;
      break;
    case 'c':
      noCreate = true;
      break;
    case 'd':
      dateString = optarg;
      break;
    case 'm':
      modificationTime = true;
      break;
    case 'r':
      referenceFile = optarg;
      break;
    case 't':
      timeString = optarg;
      break;
    case '?':
      return 1;
    }
  }
  if (!accessTime && !modificationTime) {
    accessTime = true;
    modificationTime = true;
  }
  struct timespec ts[2];
  ts[0].tv_nsec = UTIME_NOW;
  ts[1].tv_nsec = UTIME_NOW;
  if (dateString) {
    if (referenceFile || timeString) {
      errx(1, "multiple time sources specified");
    }
    if (!parseDate(dateString, &ts[0])) {
      errx(1, "invalid date format: '%s'", dateString);
    }
    ts[1] = ts[0];
  }
  if (referenceFile) {
    if (timeString)
      errx(1, "multiple time sources specified");
    struct stat st;
    if (stat(referenceFile, &st) < 0)
      err(1, "stat: '%s'", referenceFile);
    ts[0] = st.st_atim;
    ts[1] = st.st_mtim;
  }
  if (timeString) {
    if (!parseTime(timeString, &ts[0])) {
      errx(1, "invalid date format: '%s'", timeString);
    }
    ts[1] = ts[0];
  }
  if (!accessTime) {
    ts[0].tv_nsec = UTIME_OMIT;
  }
  if (!modificationTime) {
    ts[1].tv_nsec = UTIME_OMIT;
  }
  if (optind >= argc)
    errx(1, "missing operand");
  int status = 0;
  for (int i = optind; i < argc; i++) {
    if (access(argv[i], F_OK) == 0) {
      if (utimensat(AT_FDCWD, argv[i], ts, 0) < 0) {
        warn("utimensat: '%s'", argv[i]);
        status = 1;
      }
    } else if (!noCreate) {
      int fd = open(argv[i], O_WRONLY | O_CREAT, 0666);
      if (fd < 0) {
        warn("open: '%s'", argv[i]);
        status = 1;
        continue;
      }
      if (futimens(fd, ts) < 0) {
        warn("futimens: '%s'", argv[i]);
        status = 1;
      }
      close(fd);
    }
  }
  return status;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x100,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
lea    -0xa0(%rbp),%rdi
lea    0xde9(%rip),%rax
mov    %rax,-0xa0(%rbp)
mov    0x2da3(%rip),%rax
mov    (%rax),%eax
mov    %al,-0x98(%rbp)
movl   $0x0,-0x94(%rbp)
movl   $0x64,-0x90(%rbp)
add    $0x18,%rdi
lea    0xdb9(%rip),%rax
mov    %rax,-0x88(%rbp)
mov    0x2d56(%rip),%rax
mov    (%rax),%eax
mov    %al,-0x80(%rbp)
movl   $0x0,-0x7c(%rbp)
movl   $0x63,-0x78(%rbp)
add    $0x18,%rdi
lea    0xd97(%rip),%rax
mov    %rax,-0x70(%rbp)
mov    0x2d45(%rip),%rax
mov    (%rax),%eax
mov    %al,-0x68(%rbp)
movl   $0x0,-0x64(%rbp)
movl   $0x72,-0x60(%rbp)
add    $0x18,%rdi
lea    0xd78(%rip),%rax
mov    %rax,-0x58(%rbp)
mov    0x2d04(%rip),%rax
mov    (%rax),%eax
mov    %al,-0x50(%rbp)
movl   $0x0,-0x4c(%rbp)
movl   $0x0,-0x48(%rbp)
add    $0x18,%rdi
lea    0xd54(%rip),%rax
mov    %rax,-0x40(%rbp)
mov    0x2cdb(%rip),%rax
mov    (%rax),%eax
mov    %al,-0x38(%rbp)
movl   $0x0,-0x34(%rbp)
movl   $0x1,-0x30(%rbp)
add    $0x18,%rdi
xor    %esi,%esi
mov    $0x18,%edx
call   1070 <memset@plt>
movl   $0x0,-0xa4(%rbp)
movl   $0x0,-0xa8(%rbp)
movl   $0x0,-0xac(%rbp)
movq   $0x0,-0xb8(%rbp)
movq   $0x0,-0xc0(%rbp)
movq   $0x0,-0xc8(%rbp)
mov    -0x8(%rbp),%edi
mov    -0x10(%rbp),%rsi
lea    -0xa0(%rbp),%rcx
lea    0xcda(%rip),%rdx
xor    %eax,%eax
mov    %eax,%r8d
call   1050 <getopt_long@plt>
mov    %eax,-0xcc(%rbp)
cmp    $0xffffffff,%eax
je     14cd <main+0x2dd>
mov    -0xcc(%rbp),%eax
mov    %eax,-0x100(%rbp)
test   %eax,%eax
je     141e <main+0x22e>
jmp    137e <main+0x18e>
mov    -0x100(%rbp),%eax
sub    $0x1,%eax
je     1439 <main+0x249>
jmp    1392 <main+0x1a2>
mov    -0x100(%rbp),%eax
sub    $0x3f,%eax
je     14bc <main+0x2cc>
jmp    13a6 <main+0x1b6>
mov    -0x100(%rbp),%eax
sub    $0x61,%eax
je     144d <main+0x25d>
jmp    13ba <main+0x1ca>
mov    -0x100(%rbp),%eax
sub    $0x63,%eax
je     145c <main+0x26c>
jmp    13ce <main+0x1de>
mov    -0x100(%rbp),%eax
sub    $0x64,%eax
je     146b <main+0x27b>
jmp    13e2 <main+0x1f2>
mov    -0x100(%rbp),%eax
sub    $0x6d,%eax
je     1481 <main+0x291>
jmp    13f6 <main+0x206>
mov    -0x100(%rbp),%eax
sub    $0x72,%eax
je     1490 <main+0x2a0>
jmp    140a <main+0x21a>
mov    -0x100(%rbp),%eax
sub    $0x74,%eax
je     14a6 <main+0x2b6>
jmp    14c8 <main+0x2d8>
mov    -0x10(%rbp),%rax
mov    (%rax),%rdi
lea    0xc04(%rip),%rsi
call   1110 <help@plt>
mov    %eax,-0x4(%rbp)
jmp    1862 <main+0x672>
mov    -0x10(%rbp),%rax
mov    (%rax),%rdi
call   10b0 <version@plt>
mov    %eax,-0x4(%rbp)
jmp    1862 <main+0x672>
movl   $0x1,-0xa4(%rbp)
jmp    14c8 <main+0x2d8>
movl   $0x1,-0xac(%rbp)
jmp    14c8 <main+0x2d8>
mov    0x2b7e(%rip),%rax
mov    (%rax),%rax
mov    %rax,-0xb8(%rbp)
jmp    14c8 <main+0x2d8>
movl   $0x1,-0xa8(%rbp)
jmp    14c8 <main+0x2d8>
mov    0x2b59(%rip),%rax
mov    (%rax),%rax
mov    %rax,-0xc0(%rbp)
jmp    14c8 <main+0x2d8>
mov    0x2b43(%rip),%rax
mov    (%rax),%rax
mov    %rax,-0xc8(%rbp)
jmp    14c8 <main+0x2d8>
movl   $0x1,-0x4(%rbp)
jmp    1862 <main+0x672>
jmp    1337 <main+0x147>
cmpl   $0x0,-0xa4(%rbp)
jne    14fb <main+0x30b>
cmpl   $0x0,-0xa8(%rbp)
jne    14fb <main+0x30b>
movl   $0x1,-0xa4(%rbp)
movl   $0x1,-0xa8(%rbp)
mov    0x2ae6(%rip),%rax
mov    (%rax),%rax
mov    %rax,-0xe0(%rbp)
mov    0x2ad5(%rip),%rax
mov    (%rax),%rax
mov    %rax,-0xd8(%rbp)
cmpq   $0x0,-0xb8(%rbp)
je     159e <main+0x3ae>
cmpq   $0x0,-0xc0(%rbp)
jne    1547 <main+0x357>
cmpq   $0x0,-0xc8(%rbp)
je     155a <main+0x36a>
mov    $0x1,%edi
lea    0xc5a(%rip),%rsi
mov    $0x0,%al
call   1060 <errx@plt>
mov    -0xb8(%rbp),%rdi
lea    -0xe0(%rbp),%rsi
call   10d0 <parseDate@plt>
cmp    $0x0,%eax
jne    1590 <main+0x3a0>
mov    -0xb8(%rbp),%rdx
mov    $0x1,%edi
lea    0xc44(%rip),%rsi
mov    $0x0,%al
call   1060 <errx@plt>
mov    -0xe0(%rbp),%rax
mov    %rax,-0xd8(%rbp)
cmpq   $0x0,-0xc0(%rbp)
je     161e <main+0x42e>
cmpq   $0x0,-0xc8(%rbp)
je     15cd <main+0x3dd>
mov    $0x1,%edi
lea    0xbe7(%rip),%rsi
mov    $0x0,%al
call   1060 <errx@plt>
mov    -0xc0(%rbp),%rdi
lea    -0xf0(%rbp),%rsi
call   10a0 <stat@plt>
cmp    $0x0,%rax
jge    1602 <main+0x412>
mov    -0xc0(%rbp),%rdx
mov    $0x1,%edi
lea    0xbea(%rip),%rsi
call   10c0 <err@plt>
mov    -0xe8(%rbp),%rax
mov    %rax,-0xe0(%rbp)
mov    -0xf0(%rbp),%rax
mov    %rax,-0xd8(%rbp)
cmpq   $0x0,-0xc8(%rbp)
je     1670 <main+0x480>
mov    -0xc8(%rbp),%rdi
lea    -0xe0(%rbp),%rsi
call   1090 <parseTime@plt>
cmp    $0x0,%eax
jne    1662 <main+0x472>
mov    -0xc8(%rbp),%rdx
mov    $0x1,%edi
lea    0xb72(%rip),%rsi
mov    $0x0,%al
call   1060 <errx@plt>
mov    -0xe0(%rbp),%rax
mov    %rax,-0xd8(%rbp)
cmpl   $0x0,-0xa4(%rbp)
jne    168e <main+0x49e>
mov    0x2934(%rip),%rax
mov    (%rax),%rax
mov    %rax,-0xe0(%rbp)
cmpl   $0x0,-0xa8(%rbp)
jne    16ac <main+0x4bc>
mov    0x2916(%rip),%rax
mov    (%rax),%rax
mov    %rax,-0xd8(%rbp)
mov    0x291d(%rip),%rax
mov    (%rax),%eax
cmp    -0x8(%rbp),%eax
jl     16d1 <main+0x4e1>
mov    $0x1,%edi
lea    0xb28(%rip),%rsi
mov    $0x0,%al
call   1060 <errx@plt>
movl   $0x0,-0xf4(%rbp)
mov    0x28ee(%rip),%rax
mov    (%rax),%eax
mov    %eax,-0xf8(%rbp)
mov    -0xf8(%rbp),%eax
cmp    -0x8(%rbp),%eax
jge    1859 <main+0x669>
mov    -0x10(%rbp),%rax
movslq -0xf8(%rbp),%rcx
mov    (%rax,%rcx,8),%rdi
mov    0x2889(%rip),%rax
mov    (%rax),%esi
call   10f0 <access@plt>
cmp    $0x0,%rax
jne    177a <main+0x58a>
mov    0x2869(%rip),%rax
mov    (%rax),%edi
mov    -0x10(%rbp),%rax
movslq -0xf8(%rbp),%rcx
mov    (%rax,%rcx,8),%rsi
lea    -0xe0(%rbp),%rdx
xor    %ecx,%ecx
call   1030 <utimensat@plt>
cmp    $0x0,%rax
jge    1775 <main+0x585>
mov    -0x10(%rbp),%rax
movslq -0xf8(%rbp),%rcx
mov    (%rax,%rcx,8),%rsi
lea    0xa9c(%rip),%rdi
call   1040 <warn@plt>
movl   $0x1,-0xf4(%rbp)
jmp    1840 <main+0x650>
cmpl   $0x0,-0xac(%rbp)
jne    183b <main+0x64b>
mov    -0x10(%rbp),%rax
movslq -0xf8(%rbp),%rcx
mov    (%rax,%rcx,8),%rdi
mov    0x2803(%rip),%rax
mov    (%rax),%esi
mov    0x2852(%rip),%rax
or     (%rax),%esi
mov    $0x1b6,%edx
call   10e0 <open@plt>
mov    %eax,-0xfc(%rbp)
cmpl   $0x0,-0xfc(%rbp)
jge    17ef <main+0x5ff>
mov    -0x10(%rbp),%rax
movslq -0xf8(%rbp),%rcx
mov    (%rax,%rcx,8),%rsi
lea    0xa37(%rip),%rdi
call   1040 <warn@plt>
movl   $0x1,-0xf4(%rbp)
jmp    1845 <main+0x655>
mov    -0xfc(%rbp),%edi
lea    -0xe0(%rbp),%rsi
call   1100 <futimens@plt>
cmp    $0x0,%rax
jge    1830 <main+0x640>
mov    -0x10(%rbp),%rax
movslq -0xf8(%rbp),%rcx
mov    (%rax,%rcx,8),%rsi
lea    0x9fc(%rip),%rdi
call   1040 <warn@plt>
movl   $0x1,-0xf4(%rbp)
mov    -0xfc(%rbp),%edi
call   1080 <close@plt>
jmp    1840 <main+0x650>
jmp    1845 <main+0x655>
mov    -0xf8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xf8(%rbp)
jmp    16ea <main+0x4fa>
mov    -0xf4(%rbp),%eax
mov    %eax,-0x4(%rbp)
mov    -0x4(%rbp),%eax
add    $0x100,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0xf8,%rsp
mov    %rsi,%r14
mov    %edi,%ebx
lea    0xedb(%rip),%rax
mov    %rax,0x60(%rsp)
mov    0x2dbf(%rip),%rax
mov    (%rax),%al
mov    %al,0x68(%rsp)
movabs $0x6400000000,%rcx
mov    %rcx,0x6c(%rsp)
lea    0xeb8(%rip),%rcx
mov    %rcx,0x78(%rsp)
mov    0x2d7f(%rip),%rcx
mov    (%rcx),%cl
mov    %cl,0x80(%rsp)
movabs $0x6300000000,%rdx
mov    %rdx,0x84(%rsp)
lea    0xe94(%rip),%rdx
mov    %rdx,0x90(%rsp)
mov    %al,0x98(%rsp)
movabs $0x7200000000,%rax
mov    %rax,0x9c(%rsp)
lea    0xe76(%rip),%rax
mov    %rax,0xa8(%rsp)
mov    %cl,0xb0(%rsp)
movq   $0x0,0xb4(%rsp)
lea    0xe59(%rip),%rax
mov    %rax,0xc0(%rsp)
mov    %cl,0xc8(%rsp)
movabs $0x100000000,%rax
mov    %rax,0xcc(%rsp)
pxor   %xmm0,%xmm0
movdqu %xmm0,0xd8(%rsp)
movq   $0x0,0xe8(%rsp)
xor    %eax,%eax
mov    %rax,0x28(%rsp)
mov    $0x1,%al
mov    %eax,0x34(%rsp)
lea    0xe13(%rip),%rbp
lea    0x60(%rsp),%r15
lea    0xd09(%rip),%r12
xor    %eax,%eax
mov    %rax,0x48(%rsp)
xor    %r13d,%r13d
xor    %eax,%eax
mov    %rax,0x38(%rsp)
xor    %eax,%eax
mov    %rax,0x40(%rsp)
movl   $0x0,0xc(%rsp)
nopw   0x0(%rax,%rax,1)
mov    %ebx,%edi
mov    %r14,%rsi
mov    %rbp,%rdx
mov    %r15,%rcx
xor    %r8d,%r8d
call   1050 <getopt_long@plt>
cmp    $0x3e,%eax
jle    1360 <main+0x180>
add    $0xffffffc1,%eax
cmp    $0x35,%eax
ja     1320 <main+0x140>
movslq (%r12,%rax,4),%rax
add    %r12,%rax
jmp    *%rax
movl   $0x1,0xc(%rsp)
jmp    1320 <main+0x140>
cs nopw 0x0(%rax,%rax,1)
nopl   (%rax)
cmp    $0xffffffff,%eax
je     13d2 <main+0x1f2>
test   %eax,%eax
je     1450 <main+0x270>
cmp    $0x1,%eax
jne    1320 <main+0x140>
jmp    1466 <main+0x286>
mov    $0x1,%eax
mov    %rax,0x28(%rsp)
jmp    1320 <main+0x140>
mov    0x2c66(%rip),%rax
mov    (%rax),%r13
jmp    1320 <main+0x140>
mov    $0x1,%al
mov    %rax,0x48(%rsp)
movl   $0x0,0x34(%rsp)
jmp    1320 <main+0x140>
mov    0x2c49(%rip),%rax
mov    (%rax),%rax
mov    %rax,0x38(%rsp)
jmp    1320 <main+0x140>
mov    0x2c35(%rip),%rax
mov    (%rax),%rax
mov    %rax,0x40(%rsp)
jmp    1320 <main+0x140>
mov    $0x1,%ebp
jmp    1692 <main+0x4b2>
mov    0x2c0f(%rip),%rax
mov    (%rax),%rax
mov    %rax,0x10(%rsp)
mov    %rax,0x18(%rsp)
test   %r13,%r13
je     1475 <main+0x295>
mov    0x38(%rsp),%rax
or     0x40(%rsp),%rax
je     140e <main+0x22e>
lea    0xe83(%rip),%rsi
mov    $0x1,%edi
xor    %eax,%eax
call   1060 <errx@plt>
lea    0x10(%rsp),%rsi
mov    %r13,%rdi
call   10c0 <parseDate@plt>
test   %eax,%eax
mov    0x28(%rsp),%r12
mov    0x48(%rsp),%rbp
mov    0xc(%rsp),%r15d
jne    1444 <main+0x264>
lea    0xe70(%rip),%rsi
mov    $0x1,%edi
mov    %r13,%rdx
xor    %eax,%eax
call   1060 <errx@plt>
mov    0x10(%rsp),%rax
mov    %rax,0x18(%rsp)
jmp    1484 <main+0x2a4>
mov    (%r14),%rdi
lea    0xcae(%rip),%rsi
call   1100 <help@plt>
mov    %eax,%ebp
jmp    1692 <main+0x4b2>
mov    (%r14),%rdi
call   10a0 <version@plt>
mov    %eax,%ebp
jmp    1692 <main+0x4b2>
mov    0x28(%rsp),%r12
mov    0x48(%rsp),%rbp
mov    0xc(%rsp),%r15d
mov    0x40(%rsp),%r13
mov    0x38(%rsp),%rax
test   %rax,%rax
je     14f1 <main+0x311>
mov    %r15d,0xc(%rsp)
test   %r13,%r13
je     14b6 <main+0x2d6>
lea    0xde1(%rip),%rsi
mov    $0x1,%edi
mov    %rax,%r15
xor    %eax,%eax
call   1060 <errx@plt>
mov    %r15,%rax
lea    0x50(%rsp),%rsi
mov    %rax,%rdi
mov    %rax,%r15
call   1090 <stat@plt>
test   %rax,%rax
jns    14df <main+0x2ff>
lea    0xded(%rip),%rsi
mov    $0x1,%edi
mov    %r15,%rdx
call   10b0 <err@plt>
pshufd $0x4e,0x50(%rsp),%xmm0
movdqa %xmm0,0x10(%rsp)
mov    0xc(%rsp),%r15d
test   %r13,%r13
je     1527 <main+0x347>
lea    0x10(%rsp),%rsi
mov    %r13,%rdi
call   1080 <parseTime@plt>
test   %eax,%eax
jne    151d <main+0x33d>
lea    0xd97(%rip),%rsi
mov    $0x1,%edi
mov    %r13,%rdx
xor    %eax,%eax
call   1060 <errx@plt>
mov    0x10(%rsp),%rax
mov    %rax,0x18(%rsp)
test   %r15d,%r15d
setne  %al
not    %bpl
or     %al,%bpl
test   $0x1,%bpl
jne    154a <main+0x36a>
mov    0x2a78(%rip),%rax
mov    (%rax),%rax
mov    %rax,0x10(%rsp)
jmp    156c <main+0x38c>
test   %r15d,%r15d
sete   %al
mov    0x34(%rsp),%ecx
not    %cl
or     %al,%cl
test   $0x1,%cl
jne    156c <main+0x38c>
mov    0x2a54(%rip),%rax
mov    (%rax),%rax
mov    %rax,0x18(%rsp)
mov    0x2a5d(%rip),%rbp
mov    0x0(%rbp),%eax
cmp    %ebx,%eax
jl     1590 <main+0x3b0>
lea    0xd49(%rip),%rsi
mov    $0x1,%edi
xor    %eax,%eax
call   1060 <errx@plt>
mov    0x0(%rbp),%eax
xor    %ebp,%ebp
cmp    %ebx,%eax
jge    1692 <main+0x4b2>
movslq %eax,%rcx
lea    (%r14,%rcx,8),%r15
sub    %eax,%ebx
xor    %r14d,%r14d
mov    0x29eb(%rip),%r13
xor    %ebp,%ebp
jmp    15eb <main+0x40b>
cs nopw 0x0(%rax,%rax,1)
nopl   0x0(%rax,%rax,1)
mov    0x29c9(%rip),%rax
mov    (%rax),%edi
mov    (%r15,%r14,8),%rsi
lea    0x10(%rsp),%rdx
xor    %ecx,%ecx
call   1030 <utimensat@plt>
test   %rax,%rax
js     1659 <main+0x479>
add    $0x1,%r14
cmp    %r14d,%ebx
je     1692 <main+0x4b2>
mov    (%r15,%r14,8),%rdi
mov    0x0(%r13),%esi
call   10e0 <access@plt>
test   %rax,%rax
je     15c0 <main+0x3e0>
test   %r12d,%r12d
jne    15de <main+0x3fe>
mov    (%r15,%r14,8),%rdi
mov    0x29eb(%rip),%rax
mov    (%rax),%esi
mov    0x298a(%rip),%rax
or     (%rax),%esi
mov    $0x1b6,%edx
call   10d0 <open@plt>
test   %eax,%eax
js     1673 <main+0x493>
mov    %eax,%r12d
mov    %eax,%edi
lea    0x10(%rsp),%rsi
call   10f0 <futimens@plt>
test   %rax,%rax
jns    164f <main+0x46f>
mov    (%r15,%r14,8),%rsi
lea    0xcb0(%rip),%rdi
call   1040 <warn@plt>
mov    $0x1,%ebp
mov    %r12d,%edi
call   1070 <close@plt>
jmp    1688 <main+0x4a8>
mov    (%r15,%r14,8),%rsi
lea    0xc76(%rip),%rdi
call   1040 <warn@plt>
mov    $0x1,%ebp
jmp    15de <main+0x3fe>
mov    (%r15,%r14,8),%rsi
lea    0xc6c(%rip),%rdi
call   1040 <warn@plt>
mov    $0x1,%ebp
mov    0x28(%rsp),%r12
jmp    15de <main+0x3fe>
mov    %ebp,%eax
add    $0xf8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
%struct.option = type { i8*, i8, i32, i32 }
%struct.timespec = type { i8* }
%struct.stat = type { %struct.timespec, %struct.timespec }
@.str = [5 x i8] c"date\00"
@required_argument = global i32 0
@.str.1 = [10 x i8] c"no-create\00"
@no_argument = global i32 0
@.str.2 = [10 x i8] c"reference\00"
@.str.3 = [5 x i8] c"help\00"
@.str.4 = [8 x i8] c"version\00"
@.str.5 = [10 x i8] c"acd:mr:t:\00"
@.str.6 = [381 x i8] c"[OPTIONS] FILE...\0A -a change access time\0A -c, --no-create do not create new files\0A -d, --date=DATE use DATE\0A -m change modification time\0A -r, --reference=FILE use FILE's timestamps\0A -t TIME use TIME\0A --help display this help\0A --version display version info\00"
@optarg = global i8* null
@UTIME_NOW = global i8* null
@.str.7 = [32 x i8] c"multiple time sources specified\00"
@.str.8 = [26 x i8] c"invalid date format: '%s'\00"
@.str.9 = [11 x i8] c"stat: '%s'\00"
@UTIME_OMIT = global i8* null
@optind = global i32 0
@.str.10 = [16 x i8] c"missing operand\00"
@F_OK = global i32 0
@AT_FDCWD = global i32 0
@.str.11 = [16 x i8] c"utimensat: '%s'\00"
@O_WRONLY = global i32 0
@O_CREAT = global i32 0
@.str.12 = [11 x i8] c"open: '%s'\00"
@.str.13 = [15 x i8] c"futimens: '%s'\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca [6 x %struct.option]
%7 = alloca i32
%8 = alloca i32
%9 = alloca i32
%10 = alloca i8*
%11 = alloca i8*
%12 = alloca i8*
%13 = alloca i32
%14 = alloca [2 x %struct.timespec]
%15 = alloca %struct.stat
%16 = alloca i32
%17 = alloca i32
%18 = alloca i32
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
%19 = getelementptr inbounds [6 x %struct.option], [6 x %struct.option]* %6, i64 0, i64 0
%20 = getelementptr inbounds %struct.option, %struct.option* %19, i32 0, i32 0
store i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0), i8** %20
%21 = getelementptr inbounds %struct.option, %struct.option* %19, i32 0, i32 1
%22 = load i32, i32* @required_argument
%23 = trunc i32 %22 to i8
store i8 %23, i8* %21
%24 = getelementptr inbounds %struct.option, %struct.option* %19, i32 0, i32 2
store i32 0, i32* %24
%25 = getelementptr inbounds %struct.option, %struct.option* %19, i32 0, i32 3
store i32 100, i32* %25
%26 = getelementptr inbounds %struct.option, %struct.option* %19, i64 1
%27 = getelementptr inbounds %struct.option, %struct.option* %26, i32 0, i32 0
store i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.1, i64 0, i64 0), i8** %27
%28 = getelementptr inbounds %struct.option, %struct.option* %26, i32 0, i32 1
%29 = load i32, i32* @no_argument
%30 = trunc i32 %29 to i8
store i8 %30, i8* %28
%31 = getelementptr inbounds %struct.option, %struct.option* %26, i32 0, i32 2
store i32 0, i32* %31
%32 = getelementptr inbounds %struct.option, %struct.option* %26, i32 0, i32 3
store i32 99, i32* %32
%33 = getelementptr inbounds %struct.option, %struct.option* %26, i64 1
%34 = getelementptr inbounds %struct.option, %struct.option* %33, i32 0, i32 0
store i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.2, i64 0, i64 0), i8** %34
%35 = getelementptr inbounds %struct.option, %struct.option* %33, i32 0, i32 1
%36 = load i32, i32* @required_argument
%37 = trunc i32 %36 to i8
store i8 %37, i8* %35
%38 = getelementptr inbounds %struct.option, %struct.option* %33, i32 0, i32 2
store i32 0, i32* %38
%39 = getelementptr inbounds %struct.option, %struct.option* %33, i32 0, i32 3
store i32 114, i32* %39
%40 = getelementptr inbounds %struct.option, %struct.option* %33, i64 1
%41 = getelementptr inbounds %struct.option, %struct.option* %40, i32 0, i32 0
store i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i64 0, i64 0), i8** %41
%42 = getelementptr inbounds %struct.option, %struct.option* %40, i32 0, i32 1
%43 = load i32, i32* @no_argument
%44 = trunc i32 %43 to i8
store i8 %44, i8* %42
%45 = getelementptr inbounds %struct.option, %struct.option* %40, i32 0, i32 2
store i32 0, i32* %45
%46 = getelementptr inbounds %struct.option, %struct.option* %40, i32 0, i32 3
store i32 0, i32* %46
%47 = getelementptr inbounds %struct.option, %struct.option* %40, i64 1
%48 = getelementptr inbounds %struct.option, %struct.option* %47, i32 0, i32 0
store i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.4, i64 0, i64 0), i8** %48
%49 = getelementptr inbounds %struct.option, %struct.option* %47, i32 0, i32 1
%50 = load i32, i32* @no_argument
%51 = trunc i32 %50 to i8
store i8 %51, i8* %49
%52 = getelementptr inbounds %struct.option, %struct.option* %47, i32 0, i32 2
store i32 0, i32* %52
%53 = getelementptr inbounds %struct.option, %struct.option* %47, i32 0, i32 3
store i32 1, i32* %53
%54 = getelementptr inbounds %struct.option, %struct.option* %47, i64 1
%55 = bitcast %struct.option* %54 to i8*
store i32 0, i32* %7
store i32 0, i32* %8
store i32 0, i32* %9
store i8* null, i8** %10
store i8* null, i8** %11
store i8* null, i8** %12
br label %56
56: ; preds = %84, %2
%57 = load i32, i32* %4
%58 = load i8**, i8*** %5
%59 = getelementptr inbounds [6 x %struct.option], [6 x %struct.option]* %6, i64 0, i64 0
%60 = call i32 @getopt_long(i32 %57, i8** %58, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.5, i64 0, i64 0), %struct.option* %59, i32* null)
store i32 %60, i32* %13
%61 = icmp ne i32 %60, -1
br i1 %61, label %62, label %85
62: ; preds = %56
%63 = load i32, i32* %13
switch i32 %63, label %84 [
i32 0, label %64
i32 1, label %69
i32 97, label %74
i32 99, label %75
i32 100, label %76
i32 109, label %78
i32 114, label %79
i32 116, label %81
i32 63, label %83
]
64: ; preds = %62
%65 = load i8**, i8*** %5
%66 = getelementptr inbounds i8*, i8** %65, i64 0
%67 = load i8*, i8** %66
%68 = call i32 @help(i8* %67, i8* getelementptr inbounds ([381 x i8], [381 x i8]* @.str.6, i64 0, i64 0))
store i32 %68, i32* %3
br label %259
69: ; preds = %62
%70 = load i8**, i8*** %5
%71 = getelementptr inbounds i8*, i8** %70, i64 0
%72 = load i8*, i8** %71
%73 = call i32 @version(i8* %72)
store i32 %73, i32* %3
br label %259
74: ; preds = %62
store i32 1, i32* %7
br label %84
75: ; preds = %62
store i32 1, i32* %9
br label %84
76: ; preds = %62
%77 = load i8*, i8** @optarg
store i8* %77, i8** %10
br label %84
78: ; preds = %62
store i32 1, i32* %8
br label %84
79: ; preds = %62
%80 = load i8*, i8** @optarg
store i8* %80, i8** %11
br label %84
81: ; preds = %62
%82 = load i8*, i8** @optarg
store i8* %82, i8** %12
br label %84
83: ; preds = %62
store i32 1, i32* %3
br label %259
84: ; preds = %62, %81, %79, %78, %76, %75, %74
br label %56
85: ; preds = %56
%86 = load i32, i32* %7
%87 = icmp ne i32 %86, 0
br i1 %87, label %92, label %88
88: ; preds = %85
%89 = load i32, i32* %8
%90 = icmp ne i32 %89, 0
br i1 %90, label %92, label %91
91: ; preds = %88
store i32 1, i32* %7
store i32 1, i32* %8
br label %92
92: ; preds = %91, %88, %85
%93 = load i8*, i8** @UTIME_NOW
%94 = getelementptr inbounds [2 x %struct.timespec], [2 x %struct.timespec]* %14, i64 0, i64 0
%95 = getelementptr inbounds %struct.timespec, %struct.timespec* %94, i32 0, i32 0
store i8* %93, i8** %95
%96 = load i8*, i8** @UTIME_NOW
%97 = getelementptr inbounds [2 x %struct.timespec], [2 x %struct.timespec]* %14, i64 0, i64 1
%98 = getelementptr inbounds %struct.timespec, %struct.timespec* %97, i32 0, i32 0
store i8* %96, i8** %98
%99 = load i8*, i8** %10
%100 = icmp ne i8* %99, null
br i1 %100, label %101, label %122
101: ; preds = %92
%102 = load i8*, i8** %11
%103 = icmp ne i8* %102, null
br i1 %103, label %107, label %104
104: ; preds = %101
%105 = load i8*, i8** %12
%106 = icmp ne i8* %105, null
br i1 %106, label %107, label %109
107: ; preds = %104, %101
%108 = call i32 (i32, i8*, ...) @errx(i32 1, i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.7, i64 0, i64 0))
br label %109
109: ; preds = %107, %104
%110 = load i8*, i8** %10
%111 = getelementptr inbounds [2 x %struct.timespec], [2 x %struct.timespec]* %14, i64 0, i64 0
%112 = call i32 @parseDate(i8* %110, %struct.timespec* %111)
%113 = icmp ne i32 %112, 0
br i1 %113, label %117, label %114
114: ; preds = %109
%115 = load i8*, i8** %10
%116 = call i32 (i32, i8*, ...) @errx(i32 1, i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.8, i64 0, i64 0), i8* %115)
br label %117
117: ; preds = %114, %109
%118 = getelementptr inbounds [2 x %struct.timespec], [2 x %struct.timespec]* %14, i64 0, i64 1
%119 = getelementptr inbounds [2 x %struct.timespec], [2 x %struct.timespec]* %14, i64 0, i64 0
%120 = bitcast %struct.timespec* %118 to i8*
%121 = bitcast %struct.timespec* %119 to i8*
br label %122
122: ; preds = %117, %92
%123 = load i8*, i8** %11
%124 = icmp ne i8* %123, null
br i1 %124, label %125, label %146
125: ; preds = %122
%126 = load i8*, i8** %12
%127 = icmp ne i8* %126, null
br i1 %127, label %128, label %130
128: ; preds = %125
%129 = call i32 (i32, i8*, ...) @errx(i32 1, i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.7, i64 0, i64 0))
br label %130
130: ; preds = %128, %125
%131 = load i8*, i8** %11
%132 = call i64 @stat(i8* %131, %struct.stat* %15)
%133 = icmp slt i64 %132, 0
br i1 %133, label %134, label %137
134: ; preds = %130
%135 = load i8*, i8** %11
%136 = call i32 @err(i32 1, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.9, i64 0, i64 0), i8* %135)
br label %137
137: ; preds = %134, %130
%138 = getelementptr inbounds [2 x %struct.timespec], [2 x %struct.timespec]* %14, i64 0, i64 0
%139 = getelementptr inbounds %struct.stat, %struct.stat* %15, i32 0, i32 1
%140 = bitcast %struct.timespec* %138 to i8*
%141 = bitcast %struct.timespec* %139 to i8*
%142 = getelementptr inbounds [2 x %struct.timespec], [2 x %struct.timespec]* %14, i64 0, i64 1
%143 = getelementptr inbounds %struct.stat, %struct.stat* %15, i32 0, i32 0
%144 = bitcast %struct.timespec* %142 to i8*
%145 = bitcast %struct.timespec* %143 to i8*
br label %146
146: ; preds = %137, %122
%147 = load i8*, i8** %12
%148 = icmp ne i8* %147, null
br i1 %148, label %149, label %162
149: ; preds = %146
%150 = load i8*, i8** %12
%151 = getelementptr inbounds [2 x %struct.timespec], [2 x %struct.timespec]* %14, i64 0, i64 0
%152 = call i32 @parseTime(i8* %150, %struct.timespec* %151)
%153 = icmp ne i32 %152, 0
br i1 %153, label %157, label %154
154: ; preds = %149
%155 = load i8*, i8** %12
%156 = call i32 (i32, i8*, ...) @errx(i32 1, i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.8, i64 0, i64 0), i8* %155)
br label %157
157: ; preds = %154, %149
%158 = getelementptr inbounds [2 x %struct.timespec], [2 x %struct.timespec]* %14, i64 0, i64 1
%159 = getelementptr inbounds [2 x %struct.timespec], [2 x %struct.timespec]* %14, i64 0, i64 0
%160 = bitcast %struct.timespec* %158 to i8*
%161 = bitcast %struct.timespec* %159 to i8*
br label %162
162: ; preds = %157, %146
%163 = load i32, i32* %7
%164 = icmp ne i32 %163, 0
br i1 %164, label %169, label %165
165: ; preds = %162
%166 = load i8*, i8** @UTIME_OMIT
%167 = getelementptr inbounds [2 x %struct.timespec], [2 x %struct.timespec]* %14, i64 0, i64 0
%168 = getelementptr inbounds %struct.timespec, %struct.timespec* %167, i32 0, i32 0
store i8* %166, i8** %168
br label %169
169: ; preds = %165, %162
%170 = load i32, i32* %8
%171 = icmp ne i32 %170, 0
br i1 %171, label %176, label %172
172: ; preds = %169
%173 = load i8*, i8** @UTIME_OMIT
%174 = getelementptr inbounds [2 x %struct.timespec], [2 x %struct.timespec]* %14, i64 0, i64 1
%175 = getelementptr inbounds %struct.timespec, %struct.timespec* %174, i32 0, i32 0
store i8* %173, i8** %175
br label %176
176: ; preds = %172, %169
%177 = load i32, i32* @optind
%178 = load i32, i32* %4
%179 = icmp sge i32 %177, %178
br i1 %179, label %180, label %182
180: ; preds = %176
%181 = call i32 (i32, i8*, ...) @errx(i32 1, i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.10, i64 0, i64 0))
br label %182
182: ; preds = %180, %176
store i32 0, i32* %16
%183 = load i32, i32* @optind
store i32 %183, i32* %17
br label %184
184: ; preds = %254, %182
%185 = load i32, i32* %17
%186 = load i32, i32* %4
%187 = icmp slt i32 %185, %186
br i1 %187, label %188, label %257
188: ; preds = %184
%189 = load i8**, i8*** %5
%190 = load i32, i32* %17
%191 = sext i32 %190 to i64
%192 = getelementptr inbounds i8*, i8** %189, i64 %191
%193 = load i8*, i8** %192
%194 = load i32, i32* @F_OK
%195 = call i64 @access(i8* %193, i32 %194)
%196 = icmp eq i64 %195, 0
br i1 %196, label %197, label %215
197: ; preds = %188
%198 = load i32, i32* @AT_FDCWD
%199 = load i8**, i8*** %5
%200 = load i32, i32* %17
%201 = sext i32 %200 to i64
%202 = getelementptr inbounds i8*, i8** %199, i64 %201
%203 = load i8*, i8** %202
%204 = getelementptr inbounds [2 x %struct.timespec], [2 x %struct.timespec]* %14, i64 0, i64 0
%205 = call i64 @utimensat(i32 %198, i8* %203, %struct.timespec* %204, i32 0)
%206 = icmp slt i64 %205, 0
br i1 %206, label %207, label %214
207: ; preds = %197
%208 = load i8**, i8*** %5
%209 = load i32, i32* %17
%210 = sext i32 %209 to i64
%211 = getelementptr inbounds i8*, i8** %208, i64 %210
%212 = load i8*, i8** %211
%213 = call i32 @warn(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.11, i64 0, i64 0), i8* %212)
store i32 1, i32* %16
br label %214
214: ; preds = %207, %197
br label %253
215: ; preds = %188
%216 = load i32, i32* %9
%217 = icmp ne i32 %216, 0
br i1 %217, label %252, label %218
218: ; preds = %215
%219 = load i8**, i8*** %5
%220 = load i32, i32* %17
%221 = sext i32 %220 to i64
%222 = getelementptr inbounds i8*, i8** %219, i64 %221
%223 = load i8*, i8** %222
%224 = load i32, i32* @O_WRONLY
%225 = load i32, i32* @O_CREAT
%226 = or i32 %224, %225
%227 = call i32 @open(i8* %223, i32 %226, i32 438)
store i32 %227, i32* %18
%228 = load i32, i32* %18
%229 = icmp slt i32 %228, 0
br i1 %229, label %230, label %237
230: ; preds = %218
%231 = load i8**, i8*** %5
%232 = load i32, i32* %17
%233 = sext i32 %232 to i64
%234 = getelementptr inbounds i8*, i8** %231, i64 %233
%235 = load i8*, i8** %234
%236 = call i32 @warn(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.12, i64 0, i64 0), i8* %235)
store i32 1, i32* %16
br label %254
237: ; preds = %218
%238 = load i32, i32* %18
%239 = getelementptr inbounds [2 x %struct.timespec], [2 x %struct.timespec]* %14, i64 0, i64 0
%240 = call i64 @futimens(i32 %238, %struct.timespec* %239)
%241 = icmp slt i64 %240, 0
br i1 %241, label %242, label %249
242: ; preds = %237
%243 = load i8**, i8*** %5
%244 = load i32, i32* %17
%245 = sext i32 %244 to i64
%246 = getelementptr inbounds i8*, i8** %243, i64 %245
%247 = load i8*, i8** %246
%248 = call i32 @warn(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.13, i64 0, i64 0), i8* %247)
store i32 1, i32* %16
br label %249
249: ; preds = %242, %237
%250 = load i32, i32* %18
%251 = call i32 @close(i32 %250)
br label %252
252: ; preds = %249, %215
br label %253
253: ; preds = %252, %214
br label %254
254: ; preds = %253, %230
%255 = load i32, i32* %17
%256 = add nsw i32 %255, 1
store i32 %256, i32* %17
br label %184
257: ; preds = %184
%258 = load i32, i32* %16
store i32 %258, i32* %3
br label %259
259: ; preds = %257, %83, %69, %64
%260 = load i32, i32* %3
ret i32 %260
}

LLVM IR (-O2):
%struct.option = type { i8*, i8, i32, i32 }
%struct.stat = type { %struct.timespec, %struct.timespec }
%struct.timespec = type { i8* }
@.str = [5 x i8] c"date\00"
@required_argument = global i32 0
@.str.1 = [10 x i8] c"no-create\00"
@no_argument = global i32 0
@.str.2 = [10 x i8] c"reference\00"
@.str.3 = [5 x i8] c"help\00"
@.str.4 = [8 x i8] c"version\00"
@.str.5 = [10 x i8] c"acd:mr:t:\00"
@.str.6 = [381 x i8] c"[OPTIONS] FILE...\0A -a change access time\0A -c, --no-create do not create new files\0A -d, --date=DATE use DATE\0A -m change modification time\0A -r, --reference=FILE use FILE's timestamps\0A -t TIME use TIME\0A --help display this help\0A --version display version info\00"
@optarg = global i8* null
@UTIME_NOW = global i8* null
@.str.7 = [32 x i8] c"multiple time sources specified\00"
@.str.8 = [26 x i8] c"invalid date format: '%s'\00"
@.str.9 = [11 x i8] c"stat: '%s'\00"
@UTIME_OMIT = global i8* null
@optind = global i32 0
@.str.10 = [16 x i8] c"missing operand\00"
@F_OK = global i32 0
@AT_FDCWD = global i32 0
@.str.11 = [16 x i8] c"utimensat: '%s'\00"
@O_WRONLY = global i32 0
@O_CREAT = global i32 0
@.str.12 = [11 x i8] c"open: '%s'\00"
@.str.13 = [15 x i8] c"futimens: '%s'\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca [6 x %struct.option]
%4 = alloca <2 x i64>
%5 = alloca <2 x i64>
%6 = bitcast <2 x i64>* %5 to %struct.stat*
%7 = bitcast [6 x %struct.option]* %3 to i8*
%8 = getelementptr inbounds [6 x %struct.option], [6 x %struct.option]* %3, i64 0, i64 0
%9 = getelementptr inbounds [6 x %struct.option], [6 x %struct.option]* %3, i64 0, i64 0, i32 0
store i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str, i64 0, i64 0), i8** %9
%10 = getelementptr inbounds [6 x %struct.option], [6 x %struct.option]* %3, i64 0, i64 0, i32 1
%11 = load i32, i32* @required_argument
%12 = trunc i32 %11 to i8
store i8 %12, i8* %10
%13 = getelementptr inbounds [6 x %struct.option], [6 x %struct.option]* %3, i64 0, i64 0, i32 2
store i32 0, i32* %13
%14 = getelementptr inbounds [6 x %struct.option], [6 x %struct.option]* %3, i64 0, i64 0, i32 3
store i32 100, i32* %14
%15 = getelementptr inbounds [6 x %struct.option], [6 x %struct.option]* %3, i64 0, i64 1, i32 0
store i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.1, i64 0, i64 0), i8** %15
%16 = getelementptr inbounds [6 x %struct.option], [6 x %struct.option]* %3, i64 0, i64 1, i32 1
%17 = load i32, i32* @no_argument
%18 = trunc i32 %17 to i8
store i8 %18, i8* %16
%19 = getelementptr inbounds [6 x %struct.option], [6 x %struct.option]* %3, i64 0, i64 1, i32 2
store i32 0, i32* %19
%20 = getelementptr inbounds [6 x %struct.option], [6 x %struct.option]* %3, i64 0, i64 1, i32 3
store i32 99, i32* %20
%21 = getelementptr inbounds [6 x %struct.option], [6 x %struct.option]* %3, i64 0, i64 2, i32 0
store i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.2, i64 0, i64 0), i8** %21
%22 = getelementptr inbounds [6 x %struct.option], [6 x %struct.option]* %3, i64 0, i64 2, i32 1
store i8 %12, i8* %22
%23 = getelementptr inbounds [6 x %struct.option], [6 x %struct.option]* %3, i64 0, i64 2, i32 2
store i32 0, i32* %23
%24 = getelementptr inbounds [6 x %struct.option], [6 x %struct.option]* %3, i64 0, i64 2, i32 3
store i32 114, i32* %24
%25 = getelementptr inbounds [6 x %struct.option], [6 x %struct.option]* %3, i64 0, i64 3, i32 0
store i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.3, i64 0, i64 0), i8** %25
%26 = getelementptr inbounds [6 x %struct.option], [6 x %struct.option]* %3, i64 0, i64 3, i32 1
store i8 %18, i8* %26
%27 = getelementptr inbounds [6 x %struct.option], [6 x %struct.option]* %3, i64 0, i64 3, i32 2
store i32 0, i32* %27
%28 = getelementptr inbounds [6 x %struct.option], [6 x %struct.option]* %3, i64 0, i64 3, i32 3
store i32 0, i32* %28
%29 = getelementptr inbounds [6 x %struct.option], [6 x %struct.option]* %3, i64 0, i64 4, i32 0
store i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.4, i64 0, i64 0), i8** %29
%30 = getelementptr inbounds [6 x %struct.option], [6 x %struct.option]* %3, i64 0, i64 4, i32 1
store i8 %18, i8* %30
%31 = getelementptr inbounds [6 x %struct.option], [6 x %struct.option]* %3, i64 0, i64 4, i32 2
store i32 0, i32* %31
%32 = getelementptr inbounds [6 x %struct.option], [6 x %struct.option]* %3, i64 0, i64 4, i32 3
store i32 1, i32* %32
%33 = getelementptr inbounds [6 x %struct.option], [6 x %struct.option]* %3, i64 0, i64 5
%34 = bitcast %struct.option* %33 to i8*
br label %35
35: ; preds = %63, %2
%36 = phi i1 [ false, %2 ], [ true, %63 ]
%37 = phi i1 [ true, %2 ], [ false, %63 ]
%38 = phi i32 [ 0, %2 ], [ %44, %63 ]
%39 = phi i8* [ null, %2 ], [ %50, %63 ]
%40 = phi i8* [ null, %2 ], [ %55, %63 ]
%41 = phi i8* [ null, %2 ], [ %59, %63 ]
%42 = phi i32 [ 0, %2 ], [ %62, %63 ]
br label %43
43: ; preds = %63, %35
%44 = phi i32 [ %38, %35 ], [ 1, %63 ]
%45 = phi i8* [ %39, %35 ], [ %50, %63 ]
%46 = phi i8* [ %40, %35 ], [ %55, %63 ]
%47 = phi i8* [ %41, %35 ], [ %59, %63 ]
%48 = phi i32 [ %42, %35 ], [ %62, %63 ]
br label %49
49: ; preds = %43, %71
%50 = phi i8* [ %45, %43 ], [ %72, %71 ]
%51 = phi i8* [ %46, %43 ], [ %55, %71 ]
%52 = phi i8* [ %47, %43 ], [ %59, %71 ]
%53 = phi i32 [ %48, %43 ], [ %62, %71 ]
br label %54
54: ; preds = %49, %73
%55 = phi i8* [ %51, %49 ], [ %74, %73 ]
%56 = phi i8* [ %52, %49 ], [ %59, %73 ]
%57 = phi i32 [ %53, %49 ], [ %62, %73 ]
br label %58
58: ; preds = %54, %75
%59 = phi i8* [ %56, %54 ], [ %76, %75 ]
%60 = phi i32 [ %57, %54 ], [ %62, %75 ]
br label %61
61: ; preds = %63, %58
%62 = phi i32 [ %60, %58 ], [ 1, %63 ]
br label %63
63: ; preds = %61, %63
%64 = call i32 @getopt_long(i32 %0, i8** %1, i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.5, i64 0, i64 0), %struct.option* %8, i32* null)
switch i32 %64, label %63 [
i32 -1, label %77
i32 0, label %65
i32 1, label %68
i32 97, label %61
i32 99, label %43
i32 100, label %71
i32 109, label %35
i32 114, label %73
i32 116, label %75
i32 63, label %189
]
65: ; preds = %63
%66 = load i8*, i8** %1
%67 = call i32 @help(i8* %66, i8* getelementptr inbounds ([381 x i8], [381 x i8]* @.str.6, i64 0, i64 0))
br label %189
68: ; preds = %63
%69 = load i8*, i8** %1
%70 = call i32 @version(i8* %69)
br label %189
71: ; preds = %63
%72 = load i8*, i8** @optarg
br label %49
73: ; preds = %63
%74 = load i8*, i8** @optarg
br label %54
75: ; preds = %63
%76 = load i8*, i8** @optarg
br label %58
77: ; preds = %63
%78 = icmp ne i32 %62, 0
%79 = bitcast <2 x i64>* %4 to i8*
%80 = load i8*, i8** @UTIME_NOW
%81 = bitcast <2 x i64>* %4 to %struct.timespec*
%82 = bitcast <2 x i64>* %4 to i8**
store i8* %80, i8** %82
%83 = getelementptr inbounds <2 x i64>, <2 x i64>* %4, i64 0, i64 1
%84 = bitcast i64* %83 to i8**
store i8* %80, i8** %84
%85 = icmp eq i8* %50, null
br i1 %85, label %100, label %86
86: ; preds = %77
%87 = icmp ne i8* %55, null
%88 = icmp ne i8* %59, null
%89 = select i1 %87, i1 true, i1 %88
br i1 %89, label %90, label %92
90: ; preds = %86
%91 = call i32 (i32, i8*, ...) @errx(i32 1, i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.7, i64 0, i64 0))
br label %92
92: ; preds = %86, %90
%93 = call i32 @parseDate(i8* %50, %struct.timespec* %81)
%94 = icmp eq i32 %93, 0
br i1 %94, label %95, label %97
95: ; preds = %92
%96 = call i32 (i32, i8*, ...) @errx(i32 1, i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.8, i64 0, i64 0), i8* %50)
br label %97
97: ; preds = %95, %92
%98 = getelementptr inbounds <2 x i64>, <2 x i64>* %4, i64 0, i64 0
%99 = load i64, i64* %98
store i64 %99, i64* %83
br label %100
100: ; preds = %97, %77
%101 = icmp eq i8* %55, null
br i1 %101, label %115, label %102
102: ; preds = %100
%103 = icmp eq i8* %59, null
br i1 %103, label %106, label %104
104: ; preds = %102
%105 = call i32 (i32, i8*, ...) @errx(i32 1, i8* getelementptr inbounds ([32 x i8], [32 x i8]* @.str.7, i64 0, i64 0))
br label %106
106: ; preds = %104, %102
%107 = bitcast <2 x i64>* %5 to i8*
%108 = call i64 @stat(i8* %55, %struct.stat* %6)
%109 = icmp slt i64 %108, 0
br i1 %109, label %110, label %112
110: ; preds = %106
%111 = call i32 @err(i32 1, i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.9, i64 0, i64 0), i8* %55)
br label %112
112: ; preds = %110, %106
%113 = load <2 x i64>, <2 x i64>* %5
%114 = shufflevector <2 x i64> %113, <2 x i64> poison, <2 x i32> <i32 1, i32 0>
store <2 x i64> %114, <2 x i64>* %4
br label %115
115: ; preds = %112, %100
%116 = icmp eq i8* %59, null
br i1 %116, label %125, label %117
117: ; preds = %115
%118 = call i32 @parseTime(i8* %59, %struct.timespec* %81)
%119 = icmp eq i32 %118, 0
br i1 %119, label %120, label %122
120: ; preds = %117
%121 = call i32 (i32, i8*, ...) @errx(i32 1, i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.8, i64 0, i64 0), i8* %59)
br label %122
122: ; preds = %120, %117
%123 = getelementptr inbounds <2 x i64>, <2 x i64>* %4, i64 0, i64 0
%124 = load i64, i64* %123
store i64 %124, i64* %83
br label %125
125: ; preds = %122, %115
%126 = icmp eq i32 %62, 0
%127 = and i1 %126, %36
br i1 %127, label %128, label %130
128: ; preds = %125
%129 = load i8*, i8** @UTIME_OMIT
store i8* %129, i8** %82
br label %134
130: ; preds = %125
%131 = and i1 %78, %37
br i1 %131, label %132, label %134
132: ; preds = %130
%133 = load i8*, i8** @UTIME_OMIT
store i8* %133, i8** %84
br label %134
134: ; preds = %128, %132, %130
%135 = load i32, i32* @optind
%136 = icmp slt i32 %135, %0
br i1 %136, label %140, label %137
137: ; preds = %134
%138 = call i32 (i32, i8*, ...) @errx(i32 1, i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.10, i64 0, i64 0))
%139 = load i32, i32* @optind
br label %140
140: ; preds = %137, %134
%141 = phi i32 [ %139, %137 ], [ %135, %134 ]
%142 = icmp slt i32 %141, %0
br i1 %142, label %143, label %146
143: ; preds = %140
%144 = icmp eq i32 %44, 0
%145 = sext i32 %141 to i64
br label %148
146: ; preds = %184, %140
%147 = phi i32 [ 0, %140 ], [ %185, %184 ]
br label %189
148: ; preds = %143, %184
%149 = phi i64 [ %145, %143 ], [ %186, %184 ]
%150 = phi i32 [ 0, %143 ], [ %185, %184 ]
%151 = getelementptr inbounds i8*, i8** %1, i64 %149
%152 = load i8*, i8** %151
%153 = load i32, i32* @F_OK
%154 = call i64 @access(i8* %152, i32 %153)
%155 = icmp eq i64 %154, 0
br i1 %155, label %156, label %164
156: ; preds = %148
%157 = load i32, i32* @AT_FDCWD
%158 = load i8*, i8** %151
%159 = call i64 @utimensat(i32 %157, i8* %158, %struct.timespec* %81, i32 0)
%160 = icmp slt i64 %159, 0
br i1 %160, label %161, label %184
161: ; preds = %156
%162 = load i8*, i8** %151
%163 = call i32 @warn(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.11, i64 0, i64 0), i8* %162)
br label %184
164: ; preds = %148
br i1 %144, label %165, label %184
165: ; preds = %164
%166 = load i8*, i8** %151
%167 = load i32, i32* @O_WRONLY
%168 = load i32, i32* @O_CREAT
%169 = or i32 %168, %167
%170 = call i32 @open(i8* %166, i32 %169, i32 438)
%171 = icmp slt i32 %170, 0
br i1 %171, label %172, label %175
172: ; preds = %165
%173 = load i8*, i8** %151
%174 = call i32 @warn(i8* getelementptr inbounds ([11 x i8], [11 x i8]* @.str.12, i64 0, i64 0), i8* %173)
br label %184
175: ; preds = %165
%176 = call i64 @futimens(i32 %170, %struct.timespec* %81)
%177 = icmp slt i64 %176, 0
br i1 %177, label %178, label %181
178: ; preds = %175
%179 = load i8*, i8** %151
%180 = call i32 @warn(i8* getelementptr inbounds ([15 x i8], [15 x i8]* @.str.13, i64 0, i64 0), i8* %179)
br label %181
181: ; preds = %178, %175
%182 = phi i32 [ 1, %178 ], [ %150, %175 ]
%183 = call i32 @close(i32 %170)
br label %184
184: ; preds = %172, %181, %161, %156, %164
%185 = phi i32 [ 1, %161 ], [ %150, %156 ], [ %150, %164 ], [ 1, %172 ], [ %182, %181 ]
%186 = add nsw i64 %149, 1
%187 = trunc i64 %186 to i32
%188 = icmp eq i32 %187, %0
br i1 %188, label %146, label %148
189: ; preds = %63, %146, %68, %65
%190 = phi i32 [ %70, %68 ], [ %67, %65 ], [ %147, %146 ], [ 1, %63 ]
ret i32 %190
}