#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*/ strace_get_operation(char *, char *, int);
int /*<<< orphan*/ strcmp(char *, char *);
char strace_get_operation_code(char *line, int stats) {
  char operation[512];
  strace_get_operation(line, operation, stats);
  if (!strcmp(operation, "write")) {
    return 'w';
  } else if (!strcmp(operation, "read")) {
    return 'r';
  } else if (!strcmp(operation, "pwrite")) {
    return 'W';
  } else if (!strcmp(operation, "pwrite64")) {
    return 'W';
  } else if (!strcmp(operation, "pread")) {
    return 'P';
  } else if (!strcmp(operation, "pread64")) {
    return 'P';
  } else if (!strcmp(operation, "close")) {
    return 'c';
  } else if (!strcmp(operation, "open")) {
    return 'o';
  } else if (!strcmp(operation, "creat")) {
    return 'R';
  } else if (!strcmp(operation, "unlink")) {
    return 'u';
  } else if (!strcmp(operation, "lseek")) {
    return 'l';
  } else if (!strcmp(operation, "_llseek")) {
    return 'L';
  } else if (!strcmp(operation, "pipe2")) {
    return '?';
  } else if (!strcmp(operation, "pipe")) {
    return 'p';
  } else if (!strcmp(operation, "dup3")) {
    return 'e';
  } else if (!strcmp(operation, "dup2")) {
    return 'D';
  } else if (!strcmp(operation, "dup")) {
    return 'd';
  } else if (!strcmp(operation, "mkdir")) {
    return 'M';
  } else if (!strcmp(operation, "clone")) {
    return 'C';
  } else if (!strcmp(operation, "access")) {
    return 'a';
  } else if (!strcmp(operation, "stat64")) {
    return 's';
  } else if (!strcmp(operation, "stat")) {
    return 's';
  } else if (!strcmp(operation, "socket")) {
    return 'S';
  } else if (!strcmp(operation, "sendfile")) {
    return 't';
  } else if (!strcmp(operation, "fcntl")) {
    return 'f';
  }
  return '?';
}


