int main(int argc, char *argv[]) {
  if ((argc >= 2) && (strncmp(argv[1], "-v", 2) == 0)) {
    printf("%s\n", get_idstring());
    check_12();
  } else if ((argc >= 2) && (strncmp(argv[1], "-s", 2) == 0)) {
    printf("consumed time for generating %u randoms.\n", 50000 * 2000);
    test_co();
    test_oc();
    test_oo();
    test_12();
    test_seq_co();
    test_seq_oc();
    test_seq_oo();
    test_seq_12();
  } else {
    check_co();
    check_oc();
    check_oo();
    check_12();
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
cmpl   $0x2,-0x8(%rbp)
jl     1255 <main+0x65>
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rdi
lea    0xde1(%rip),%rsi
mov    $0x2,%edx
call   1030 <strncmp@plt>
cmp    $0x0,%eax
jne    1255 <main+0x65>
mov    $0x0,%al
call   1100 <get_idstring@plt>
mov    %eax,%esi
lea    0xdc1(%rip),%rdi
mov    $0x0,%al
call   1080 <printf@plt>
mov    $0x0,%al
call   10a0 <check_12@plt>
jmp    12f2 <main+0x102>
cmpl   $0x2,-0x8(%rbp)
jl     12d1 <main+0xe1>
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rdi
lea    0xd99(%rip),%rsi
mov    $0x2,%edx
call   1030 <strncmp@plt>
cmp    $0x0,%eax
jne    12d1 <main+0xe1>
lea    0xd82(%rip),%rdi
mov    $0x5f5e100,%esi
mov    $0x0,%al
call   1080 <printf@plt>
mov    $0x0,%al
call   1050 <test_co@plt>
mov    $0x0,%al
call   10e0 <test_oc@plt>
mov    $0x0,%al
call   10d0 <test_oo@plt>
mov    $0x0,%al
call   1110 <test_12@plt>
mov    $0x0,%al
call   1070 <test_seq_co@plt>
mov    $0x0,%al
call   10c0 <test_seq_oc@plt>
mov    $0x0,%al
call   1040 <test_seq_oo@plt>
mov    $0x0,%al
call   1060 <test_seq_12@plt>
jmp    12ed <main+0xfd>
mov    $0x0,%al
call   10f0 <check_co@plt>
mov    $0x0,%al
call   1090 <check_oc@plt>
mov    $0x0,%al
call   10b0 <check_oo@plt>
mov    $0x0,%al
call   10a0 <check_12@plt>
jmp    12f2 <main+0x102>
xor    %eax,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rbx
cmp    $0x2,%edi
jl     122a <main+0x3a>
mov    0x8(%rsi),%rbx
lea    0xdff(%rip),%rsi
mov    $0x2,%edx
mov    %rbx,%rdi
call   1030 <strncmp@plt>
test   %eax,%eax
je     1241 <main+0x51>
lea    0xdee(%rip),%rsi
mov    $0x2,%edx
mov    %rbx,%rdi
call   1030 <strncmp@plt>
test   %eax,%eax
je     1263 <main+0x73>
xor    %eax,%eax
call   10f0 <check_co@plt>
xor    %eax,%eax
call   1090 <check_oc@plt>
xor    %eax,%eax
call   10b0 <check_oo@plt>
jmp    1258 <main+0x68>
xor    %eax,%eax
call   1100 <get_idstring@plt>
lea    0xdb4(%rip),%rdi
mov    %eax,%esi
xor    %eax,%eax
call   1080 <printf@plt>
xor    %eax,%eax
call   10a0 <check_12@plt>
xor    %eax,%eax
pop    %rbx
ret
lea    0xda0(%rip),%rdi
mov    $0x5f5e100,%esi
xor    %eax,%eax
call   1080 <printf@plt>
xor    %eax,%eax
call   1050 <test_co@plt>
xor    %eax,%eax
call   10e0 <test_oc@plt>
xor    %eax,%eax
call   10d0 <test_oo@plt>
xor    %eax,%eax
call   1110 <test_12@plt>
xor    %eax,%eax
call   1070 <test_seq_co@plt>
xor    %eax,%eax
call   10c0 <test_seq_oc@plt>
xor    %eax,%eax
call   1040 <test_seq_oo@plt>
xor    %eax,%eax
call   1060 <test_seq_12@plt>
jmp    125f <main+0x6f>

LLVM IR (-O0):
@.str = [3 x i8] c"-v\00"
@.str.1 = [4 x i8] c"%s\0A\00"
@.str.2 = [3 x i8] c"-s\00"
@.str.3 = [42 x i8] c"consumed time for generating %u randoms.\0A\00"
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
%6 = load i32, i32* %4
%7 = icmp sge i32 %6, 2
br i1 %7, label %8, label %18
8: ; preds = %2
%9 = load i8**, i8*** %5
%10 = getelementptr inbounds i8*, i8** %9, i64 1
%11 = load i8*, i8** %10
%12 = call i32 @strncmp(i8* %11, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i64 2)
%13 = icmp eq i32 %12, 0
br i1 %13, label %14, label %18
14: ; preds = %8
%15 = call i32 (...) @get_idstring()
%16 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i32 %15)
%17 = call i32 (...) @check_12()
br label %43
18: ; preds = %8, %2
%19 = load i32, i32* %4
%20 = icmp sge i32 %19, 2
br i1 %20, label %21, label %37
21: ; preds = %18
%22 = load i8**, i8*** %5
%23 = getelementptr inbounds i8*, i8** %22, i64 1
%24 = load i8*, i8** %23
%25 = call i32 @strncmp(i8* %24, i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), i64 2)
%26 = icmp eq i32 %25, 0
br i1 %26, label %27, label %37
27: ; preds = %21
%28 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([42 x i8], [42 x i8]* @.str.3, i64 0, i64 0), i32 100000000)
%29 = call i32 (...) @test_co()
%30 = call i32 (...) @test_oc()
%31 = call i32 (...) @test_oo()
%32 = call i32 (...) @test_12()
%33 = call i32 (...) @test_seq_co()
%34 = call i32 (...) @test_seq_oc()
%35 = call i32 (...) @test_seq_oo()
%36 = call i32 (...) @test_seq_12()
br label %42
37: ; preds = %21, %18
%38 = call i32 (...) @check_co()
%39 = call i32 (...) @check_oc()
%40 = call i32 (...) @check_oo()
%41 = call i32 (...) @check_12()
br label %42
42: ; preds = %37, %27
br label %43
43: ; preds = %42, %14
ret i32 0
}

