#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 */
char toupper(char const);
int isfltime(const char *argstr) {
  if (argstr[0] == '-' || argstr[0] == '/')
    argstr++;
  return toupper(argstr[0]) == 'T' && argstr[1] == '\0';
}


x86 assembly (clang, -O0):
<isfltime>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x2d,%eax
je     113c <isfltime+0x2c>
mov    -0x8(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x2f,%eax
jne    1148 <isfltime+0x38>
mov    -0x8(%rbp),%rax
add    $0x1,%rax
mov    %rax,-0x8(%rbp)
mov    -0x8(%rbp),%rax
movsbl (%rax),%edi
call   1030 <toupper@plt>
movsbl %al,%ecx
xor    %eax,%eax
cmp    $0x54,%ecx
mov    %al,-0x9(%rbp)
jne    1176 <isfltime+0x66>
mov    -0x8(%rbp),%rax
movsbl 0x1(%rax),%eax
cmp    $0x0,%eax
sete   %al
mov    %al,-0x9(%rbp)
mov    -0x9(%rbp),%al
and    $0x1,%al
movzbl %al,%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<isfltime>:
push   %rbx
mov    %rdi,%rbx
mov    (%rdi),%al
mov    %eax,%ecx
or     $0x2,%cl
cmp    $0x2f,%cl
jne    1127 <isfltime+0x17>
mov    0x1(%rbx),%al
add    $0x1,%rbx
movsbl %al,%edi
call   1030 <toupper@plt>
mov    %eax,%ecx
xor    %eax,%eax
cmp    $0x54,%cl
jne    1141 <isfltime+0x31>
xor    %eax,%eax
cmpb   $0x0,0x1(%rbx)
sete   %al
pop    %rbx
ret

LLVM IR (-O0):
define i32 @isfltime(i8* %0) {
%2 = alloca i8*
store i8* %0, i8** %2
%3 = load i8*, i8** %2
%4 = getelementptr inbounds i8, i8* %3, i64 0
%5 = load i8, i8* %4
%6 = sext i8 %5 to i32
%7 = icmp eq i32 %6, 45
br i1 %7, label %14, label %8
8: ; preds = %1
%9 = load i8*, i8** %2
%10 = getelementptr inbounds i8, i8* %9, i64 0
%11 = load i8, i8* %10
%12 = sext i8 %11 to i32
%13 = icmp eq i32 %12, 47
br i1 %13, label %14, label %17
14: ; preds = %8, %1
%15 = load i8*, i8** %2
%16 = getelementptr inbounds i8, i8* %15, i32 1
store i8* %16, i8** %2
br label %17
17: ; preds = %14, %8
%18 = load i8*, i8** %2
%19 = getelementptr inbounds i8, i8* %18, i64 0
%20 = load i8, i8* %19
%21 = call signext i8 @toupper(i8 signext %20)
%22 = sext i8 %21 to i32
%23 = icmp eq i32 %22, 84
br i1 %23, label %24, label %30
24: ; preds = %17
%25 = load i8*, i8** %2
%26 = getelementptr inbounds i8, i8* %25, i64 1
%27 = load i8, i8* %26
%28 = sext i8 %27 to i32
%29 = icmp eq i32 %28, 0
br label %30
30: ; preds = %24, %17
%31 = phi i1 [ false, %17 ], [ %29, %24 ]
%32 = zext i1 %31 to i32
ret i32 %32
}

LLVM IR (-O2):
define i32 @isfltime(i8* nocapture %0) {
%2 = load i8, i8* %0
switch i8 %2, label %6 [
i8 45, label %3
i8 47, label %3
]
3: ; preds = %1, %1
%4 = getelementptr inbounds i8, i8* %0, i64 1
%5 = load i8, i8* %4
br label %6
6: ; preds = %1, %3
%7 = phi i8 [ %5, %3 ], [ %2, %1 ]
%8 = phi i8* [ %4, %3 ], [ %0, %1 ]
%9 = tail call signext i8 @toupper(i8 signext %7)
%10 = icmp eq i8 %9, 84
br i1 %10, label %11, label %16
11: ; preds = %6
%12 = getelementptr inbounds i8, i8* %8, i64 1
%13 = load i8, i8* %12
%14 = icmp eq i8 %13, 0
%15 = zext i1 %14 to i32
br label %16
16: ; preds = %11, %6
%17 = phi i32 [ 0, %6 ], [ %15, %11 ]
ret i32 %17
}