x86 assembly (clang, -O0):
<strace_get_operation_code>:
push   %rbp
mov    %rsp,%rbp
sub    $0x220,%rsp
mov    %rdi,-0x10(%rbp)
mov    %esi,-0x14(%rbp)
mov    -0x10(%rbp),%rdi
lea    -0x220(%rbp),%rsi
mov    -0x14(%rbp),%edx
call   1030 <strace_get_operation@plt>
lea    -0x220(%rbp),%rdi
lea    0xeae(%rip),%rsi
call   1040 <strcmp@plt>
cmp    $0x0,%eax
jne    116a <strace_get_operation_code+0x4a>
movb   $0x77,-0x1(%rbp)
jmp    155e <strace_get_operation_code+0x43e>
lea    -0x220(%rbp),%rdi
lea    0xe99(%rip),%rsi
call   1040 <strcmp@plt>
cmp    $0x0,%eax
jne    118f <strace_get_operation_code+0x6f>
movb   $0x72,-0x1(%rbp)
jmp    155e <strace_get_operation_code+0x43e>
lea    -0x220(%rbp),%rdi
lea    0xe63(%rip),%rsi
call   1040 <strcmp@plt>
cmp    $0x0,%eax
jne    11b4 <strace_get_operation_code+0x94>
movb   $0x57,-0x1(%rbp)
jmp    155e <strace_get_operation_code+0x43e>
lea    -0x220(%rbp),%rdi
lea    0xe45(%rip),%rsi
call   1040 <strcmp@plt>
cmp    $0x0,%eax
jne    11d9 <strace_get_operation_code+0xb9>
movb   $0x57,-0x1(%rbp)
jmp    155e <strace_get_operation_code+0x43e>
lea    -0x220(%rbp),%rdi
lea    0xe29(%rip),%rsi
call   1040 <strcmp@plt>
cmp    $0x0,%eax
jne    11fe <strace_get_operation_code+0xde>
movb   $0x50,-0x1(%rbp)
jmp    155e <strace_get_operation_code+0x43e>
lea    -0x220(%rbp),%rdi
lea    0xe0a(%rip),%rsi
call   1040 <strcmp@plt>
cmp    $0x0,%eax
jne    1223 <strace_get_operation_code+0x103>
movb   $0x50,-0x1(%rbp)
jmp    155e <strace_get_operation_code+0x43e>
lea    -0x220(%rbp),%rdi
lea    0xded(%rip),%rsi
call   1040 <strcmp@plt>
cmp    $0x0,%eax
jne    1248 <strace_get_operation_code+0x128>
movb   $0x63,-0x1(%rbp)
jmp    155e <strace_get_operation_code+0x43e>
lea    -0x220(%rbp),%rdi
lea    0xdce(%rip),%rsi
call   1040 <strcmp@plt>
cmp    $0x0,%eax
jne    126d <strace_get_operation_code+0x14d>
movb   $0x6f,-0x1(%rbp)
jmp    155e <strace_get_operation_code+0x43e>
lea    -0x220(%rbp),%rdi
lea    0xdae(%rip),%rsi
call   1040 <strcmp@plt>
cmp    $0x0,%eax
jne    1292 <strace_get_operation_code+0x172>
movb   $0x52,-0x1(%rbp)
jmp    155e <strace_get_operation_code+0x43e>
lea    -0x220(%rbp),%rdi
lea    0xd8f(%rip),%rsi
call   1040 <strcmp@plt>
cmp    $0x0,%eax
jne    12b7 <strace_get_operation_code+0x197>
movb   $0x75,-0x1(%rbp)
jmp    155e <strace_get_operation_code+0x43e>
lea    -0x220(%rbp),%rdi
lea    0xd73(%rip),%rsi
call   1040 <strcmp@plt>
cmp    $0x0,%eax
jne    12dc <strace_get_operation_code+0x1bc>
movb   $0x6c,-0x1(%rbp)
jmp    155e <strace_get_operation_code+0x43e>
lea    -0x220(%rbp),%rdi
lea    0xd4c(%rip),%rsi
call   1040 <strcmp@plt>
cmp    $0x0,%eax
jne    1301 <strace_get_operation_code+0x1e1>
movb   $0x4c,-0x1(%rbp)
jmp    155e <strace_get_operation_code+0x43e>
lea    -0x220(%rbp),%rdi
lea    0xd2f(%rip),%rsi
call   1040 <strcmp@plt>
cmp    $0x0,%eax
jne    1326 <strace_get_operation_code+0x206>
movb   $0x3f,-0x1(%rbp)
jmp    155e <strace_get_operation_code+0x43e>
lea    -0x220(%rbp),%rdi
lea    0xd10(%rip),%rsi
call   1040 <strcmp@plt>
cmp    $0x0,%eax
jne    134b <strace_get_operation_code+0x22b>
movb   $0x70,-0x1(%rbp)
jmp    155e <strace_get_operation_code+0x43e>
lea    -0x220(%rbp),%rdi
lea    0xcf0(%rip),%rsi
call   1040 <strcmp@plt>
cmp    $0x0,%eax
jne    1370 <strace_get_operation_code+0x250>
movb   $0x65,-0x1(%rbp)
jmp    155e <strace_get_operation_code+0x43e>
lea    -0x220(%rbp),%rdi
lea    0xcd0(%rip),%rsi
call   1040 <strcmp@plt>
cmp    $0x0,%eax
jne    1395 <strace_get_operation_code+0x275>
movb   $0x44,-0x1(%rbp)
jmp    155e <strace_get_operation_code+0x43e>
lea    -0x220(%rbp),%rdi
lea    0xcb0(%rip),%rsi
call   1040 <strcmp@plt>
cmp    $0x0,%eax
jne    13ba <strace_get_operation_code+0x29a>
movb   $0x64,-0x1(%rbp)
jmp    155e <strace_get_operation_code+0x43e>
lea    -0x220(%rbp),%rdi
lea    0xc8f(%rip),%rsi
call   1040 <strcmp@plt>
cmp    $0x0,%eax
jne    13df <strace_get_operation_code+0x2bf>
movb   $0x4d,-0x1(%rbp)
jmp    155e <strace_get_operation_code+0x43e>
lea    -0x220(%rbp),%rdi
lea    0xc70(%rip),%rsi
call   1040 <strcmp@plt>
cmp    $0x0,%eax
jne    1404 <strace_get_operation_code+0x2e4>
movb   $0x43,-0x1(%rbp)
jmp    155e <strace_get_operation_code+0x43e>
lea    -0x220(%rbp),%rdi
lea    0xc51(%rip),%rsi
call   1040 <strcmp@plt>
cmp    $0x0,%eax
jne    1429 <strace_get_operation_code+0x309>
movb   $0x61,-0x1(%rbp)
jmp    155e <strace_get_operation_code+0x43e>
lea    -0x220(%rbp),%rdi
lea    0xc33(%rip),%rsi
call   1040 <strcmp@plt>
cmp    $0x0,%eax
jne    144e <strace_get_operation_code+0x32e>
movb   $0x73,-0x1(%rbp)
jmp    155e <strace_get_operation_code+0x43e>
lea    -0x220(%rbp),%rdi
lea    0xc15(%rip),%rsi
call   1040 <strcmp@plt>
cmp    $0x0,%eax
jne    1473 <strace_get_operation_code+0x353>
movb   $0x73,-0x1(%rbp)
jmp    155e <strace_get_operation_code+0x43e>
lea    -0x220(%rbp),%rdi
lea    0xbf5(%rip),%rsi
call   1040 <strcmp@plt>
cmp    $0x0,%eax
jne    1498 <strace_get_operation_code+0x378>
movb   $0x53,-0x1(%rbp)
jmp    155e <strace_get_operation_code+0x43e>
lea    -0x220(%rbp),%rdi
lea    0xbd7(%rip),%rsi
call   1040 <strcmp@plt>
cmp    $0x0,%eax
jne    14bd <strace_get_operation_code+0x39d>
movb   $0x74,-0x1(%rbp)
jmp    155e <strace_get_operation_code+0x43e>
lea    -0x220(%rbp),%rdi
lea    0xbbb(%rip),%rsi
call   1040 <strcmp@plt>
cmp    $0x0,%eax
jne    14e2 <strace_get_operation_code+0x3c2>
movb   $0x66,-0x1(%rbp)
jmp    155e <strace_get_operation_code+0x43e>
jmp    14e7 <strace_get_operation_code+0x3c7>
jmp    14ec <strace_get_operation_code+0x3cc>
jmp    14f1 <strace_get_operation_code+0x3d1>
jmp    14f6 <strace_get_operation_code+0x3d6>
jmp    14fb <strace_get_operation_code+0x3db>
jmp    1500 <strace_get_operation_code+0x3e0>
jmp    1505 <strace_get_operation_code+0x3e5>
jmp    150a <strace_get_operation_code+0x3ea>
jmp    150f <strace_get_operation_code+0x3ef>
jmp    1514 <strace_get_operation_code+0x3f4>
jmp    1519 <strace_get_operation_code+0x3f9>
jmp    151e <strace_get_operation_code+0x3fe>
jmp    1523 <strace_get_operation_code+0x403>
jmp    1528 <strace_get_operation_code+0x408>
jmp    152d <strace_get_operation_code+0x40d>
jmp    1532 <strace_get_operation_code+0x412>
jmp    1537 <strace_get_operation_code+0x417>
jmp    153c <strace_get_operation_code+0x41c>
jmp    1541 <strace_get_operation_code+0x421>
jmp    1546 <strace_get_operation_code+0x426>
jmp    154b <strace_get_operation_code+0x42b>
jmp    1550 <strace_get_operation_code+0x430>
jmp    1555 <strace_get_operation_code+0x435>
jmp    155a <strace_get_operation_code+0x43a>
movb   $0x3f,-0x1(%rbp)
movsbl -0x1(%rbp),%eax
add    $0x220,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<strace_get_operation_code>:
sub    $0x208,%rsp
mov    %esi,%edx
mov    %rsp,%rsi
call   1030 <strace_get_operation@plt>
mov    $0x74697277,%eax
xor    (%rsp),%eax
movzwl 0x4(%rsp),%ecx
xor    $0x65,%ecx
or     %eax,%ecx
je     136d <strace_get_operation_code+0x25d>
mov    $0x64616572,%eax
xor    (%rsp),%eax
movzbl 0x4(%rsp),%ecx
or     %eax,%ecx
je     1377 <strace_get_operation_code+0x267>
mov    $0x69727770,%ecx
xor    (%rsp),%ecx
mov    $0x657469,%edx
xor    0x3(%rsp),%edx
mov    $0x57,%al
or     %ecx,%edx
je     136f <strace_get_operation_code+0x25f>
movabs $0x3436657469727770,%rcx
65 36 34
xor    (%rsp),%rcx
movzbl 0x8(%rsp),%edx
or     %rcx,%rdx
je     136f <strace_get_operation_code+0x25f>
mov    $0x61657270,%eax
xor    (%rsp),%eax
movzwl 0x4(%rsp),%ecx
xor    $0x64,%ecx
or     %eax,%ecx
mov    $0x50,%al
je     136f <strace_get_operation_code+0x25f>
mov    (%rsp),%rcx
movabs $0x34366461657270,%rdx
cmp    %rdx,%rcx
je     136f <strace_get_operation_code+0x25f>
mov    $0x736f6c63,%eax
xor    (%rsp),%eax
movzwl 0x4(%rsp),%edx
xor    $0x65,%edx
or     %eax,%edx
je     1381 <strace_get_operation_code+0x271>
mov    $0x6e65706f,%eax
xor    (%rsp),%eax
movzbl 0x4(%rsp),%edx
or     %eax,%edx
je     138b <strace_get_operation_code+0x27b>
mov    $0x61657263,%eax
xor    (%rsp),%eax
movzwl 0x4(%rsp),%edx
xor    $0x74,%edx
or     %eax,%edx
je     1395 <strace_get_operation_code+0x285>
mov    $0x696c6e75,%eax
xor    (%rsp),%eax
mov    $0x6b6e69,%edx
xor    0x3(%rsp),%edx
or     %eax,%edx
je     139f <strace_get_operation_code+0x28f>
mov    $0x6565736c,%eax
xor    (%rsp),%eax
movzwl 0x4(%rsp),%edx
xor    $0x6b,%edx
or     %eax,%edx
je     13a9 <strace_get_operation_code+0x299>
mov    $0x4c,%al
movabs $0x6b6565736c6c5f,%rdx
cmp    %rdx,%rcx
je     136f <strace_get_operation_code+0x25f>
mov    $0x65706970,%eax
mov    (%rsp),%edx
xor    %eax,%edx
movzwl 0x4(%rsp),%esi
xor    $0x32,%esi
or     %edx,%esi
je     13b3 <strace_get_operation_code+0x2a3>
xor    (%rsp),%eax
movzbl 0x4(%rsp),%edx
or     %eax,%edx
je     13bd <strace_get_operation_code+0x2ad>
mov    $0x33707564,%eax
xor    (%rsp),%eax
movzbl 0x4(%rsp),%edx
or     %eax,%edx
je     13c7 <strace_get_operation_code+0x2b7>
mov    $0x32707564,%eax
xor    (%rsp),%eax
movzbl 0x4(%rsp),%edx
or     %eax,%edx
je     13d1 <strace_get_operation_code+0x2c1>
mov    $0x64,%al
cmp    $0x707564,%ecx
je     136f <strace_get_operation_code+0x25f>
mov    $0x69646b6d,%eax
xor    (%rsp),%eax
movzwl 0x4(%rsp),%ecx
xor    $0x72,%ecx
or     %eax,%ecx
je     13db <strace_get_operation_code+0x2cb>
mov    $0x6e6f6c63,%eax
xor    (%rsp),%eax
movzwl 0x4(%rsp),%ecx
xor    $0x65,%ecx
or     %eax,%ecx
je     13e5 <strace_get_operation_code+0x2d5>
mov    $0x65636361,%eax
xor    (%rsp),%eax
mov    $0x737365,%ecx
xor    0x3(%rsp),%ecx
or     %eax,%ecx
je     13ef <strace_get_operation_code+0x2df>
mov    $0x74617473,%ecx
mov    (%rsp),%edx
xor    %ecx,%edx
mov    $0x343674,%esi
xor    0x3(%rsp),%esi
mov    $0x73,%al
or     %edx,%esi
je     136f <strace_get_operation_code+0x25f>
xor    (%rsp),%ecx
movzbl 0x4(%rsp),%edx
or     %ecx,%edx
je     136f <strace_get_operation_code+0x25f>
mov    $0x6b636f73,%eax
xor    (%rsp),%eax
mov    $0x74656b,%ecx
xor    0x3(%rsp),%ecx
or     %eax,%ecx
je     13f9 <strace_get_operation_code+0x2e9>
movabs $0x656c6966646e6573,%rax
69 6c 65
xor    (%rsp),%rax
movzbl 0x8(%rsp),%ecx
or     %rax,%rcx
je     1403 <strace_get_operation_code+0x2f3>
mov    $0x746e6366,%eax
xor    (%rsp),%eax
movzwl 0x4(%rsp),%ecx
xor    $0x6c,%ecx
or     %eax,%ecx
mov    $0x66,%ecx
mov    $0x3f,%eax
cmove  %ecx,%eax
add    $0x208,%rsp
ret
mov    $0x77,%al
add    $0x208,%rsp
ret
mov    $0x72,%al
add    $0x208,%rsp
ret
mov    $0x63,%al
add    $0x208,%rsp
ret
mov    $0x6f,%al
add    $0x208,%rsp
ret
mov    $0x52,%al
add    $0x208,%rsp
ret
mov    $0x75,%al
add    $0x208,%rsp
ret
mov    $0x6c,%al
add    $0x208,%rsp
ret
mov    $0x3f,%al
add    $0x208,%rsp
ret
mov    $0x70,%al
add    $0x208,%rsp
ret
mov    $0x65,%al
add    $0x208,%rsp
ret
mov    $0x44,%al
add    $0x208,%rsp
ret
mov    $0x4d,%al
add    $0x208,%rsp
ret
mov    $0x43,%al
add    $0x208,%rsp
ret
mov    $0x61,%al
add    $0x208,%rsp
ret
mov    $0x53,%al
add    $0x208,%rsp
ret
mov    $0x74,%al
add    $0x208,%rsp
ret

