#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*/ clang_analyzer_eval(int);
int /*<<< orphan*/ memset(char *, char, int);
int strlen(char *);
void memset27_symbol(char c) {
  char array[10] = {0};
  if (c < 10)
    return;
  memset(array, c, 10);
  clang_analyzer_eval(strlen(array) >= 10);
  clang_analyzer_eval(array[4] >= 10);
}


x86 assembly (clang, -O0):
<memset27_symbol>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %dil,%al
mov    %al,-0x1(%rbp)
lea    -0xb(%rbp),%rdi
xor    %esi,%esi
mov    $0xa,%edx
call   1040 <memset@plt>
movsbl -0x1(%rbp),%eax
cmp    $0xa,%eax
jge    1160 <memset27_symbol+0x30>
jmp    11a1 <memset27_symbol+0x71>
lea    -0xb(%rbp),%rdi
mov    -0x1(%rbp),%al
movsbl %al,%esi
mov    $0xa,%edx
call   1040 <memset@plt>
lea    -0xb(%rbp),%rdi
call   1030 <strlen@plt>
cmp    $0xa,%eax
setge  %al
and    $0x1,%al
movzbl %al,%edi
call   1050 <clang_analyzer_eval@plt>
movsbl -0x7(%rbp),%eax
cmp    $0xa,%eax
setge  %al
and    $0x1,%al
movzbl %al,%edi
call   1050 <clang_analyzer_eval@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<memset27_symbol>:
push   %rbx
sub    $0x10,%rsp
movw   $0x0,0x8(%rsp)
movq   $0x0,(%rsp)
cmp    $0xa,%dil
jl     1184 <memset27_symbol+0x54>
movsbl %dil,%esi
mov    %rsp,%rbx
mov    %rbx,%rdi
mov    $0xa,%edx
call   1040 <memset@plt>
mov    %rbx,%rdi
call   1030 <strlen@plt>
xor    %edi,%edi
cmp    $0xa,%eax
setge  %dil
call   1050 <clang_analyzer_eval@plt>
xor    %edi,%edi
cmpb   $0xa,0x4(%rsp)
setge  %dil
call   1050 <clang_analyzer_eval@plt>
add    $0x10,%rsp
pop    %rbx
ret

LLVM IR (-O0):
define void @memset27_symbol(i8 signext %0) {
%2 = alloca i8
%3 = alloca [10 x i8]
store i8 %0, i8* %2
%4 = bitcast [10 x i8]* %3 to i8*
%5 = load i8, i8* %2
%6 = sext i8 %5 to i32
%7 = icmp slt i32 %6, 10
br i1 %7, label %8, label %9
8: ; preds = %1
br label %24
9: ; preds = %1
%10 = getelementptr inbounds [10 x i8], [10 x i8]* %3, i64 0, i64 0
%11 = load i8, i8* %2
%12 = call i32 @memset(i8* %10, i8 signext %11, i32 10)
%13 = getelementptr inbounds [10 x i8], [10 x i8]* %3, i64 0, i64 0
%14 = call i32 @strlen(i8* %13)
%15 = icmp sge i32 %14, 10
%16 = zext i1 %15 to i32
%17 = call i32 @clang_analyzer_eval(i32 %16)
%18 = getelementptr inbounds [10 x i8], [10 x i8]* %3, i64 0, i64 4
%19 = load i8, i8* %18
%20 = sext i8 %19 to i32
%21 = icmp sge i32 %20, 10
%22 = zext i1 %21 to i32
%23 = call i32 @clang_analyzer_eval(i32 %22)
br label %24
24: ; preds = %9, %8
ret void
}

LLVM IR (-O2):
define void @memset27_symbol(i8 signext %0) {
%2 = alloca [10 x i8]
%3 = getelementptr inbounds [10 x i8], [10 x i8]* %2, i64 0, i64 0
%4 = icmp slt i8 %0, 10
br i1 %4, label %16, label %5
5: ; preds = %1
%6 = call i32 @memset(i8* %3, i8 signext %0, i32 10)
%7 = call i32 @strlen(i8* %3)
%8 = icmp sgt i32 %7, 9
%9 = zext i1 %8 to i32
%10 = call i32 @clang_analyzer_eval(i32 %9)
%11 = getelementptr inbounds [10 x i8], [10 x i8]* %2, i64 0, i64 4
%12 = load i8, i8* %11
%13 = icmp sgt i8 %12, 9
%14 = zext i1 %13 to i32
%15 = call i32 @clang_analyzer_eval(i32 %14)
br label %16
16: ; preds = %1, %5
ret void
}