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

/* Variables and functions */
int bitCount(long);
int dayOfYear(int, int, int);
int /*<<< orphan*/ echo(int, char **);
int fact(int);
int factTail(int, int);
int /*<<< orphan*/ farCel();
char *month_name(int);
int /*<<< orphan*/ printf(char *, ...);
scalar_t__ strcmp(char *, char *);
long strtol(char *, int /*<<< orphan*/ *, int);
int main(int argc, char *argv[]) {
  if (strcmp(argv[1], "hw") == 0) {
    printf("hello world\n");
  }
  if (strcmp(argv[1], "fc") == 0) {
    farCel();
  }
  if (strcmp(argv[1], "bc") == 0) {
    long num = strtol(argv[2], NULL, 10);
    u_int nm = (u_int)num;
    int a = bitCount(num);
    printf("Number of 1-bits in %ld is: %2d\n", num, a);
  }
  if (strcmp(argv[1], "dy") == 0) {
    long year = strtol(argv[2], NULL, 10);
    int y = (int)year;
    long month = strtol(argv[3], NULL, 10);
    int m = (int)month;
    long day = strtol(argv[4], NULL, 10);
    int d = (int)day;
    int day_of_year = dayOfYear(y, m, d);
    printf("%d %d %d is %d day of year\n", d, m, y, day_of_year);
  }
  if (strcmp(argv[1], "mn") == 0) {
    long mon = strtol(argv[2], NULL, 10);
    int m = (int)mon;
    char *month = month_name(m);
    printf("%s\n", month);
  }
  if (strcmp(argv[1], "ec") == 0) {
    echo(argc, argv);
  }
  if (strcmp(argv[1], "ec") == 0) {
    echo(argc, argv);
  }
  if (strcmp(argv[1], "fac") == 0) {
    for (int i = 0; i < 10; i++) {
      printf("Factorial of %d is %2d\n", i, fact(i));
    }
    for (int i = 11; i < 20; i++) {
      printf("Factorial of %d is %2d\n", i, factTail(i, 1));
    }
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x80,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rdi
lea    0xe38(%rip),%rsi
call   1060 <strcmp@plt>
cmp    $0x0,%rax
jne    11e5 <main+0x45>
lea    0xe25(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rdi
lea    0xe1c(%rip),%rsi
call   1060 <strcmp@plt>
cmp    $0x0,%rax
jne    120a <main+0x6a>
mov    $0x0,%al
call   10c0 <farCel@plt>
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rdi
lea    0xdfa(%rip),%rsi
call   1060 <strcmp@plt>
cmp    $0x0,%rax
jne    126a <main+0xca>
mov    -0x10(%rbp),%rax
mov    0x10(%rax),%rdi
xor    %eax,%eax
mov    %eax,%esi
mov    $0xa,%edx
call   1080 <strtol@plt>
mov    %rax,-0x18(%rbp)
mov    -0x18(%rbp),%rax
mov    %eax,-0x1c(%rbp)
mov    -0x18(%rbp),%rdi
call   1050 <bitCount@plt>
mov    %eax,-0x20(%rbp)
mov    -0x18(%rbp),%rsi
mov    -0x20(%rbp),%edx
lea    0xdb3(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rdi
lea    0xdbe(%rip),%rsi
call   1060 <strcmp@plt>
cmp    $0x0,%rax
jne    1317 <main+0x177>
mov    -0x10(%rbp),%rax
mov    0x10(%rax),%rdi
xor    %eax,%eax
mov    %eax,%esi
mov    $0xa,%edx
call   1080 <strtol@plt>
mov    %rax,-0x28(%rbp)
mov    -0x28(%rbp),%rax
mov    %eax,-0x2c(%rbp)
mov    -0x10(%rbp),%rax
mov    0x18(%rax),%rdi
xor    %eax,%eax
mov    %eax,%esi
mov    $0xa,%edx
call   1080 <strtol@plt>
mov    %rax,-0x38(%rbp)
mov    -0x38(%rbp),%rax
mov    %eax,-0x3c(%rbp)
mov    -0x10(%rbp),%rax
mov    0x20(%rax),%rdi
xor    %eax,%eax
mov    %eax,%esi
mov    $0xa,%edx
call   1080 <strtol@plt>
mov    %rax,-0x48(%rbp)
mov    -0x48(%rbp),%rax
mov    %eax,-0x4c(%rbp)
mov    -0x2c(%rbp),%edi
mov    -0x3c(%rbp),%esi
mov    -0x4c(%rbp),%edx
call   10b0 <dayOfYear@plt>
mov    %eax,-0x50(%rbp)
mov    -0x4c(%rbp),%esi
mov    -0x3c(%rbp),%edx
mov    -0x2c(%rbp),%ecx
mov    -0x50(%rbp),%r8d
lea    0xd2a(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rdi
lea    0xd30(%rip),%rsi
call   1060 <strcmp@plt>
cmp    $0x0,%rax
jne    1374 <main+0x1d4>
mov    -0x10(%rbp),%rax
mov    0x10(%rax),%rdi
xor    %eax,%eax
mov    %eax,%esi
mov    $0xa,%edx
call   1080 <strtol@plt>
mov    %rax,-0x58(%rbp)
mov    -0x58(%rbp),%rax
mov    %eax,-0x5c(%rbp)
mov    -0x5c(%rbp),%edi
call   10a0 <month_name@plt>
mov    %rax,-0x68(%rbp)
mov    -0x68(%rbp),%rsi
lea    0xcec(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rdi
lea    0xcda(%rip),%rsi
call   1060 <strcmp@plt>
cmp    $0x0,%rax
jne    139e <main+0x1fe>
mov    -0x8(%rbp),%edi
mov    -0x10(%rbp),%rsi
call   1030 <echo@plt>
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rdi
lea    0xcb0(%rip),%rsi
call   1060 <strcmp@plt>
cmp    $0x0,%rax
jne    13c8 <main+0x228>
mov    -0x8(%rbp),%edi
mov    -0x10(%rbp),%rsi
call   1030 <echo@plt>
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rdi
lea    0xc89(%rip),%rsi
call   1060 <strcmp@plt>
cmp    $0x0,%rax
jne    1470 <main+0x2d0>
movl   $0x0,-0x6c(%rbp)
cmpl   $0xa,-0x6c(%rbp)
jge    1426 <main+0x286>
mov    -0x6c(%rbp),%eax
mov    %eax,-0x74(%rbp)
mov    -0x6c(%rbp),%edi
call   1090 <fact@plt>
mov    -0x74(%rbp),%esi
mov    %eax,%edx
lea    0xc53(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x6c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x6c(%rbp)
jmp    13ed <main+0x24d>
movl   $0xb,-0x70(%rbp)
cmpl   $0x14,-0x70(%rbp)
jge    146b <main+0x2cb>
mov    -0x70(%rbp),%eax
mov    %eax,-0x78(%rbp)
mov    -0x70(%rbp),%edi
mov    $0x1,%esi
call   1070 <factTail@plt>
mov    -0x78(%rbp),%esi
mov    %eax,%edx
lea    0xc0e(%rip),%rdi
mov    $0x0,%al
call   1040 <printf@plt>
mov    -0x70(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x70(%rbp)
jmp    142d <main+0x28d>
jmp    1470 <main+0x2d0>
xor    %eax,%eax
add    $0x80,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbp
push   %r15
push   %r14
push   %r12
push   %rbx
mov    %rsi,%rbx
mov    %edi,%r14d
mov    0x8(%rsi),%rdi
lea    0xe37(%rip),%rsi
call   1070 <strcmp@plt>
test   %rax,%rax
jne    11df <main+0x2f>
lea    0xe91(%rip),%rdi
call   1040 <puts@plt>
mov    0x8(%rbx),%rdi
lea    0xe19(%rip),%rsi
call   1070 <strcmp@plt>
test   %rax,%rax
jne    11fb <main+0x4b>
xor    %eax,%eax
call   10d0 <farCel@plt>
mov    0x8(%rbx),%rdi
lea    0xe00(%rip),%rsi
call   1070 <strcmp@plt>
test   %rax,%rax
jne    123e <main+0x8e>
mov    0x10(%rbx),%rdi
xor    %esi,%esi
mov    $0xa,%edx
call   1090 <strtol@plt>
mov    %rax,%rbp
mov    %rax,%rdi
call   1060 <bitCount@plt>
lea    0xdd7(%rip),%rdi
mov    %rbp,%rsi
mov    %eax,%edx
xor    %eax,%eax
call   1050 <printf@plt>
mov    0x8(%rbx),%rdi
lea    0xde1(%rip),%rsi
call   1070 <strcmp@plt>
test   %rax,%rax
jne    12b2 <main+0x102>
mov    0x10(%rbx),%rdi
xor    %esi,%esi
mov    $0xa,%edx
call   1090 <strtol@plt>
mov    %rax,%r15
mov    0x18(%rbx),%rdi
xor    %esi,%esi
mov    $0xa,%edx
call   1090 <strtol@plt>
mov    %rax,%r12
mov    0x20(%rbx),%rdi
xor    %esi,%esi
mov    $0xa,%edx
call   1090 <strtol@plt>
mov    %rax,%rbp
mov    %r15d,%edi
mov    %r12d,%esi
mov    %ebp,%edx
call   10c0 <dayOfYear@plt>
lea    0xd8d(%rip),%rdi
mov    %ebp,%esi
mov    %r12d,%edx
mov    %r15d,%ecx
mov    %eax,%r8d
xor    %eax,%eax
call   1050 <printf@plt>
mov    0x8(%rbx),%rdi
lea    0xd8c(%rip),%rsi
call   1070 <strcmp@plt>
test   %rax,%rax
jne    12e6 <main+0x136>
mov    0x10(%rbx),%rdi
xor    %esi,%esi
mov    $0xa,%edx
call   1090 <strtol@plt>
mov    %eax,%edi
call   10b0 <month_name@plt>
mov    %rax,%rdi
call   1040 <puts@plt>
mov    0x8(%rbx),%rdi
lea    0xd5b(%rip),%rsi
call   1070 <strcmp@plt>
test   %rax,%rax
jne    1306 <main+0x156>
mov    %r14d,%edi
mov    %rbx,%rsi
call   1030 <echo@plt>
mov    0x8(%rbx),%rdi
lea    0xd3b(%rip),%rsi
call   1070 <strcmp@plt>
test   %rax,%rax
jne    1326 <main+0x176>
mov    %r14d,%edi
mov    %rbx,%rsi
call   1030 <echo@plt>
mov    0x8(%rbx),%rdi
lea    0xd1e(%rip),%rsi
call   1070 <strcmp@plt>
test   %rax,%rax
jne    156e <main+0x3be>
xor    %edi,%edi
call   10a0 <fact@plt>
lea    0xd06(%rip),%rbx
mov    %rbx,%rdi
xor    %esi,%esi
mov    %eax,%edx
xor    %eax,%eax
call   1050 <printf@plt>
mov    $0x1,%edi
call   10a0 <fact@plt>
mov    %rbx,%rdi
mov    $0x1,%esi
mov    %eax,%edx
xor    %eax,%eax
call   1050 <printf@plt>
mov    $0x2,%edi
call   10a0 <fact@plt>
mov    %rbx,%rdi
mov    $0x2,%esi
mov    %eax,%edx
xor    %eax,%eax
call   1050 <printf@plt>
mov    $0x3,%edi
call   10a0 <fact@plt>
mov    %rbx,%rdi
mov    $0x3,%esi
mov    %eax,%edx
xor    %eax,%eax
call   1050 <printf@plt>
mov    $0x4,%edi
call   10a0 <fact@plt>
mov    %rbx,%rdi
mov    $0x4,%esi
mov    %eax,%edx
xor    %eax,%eax
call   1050 <printf@plt>
mov    $0x5,%edi
call   10a0 <fact@plt>
mov    %rbx,%rdi
mov    $0x5,%esi
mov    %eax,%edx
xor    %eax,%eax
call   1050 <printf@plt>
mov    $0x6,%edi
call   10a0 <fact@plt>
mov    %rbx,%rdi
mov    $0x6,%esi
mov    %eax,%edx
xor    %eax,%eax
call   1050 <printf@plt>
mov    $0x7,%edi
call   10a0 <fact@plt>
mov    %rbx,%rdi
mov    $0x7,%esi
mov    %eax,%edx
xor    %eax,%eax
call   1050 <printf@plt>
mov    $0x8,%edi
call   10a0 <fact@plt>
mov    %rbx,%rdi
mov    $0x8,%esi
mov    %eax,%edx
xor    %eax,%eax
call   1050 <printf@plt>
mov    $0x9,%edi
call   10a0 <fact@plt>
mov    %rbx,%rdi
mov    $0x9,%esi
mov    %eax,%edx
xor    %eax,%eax
call   1050 <printf@plt>
mov    $0xb,%edi
mov    $0x1,%esi
call   1080 <factTail@plt>
mov    %rbx,%rdi
mov    $0xb,%esi
mov    %eax,%edx
xor    %eax,%eax
call   1050 <printf@plt>
mov    $0xc,%edi
mov    $0x1,%esi
call   1080 <factTail@plt>
mov    %rbx,%rdi
mov    $0xc,%esi
mov    %eax,%edx
xor    %eax,%eax
call   1050 <printf@plt>
mov    $0xd,%edi
mov    $0x1,%esi
call   1080 <factTail@plt>
mov    %rbx,%rdi
mov    $0xd,%esi
mov    %eax,%edx
xor    %eax,%eax
call   1050 <printf@plt>
mov    $0xe,%edi
mov    $0x1,%esi
call   1080 <factTail@plt>
mov    %rbx,%rdi
mov    $0xe,%esi
mov    %eax,%edx
xor    %eax,%eax
call   1050 <printf@plt>
mov    $0xf,%edi
mov    $0x1,%esi
call   1080 <factTail@plt>
mov    %rbx,%rdi
mov    $0xf,%esi
mov    %eax,%edx
xor    %eax,%eax
call   1050 <printf@plt>
mov    $0x10,%edi
mov    $0x1,%esi
call   1080 <factTail@plt>
mov    %rbx,%rdi
mov    $0x10,%esi
mov    %eax,%edx
xor    %eax,%eax
call   1050 <printf@plt>
mov    $0x11,%edi
mov    $0x1,%esi
call   1080 <factTail@plt>
mov    %rbx,%rdi
mov    $0x11,%esi
mov    %eax,%edx
xor    %eax,%eax
call   1050 <printf@plt>
mov    $0x12,%edi
mov    $0x1,%esi
call   1080 <factTail@plt>
mov    %rbx,%rdi
mov    $0x12,%esi
mov    %eax,%edx
xor    %eax,%eax
call   1050 <printf@plt>
mov    $0x13,%edi
mov    $0x1,%esi
call   1080 <factTail@plt>
mov    %rbx,%rdi
mov    $0x13,%esi
mov    %eax,%edx
xor    %eax,%eax
call   1050 <printf@plt>
xor    %eax,%eax
pop    %rbx
pop    %r12
pop    %r14
pop    %r15
pop    %rbp
ret

LLVM IR (-O0):
@.str = [3 x i8] c"hw\00"
@.str.1 = [13 x i8] c"hello world\0A\00"
@.str.2 = [3 x i8] c"fc\00"
@.str.3 = [3 x i8] c"bc\00"
@.str.4 = [33 x i8] c"Number of 1-bits in %ld is: %2d\0A\00"
@.str.5 = [3 x i8] c"dy\00"
@.str.6 = [28 x i8] c"%d %d %d is %d day of year\0A\00"
@.str.7 = [3 x i8] c"mn\00"
@.str.8 = [4 x i8] c"%s\0A\00"
@.str.9 = [3 x i8] c"ec\00"
@.str.10 = [4 x i8] c"fac\00"
@.str.11 = [24 x i8] c"Factorial of %d is %2d\0A\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca i64
%7 = alloca i32
%8 = alloca i32
%9 = alloca i64
%10 = alloca i32
%11 = alloca i64
%12 = alloca i32
%13 = alloca i64
%14 = alloca i32
%15 = alloca i32
%16 = alloca i64
%17 = alloca i32
%18 = alloca i8*
%19 = alloca i32
%20 = alloca i32
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
%21 = load i8**, i8*** %5
%22 = getelementptr inbounds i8*, i8** %21, i64 1
%23 = load i8*, i8** %22
%24 = call i64 @strcmp(i8* %23, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0))
%25 = icmp eq i64 %24, 0
br i1 %25, label %26, label %28
26: ; preds = %2
%27 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([13 x i8], [13 x i8]* @.str.1, i64 0, i64 0))
br label %28
28: ; preds = %26, %2
%29 = load i8**, i8*** %5
%30 = getelementptr inbounds i8*, i8** %29, i64 1
%31 = load i8*, i8** %30
%32 = call i64 @strcmp(i8* %31, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0))
%33 = icmp eq i64 %32, 0
br i1 %33, label %34, label %36
34: ; preds = %28
%35 = call i32 (...) @farCel()
br label %36
36: ; preds = %34, %28
%37 = load i8**, i8*** %5
%38 = getelementptr inbounds i8*, i8** %37, i64 1
%39 = load i8*, i8** %38
%40 = call i64 @strcmp(i8* %39, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i64 0, i64 0))
%41 = icmp eq i64 %40, 0
br i1 %41, label %42, label %54
42: ; preds = %36
%43 = load i8**, i8*** %5
%44 = getelementptr inbounds i8*, i8** %43, i64 2
%45 = load i8*, i8** %44
%46 = call i64 @strtol(i8* %45, i32* null, i32 10)
store i64 %46, i64* %6
%47 = load i64, i64* %6
%48 = trunc i64 %47 to i32
store i32 %48, i32* %7
%49 = load i64, i64* %6
%50 = call i32 @bitCount(i64 %49)
store i32 %50, i32* %8
%51 = load i64, i64* %6
%52 = load i32, i32* %8
%53 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([33 x i8], [33 x i8]* @.str.4, i64 0, i64 0), i64 %51, i32 %52)
br label %54
54: ; preds = %42, %36
%55 = load i8**, i8*** %5
%56 = getelementptr inbounds i8*, i8** %55, i64 1
%57 = load i8*, i8** %56
%58 = call i64 @strcmp(i8* %57, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.5, i64 0, i64 0))
%59 = icmp eq i64 %58, 0
br i1 %59, label %60, label %88
60: ; preds = %54
%61 = load i8**, i8*** %5
%62 = getelementptr inbounds i8*, i8** %61, i64 2
%63 = load i8*, i8** %62
%64 = call i64 @strtol(i8* %63, i32* null, i32 10)
store i64 %64, i64* %9
%65 = load i64, i64* %9
%66 = trunc i64 %65 to i32
store i32 %66, i32* %10
%67 = load i8**, i8*** %5
%68 = getelementptr inbounds i8*, i8** %67, i64 3
%69 = load i8*, i8** %68
%70 = call i64 @strtol(i8* %69, i32* null, i32 10)
store i64 %70, i64* %11
%71 = load i64, i64* %11
%72 = trunc i64 %71 to i32
store i32 %72, i32* %12
%73 = load i8**, i8*** %5
%74 = getelementptr inbounds i8*, i8** %73, i64 4
%75 = load i8*, i8** %74
%76 = call i64 @strtol(i8* %75, i32* null, i32 10)
store i64 %76, i64* %13
%77 = load i64, i64* %13
%78 = trunc i64 %77 to i32
store i32 %78, i32* %14
%79 = load i32, i32* %10
%80 = load i32, i32* %12
%81 = load i32, i32* %14
%82 = call i32 @dayOfYear(i32 %79, i32 %80, i32 %81)
store i32 %82, i32* %15
%83 = load i32, i32* %14
%84 = load i32, i32* %12
%85 = load i32, i32* %10
%86 = load i32, i32* %15
%87 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([28 x i8], [28 x i8]* @.str.6, i64 0, i64 0), i32 %83, i32 %84, i32 %85, i32 %86)
br label %88
88: ; preds = %60, %54
%89 = load i8**, i8*** %5
%90 = getelementptr inbounds i8*, i8** %89, i64 1
%91 = load i8*, i8** %90
%92 = call i64 @strcmp(i8* %91, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.7, i64 0, i64 0))
%93 = icmp eq i64 %92, 0
br i1 %93, label %94, label %105
94: ; preds = %88
%95 = load i8**, i8*** %5
%96 = getelementptr inbounds i8*, i8** %95, i64 2
%97 = load i8*, i8** %96
%98 = call i64 @strtol(i8* %97, i32* null, i32 10)
store i64 %98, i64* %16
%99 = load i64, i64* %16
%100 = trunc i64 %99 to i32
store i32 %100, i32* %17
%101 = load i32, i32* %17
%102 = call i8* @month_name(i32 %101)
store i8* %102, i8** %18
%103 = load i8*, i8** %18
%104 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.8, i64 0, i64 0), i8* %103)
br label %105
105: ; preds = %94, %88
%106 = load i8**, i8*** %5
%107 = getelementptr inbounds i8*, i8** %106, i64 1
%108 = load i8*, i8** %107
%109 = call i64 @strcmp(i8* %108, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.9, i64 0, i64 0))
%110 = icmp eq i64 %109, 0
br i1 %110, label %111, label %115
111: ; preds = %105
%112 = load i32, i32* %4
%113 = load i8**, i8*** %5
%114 = call i32 @echo(i32 %112, i8** %113)
br label %115
115: ; preds = %111, %105
%116 = load i8**, i8*** %5
%117 = getelementptr inbounds i8*, i8** %116, i64 1
%118 = load i8*, i8** %117
%119 = call i64 @strcmp(i8* %118, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.9, i64 0, i64 0))
%120 = icmp eq i64 %119, 0
br i1 %120, label %121, label %125
121: ; preds = %115
%122 = load i32, i32* %4
%123 = load i8**, i8*** %5
%124 = call i32 @echo(i32 %122, i8** %123)
br label %125
125: ; preds = %121, %115
%126 = load i8**, i8*** %5
%127 = getelementptr inbounds i8*, i8** %126, i64 1
%128 = load i8*, i8** %127
%129 = call i64 @strcmp(i8* %128, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.10, i64 0, i64 0))
%130 = icmp eq i64 %129, 0
br i1 %130, label %131, label %156
131: ; preds = %125
store i32 0, i32* %19
br label %132
132: ; preds = %140, %131
%133 = load i32, i32* %19
%134 = icmp slt i32 %133, 10
br i1 %134, label %135, label %143
135: ; preds = %132
%136 = load i32, i32* %19
%137 = load i32, i32* %19
%138 = call i32 @fact(i32 %137)
%139 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.11, i64 0, i64 0), i32 %136, i32 %138)
br label %140
140: ; preds = %135
%141 = load i32, i32* %19
%142 = add nsw i32 %141, 1
store i32 %142, i32* %19
br label %132
143: ; preds = %132
store i32 11, i32* %20
br label %144
144: ; preds = %152, %143
%145 = load i32, i32* %20
%146 = icmp slt i32 %145, 20
br i1 %146, label %147, label %155
147: ; preds = %144
%148 = load i32, i32* %20
%149 = load i32, i32* %20
%150 = call i32 @factTail(i32 %149, i32 1)
%151 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([24 x i8], [24 x i8]* @.str.11, i64 0, i64 0), i32 %148, i32 %150)
br label %152
152: ; preds = %147
%153 = load i32, i32* %20
%154 = add nsw i32 %153, 1
store i32 %154, i32* %20
br label %144
155: ; preds = %144
br label %156
156: ; preds = %155, %125
ret i32 0
}

