#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 time_t;
struct tm {
  scalar_t__ tm_min;
  scalar_t__ tm_hour;
  scalar_t__ tm_mday;
  scalar_t__ tm_mon;
  scalar_t__ tm_wday;
};
typedef int /*<<< orphan*/ FILE;

/* Variables and functions */
int LOG_CONS;
int /*<<< orphan*/ LOG_LOCAL1;
int /*<<< orphan*/ LOG_NOTICE;
int LOG_PID;
int /*<<< orphan*/ closelog();
int /*<<< orphan*/ execl(char *, char *, char *, char *, char *);
int /*<<< orphan*/ fclose(int /*<<< orphan*/ *);
scalar_t__ fgets(char *, int, int /*<<< orphan*/ *);
int /*<<< orphan*/ *fopen(char *, char *);
scalar_t__ fork();
int /*<<< orphan*/ fprintf(int /*<<< orphan*/ *, char *, ...);
int /*<<< orphan*/ isdigit(char);
scalar_t__ ispunct(char);
struct tm *localtime(int *);
int /*<<< orphan*/ openlog(char *, int, int /*<<< orphan*/);
int /*<<< orphan*/ printf(char *, char *);
int /*<<< orphan*/ setsid();
int /*<<< orphan*/ sleep(int);
int /*<<< orphan*/ *stderr;
int /*<<< orphan*/ *stdin;
int /*<<< orphan*/ *stdout;
int /*<<< orphan*/ strcmp(char *, char *);
int /*<<< orphan*/ strncpy(char *, char *, int);
char *strtok(char *, char *);
scalar_t__ strtol(char *, int /*<<< orphan*/ *, int /*<<< orphan*/);
int /*<<< orphan*/ syslog(int /*<<< orphan*/, char *, ...);
int time(int /*<<< orphan*/ *);
int main(int argc, char *argv[]) {
  char *col, line[80 + 1], config[80 + 1] = "/etc/dcron.conf";
  int i, j;
  time_t t;
  struct tm *tm;
  FILE *fp;
  openlog(argv[0], LOG_CONS | LOG_PID, LOG_LOCAL1);
  for (i = 1; i < argc; i++) {
    if (!strcmp("-d", argv[i])) {
      if (fork() == 0) {
        setsid();
        fclose(stdout);
        fclose(stderr);
        fclose(stdin);
      } else {
        return 0;
      }
    } else if (!strcmp("-f", argv[i])) {
      if (argv[i + 1] == NULL || argv[i + 1][0] == '-') {
        fprintf(stderr, "error: -f needs parameter\n");
        syslog(LOG_NOTICE, "error: -f needs parameter");
        return 1;
      }
      strncpy(config, argv[++i], 80);
    } else {
      fprintf(stderr, "usage: %s [options]\n", argv[0]);
      fprintf(stderr, "-h        help\n");
      fprintf(stderr, "-d        daemon\n");
      fprintf(stderr, "-f <file> config file\n");
      return 1;
    }
  }
  while (1) {
    t = time(NULL);
    sleep(60 - t % 60);
    t = time(NULL);
    tm = localtime(&t);
    if ((fp = fopen(config, "r")) == NULL) {
      fprintf(stderr, "error: cant read %s\n", config);
      syslog(LOG_NOTICE, "error: cant read %s", config);
      continue;
    }
    for (i = 0; fgets(line, 80 + 1, fp); i++) {
      if (line[0] == '#' || line[1] == '\0')
        continue;
      for (j = 0, col = strtok(line, "\t"); col;
           j++, col = strtok(NULL, "\t")) {
        if ((j == 0 &&
             (ispunct(col[0]) || strtol(col, NULL, 0) == tm->tm_min)) ||
            (j == 1 &&
             (ispunct(col[0]) || strtol(col, NULL, 0) == tm->tm_hour)) ||
            (j == 2 &&
             (ispunct(col[0]) || strtol(col, NULL, 0) == tm->tm_mday)) ||
            (j == 3 &&
             (ispunct(col[0]) || strtol(col, NULL, 0) == tm->tm_mon)) ||
            (j == 4 &&
             (ispunct(col[0]) || strtol(col, NULL, 0) == tm->tm_wday))) {
          continue;
        } else if (j == 5) {
          printf("run: %s", col);
          syslog(LOG_NOTICE, "run: %s", col);
          if (fork() == 0) {
            execl("/bin/sh", "/bin/sh", "-c", col, (char *)NULL);
          }
        } else if (!isdigit(col[0])) {
          fprintf(stderr, "error: %s line %d column %d\n", config, i + 1,
                  j + 1);
          syslog(LOG_NOTICE, "error: %s line %d column %d", config, i + 1,
                 j + 1);
        }
        break;
      }
    }
    fclose(fp);
  }
  closelog();
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0xf0,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
lea    -0xd0(%rbp),%rdi
lea    0xd99(%rip),%rsi
mov    $0x51,%edx
call   10e0 <memcpy@plt>
mov    -0x10(%rbp),%rax
mov    (%rax),%rdi
mov    0x2d49(%rip),%rax
mov    (%rax),%esi
mov    0x2d50(%rip),%rax
or     (%rax),%esi
mov    0x2d2f(%rip),%rax
mov    (%rax),%edx
call   1130 <openlog@plt>
movl   $0x1,-0xd4(%rbp)
mov    -0xd4(%rbp),%eax
cmp    -0x8(%rbp),%eax
jge    148b <main+0x24b>
mov    -0x10(%rbp),%rax
movslq -0xd4(%rbp),%rcx
mov    (%rax,%rcx,8),%rsi
lea    0xd8a(%rip),%rdi
call   10b0 <strcmp@plt>
cmp    $0x0,%eax
jne    1330 <main+0xf0>
mov    $0x0,%al
call   1160 <fork@plt>
cmp    $0x0,%rax
jne    131f <main+0xdf>
mov    $0x0,%al
call   1090 <setsid@plt>
mov    0x2cc4(%rip),%rax
mov    (%rax),%rdi
call   1060 <fclose@plt>
mov    0x2ccd(%rip),%rax
mov    (%rax),%rdi
call   1060 <fclose@plt>
mov    0x2cd6(%rip),%rax
mov    (%rax),%rdi
call   1060 <fclose@plt>
jmp    132b <main+0xeb>
movl   $0x0,-0x4(%rbp)
jmp    184d <main+0x60d>
jmp    1472 <main+0x232>
mov    -0x10(%rbp),%rax
movslq -0xd4(%rbp),%rcx
mov    (%rax,%rcx,8),%rsi
lea    0xd0e(%rip),%rdi
call   10b0 <strcmp@plt>
cmp    $0x0,%eax
jne    13fa <main+0x1ba>
mov    -0x10(%rbp),%rax
mov    -0xd4(%rbp),%ecx
add    $0x1,%ecx
movslq %ecx,%rcx
cmpq   $0x0,(%rax,%rcx,8)
je     138f <main+0x14f>
mov    -0x10(%rbp),%rax
mov    -0xd4(%rbp),%ecx
add    $0x1,%ecx
movslq %ecx,%rcx
mov    (%rax,%rcx,8),%rax
movsbl (%rax),%eax
cmp    $0x2d,%eax
jne    13ca <main+0x18a>
mov    0x2c3a(%rip),%rax
mov    (%rax),%rdi
lea    0xcb7(%rip),%rsi
mov    $0x0,%al
call   10c0 <fprintf@plt>
mov    0x2c02(%rip),%rax
mov    (%rax),%edi
lea    0xcbb(%rip),%rsi
mov    $0x0,%al
call   1100 <syslog@plt>
movl   $0x1,-0x4(%rbp)
jmp    184d <main+0x60d>
lea    -0xd0(%rbp),%rdi
mov    -0x10(%rbp),%rax
mov    -0xd4(%rbp),%ecx
add    $0x1,%ecx
mov    %ecx,-0xd4(%rbp)
movslq %ecx,%rcx
mov    (%rax,%rcx,8),%rsi
mov    $0x50,%edx
call   1040 <strncpy@plt>
jmp    146d <main+0x22d>
mov    0x2bcf(%rip),%rax
mov    (%rax),%rdi
mov    -0x10(%rbp),%rax
mov    (%rax),%rdx
lea    0xc7a(%rip),%rsi
mov    $0x0,%al
call   10c0 <fprintf@plt>
mov    0x2bb0(%rip),%rax
mov    (%rax),%rdi
lea    0xc77(%rip),%rsi
mov    $0x0,%al
call   10c0 <fprintf@plt>
mov    0x2b98(%rip),%rax
mov    (%rax),%rdi
lea    0xc6f(%rip),%rsi
mov    $0x0,%al
call   10c0 <fprintf@plt>
mov    0x2b80(%rip),%rax
mov    (%rax),%rdi
lea    0xc69(%rip),%rsi
mov    $0x0,%al
call   10c0 <fprintf@plt>
movl   $0x1,-0x4(%rbp)
jmp    184d <main+0x60d>
jmp    1472 <main+0x232>
jmp    1477 <main+0x237>
mov    -0xd4(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xd4(%rbp)
jmp    12a2 <main+0x62>
jmp    1490 <main+0x250>
xor    %eax,%eax
mov    %eax,%edi
call   10f0 <time@plt>
mov    %eax,-0xdc(%rbp)
mov    -0xdc(%rbp),%eax
mov    $0x3c,%ecx
cltd
idiv   %ecx
mov    $0x3c,%edi
sub    %edx,%edi
call   1150 <sleep@plt>
xor    %eax,%eax
mov    %eax,%edi
call   10f0 <time@plt>
mov    %eax,-0xdc(%rbp)
lea    -0xdc(%rbp),%rdi
call   1030 <localtime@plt>
mov    %rax,-0xe8(%rbp)
lea    -0xd0(%rbp),%rdi
lea    0xba1(%rip),%rsi
call   1110 <fopen@plt>
mov    %rax,-0xf0(%rbp)
cmp    $0x0,%rax
jne    1541 <main+0x301>
mov    0x2aca(%rip),%rax
mov    (%rax),%rdi
lea    -0xd0(%rbp),%rdx
lea    0xbc3(%rip),%rsi
mov    $0x0,%al
call   10c0 <fprintf@plt>
mov    0x2a8b(%rip),%rax
mov    (%rax),%edi
lea    -0xd0(%rbp),%rdx
lea    0xbba(%rip),%rsi
mov    $0x0,%al
call   1100 <syslog@plt>
jmp    1490 <main+0x250>
movl   $0x0,-0xd4(%rbp)
lea    -0x70(%rbp),%rdi
mov    -0xf0(%rbp),%rdx
mov    $0x51,%esi
call   10a0 <fgets@plt>
cmp    $0x0,%rax
je     183c <main+0x5fc>
movsbl -0x70(%rbp),%eax
cmp    $0x23,%eax
je     1584 <main+0x344>
movsbl -0x6f(%rbp),%eax
cmp    $0x0,%eax
jne    1589 <main+0x349>
jmp    1828 <main+0x5e8>
movl   $0x0,-0xd8(%rbp)
lea    -0x70(%rbp),%rdi
lea    0xb65(%rip),%rsi
call   1120 <strtok@plt>
mov    %rax,-0x18(%rbp)
cmpq   $0x0,-0x18(%rbp)
je     1823 <main+0x5e3>
cmpl   $0x0,-0xd8(%rbp)
jne    15f4 <main+0x3b4>
mov    -0x18(%rbp),%rax
movsbl (%rax),%edi
call   1080 <ispunct@plt>
cmp    $0x0,%rax
jne    1700 <main+0x4c0>
mov    -0x18(%rbp),%rdi
xor    %eax,%eax
mov    %eax,%esi
xor    %edx,%edx
call   10d0 <strtol@plt>
mov    -0xe8(%rbp),%rcx
cmp    (%rcx),%rax
je     1700 <main+0x4c0>
cmpl   $0x1,-0xd8(%rbp)
jne    1637 <main+0x3f7>
mov    -0x18(%rbp),%rax
movsbl (%rax),%edi
call   1080 <ispunct@plt>
cmp    $0x0,%rax
jne    1700 <main+0x4c0>
mov    -0x18(%rbp),%rdi
xor    %eax,%eax
mov    %eax,%esi
xor    %edx,%edx
call   10d0 <strtol@plt>
mov    -0xe8(%rbp),%rcx
cmp    0x8(%rcx),%rax
je     1700 <main+0x4c0>
cmpl   $0x2,-0xd8(%rbp)
jne    167a <main+0x43a>
mov    -0x18(%rbp),%rax
movsbl (%rax),%edi
call   1080 <ispunct@plt>
cmp    $0x0,%rax
jne    1700 <main+0x4c0>
mov    -0x18(%rbp),%rdi
xor    %eax,%eax
mov    %eax,%esi
xor    %edx,%edx
call   10d0 <strtol@plt>
mov    -0xe8(%rbp),%rcx
cmp    0x10(%rcx),%rax
je     1700 <main+0x4c0>
cmpl   $0x3,-0xd8(%rbp)
jne    16bd <main+0x47d>
mov    -0x18(%rbp),%rax
movsbl (%rax),%edi
call   1080 <ispunct@plt>
cmp    $0x0,%rax
jne    1700 <main+0x4c0>
mov    -0x18(%rbp),%rdi
xor    %eax,%eax
mov    %eax,%esi
xor    %edx,%edx
call   10d0 <strtol@plt>
mov    -0xe8(%rbp),%rcx
cmp    0x18(%rcx),%rax
je     1700 <main+0x4c0>
cmpl   $0x4,-0xd8(%rbp)
jne    1705 <main+0x4c5>
mov    -0x18(%rbp),%rax
movsbl (%rax),%edi
call   1080 <ispunct@plt>
cmp    $0x0,%rax
jne    1700 <main+0x4c0>
mov    -0x18(%rbp),%rdi
xor    %eax,%eax
mov    %eax,%esi
xor    %edx,%edx
call   10d0 <strtol@plt>
mov    -0xe8(%rbp),%rcx
cmp    0x20(%rcx),%rax
jne    1705 <main+0x4c5>
jmp    17fb <main+0x5bb>
cmpl   $0x5,-0xd8(%rbp)
jne    1772 <main+0x532>
mov    -0x18(%rbp),%rsi
lea    0x9e8(%rip),%rdi
call   1070 <printf@plt>
mov    0x2887(%rip),%rax
mov    (%rax),%edi
mov    -0x18(%rbp),%rdx
lea    0x9cf(%rip),%rsi
mov    $0x0,%al
call   1100 <syslog@plt>
mov    $0x0,%al
call   1160 <fork@plt>
cmp    $0x0,%rax
jne    176d <main+0x52d>
mov    -0x18(%rbp),%rcx
lea    0x9b4(%rip),%rsi
lea    0x9b5(%rip),%rdx
xor    %eax,%eax
mov    %eax,%r8d
mov    %rsi,%rdi
call   1140 <execl@plt>
jmp    17f1 <main+0x5b1>
mov    -0x18(%rbp),%rax
movsbl (%rax),%edi
call   1050 <isdigit@plt>
cmp    $0x0,%eax
jne    17ec <main+0x5ac>
mov    0x2842(%rip),%rax
mov    (%rax),%rdi
lea    -0xd0(%rbp),%rdx
mov    -0xd4(%rbp),%ecx
add    $0x1,%ecx
mov    -0xd8(%rbp),%r8d
add    $0x1,%r8d
lea    0x965(%rip),%rsi
mov    $0x0,%al
call   10c0 <fprintf@plt>
mov    0x27ef(%rip),%rax
mov    (%rax),%edi
lea    -0xd0(%rbp),%rdx
mov    -0xd4(%rbp),%ecx
add    $0x1,%ecx
mov    -0xd8(%rbp),%r8d
add    $0x1,%r8d
lea    0x950(%rip),%rsi
mov    $0x0,%al
call   1100 <syslog@plt>
jmp    17f1 <main+0x5b1>
jmp    17f6 <main+0x5b6>
jmp    1823 <main+0x5e3>
mov    -0xd8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xd8(%rbp)
xor    %eax,%eax
mov    %eax,%edi
lea    0x8ee(%rip),%rsi
call   1120 <strtok@plt>
mov    %rax,-0x18(%rbp)
jmp    15a7 <main+0x367>
jmp    1828 <main+0x5e8>
mov    -0xd4(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0xd4(%rbp)
jmp    154b <main+0x30b>
mov    -0xf0(%rbp),%rdi
call   1060 <fclose@plt>
jmp    1490 <main+0x250>
mov    -0x4(%rbp),%eax
add    $0xf0,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0xc8,%rsp
mov    %rsi,%rbx
mov    %edi,%r13d
movaps 0xe02(%rip),%xmm0
movaps %xmm0,0x50(%rsp)
movaps 0xde6(%rip),%xmm0
movaps %xmm0,0x40(%rsp)
movaps 0xdca(%rip),%xmm0
movaps %xmm0,0x30(%rsp)
movaps 0xdae(%rip),%xmm0
movaps %xmm0,0x20(%rsp)
movaps 0xd92(%rip),%xmm0
movaps %xmm0,0x10(%rsp)
movb   $0x0,0x60(%rsp)
mov    (%rsi),%rdi
mov    0x2d26(%rip),%rax
mov    0x2d2f(%rip),%rcx
mov    (%rcx),%esi
or     (%rax),%esi
mov    0x2d0c(%rip),%rax
mov    (%rax),%edx
call   1120 <openlog@plt>
cmp    $0x2,%r13d
jl     13a8 <main+0x168>
mov    $0x1,%r12d
lea    0xd9f(%rip),%r14
jmp    12ed <main+0xad>
cs nopw 0x0(%rax,%rax,1)
xchg   %ax,%ax
add    $0x1,%r12d
cmp    %r13d,%r12d
jge    13a8 <main+0x168>
movslq %r12d,%r15
mov    (%rbx,%r15,8),%rbp
mov    %r14,%rdi
mov    %rbp,%rsi
call   10b0 <strcmp@plt>
test   %eax,%eax
je     1350 <main+0x110>
lea    0xd6a(%rip),%rdi
mov    %rbp,%rsi
call   10b0 <strcmp@plt>
test   %eax,%eax
jne    16d8 <main+0x498>
mov    0x8(%rbx,%r15,8),%rsi
test   %rsi,%rsi
je     169f <main+0x45f>
cmpb   $0x2d,(%rsi)
je     169f <main+0x45f>
add    $0x1,%r12d
lea    0x10(%rsp),%rdi
mov    $0x50,%edx
call   1040 <strncpy@plt>
jmp    12e0 <main+0xa0>
cs nopw 0x0(%rax,%rax,1)
xor    %ebp,%ebp
xor    %eax,%eax
call   1160 <fork@plt>
test   %rax,%rax
jne    1747 <main+0x507>
xor    %eax,%eax
call   1090 <setsid@plt>
mov    0x2c48(%rip),%rax
mov    (%rax),%rdi
call   1060 <fclose@plt>
mov    0x2c51(%rip),%rax
mov    (%rax),%rdi
call   1060 <fclose@plt>
mov    0x2c5a(%rip),%rax
mov    (%rax),%rdi
call   1060 <fclose@plt>
jmp    12e0 <main+0xa0>
nopl   0x0(%rax,%rax,1)
mov    %r12,%rdi
call   1060 <fclose@plt>
xor    %edi,%edi
call   10e0 <time@plt>
mov    %eax,0xc(%rsp)
cltq
imul   $0xffffffff88888889,%rax,%rcx
shr    $0x20,%rcx
add    %eax,%ecx
mov    %ecx,%edx
shr    $0x1f,%edx
sar    $0x5,%ecx
add    %edx,%ecx
imul   $0x3c,%ecx,%edi
sub    %eax,%edi
add    $0x3c,%edi
call   1150 <sleep@plt>
xor    %edi,%edi
call   10e0 <time@plt>
mov    %eax,0xc(%rsp)
lea    0xc(%rsp),%rdi
call   1030 <localtime@plt>
mov    %rax,(%rsp)
lea    0xcb1(%rip),%rsi
lea    0x10(%rsp),%rdi
call   1100 <fopen@plt>
test   %rax,%rax
je     1660 <main+0x420>
mov    %rax,%r12
lea    0x70(%rsp),%rdi
mov    $0x51,%esi
mov    %rax,%rdx
call   10a0 <fgets@plt>
test   %rax,%rax
je     13a0 <main+0x160>
lea    0xcf2(%rip),%rbx
lea    0xbc8(%rip),%r15
xor    %r14d,%r14d
jmp    146f <main+0x22f>
movsbl 0x0(%rbp),%edi
call   1050 <isdigit@plt>
test   %eax,%eax
je     15ae <main+0x36e>
xchg   %ax,%ax
add    $0x1,%r14d
lea    0x70(%rsp),%rdi
mov    $0x51,%esi
mov    %r12,%rdx
call   10a0 <fgets@plt>
test   %rax,%rax
je     13a0 <main+0x160>
cmpb   $0x23,0x70(%rsp)
je     1450 <main+0x210>
cmpb   $0x0,0x71(%rsp)
je     1450 <main+0x210>
lea    0x70(%rsp),%rdi
mov    %rbx,%rsi
call   1110 <strtok@plt>
test   %rax,%rax
je     1450 <main+0x210>
mov    %rax,%rbp
mov    $0x1,%r13d
jmp    14c6 <main+0x286>
movsbl 0x0(%rbp),%edi
call   1080 <ispunct@plt>
test   %rax,%rax
je     158f <main+0x34f>
nopl   0x0(%rax)
xor    %edi,%edi
mov    %rbx,%rsi
call   1110 <strtok@plt>
mov    %rax,%rbp
add    $0x1,%r13d
test   %rax,%rax
je     1450 <main+0x210>
lea    -0x1(%r13),%eax
cmp    $0x5,%eax
ja     143d <main+0x1fd>
movslq (%r15,%rax,4),%rax
add    %r15,%rax
jmp    *%rax
movsbl 0x0(%rbp),%edi
call   1080 <ispunct@plt>
test   %rax,%rax
jne    14b0 <main+0x270>
mov    %rbp,%rdi
xor    %esi,%esi
xor    %edx,%edx
call   10d0 <strtol@plt>
mov    (%rsp),%rcx
cmp    (%rcx),%rax
je     14b0 <main+0x270>
jmp    143d <main+0x1fd>
movsbl 0x0(%rbp),%edi
call   1080 <ispunct@plt>
test   %rax,%rax
jne    14b0 <main+0x270>
mov    %rbp,%rdi
xor    %esi,%esi
xor    %edx,%edx
call   10d0 <strtol@plt>
mov    (%rsp),%rcx
cmp    0x8(%rcx),%rax
je     14b0 <main+0x270>
jmp    143d <main+0x1fd>
movsbl 0x0(%rbp),%edi
call   1080 <ispunct@plt>
test   %rax,%rax
jne    14b0 <main+0x270>
mov    %rbp,%rdi
xor    %esi,%esi
xor    %edx,%edx
call   10d0 <strtol@plt>
mov    (%rsp),%rcx
cmp    0x10(%rcx),%rax
je     14b0 <main+0x270>
jmp    143d <main+0x1fd>
movsbl 0x0(%rbp),%edi
call   1080 <ispunct@plt>
test   %rax,%rax
jne    14b0 <main+0x270>
mov    %rbp,%rdi
xor    %esi,%esi
xor    %edx,%edx
call   10d0 <strtol@plt>
mov    (%rsp),%rcx
cmp    0x18(%rcx),%rax
je     14b0 <main+0x270>
jmp    143d <main+0x1fd>
mov    %rbp,%rdi
xor    %esi,%esi
xor    %edx,%edx
call   10d0 <strtol@plt>
mov    (%rsp),%rcx
cmp    0x20(%rcx),%rax
je     14b0 <main+0x270>
jmp    143d <main+0x1fd>
mov    0x2a1b(%rip),%rax
mov    (%rax),%rdi
lea    0x1(%r14),%ebp
lea    0xb75(%rip),%rsi
lea    0x10(%rsp),%rdx
mov    %ebp,%ecx
mov    %r13d,%r8d
xor    %eax,%eax
call   10c0 <fprintf@plt>
mov    0x29d5(%rip),%rax
mov    (%rax),%edi
lea    0xb71(%rip),%rsi
lea    0x10(%rsp),%rdx
mov    %ebp,%ecx
mov    %r13d,%r8d
xor    %eax,%eax
call   10f0 <syslog@plt>
jmp    1450 <main+0x210>
lea    0xb24(%rip),%r13
mov    %r13,%rdi
mov    %rbp,%rsi
call   1070 <printf@plt>
mov    0x299d(%rip),%rax
mov    (%rax),%edi
mov    %r13,%rsi
mov    %rbp,%rdx
xor    %eax,%eax
call   10f0 <syslog@plt>
xor    %eax,%eax
call   1160 <fork@plt>
test   %rax,%rax
jne    1450 <main+0x210>
lea    0xaf4(%rip),%rdi
mov    %rdi,%rsi
lea    0xaf2(%rip),%rdx
mov    %rbp,%rcx
xor    %r8d,%r8d
call   1140 <execl@plt>
jmp    1450 <main+0x210>
cs nopw 0x0(%rax,%rax,1)
nopl   (%rax)
mov    0x2969(%rip),%rax
mov    (%rax),%rdi
lea    0xa89(%rip),%rsi
lea    0x10(%rsp),%rbx
mov    %rbx,%rdx
xor    %eax,%eax
call   10c0 <fprintf@plt>
mov    0x2929(%rip),%rax
mov    (%rax),%edi
lea    0xa7f(%rip),%rsi
mov    %rbx,%rdx
xor    %eax,%eax
call   10f0 <syslog@plt>
jmp    13a8 <main+0x168>
mov    0x292a(%rip),%rax
mov    (%rax),%rcx
lea    0x9c7(%rip),%rdi
mov    $0x1a,%esi
mov    $0x1,%edx
call   1130 <fwrite@plt>
mov    0x28ea(%rip),%rax
mov    (%rax),%edi
lea    0x9c3(%rip),%rsi
xor    %eax,%eax
call   10f0 <syslog@plt>
jmp    1742 <main+0x502>
mov    0x28f1(%rip),%rbp
mov    0x0(%rbp),%rdi
mov    (%rbx),%rdx
lea    0x9bf(%rip),%rsi
xor    %eax,%eax
call   10c0 <fprintf@plt>
mov    0x0(%rbp),%rcx
lea    0x9c2(%rip),%rdi
mov    $0xf,%esi
mov    $0x1,%edx
call   1130 <fwrite@plt>
mov    0x0(%rbp),%rcx
lea    0x9b8(%rip),%rdi
mov    $0x11,%esi
mov    $0x1,%edx
call   1130 <fwrite@plt>
mov    0x0(%rbp),%rcx
lea    0x9b0(%rip),%rdi
mov    $0x16,%esi
mov    $0x1,%edx
call   1130 <fwrite@plt>
mov    $0x1,%ebp
mov    %ebp,%eax
add    $0xc8,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
%struct.tm = type { i64, i64, i64, i64, i64 }
@__const.main.config = [81 x i8] c"/etc/dcron.conf\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00"
@LOG_CONS = global i32 0
@LOG_PID = global i32 0
@LOG_LOCAL1 = global i32 0
@.str = [3 x i8] c"-d\00"
@stdout = global i32* null
@stderr = global i32* null
@stdin = global i32* null
@.str.1 = [3 x i8] c"-f\00"
@.str.2 = [27 x i8] c"error: -f needs parameter\0A\00"
@LOG_NOTICE = global i32 0
@.str.3 = [26 x i8] c"error: -f needs parameter\00"
@.str.4 = [21 x i8] c"usage: %s [options]\0A\00"
@.str.5 = [16 x i8] c"-h help\0A\00"
@.str.6 = [18 x i8] c"-d daemon\0A\00"
@.str.7 = [23 x i8] c"-f <file> config file\0A\00"
@.str.8 = [2 x i8] c"r\00"
@.str.9 = [21 x i8] c"error: cant read %s\0A\00"
@.str.10 = [20 x i8] c"error: cant read %s\00"
@.str.11 = [2 x i8] c"\09\00"
@.str.12 = [8 x i8] c"run: %s\00"
@.str.13 = [8 x i8] c"/bin/sh\00"
@.str.14 = [3 x i8] c"-c\00"
@.str.15 = [29 x i8] c"error: %s line %d column %d\0A\00"
@.str.16 = [28 x i8] c"error: %s line %d column %d\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca i8*
%7 = alloca [81 x i8]
%8 = alloca [81 x i8]
%9 = alloca i32
%10 = alloca i32
%11 = alloca i32
%12 = alloca %struct.tm*
%13 = alloca i32*
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
%14 = bitcast [81 x i8]* %8 to i8*
%15 = load i8**, i8*** %5
%16 = getelementptr inbounds i8*, i8** %15, i64 0
%17 = load i8*, i8** %16
%18 = load i32, i32* @LOG_CONS
%19 = load i32, i32* @LOG_PID
%20 = or i32 %18, %19
%21 = load i32, i32* @LOG_LOCAL1
%22 = call i32 @openlog(i8* %17, i32 %20, i32 %21)
store i32 1, i32* %9
br label %23
23: ; preds = %103, %2
%24 = load i32, i32* %9
%25 = load i32, i32* %4
%26 = icmp slt i32 %24, %25
br i1 %26, label %27, label %106
27: ; preds = %23
%28 = load i8**, i8*** %5
%29 = load i32, i32* %9
%30 = sext i32 %29 to i64
%31 = getelementptr inbounds i8*, i8** %28, i64 %30
%32 = load i8*, i8** %31
%33 = call i32 @strcmp(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8* %32)
%34 = icmp ne i32 %33, 0
br i1 %34, label %48, label %35
35: ; preds = %27
%36 = call i64 (...) @fork()
%37 = icmp eq i64 %36, 0
br i1 %37, label %38, label %46
38: ; preds = %35
%39 = call i32 (...) @setsid()
%40 = load i32*, i32** @stdout
%41 = call i32 @fclose(i32* %40)
%42 = load i32*, i32** @stderr
%43 = call i32 @fclose(i32* %42)
%44 = load i32*, i32** @stdin
%45 = call i32 @fclose(i32* %44)
br label %47
46: ; preds = %35
store i32 0, i32* %3
br label %279
47: ; preds = %38
br label %102
48: ; preds = %27
%49 = load i8**, i8*** %5
%50 = load i32, i32* %9
%51 = sext i32 %50 to i64
%52 = getelementptr inbounds i8*, i8** %49, i64 %51
%53 = load i8*, i8** %52
%54 = call i32 @strcmp(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i8* %53)
%55 = icmp ne i32 %54, 0
br i1 %55, label %89, label %56
56: ; preds = %48
%57 = load i8**, i8*** %5
%58 = load i32, i32* %9
%59 = add nsw i32 %58, 1
%60 = sext i32 %59 to i64
%61 = getelementptr inbounds i8*, i8** %57, i64 %60
%62 = load i8*, i8** %61
%63 = icmp eq i8* %62, null
br i1 %63, label %75, label %64
64: ; preds = %56
%65 = load i8**, i8*** %5
%66 = load i32, i32* %9
%67 = add nsw i32 %66, 1
%68 = sext i32 %67 to i64
%69 = getelementptr inbounds i8*, i8** %65, i64 %68
%70 = load i8*, i8** %69
%71 = getelementptr inbounds i8, i8* %70, i64 0
%72 = load i8, i8* %71
%73 = sext i8 %72 to i32
%74 = icmp eq i32 %73, 45
br i1 %74, label %75, label %80
75: ; preds = %64, %56
%76 = load i32*, i32** @stderr
%77 = call i32 (i32*, i8*, ...) @fprintf(i32* %76, i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.2, i64 0, i64 0))
%78 = load i32, i32* @LOG_NOTICE
%79 = call i32 (i32, i8*, ...) @syslog(i32 %78, i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.3, i64 0, i64 0))
store i32 1, i32* %3
br label %279
80: ; preds = %64
%81 = getelementptr inbounds [81 x i8], [81 x i8]* %8, i64 0, i64 0
%82 = load i8**, i8*** %5
%83 = load i32, i32* %9
%84 = add nsw i32 %83, 1
store i32 %84, i32* %9
%85 = sext i32 %84 to i64
%86 = getelementptr inbounds i8*, i8** %82, i64 %85
%87 = load i8*, i8** %86
%88 = call i32 @strncpy(i8* %81, i8* %87, i32 80)
br label %101
89: ; preds = %48
%90 = load i32*, i32** @stderr
%91 = load i8**, i8*** %5
%92 = getelementptr inbounds i8*, i8** %91, i64 0
%93 = load i8*, i8** %92
%94 = call i32 (i32*, i8*, ...) @fprintf(i32* %90, i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.4, i64 0, i64 0), i8* %93)
%95 = load i32*, i32** @stderr
%96 = call i32 (i32*, i8*, ...) @fprintf(i32* %95, i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.5, i64 0, i64 0))
%97 = load i32*, i32** @stderr
%98 = call i32 (i32*, i8*, ...) @fprintf(i32* %97, i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.6, i64 0, i64 0))
%99 = load i32*, i32** @stderr
%100 = call i32 (i32*, i8*, ...) @fprintf(i32* %99, i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.7, i64 0, i64 0))
store i32 1, i32* %3
br label %279
101: ; preds = %80
br label %102
102: ; preds = %101, %47
br label %103
103: ; preds = %102
%104 = load i32, i32* %9
%105 = add nsw i32 %104, 1
store i32 %105, i32* %9
br label %23
106: ; preds = %23
br label %107
107: ; preds = %106, %118, %276
%108 = call i32 @time(i32* null)
store i32 %108, i32* %11
%109 = load i32, i32* %11
%110 = srem i32 %109, 60
%111 = sub nsw i32 60, %110
%112 = call i32 @sleep(i32 %111)
%113 = call i32 @time(i32* null)
store i32 %113, i32* %11
%114 = call %struct.tm* @localtime(i32* %11)
store %struct.tm* %114, %struct.tm** %12
%115 = getelementptr inbounds [81 x i8], [81 x i8]* %8, i64 0, i64 0
%116 = call i32* @fopen(i8* %115, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.8, i64 0, i64 0))
store i32* %116, i32** %13
%117 = icmp eq i32* %116, null
br i1 %117, label %118, label %125
118: ; preds = %107
%119 = load i32*, i32** @stderr
%120 = getelementptr inbounds [81 x i8], [81 x i8]* %8, i64 0, i64 0
%121 = call i32 (i32*, i8*, ...) @fprintf(i32* %119, i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.9, i64 0, i64 0), i8* %120)
%122 = load i32, i32* @LOG_NOTICE
%123 = getelementptr inbounds [81 x i8], [81 x i8]* %8, i64 0, i64 0
%124 = call i32 (i32, i8*, ...) @syslog(i32 %122, i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.10, i64 0, i64 0), i8* %123)
br label %107
125: ; preds = %107
store i32 0, i32* %9
br label %126
126: ; preds = %273, %125
%127 = getelementptr inbounds [81 x i8], [81 x i8]* %7, i64 0, i64 0
%128 = load i32*, i32** %13
%129 = call i64 @fgets(i8* %127, i32 81, i32* %128)
%130 = icmp ne i64 %129, 0
br i1 %130, label %131, label %276
131: ; preds = %126
%132 = getelementptr inbounds [81 x i8], [81 x i8]* %7, i64 0, i64 0
%133 = load i8, i8* %132
%134 = sext i8 %133 to i32
%135 = icmp eq i32 %134, 35
br i1 %135, label %141, label %136
136: ; preds = %131
%137 = getelementptr inbounds [81 x i8], [81 x i8]* %7, i64 0, i64 1
%138 = load i8, i8* %137
%139 = sext i8 %138 to i32
%140 = icmp eq i32 %139, 0
br i1 %140, label %141, label %142
141: ; preds = %136, %131
br label %273
142: ; preds = %136
store i32 0, i32* %10
%143 = getelementptr inbounds [81 x i8], [81 x i8]* %7, i64 0, i64 0
%144 = call i8* @strtok(i8* %143, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.11, i64 0, i64 0))
store i8* %144, i8** %6
br label %145
145: ; preds = %268, %142
%146 = load i8*, i8** %6
%147 = icmp ne i8* %146, null
br i1 %147, label %148, label %272
148: ; preds = %145
%149 = load i32, i32* %10
%150 = icmp eq i32 %149, 0
br i1 %150, label %151, label %164
151: ; preds = %148
%152 = load i8*, i8** %6
%153 = getelementptr inbounds i8, i8* %152, i64 0
%154 = load i8, i8* %153
%155 = call i64 @ispunct(i8 signext %154)
%156 = icmp ne i64 %155, 0
br i1 %156, label %228, label %157
157: ; preds = %151
%158 = load i8*, i8** %6
%159 = call i64 @strtol(i8* %158, i32* null, i32 0)
%160 = load %struct.tm*, %struct.tm** %12
%161 = getelementptr inbounds %struct.tm, %struct.tm* %160, i32 0, i32 0
%162 = load i64, i64* %161
%163 = icmp eq i64 %159, %162
br i1 %163, label %228, label %164
164: ; preds = %157, %148
%165 = load i32, i32* %10
%166 = icmp eq i32 %165, 1
br i1 %166, label %167, label %180
167: ; preds = %164
%168 = load i8*, i8** %6
%169 = getelementptr inbounds i8, i8* %168, i64 0
%170 = load i8, i8* %169
%171 = call i64 @ispunct(i8 signext %170)
%172 = icmp ne i64 %171, 0
br i1 %172, label %228, label %173
173: ; preds = %167
%174 = load i8*, i8** %6
%175 = call i64 @strtol(i8* %174, i32* null, i32 0)
%176 = load %struct.tm*, %struct.tm** %12
%177 = getelementptr inbounds %struct.tm, %struct.tm* %176, i32 0, i32 1
%178 = load i64, i64* %177
%179 = icmp eq i64 %175, %178
br i1 %179, label %228, label %180
180: ; preds = %173, %164
%181 = load i32, i32* %10
%182 = icmp eq i32 %181, 2
br i1 %182, label %183, label %196
183: ; preds = %180
%184 = load i8*, i8** %6
%185 = getelementptr inbounds i8, i8* %184, i64 0
%186 = load i8, i8* %185
%187 = call i64 @ispunct(i8 signext %186)
%188 = icmp ne i64 %187, 0
br i1 %188, label %228, label %189
189: ; preds = %183
%190 = load i8*, i8** %6
%191 = call i64 @strtol(i8* %190, i32* null, i32 0)
%192 = load %struct.tm*, %struct.tm** %12
%193 = getelementptr inbounds %struct.tm, %struct.tm* %192, i32 0, i32 2
%194 = load i64, i64* %193
%195 = icmp eq i64 %191, %194
br i1 %195, label %228, label %196
196: ; preds = %189, %180
%197 = load i32, i32* %10
%198 = icmp eq i32 %197, 3
br i1 %198, label %199, label %212
199: ; preds = %196
%200 = load i8*, i8** %6
%201 = getelementptr inbounds i8, i8* %200, i64 0
%202 = load i8, i8* %201
%203 = call i64 @ispunct(i8 signext %202)
%204 = icmp ne i64 %203, 0
br i1 %204, label %228, label %205
205: ; preds = %199
%206 = load i8*, i8** %6
%207 = call i64 @strtol(i8* %206, i32* null, i32 0)
%208 = load %struct.tm*, %struct.tm** %12
%209 = getelementptr inbounds %struct.tm, %struct.tm* %208, i32 0, i32 3
%210 = load i64, i64* %209
%211 = icmp eq i64 %207, %210
br i1 %211, label %228, label %212
212: ; preds = %205, %196
%213 = load i32, i32* %10
%214 = icmp eq i32 %213, 4
br i1 %214, label %215, label %229
215: ; preds = %212
%216 = load i8*, i8** %6
%217 = getelementptr inbounds i8, i8* %216, i64 0
%218 = load i8, i8* %217
%219 = call i64 @ispunct(i8 signext %218)
%220 = icmp ne i64 %219, 0
br i1 %220, label %228, label %221
221: ; preds = %215
%222 = load i8*, i8** %6
%223 = call i64 @strtol(i8* %222, i32* null, i32 0)
%224 = load %struct.tm*, %struct.tm** %12
%225 = getelementptr inbounds %struct.tm, %struct.tm* %224, i32 0, i32 4
%226 = load i64, i64* %225
%227 = icmp eq i64 %223, %226
br i1 %227, label %228, label %229
228: ; preds = %221, %215, %205, %199, %189, %183, %173, %167, %157, %151
br label %268
229: ; preds = %221, %212
%230 = load i32, i32* %10
%231 = icmp eq i32 %230, 5
br i1 %231, label %232, label %244
232: ; preds = %229
%233 = load i8*, i8** %6
%234 = call i32 @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.12, i64 0, i64 0), i8* %233)
%235 = load i32, i32* @LOG_NOTICE
%236 = load i8*, i8** %6
%237 = call i32 (i32, i8*, ...) @syslog(i32 %235, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.12, i64 0, i64 0), i8* %236)
%238 = call i64 (...) @fork()
%239 = icmp eq i64 %238, 0
br i1 %239, label %240, label %243
240: ; preds = %232
%241 = load i8*, i8** %6
%242 = call i32 @execl(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.13, i64 0, i64 0), i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.13, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.14, i64 0, i64 0), i8* %241, i8* null)
br label %243
243: ; preds = %240, %232
br label %266
244: ; preds = %229
%245 = load i8*, i8** %6
%246 = getelementptr inbounds i8, i8* %245, i64 0
%247 = load i8, i8* %246
%248 = call i32 @isdigit(i8 signext %247)
%249 = icmp ne i32 %248, 0
br i1 %249, label %265, label %250
250: ; preds = %244
%251 = load i32*, i32** @stderr
%252 = getelementptr inbounds [81 x i8], [81 x i8]* %8, i64 0, i64 0
%253 = load i32, i32* %9
%254 = add nsw i32 %253, 1
%255 = load i32, i32* %10
%256 = add nsw i32 %255, 1
%257 = call i32 (i32*, i8*, ...) @fprintf(i32* %251, i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.15, i64 0, i64 0), i8* %252, i32 %254, i32 %256)
%258 = load i32, i32* @LOG_NOTICE
%259 = getelementptr inbounds [81 x i8], [81 x i8]* %8, i64 0, i64 0
%260 = load i32, i32* %9
%261 = add nsw i32 %260, 1
%262 = load i32, i32* %10
%263 = add nsw i32 %262, 1
%264 = call i32 (i32, i8*, ...) @syslog(i32 %258, i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.16, i64 0, i64 0), i8* %259, i32 %261, i32 %263)
br label %265
265: ; preds = %250, %244
br label %266
266: ; preds = %265, %243
br label %267
267: ; preds = %266
br label %272
268: ; preds = %228
%269 = load i32, i32* %10
%270 = add nsw i32 %269, 1
store i32 %270, i32* %10
%271 = call i8* @strtok(i8* null, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.11, i64 0, i64 0))
store i8* %271, i8** %6
br label %145
272: ; preds = %267, %145
br label %273
273: ; preds = %272, %141
%274 = load i32, i32* %9
%275 = add nsw i32 %274, 1
store i32 %275, i32* %9
br label %126
276: ; preds = %126
%277 = load i32*, i32** %13
%278 = call i32 @fclose(i32* %277)
br label %107
279: ; preds = %89, %75, %46
%280 = load i32, i32* %3
ret i32 %280
}

