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

/* Variables and functions */
int /*<<< orphan*/ test_list_structints(char *);
int /*<<< orphan*/ test_relative_participation(char *);
int main(int argc, char **argv) {
  char x = *argv[1];
  if (x == 'S') {
    test_relative_participation(argv[2]);
  } else if (x == 'B') {
    test_list_structints(argv[2]);
  }
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    -0x10(%rbp),%rax
mov    0x8(%rax),%rax
mov    (%rax),%al
mov    %al,-0x11(%rbp)
movsbl -0x11(%rbp),%eax
cmp    $0x53,%eax
jne    1162 <main+0x42>
mov    -0x10(%rbp),%rax
mov    0x10(%rax),%rdi
call   1030 <test_relative_participation@plt>
jmp    1181 <main+0x61>
movsbl -0x11(%rbp),%eax
cmp    $0x42,%eax
jne    117c <main+0x5c>
mov    -0x10(%rbp),%rax
mov    0x10(%rax),%rdi
call   1040 <test_list_structints@plt>
jmp    1181 <main+0x61>
xor    %eax,%eax
add    $0x20,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
push   %rax
mov    0x8(%rsi),%rax
mov    (%rax),%al
cmp    $0x42,%al
je     113a <main+0x1a>
cmp    $0x53,%al
jne    1143 <main+0x23>
mov    0x10(%rsi),%rdi
call   1030 <test_relative_participation@plt>
jmp    1143 <main+0x23>
mov    0x10(%rsi),%rdi
call   1040 <test_list_structints@plt>
xor    %eax,%eax
pop    %rcx
ret

LLVM IR (-O0):
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca i8
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
%7 = load i8**, i8*** %5
%8 = getelementptr inbounds i8*, i8** %7, i64 1
%9 = load i8*, i8** %8
%10 = load i8, i8* %9
store i8 %10, i8* %6
%11 = load i8, i8* %6
%12 = sext i8 %11 to i32
%13 = icmp eq i32 %12, 83
br i1 %13, label %14, label %19
14: ; preds = %2
%15 = load i8**, i8*** %5
%16 = getelementptr inbounds i8*, i8** %15, i64 2
%17 = load i8*, i8** %16
%18 = call i32 @test_relative_participation(i8* %17)
br label %29
19: ; preds = %2
%20 = load i8, i8* %6
%21 = sext i8 %20 to i32
%22 = icmp eq i32 %21, 66
br i1 %22, label %23, label %28
23: ; preds = %19
%24 = load i8**, i8*** %5
%25 = getelementptr inbounds i8*, i8** %24, i64 2
%26 = load i8*, i8** %25
%27 = call i32 @test_list_structints(i8* %26)
br label %28
28: ; preds = %23, %19
br label %29
29: ; preds = %28, %14
ret i32 0
}

LLVM IR (-O2):
define i32 @main(i32 %0, i8** nocapture %1) {
%3 = getelementptr inbounds i8*, i8** %1, i64 1
%4 = load i8*, i8** %3
%5 = load i8, i8* %4
switch i8 %5, label %14 [
i8 83, label %6
i8 66, label %10
]
6: ; preds = %2
%7 = getelementptr inbounds i8*, i8** %1, i64 2
%8 = load i8*, i8** %7
%9 = tail call i32 @test_relative_participation(i8* %8)
br label %14
10: ; preds = %2
%11 = getelementptr inbounds i8*, i8** %1, i64 2
%12 = load i8*, i8** %11
%13 = tail call i32 @test_list_structints(i8* %12)
br label %14
14: ; preds = %2, %10, %6
ret i32 0
}