LLVM IR (-O2):
@.str = [3 x i8] c"-v\00"
@.str.1 = [4 x i8] c"%s\0A\00"
@.str.2 = [3 x i8] c"-s\00"
@.str.3 = [42 x i8] c"consumed time for generating %u randoms.\0A\00"
define i32 @main(i32 %0, i8** nocapture %1) {
%3 = icmp sgt i32 %0, 1
br i1 %3, label %4, label %26
4: ; preds = %2
%5 = getelementptr inbounds i8*, i8** %1, i64 1
%6 = load i8*, i8** %5
%7 = tail call i32 @strncmp(i8* dereferenceable(1) %6, i8* dereferenceable(3) getelementptr inbounds ([3 x i8], [3 x i8]* @.str, i64 0, i64 0), i64 2)
%8 = icmp eq i32 %7, 0
br i1 %8, label %9, label %13
9: ; preds = %4
%10 = tail call i32 (...) @get_idstring()
%11 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([4 x i8], [4 x i8]* @.str.1, i64 0, i64 0), i32 %10)
%12 = tail call i32 (...) @check_12()
br label %31
13: ; preds = %4
%14 = tail call i32 @strncmp(i8* dereferenceable(1) %6, i8* dereferenceable(3) getelementptr inbounds ([3 x i8], [3 x i8]* @.str.2, i64 0, i64 0), i64 2)
%15 = icmp eq i32 %14, 0
br i1 %15, label %16, label %26
16: ; preds = %13
%17 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([42 x i8], [42 x i8]* @.str.3, i64 0, i64 0), i32 100000000)
%18 = tail call i32 (...) @test_co()
%19 = tail call i32 (...) @test_oc()
%20 = tail call i32 (...) @test_oo()
%21 = tail call i32 (...) @test_12()
%22 = tail call i32 (...) @test_seq_co()
%23 = tail call i32 (...) @test_seq_oc()
%24 = tail call i32 (...) @test_seq_oo()
%25 = tail call i32 (...) @test_seq_12()
br label %31
26: ; preds = %2, %13
%27 = tail call i32 (...) @check_co()
%28 = tail call i32 (...) @check_oc()
%29 = tail call i32 (...) @check_oo()
%30 = tail call i32 (...) @check_12()
br label %31
31: ; preds = %16, %26, %9
ret i32 0
}