LLVM IR (-O0):
@.str = [6 x i8] c"write\00"
@.str.1 = [5 x i8] c"read\00"
@.str.2 = [7 x i8] c"pwrite\00"
@.str.3 = [9 x i8] c"pwrite64\00"
@.str.4 = [6 x i8] c"pread\00"
@.str.5 = [8 x i8] c"pread64\00"
@.str.6 = [6 x i8] c"close\00"
@.str.7 = [5 x i8] c"open\00"
@.str.8 = [6 x i8] c"creat\00"
@.str.9 = [7 x i8] c"unlink\00"
@.str.10 = [6 x i8] c"lseek\00"
@.str.11 = [8 x i8] c"_llseek\00"
@.str.12 = [6 x i8] c"pipe2\00"
@.str.13 = [5 x i8] c"pipe\00"
@.str.14 = [5 x i8] c"dup3\00"
@.str.15 = [5 x i8] c"dup2\00"
@.str.16 = [4 x i8] c"dup\00"
@.str.17 = [6 x i8] c"mkdir\00"
@.str.18 = [6 x i8] c"clone\00"
@.str.19 = [7 x i8] c"access\00"
@.str.20 = [7 x i8] c"stat64\00"
@.str.21 = [5 x i8] c"stat\00"
@.str.22 = [7 x i8] c"socket\00"
@.str.23 = [9 x i8] c"sendfile\00"
@.str.24 = [6 x i8] c"fcntl\00"
define signext i8 @strace_get_operation_code(i8* %0, i32 %1) {
%3 = alloca i8
%4 = alloca i8*
%5 = alloca i32
%6 = alloca [512 x i8]
store i8* %0, i8** %4
store i32 %1, i32* %5
%7 = load i8*, i8** %4
%8 = getelementptr inbounds [512 x i8], [512 x i8]* %6, i64 0, i64 0
%9 = load i32, i32* %5
%10 = call i32 @strace_get_operation(i8* %7, i8* %8, i32 %9)
%11 = getelementptr inbounds [512 x i8], [512 x i8]* %6, i64 0, i64 0
%12 = call i32 @strcmp(i8* %11, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0))
%13 = icmp ne i32 %12, 0
br i1 %13, label %15, label %14
14: ; preds = %2
store i8 119, i8* %3
br label %160
15: ; preds = %2
%16 = getelementptr inbounds [512 x i8], [512 x i8]* %6, i64 0, i64 0
%17 = call i32 @strcmp(i8* %16, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0))
%18 = icmp ne i32 %17, 0
br i1 %18, label %20, label %19
19: ; preds = %15
store i8 114, i8* %3
br label %160
20: ; preds = %15
%21 = getelementptr inbounds [512 x i8], [512 x i8]* %6, i64 0, i64 0
%22 = call i32 @strcmp(i8* %21, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.2, i64 0, i64 0))
%23 = icmp ne i32 %22, 0
br i1 %23, label %25, label %24
24: ; preds = %20
store i8 87, i8* %3
br label %160
25: ; preds = %20
%26 = getelementptr inbounds [512 x i8], [512 x i8]* %6, i64 0, i64 0
%27 = call i32 @strcmp(i8* %26, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.3, i64 0, i64 0))
%28 = icmp ne i32 %27, 0
br i1 %28, label %30, label %29
29: ; preds = %25
store i8 87, i8* %3
br label %160
30: ; preds = %25
%31 = getelementptr inbounds [512 x i8], [512 x i8]* %6, i64 0, i64 0
%32 = call i32 @strcmp(i8* %31, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.4, i64 0, i64 0))
%33 = icmp ne i32 %32, 0
br i1 %33, label %35, label %34
34: ; preds = %30
store i8 80, i8* %3
br label %160
35: ; preds = %30
%36 = getelementptr inbounds [512 x i8], [512 x i8]* %6, i64 0, i64 0
%37 = call i32 @strcmp(i8* %36, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.5, i64 0, i64 0))
%38 = icmp ne i32 %37, 0
br i1 %38, label %40, label %39
39: ; preds = %35
store i8 80, i8* %3
br label %160
40: ; preds = %35
%41 = getelementptr inbounds [512 x i8], [512 x i8]* %6, i64 0, i64 0
%42 = call i32 @strcmp(i8* %41, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.6, i64 0, i64 0))
%43 = icmp ne i32 %42, 0
br i1 %43, label %45, label %44
44: ; preds = %40
store i8 99, i8* %3
br label %160
45: ; preds = %40
%46 = getelementptr inbounds [512 x i8], [512 x i8]* %6, i64 0, i64 0
%47 = call i32 @strcmp(i8* %46, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.7, i64 0, i64 0))
%48 = icmp ne i32 %47, 0
br i1 %48, label %50, label %49
49: ; preds = %45
store i8 111, i8* %3
br label %160
50: ; preds = %45
%51 = getelementptr inbounds [512 x i8], [512 x i8]* %6, i64 0, i64 0
%52 = call i32 @strcmp(i8* %51, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.8, i64 0, i64 0))
%53 = icmp ne i32 %52, 0
br i1 %53, label %55, label %54
54: ; preds = %50
store i8 82, i8* %3
br label %160
55: ; preds = %50
%56 = getelementptr inbounds [512 x i8], [512 x i8]* %6, i64 0, i64 0
%57 = call i32 @strcmp(i8* %56, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.9, i64 0, i64 0))
%58 = icmp ne i32 %57, 0
br i1 %58, label %60, label %59
59: ; preds = %55
store i8 117, i8* %3
br label %160
60: ; preds = %55
%61 = getelementptr inbounds [512 x i8], [512 x i8]* %6, i64 0, i64 0
%62 = call i32 @strcmp(i8* %61, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.10, i64 0, i64 0))
%63 = icmp ne i32 %62, 0
br i1 %63, label %65, label %64
64: ; preds = %60
store i8 108, i8* %3
br label %160
65: ; preds = %60
%66 = getelementptr inbounds [512 x i8], [512 x i8]* %6, i64 0, i64 0
%67 = call i32 @strcmp(i8* %66, i8* getelementptr inbounds ([8 x i8], [8 x i8]* @.str.11, i64 0, i64 0))
%68 = icmp ne i32 %67, 0
br i1 %68, label %70, label %69
69: ; preds = %65
store i8 76, i8* %3
br label %160
70: ; preds = %65
%71 = getelementptr inbounds [512 x i8], [512 x i8]* %6, i64 0, i64 0
%72 = call i32 @strcmp(i8* %71, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.12, i64 0, i64 0))
%73 = icmp ne i32 %72, 0
br i1 %73, label %75, label %74
74: ; preds = %70
store i8 63, i8* %3
br label %160
75: ; preds = %70
%76 = getelementptr inbounds [512 x i8], [512 x i8]* %6, i64 0, i64 0
%77 = call i32 @strcmp(i8* %76, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.13, i64 0, i64 0))
%78 = icmp ne i32 %77, 0
br i1 %78, label %80, label %79
79: ; preds = %75
store i8 112, i8* %3
br label %160
80: ; preds = %75
%81 = getelementptr inbounds [512 x i8], [512 x i8]* %6, i64 0, i64 0
%82 = call i32 @strcmp(i8* %81, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.14, i64 0, i64 0))
%83 = icmp ne i32 %82, 0
br i1 %83, label %85, label %84
84: ; preds = %80
store i8 101, i8* %3
br label %160
85: ; preds = %80
%86 = getelementptr inbounds [512 x i8], [512 x i8]* %6, i64 0, i64 0
%87 = call i32 @strcmp(i8* %86, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.15, i64 0, i64 0))
%88 = icmp ne i32 %87, 0
br i1 %88, label %90, label %89
89: ; preds = %85
store i8 68, i8* %3
br label %160
90: ; preds = %85
%91 = getelementptr inbounds [512 x i8], [512 x i8]* %6, i64 0, i64 0
%92 = call i32 @strcmp(i8* %91, i8* getelementptr inbounds ([4 x i8], [4 x i8]* @.str.16, i64 0, i64 0))
%93 = icmp ne i32 %92, 0
br i1 %93, label %95, label %94
94: ; preds = %90
store i8 100, i8* %3
br label %160
95: ; preds = %90
%96 = getelementptr inbounds [512 x i8], [512 x i8]* %6, i64 0, i64 0
%97 = call i32 @strcmp(i8* %96, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.17, i64 0, i64 0))
%98 = icmp ne i32 %97, 0
br i1 %98, label %100, label %99
99: ; preds = %95
store i8 77, i8* %3
br label %160
100: ; preds = %95
%101 = getelementptr inbounds [512 x i8], [512 x i8]* %6, i64 0, i64 0
%102 = call i32 @strcmp(i8* %101, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.18, i64 0, i64 0))
%103 = icmp ne i32 %102, 0
br i1 %103, label %105, label %104
104: ; preds = %100
store i8 67, i8* %3
br label %160
105: ; preds = %100
%106 = getelementptr inbounds [512 x i8], [512 x i8]* %6, i64 0, i64 0
%107 = call i32 @strcmp(i8* %106, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.19, i64 0, i64 0))
%108 = icmp ne i32 %107, 0
br i1 %108, label %110, label %109
109: ; preds = %105
store i8 97, i8* %3
br label %160
110: ; preds = %105
%111 = getelementptr inbounds [512 x i8], [512 x i8]* %6, i64 0, i64 0
%112 = call i32 @strcmp(i8* %111, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.20, i64 0, i64 0))
%113 = icmp ne i32 %112, 0
br i1 %113, label %115, label %114
114: ; preds = %110
store i8 115, i8* %3
br label %160
115: ; preds = %110
%116 = getelementptr inbounds [512 x i8], [512 x i8]* %6, i64 0, i64 0
%117 = call i32 @strcmp(i8* %116, i8* getelementptr inbounds ([5 x i8], [5 x i8]* @.str.21, i64 0, i64 0))
%118 = icmp ne i32 %117, 0
br i1 %118, label %120, label %119
119: ; preds = %115
store i8 115, i8* %3
br label %160
120: ; preds = %115
%121 = getelementptr inbounds [512 x i8], [512 x i8]* %6, i64 0, i64 0
%122 = call i32 @strcmp(i8* %121, i8* getelementptr inbounds ([7 x i8], [7 x i8]* @.str.22, i64 0, i64 0))
%123 = icmp ne i32 %122, 0
br i1 %123, label %125, label %124
124: ; preds = %120
store i8 83, i8* %3
br label %160
125: ; preds = %120
%126 = getelementptr inbounds [512 x i8], [512 x i8]* %6, i64 0, i64 0
%127 = call i32 @strcmp(i8* %126, i8* getelementptr inbounds ([9 x i8], [9 x i8]* @.str.23, i64 0, i64 0))
%128 = icmp ne i32 %127, 0
br i1 %128, label %130, label %129
129: ; preds = %125
store i8 116, i8* %3
br label %160
130: ; preds = %125
%131 = getelementptr inbounds [512 x i8], [512 x i8]* %6, i64 0, i64 0
%132 = call i32 @strcmp(i8* %131, i8* getelementptr inbounds ([6 x i8], [6 x i8]* @.str.24, i64 0, i64 0))
%133 = icmp ne i32 %132, 0
br i1 %133, label %135, label %134
134: ; preds = %130
store i8 102, i8* %3
br label %160
135: ; preds = %130
br label %136
136: ; preds = %135
br label %137
137: ; preds = %136
br label %138
138: ; preds = %137
br label %139
139: ; preds = %138
br label %140
140: ; preds = %139
br label %141
141: ; preds = %140
br label %142
142: ; preds = %141
br label %143
143: ; preds = %142
br label %144
144: ; preds = %143
br label %145
145: ; preds = %144
br label %146
146: ; preds = %145
br label %147
147: ; preds = %146
br label %148
148: ; preds = %147
br label %149
149: ; preds = %148
br label %150
150: ; preds = %149
br label %151
151: ; preds = %150
br label %152
152: ; preds = %151
br label %153
153: ; preds = %152
br label %154
154: ; preds = %153
br label %155
155: ; preds = %154
br label %156
156: ; preds = %155
br label %157
157: ; preds = %156
br label %158
158: ; preds = %157
br label %159
159: ; preds = %158
store i8 63, i8* %3
br label %160
160: ; preds = %159, %134, %129, %124, %119, %114, %109, %104, %99, %94, %89, %84, %79, %74, %69, %64, %59, %54, %49, %44, %39, %34, %29, %24, %19, %14
%161 = load i8, i8* %3
ret i8 %161
}