LLVM IR (-O2):
@.str = [3 x i8] c"hw\00"
@.str.2 = [3 x i8] c"fc\00"
@.str.3 = [3 x i8] c"bc\00"
@.str.4 = [33 x i8] c"Number of 1-bits in %ld is: %2d\0A\00"
@.str.5 = [3 x i8] c"dy\00"
@.str.6 = [28 x i8] c"%d %d %d is %d day of year\0A\00"
@.str.7 = [3 x i8] c"mn\00"
@.str.9 = [3 x i8] c"ec\00"
@.str.10 = [4 x i8] c"fac\00"
@.str.11 = [24 x i8] c"Factorial of %d is %2d\0A\00"
@str = [12 x i8] c"hello world\00"
define i32 @main(i32 %0, i8** %1) {
%3 = getelementptr inbounds i8*, i8** %1, i64 1
%4 = load i8*, i8** %3
%5 = tail call i64 @strcmp(i8* %4, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0))
%6 = icmp eq i64 %5, 0
br i1 %6, label %7, label %9
7: ; preds = %2
%8 = tail call i32 @puts(i8* dereferenceable(1) getelementptr inbounds ([12 x i8], [12 x i8]* @str, i64 0, i64 0))
br label %9
9: ; preds = %7, %2
%10 = load i8*, i8** %3
%11 = tail call i64 @strcmp(i8* %10, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0))
%12 = icmp eq i64 %11, 0
br i1 %12, label %13, label %15
13: ; preds = %9
%14 = tail call i32 (...) @farCel()
br label %15
15: ; preds = %13, %9
%16 = load i8*, i8** %3
%17 = tail call i64 @strcmp(i8* %16, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.3, i64 0, i64 0))
%18 = icmp eq i64 %17, 0
br i1 %18, label %19, label %25
19: ; preds = %15
%20 = getelementptr inbounds i8*, i8** %1, i64 2
%21 = load i8*, i8** %20
%22 = tail call i64 @strtol(i8* nocapture %21, i32* null, i32 10)
%23 = tail call i32 @bitCount(i64 %22)
%24 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([33 x i8], [33 x i8]* @.str.4, i64 0, i64 0), i64 %22, i32 %23)
br label %25
25: ; preds = %19, %15
%26 = load i8*, i8** %3
%27 = tail call i64 @strcmp(i8* %26, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.5, i64 0, i64 0))
%28 = icmp eq i64 %27, 0
br i1 %28, label %29, label %44
29: ; preds = %25
%30 = getelementptr inbounds i8*, i8** %1, i64 2
%31 = load i8*, i8** %30
%32 = tail call i64 @strtol(i8* nocapture %31, i32* null, i32 10)
%33 = trunc i64 %32 to i32
%34 = getelementptr inbounds i8*, i8** %1, i64 3
%35 = load i8*, i8** %34
%36 = tail call i64 @strtol(i8* nocapture %35, i32* null, i32 10)
%37 = trunc i64 %36 to i32
%38 = getelementptr inbounds i8*, i8** %1, i64 4
%39 = load i8*, i8** %38
%40 = tail call i64 @strtol(i8* nocapture %39, i32* null, i32 10)
%41 = trunc i64 %40 to i32
%42 = tail call i32 @dayOfYear(i32 %33, i32 %37, i32 %41)
%43 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([28 x i8], [28 x i8]* @.str.6, i64 0, i64 0), i32 %41, i32 %37, i32 %33, i32 %42)
br label %44
44: ; preds = %29, %25
%45 = load i8*, i8** %3
%46 = tail call i64 @strcmp(i8* %45, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.7, i64 0, i64 0))
%47 = icmp eq i64 %46, 0
br i1 %47, label %48, label %55
48: ; preds = %44
%49 = getelementptr inbounds i8*, i8** %1, i64 2
%50 = load i8*, i8** %49
%51 = tail call i64 @strtol(i8* nocapture %50, i32* null, i32 10)
%52 = trunc i64 %51 to i32
%53 = tail call i8* @month_name(i32 %52)
%54 = tail call i32 @puts(i8* dereferenceable(1) %53)
br label %55
55: ; preds = %48, %44
%56 = load i8*, i8** %3
%57 = tail call i64 @strcmp(i8* %56, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.9, i64 0, i64 0))
%58 = icmp eq i64 %57, 0
br i1 %58, label %59, label %61
59: ; preds = %55
%60 = tail call i32 @echo(i32 %0, i8** %1)
br label %61
61: ; preds = %59, %55
%62 = load i8*, i8** %3
%63 = tail call i64 @strcmp(i8* %62, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.9, i64 0, i64 0))
%64 = icmp eq i64 %63, 0
br i1 %64, label %65, label %67
65: ; preds = %61
%66 = tail call i32 @echo(i32 %0, i8** %1)
br label %67
67: ; preds = %65, %61
%68 = load i8*, i8** %3
%69 = tail call i64 @strcmp(i8* %68, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.10, i64 0, i64 0))
%70 = icmp eq i64 %69, 0
br i1 %70, label %71, label %110
71: ; preds = %67
%72 = tail call i32 @fact(i32 0)
%73 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([24 x i8], [24 x i8]* @.str.11, i64 0, i64 0), i32 0, i32 %72)
%74 = tail call i32 @fact(i32 1)
%75 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([24 x i8], [24 x i8]* @.str.11, i64 0, i64 0), i32 1, i32 %74)
%76 = tail call i32 @fact(i32 2)
%77 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([24 x i8], [24 x i8]* @.str.11, i64 0, i64 0), i32 2, i32 %76)
%78 = tail call i32 @fact(i32 3)
%79 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([24 x i8], [24 x i8]* @.str.11, i64 0, i64 0), i32 3, i32 %78)
%80 = tail call i32 @fact(i32 4)
%81 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([24 x i8], [24 x i8]* @.str.11, i64 0, i64 0), i32 4, i32 %80)
%82 = tail call i32 @fact(i32 5)
%83 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([24 x i8], [24 x i8]* @.str.11, i64 0, i64 0), i32 5, i32 %82)
%84 = tail call i32 @fact(i32 6)
%85 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([24 x i8], [24 x i8]* @.str.11, i64 0, i64 0), i32 6, i32 %84)
%86 = tail call i32 @fact(i32 7)
%87 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([24 x i8], [24 x i8]* @.str.11, i64 0, i64 0), i32 7, i32 %86)
%88 = tail call i32 @fact(i32 8)
%89 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([24 x i8], [24 x i8]* @.str.11, i64 0, i64 0), i32 8, i32 %88)
%90 = tail call i32 @fact(i32 9)
%91 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([24 x i8], [24 x i8]* @.str.11, i64 0, i64 0), i32 9, i32 %90)
%92 = tail call i32 @factTail(i32 11, i32 1)
%93 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([24 x i8], [24 x i8]* @.str.11, i64 0, i64 0), i32 11, i32 %92)
%94 = tail call i32 @factTail(i32 12, i32 1)
%95 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([24 x i8], [24 x i8]* @.str.11, i64 0, i64 0), i32 12, i32 %94)
%96 = tail call i32 @factTail(i32 13, i32 1)
%97 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([24 x i8], [24 x i8]* @.str.11, i64 0, i64 0), i32 13, i32 %96)
%98 = tail call i32 @factTail(i32 14, i32 1)
%99 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([24 x i8], [24 x i8]* @.str.11, i64 0, i64 0), i32 14, i32 %98)
%100 = tail call i32 @factTail(i32 15, i32 1)
%101 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([24 x i8], [24 x i8]* @.str.11, i64 0, i64 0), i32 15, i32 %100)
%102 = tail call i32 @factTail(i32 16, i32 1)
%103 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([24 x i8], [24 x i8]* @.str.11, i64 0, i64 0), i32 16, i32 %102)
%104 = tail call i32 @factTail(i32 17, i32 1)
%105 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([24 x i8], [24 x i8]* @.str.11, i64 0, i64 0), i32 17, i32 %104)
%106 = tail call i32 @factTail(i32 18, i32 1)
%107 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([24 x i8], [24 x i8]* @.str.11, i64 0, i64 0), i32 18, i32 %106)
%108 = tail call i32 @factTail(i32 19, i32 1)
%109 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([24 x i8], [24 x i8]* @.str.11, i64 0, i64 0), i32 19, i32 %108)
br label %110
110: ; preds = %71, %67
ret i32 0
}