#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*/ FILE;

/* Variables and functions */
int /*<<< orphan*/ fprintf(int /*<<< orphan*/ *, char *, char *, char *, char *,
                           int);
void timelapse_help(FILE *file, char *basename, char *cmd) {
  fprintf(
      file,
      "Usage: %s %s [options] <width>x<height> [file...]\n\n"
      "Options:\n"
      "    -o <output>         Output video file. (default: %s)\n"
      "    -f <fps>            Video frame rate. (default: %d)\n"
      "    -d <duration>       Maximum video duration. (unit: second)\n"
      "    -r <picture>        Index of reference picture. (default: 0)\n"
      "    -s <black>[:white]  Stretch contrast; black and white points could "
      "be pixel value or percentage calculated from reference picture.\n"
      "    -t <begin>:<end>    Treat file name as template, e.g. '%%08d.JPG'.\n"
      "    -F <head>:<tail>    Fade in/out effect. (unit: second)\n"
      "\n",
      basename, cmd, "timelapse.avi", 24);
}


x86 assembly (clang, -O0):
<timelapse_help>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
mov    %rdi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %rdx,-0x18(%rbp)
mov    -0x8(%rbp),%rdi
mov    -0x10(%rbp),%rdx
mov    -0x18(%rbp),%rcx
lea    0xec9(%rip),%rsi
lea    0x10fa(%rip),%r8
mov    $0x18,%r9d
call   1030 <fprintf@plt>
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<timelapse_help>:
mov    %rdx,%rcx
mov    %rsi,%rdx
lea    0xee3(%rip),%rsi
lea    0x1114(%rip),%r8
mov    $0x18,%r9d
jmp    1030 <fprintf@plt>

LLVM IR (-O0):
@.str = [568 x i8] c"Usage: %s %s [options] <width>x<height> [file...]\0A\0AOptions:\0A -o <output> Output video file. (default: %s)\0A -f <fps> Video frame rate. (default: %d)\0A -d <duration> Maximum video duration. (unit: second)\0A -r <picture> Index of reference picture. (default: 0)\0A -s <black>[:white] Stretch contrast; black and white points could be pixel value or percentage calculated from reference picture.\0A -t <begin>:<end> Treat file name as template, e.g. '%%08d.JPG'.\0A -F <head>:<tail> Fade in/out effect. (unit: second)\0A\0A\00"
@.str.1 = [14 x i8] c"timelapse.avi\00"
define void @timelapse_help(i32* %0, i8* %1, i8* %2) {
%4 = alloca i32*
%5 = alloca i8*
%6 = alloca i8*
store i32* %0, i32** %4
store i8* %1, i8** %5
store i8* %2, i8** %6
%7 = load i32*, i32** %4
%8 = load i8*, i8** %5
%9 = load i8*, i8** %6
%10 = call i32 @fprintf(i32* %7, i8* getelementptr inbounds ([568 x i8], [568 x i8]* @.str, i64 0, i64 0), i8* %8, i8* %9, i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.1, i64 0, i64 0), i32 24)
ret void
}

LLVM IR (-O2):
@.str = [568 x i8] c"Usage: %s %s [options] <width>x<height> [file...]\0A\0AOptions:\0A -o <output> Output video file. (default: %s)\0A -f <fps> Video frame rate. (default: %d)\0A -d <duration> Maximum video duration. (unit: second)\0A -r <picture> Index of reference picture. (default: 0)\0A -s <black>[:white] Stretch contrast; black and white points could be pixel value or percentage calculated from reference picture.\0A -t <begin>:<end> Treat file name as template, e.g. '%%08d.JPG'.\0A -F <head>:<tail> Fade in/out effect. (unit: second)\0A\0A\00"
@.str.1 = [14 x i8] c"timelapse.avi\00"
define void @timelapse_help(i32* nocapture %0, i8* %1, i8* %2) {
%4 = tail call i32 @fprintf(i32* %0, i8* getelementptr inbounds ([568 x i8], [568 x i8]* @.str, i64 0, i64 0), i8* %1, i8* %2, i8* getelementptr inbounds ([14 x i8], [14 x i8]* @.str.1, i64 0, i64 0), i32 24)
ret void
}