LLVM IR (-O2):
@.str = [6 x i8] c"write\00"
@.str.1 = [5 x i8] c"read\00"
@.str.2 = [7 x i8] c"pwrite\00"
@.str.3 = [9 x i8] c"pwrite64\00"
@.str.4 = [6 x i8] c"pread\00"
@.str.6 = [6 x i8] c"close\00"
@.str.7 = [5 x i8] c"open\00"
@.str.8 = [6 x i8] c"creat\00"
@.str.9 = [7 x i8] c"unlink\00"
@.str.10 = [6 x i8] c"lseek\00"
@.str.12 = [6 x i8] c"pipe2\00"
@.str.13 = [5 x i8] c"pipe\00"
@.str.14 = [5 x i8] c"dup3\00"
@.str.15 = [5 x i8] c"dup2\00"
@.str.17 = [6 x i8] c"mkdir\00"
@.str.18 = [6 x i8] c"clone\00"
@.str.19 = [7 x i8] c"access\00"
@.str.20 = [7 x i8] c"stat64\00"
@.str.21 = [5 x i8] c"stat\00"
@.str.22 = [7 x i8] c"socket\00"
@.str.23 = [9 x i8] c"sendfile\00"
@.str.24 = [6 x i8] c"fcntl\00"
define signext i8 @strace_get_operation_code(i8* %0, i32 %1) {
%3 = alloca [512 x i8]
%4 = getelementptr inbounds [512 x i8], [512 x i8]* %3, i64 0, i64 0
%5 = call i32 @strace_get_operation(i8* %0, i8* %4, i32 %1)
%6 = call i32 @bcmp(i8* dereferenceable(6) %4, i8* dereferenceable(6) getelementptr inbounds ([6 x i8], [6 x i8]* @.str, i64 0, i64 0), i64 6)
%7 = icmp eq i32 %6, 0
br i1 %7, label %81, label %8
8: ; preds = %2
%9 = call i32 @bcmp(i8* dereferenceable(5) %4, i8* dereferenceable(5) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.1, i64 0, i64 0), i64 5)
%10 = icmp eq i32 %9, 0
br i1 %10, label %81, label %11
11: ; preds = %8
%12 = call i32 @bcmp(i8* dereferenceable(7) %4, i8* dereferenceable(7) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.2, i64 0, i64 0), i64 7)
%13 = icmp eq i32 %12, 0
br i1 %13, label %81, label %14
14: ; preds = %11
%15 = call i32 @bcmp(i8* dereferenceable(9) %4, i8* dereferenceable(9) getelementptr inbounds ([9 x i8], [9 x i8]* @.str.3, i64 0, i64 0), i64 9)
%16 = icmp eq i32 %15, 0
br i1 %16, label %81, label %17
17: ; preds = %14
%18 = call i32 @bcmp(i8* dereferenceable(6) %4, i8* dereferenceable(6) getelementptr inbounds ([6 x i8], [6 x i8]* @.str.4, i64 0, i64 0), i64 6)
%19 = icmp eq i32 %18, 0
%20 = bitcast [512 x i8]* %3 to i64*
%21 = load i64, i64* %20
%22 = icmp eq i64 %21, 14696503547622000
%23 = select i1 %19, i1 true, i1 %22
%24 = trunc i64 %21 to i32
br i1 %23, label %81, label %25
25: ; preds = %17
%26 = call i32 @bcmp(i8* dereferenceable(6) %4, i8* dereferenceable(6) getelementptr inbounds ([6 x i8], [6 x i8]* @.str.6, i64 0, i64 0), i64 6)
%27 = icmp eq i32 %26, 0
br i1 %27, label %81, label %28
28: ; preds = %25
%29 = call i32 @bcmp(i8* dereferenceable(5) %4, i8* dereferenceable(5) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.7, i64 0, i64 0), i64 5)
%30 = icmp eq i32 %29, 0
br i1 %30, label %81, label %31
31: ; preds = %28
%32 = call i32 @bcmp(i8* dereferenceable(6) %4, i8* dereferenceable(6) getelementptr inbounds ([6 x i8], [6 x i8]* @.str.8, i64 0, i64 0), i64 6)
%33 = icmp eq i32 %32, 0
br i1 %33, label %81, label %34
34: ; preds = %31
%35 = call i32 @bcmp(i8* dereferenceable(7) %4, i8* dereferenceable(7) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.9, i64 0, i64 0), i64 7)
%36 = icmp eq i32 %35, 0
br i1 %36, label %81, label %37
37: ; preds = %34
%38 = call i32 @bcmp(i8* dereferenceable(6) %4, i8* dereferenceable(6) getelementptr inbounds ([6 x i8], [6 x i8]* @.str.10, i64 0, i64 0), i64 6)
%39 = icmp eq i32 %38, 0
br i1 %39, label %81, label %40
40: ; preds = %37
%41 = icmp eq i64 %21, 30229308910627935
br i1 %41, label %81, label %42
42: ; preds = %40
%43 = call i32 @bcmp(i8* dereferenceable(6) %4, i8* dereferenceable(6) getelementptr inbounds ([6 x i8], [6 x i8]* @.str.12, i64 0, i64 0), i64 6)
%44 = icmp eq i32 %43, 0
br i1 %44, label %81, label %45
45: ; preds = %42
%46 = call i32 @bcmp(i8* dereferenceable(5) %4, i8* dereferenceable(5) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.13, i64 0, i64 0), i64 5)
%47 = icmp eq i32 %46, 0
br i1 %47, label %81, label %48
48: ; preds = %45
%49 = call i32 @bcmp(i8* dereferenceable(5) %4, i8* dereferenceable(5) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.14, i64 0, i64 0), i64 5)
%50 = icmp eq i32 %49, 0
br i1 %50, label %81, label %51
51: ; preds = %48
%52 = call i32 @bcmp(i8* dereferenceable(5) %4, i8* dereferenceable(5) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.15, i64 0, i64 0), i64 5)
%53 = icmp eq i32 %52, 0
br i1 %53, label %81, label %54
54: ; preds = %51
%55 = icmp eq i32 %24, 7370084
br i1 %55, label %81, label %56
56: ; preds = %54
%57 = call i32 @bcmp(i8* dereferenceable(6) %4, i8* dereferenceable(6) getelementptr inbounds ([6 x i8], [6 x i8]* @.str.17, i64 0, i64 0), i64 6)
%58 = icmp eq i32 %57, 0
br i1 %58, label %81, label %59
59: ; preds = %56
%60 = call i32 @bcmp(i8* dereferenceable(6) %4, i8* dereferenceable(6) getelementptr inbounds ([6 x i8], [6 x i8]* @.str.18, i64 0, i64 0), i64 6)
%61 = icmp eq i32 %60, 0
br i1 %61, label %81, label %62
62: ; preds = %59
%63 = call i32 @bcmp(i8* dereferenceable(7) %4, i8* dereferenceable(7) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.19, i64 0, i64 0), i64 7)
%64 = icmp eq i32 %63, 0
br i1 %64, label %81, label %65
65: ; preds = %62
%66 = call i32 @bcmp(i8* dereferenceable(7) %4, i8* dereferenceable(7) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.20, i64 0, i64 0), i64 7)
%67 = icmp eq i32 %66, 0
br i1 %67, label %81, label %68
68: ; preds = %65
%69 = call i32 @bcmp(i8* dereferenceable(5) %4, i8* dereferenceable(5) getelementptr inbounds ([5 x i8], [5 x i8]* @.str.21, i64 0, i64 0), i64 5)
%70 = icmp eq i32 %69, 0
br i1 %70, label %81, label %71
71: ; preds = %68
%72 = call i32 @bcmp(i8* dereferenceable(7) %4, i8* dereferenceable(7) getelementptr inbounds ([7 x i8], [7 x i8]* @.str.22, i64 0, i64 0), i64 7)
%73 = icmp eq i32 %72, 0
br i1 %73, label %81, label %74
74: ; preds = %71
%75 = call i32 @bcmp(i8* dereferenceable(9) %4, i8* dereferenceable(9) getelementptr inbounds ([9 x i8], [9 x i8]* @.str.23, i64 0, i64 0), i64 9)
%76 = icmp eq i32 %75, 0
br i1 %76, label %81, label %77
77: ; preds = %74
%78 = call i32 @bcmp(i8* dereferenceable(6) %4, i8* dereferenceable(6) getelementptr inbounds ([6 x i8], [6 x i8]* @.str.24, i64 0, i64 0), i64 6)
%79 = icmp eq i32 %78, 0
%80 = select i1 %79, i8 102, i8 63
br label %81
81: ; preds = %77, %74, %71, %68, %65, %62, %59, %56, %54, %51, %48, %45, %42, %40, %37, %34, %31, %28, %25, %17, %14, %11, %8, %2
%82 = phi i8 [ 119, %2 ], [ 114, %8 ], [ 87, %11 ], [ 87, %14 ], [ 80, %17 ], [ 99, %25 ], [ 111, %28 ], [ 82, %31 ], [ 117, %34 ], [ 108, %37 ], [ 76, %40 ], [ 63, %42 ], [ 112, %45 ], [ 101, %48 ], [ 68, %51 ], [ 100, %54 ], [ 77, %56 ], [ 67, %59 ], [ 97, %62 ], [ 115, %65 ], [ 115, %68 ], [ 83, %71 ], [ 116, %74 ], [ %80, %77 ]
ret i8 %82
}