LLVM IR (-O2):
%struct.tm = type { i64, i64, i64, i64, i64 }
@__const.main.config = [81 x i8] c"/etc/dcron.conf\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00\00"
@LOG_CONS = global i32 0
@LOG_PID = global i32 0
@LOG_LOCAL1 = global i32 0
@.str = [3 x i8] c"-d\00"
@stdout = global i32* null
@stderr = global i32* null
@stdin = global i32* null
@.str.1 = [3 x i8] c"-f\00"
@.str.2 = [27 x i8] c"error: -f needs parameter\0A\00"
@LOG_NOTICE = global i32 0
@.str.3 = [26 x i8] c"error: -f needs parameter\00"
@.str.4 = [21 x i8] c"usage: %s [options]\0A\00"
@.str.5 = [16 x i8] c"-h help\0A\00"
@.str.6 = [18 x i8] c"-d daemon\0A\00"
@.str.7 = [23 x i8] c"-f <file> config file\0A\00"
@.str.8 = [2 x i8] c"r\00"
@.str.9 = [21 x i8] c"error: cant read %s\0A\00"
@.str.10 = [20 x i8] c"error: cant read %s\00"
@.str.11 = [2 x i8] c"\09\00"
@.str.12 = [8 x i8] c"run: %s\00"
@.str.13 = [8 x i8] c"/bin/sh\00"
@.str.14 = [3 x i8] c"-c\00"
@.str.15 = [29 x i8] c"error: %s line %d column %d\0A\00"
@.str.16 = [28 x i8] c"error: %s line %d column %d\00"
define i32 @main(i32 %0, i8** nocapture %1) {
%3 = alloca [81 x i8]
%4 = alloca [81 x i8]
%5 = alloca i32
%6 = getelementptr inbounds [81 x i8], [81 x i8]* %3, i64 0, i64 0
%7 = getelementptr inbounds [81 x i8], [81 x i8]* %4, i64 0, i64 0
%8 = bitcast i32* %5 to i8*
%9 = load i8*, i8** %1
%10 = load i32, i32* @LOG_CONS
%11 = load i32, i32* @LOG_PID
%12 = or i32 %11, %10
%13 = load i32, i32* @LOG_LOCAL1
%14 = tail call i32 @openlog(i8* %9, i32 %12, i32 %13)
%15 = icmp sgt i32 %0, 1
br i1 %15, label %18, label %16
16: ; preds = %65, %2
%17 = getelementptr inbounds [81 x i8], [81 x i8]* %3, i64 0, i64 1
br label %69
18: ; preds = %2, %65
%19 = phi i32 [ %67, %65 ], [ 1, %2 ]
%20 = sext i32 %19 to i64
%21 = getelementptr inbounds i8*, i8** %1, i64 %20
%22 = load i8*, i8** %21
%23 = call i32 @strcmp(i8* dereferenceable(3) getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i8* dereferenceable(1) %22)
%24 = icmp eq i32 %23, 0
br i1 %24, label %25, label %36
25: ; preds = %18
%26 = call i64 (...) @fork()
%27 = icmp eq i64 %26, 0
br i1 %27, label %28, label %175
28: ; preds = %25
%29 = call i32 (...) @setsid()
%30 = load i32*, i32** @stdout
%31 = call i32 @fclose(i32* %30)
%32 = load i32*, i32** @stderr
%33 = call i32 @fclose(i32* %32)
%34 = load i32*, i32** @stdin
%35 = call i32 @fclose(i32* %34)
br label %65
36: ; preds = %18
%37 = call i32 @strcmp(i8* dereferenceable(3) getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i8* dereferenceable(1) %22)
%38 = icmp eq i32 %37, 0
br i1 %38, label %39, label %55
39: ; preds = %36
%40 = add nsw i32 %19, 1
%41 = sext i32 %40 to i64
%42 = getelementptr inbounds i8*, i8** %1, i64 %41
%43 = load i8*, i8** %42
%44 = icmp eq i8* %43, null
br i1 %44, label %48, label %45
45: ; preds = %39
%46 = load i8, i8* %43
%47 = icmp eq i8 %46, 45
br i1 %47, label %48, label %53
48: ; preds = %45, %39
%49 = load i32*, i32** @stderr
%50 = call i64 @fwrite(i8* getelementptr inbounds ([27 x i8], [27 x i8]* @.str.2, i64 0, i64 0), i64 26, i64 1, i32* %49)
%51 = load i32, i32* @LOG_NOTICE
%52 = call i32 (i32, i8*, ...) @syslog(i32 %51, i8* getelementptr inbounds ([26 x i8], [26 x i8]* @.str.3, i64 0, i64 0))
br label %175
53: ; preds = %45
%54 = call i32 @strncpy(i8* %7, i8* %43, i32 80)
br label %65
55: ; preds = %36
%56 = load i32*, i32** @stderr
%57 = load i8*, i8** %1
%58 = call i32 (i32*, i8*, ...) @fprintf(i32* %56, i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.4, i64 0, i64 0), i8* %57)
%59 = load i32*, i32** @stderr
%60 = call i64 @fwrite(i8* getelementptr inbounds ([16 x i8], [16 x i8]* @.str.5, i64 0, i64 0), i64 15, i64 1, i32* %59)
%61 = load i32*, i32** @stderr
%62 = call i64 @fwrite(i8* getelementptr inbounds ([18 x i8], [18 x i8]* @.str.6, i64 0, i64 0), i64 17, i64 1, i32* %61)
%63 = load i32*, i32** @stderr
%64 = call i64 @fwrite(i8* getelementptr inbounds ([23 x i8], [23 x i8]* @.str.7, i64 0, i64 0), i64 22, i64 1, i32* %63)
br label %175
65: ; preds = %28, %53
%66 = phi i32 [ %40, %53 ], [ %19, %28 ]
%67 = add nsw i32 %66, 1
%68 = icmp slt i32 %67, %0
br i1 %68, label %18, label %16
69: ; preds = %92, %16
%70 = call i32 @time(i32* null)
store i32 %70, i32* %5
%71 = srem i32 %70, 60
%72 = sub nsw i32 60, %71
%73 = call i32 @sleep(i32 %72)
%74 = call i32 @time(i32* null)
store i32 %74, i32* %5
%75 = call %struct.tm* @localtime(i32* %5)
%76 = call i32* @fopen(i8* %7, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.8, i64 0, i64 0))
%77 = icmp eq i32* %76, null
br i1 %77, label %87, label %78
78: ; preds = %69
%79 = call i64 @fgets(i8* %6, i32 81, i32* %76)
%80 = icmp eq i64 %79, 0
br i1 %80, label %173, label %81
81: ; preds = %78
%82 = getelementptr inbounds %struct.tm, %struct.tm* %75, i64 0, i32 4
%83 = getelementptr inbounds %struct.tm, %struct.tm* %75, i64 0, i32 3
%84 = getelementptr inbounds %struct.tm, %struct.tm* %75, i64 0, i32 2
%85 = getelementptr inbounds %struct.tm, %struct.tm* %75, i64 0, i32 1
%86 = getelementptr inbounds %struct.tm, %struct.tm* %75, i64 0, i32 0
br label %93
87: ; preds = %69
%88 = load i32*, i32** @stderr
%89 = call i32 (i32*, i8*, ...) @fprintf(i32* %88, i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str.9, i64 0, i64 0), i8* %7)
%90 = load i32, i32* @LOG_NOTICE
%91 = call i32 (i32, i8*, ...) @syslog(i32 %90, i8* getelementptr inbounds ([20 x i8], [20 x i8]* @.str.10, i64 0, i64 0), i8* %7)
br label %92
92: ; preds = %87, %173
br label %69
93: ; preds = %81, %169
%94 = phi i32 [ 0, %81 ], [ %170, %169 ]
%95 = load i8, i8* %6
%96 = icmp eq i8 %95, 35
%97 = load i8, i8* %17
%98 = icmp eq i8 %97, 0
%99 = select i1 %96, i1 true, i1 %98
br i1 %99, label %169, label %100
100: ; preds = %93
%101 = call i8* @strtok(i8* %6, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.11, i64 0, i64 0))
%102 = icmp eq i8* %101, null
br i1 %102, label %169, label %103
103: ; preds = %100, %165
%104 = phi i8* [ %167, %165 ], [ %101, %100 ]
%105 = phi i32 [ %166, %165 ], [ 0, %100 ]
switch i32 %105, label %154 [
i32 0, label %106
i32 1, label %114
i32 2, label %122
i32 3, label %130
i32 4, label %138
i32 5, label %146
]
106: ; preds = %103
%107 = load i8, i8* %104
%108 = call i64 @ispunct(i8 signext %107)
%109 = icmp eq i64 %108, 0
br i1 %109, label %110, label %165
110: ; preds = %106
%111 = call i64 @strtol(i8* nocapture %104, i32* null, i32 0)
%112 = load i64, i64* %86
%113 = icmp eq i64 %111, %112
br i1 %113, label %165, label %154
114: ; preds = %103
%115 = load i8, i8* %104
%116 = call i64 @ispunct(i8 signext %115)
%117 = icmp eq i64 %116, 0
br i1 %117, label %118, label %165
118: ; preds = %114
%119 = call i64 @strtol(i8* nocapture %104, i32* null, i32 0)
%120 = load i64, i64* %85
%121 = icmp eq i64 %119, %120
br i1 %121, label %165, label %154
122: ; preds = %103
%123 = load i8, i8* %104
%124 = call i64 @ispunct(i8 signext %123)
%125 = icmp eq i64 %124, 0
br i1 %125, label %126, label %165
126: ; preds = %122
%127 = call i64 @strtol(i8* nocapture %104, i32* null, i32 0)
%128 = load i64, i64* %84
%129 = icmp eq i64 %127, %128
br i1 %129, label %165, label %154
130: ; preds = %103
%131 = load i8, i8* %104
%132 = call i64 @ispunct(i8 signext %131)
%133 = icmp eq i64 %132, 0
br i1 %133, label %134, label %165
134: ; preds = %130
%135 = call i64 @strtol(i8* nocapture %104, i32* null, i32 0)
%136 = load i64, i64* %83
%137 = icmp eq i64 %135, %136
br i1 %137, label %165, label %154
138: ; preds = %103
%139 = load i8, i8* %104
%140 = call i64 @ispunct(i8 signext %139)
%141 = icmp eq i64 %140, 0
br i1 %141, label %142, label %165
142: ; preds = %138
%143 = call i64 @strtol(i8* nocapture %104, i32* null, i32 0)
%144 = load i64, i64* %82
%145 = icmp eq i64 %143, %144
br i1 %145, label %165, label %154
146: ; preds = %103
%147 = call i32 @printf(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.12, i64 0, i64 0), i8* %104)
%148 = load i32, i32* @LOG_NOTICE
%149 = call i32 (i32, i8*, ...) @syslog(i32 %148, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.12, i64 0, i64 0), i8* %104)
%150 = call i64 (...) @fork()
%151 = icmp eq i64 %150, 0
br i1 %151, label %152, label %169
152: ; preds = %146
%153 = call i32 @execl(i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.13, i64 0, i64 0), i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.13, i64 0, i64 0), i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.14, i64 0, i64 0), i8* %104, i8* null)
br label %169
154: ; preds = %142, %134, %126, %118, %110, %103
%155 = load i8, i8* %104
%156 = call i32 @isdigit(i8 signext %155)
%157 = icmp eq i32 %156, 0
br i1 %157, label %158, label %169
158: ; preds = %154
%159 = load i32*, i32** @stderr
%160 = add nuw nsw i32 %94, 1
%161 = add nuw nsw i32 %105, 1
%162 = call i32 (i32*, i8*, ...) @fprintf(i32* %159, i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.15, i64 0, i64 0), i8* %7, i32 %160, i32 %161)
%163 = load i32, i32* @LOG_NOTICE
%164 = call i32 (i32, i8*, ...) @syslog(i32 %163, i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.16, i64 0, i64 0), i8* %7, i32 %160, i32 %161)
br label %169
165: ; preds = %106, %110, %114, %118, %122, %126, %130, %134, %138, %142
%166 = add nuw nsw i32 %105, 1
%167 = call i8* @strtok(i8* null, i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str.11, i64 0, i64 0))
%168 = icmp eq i8* %167, null
br i1 %168, label %169, label %103
169: ; preds = %165, %100, %152, %146, %158, %154, %93
%170 = add nuw nsw i32 %94, 1
%171 = call i64 @fgets(i8* %6, i32 81, i32* %76)
%172 = icmp eq i64 %171, 0
br i1 %172, label %173, label %93
173: ; preds = %169, %78
%174 = call i32 @fclose(i32* %76)
br label %92
175: ; preds = %25, %55, %48
%176 = phi i32 [ 1, %55 ], [ 1, %48 ], [ 0, %25 ]
ret i32 %176
}