#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*/ __analyzer_eval(int);
char *get_hello_world();
int strlen(char const *);
void test_16_alt(void) {
  const char *msg = get_hello_world();
  __analyzer_eval(msg != NULL);
  __analyzer_eval(msg[0] == 'h');
  __analyzer_eval(msg[1] == 'e');
  __analyzer_eval(strlen(msg) == 11);
}


x86 assembly (clang, -O0):
<test_16_alt>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    $0x0,%al
call   1050 <get_hello_world@plt>
mov    %rax,-0x8(%rbp)
cmpq   $0x0,-0x8(%rbp)
setne  %al
and    $0x1,%al
movzbl %al,%edi
call   1030 <__analyzer_eval@plt>
mov    -0x8(%rbp),%rax
movsbl (%rax),%eax
cmp    $0x68,%eax
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   1030 <__analyzer_eval@plt>
mov    -0x8(%rbp),%rax
movsbl 0x1(%rax),%eax
cmp    $0x65,%eax
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   1030 <__analyzer_eval@plt>
mov    -0x8(%rbp),%rdi
call   1040 <strlen@plt>
cmp    $0xb,%eax
sete   %al
and    $0x1,%al
movzbl %al,%edi
call   1030 <__analyzer_eval@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<test_16_alt>:
push   %rbx
xor    %eax,%eax
call   1050 <get_hello_world@plt>
mov    %rax,%rbx
xor    %edi,%edi
test   %rax,%rax
setne  %dil
call   1030 <__analyzer_eval@plt>
xor    %edi,%edi
cmpb   $0x68,(%rbx)
sete   %dil
call   1030 <__analyzer_eval@plt>
xor    %edi,%edi
cmpb   $0x65,0x1(%rbx)
sete   %dil
call   1030 <__analyzer_eval@plt>
mov    %rbx,%rdi
call   1040 <strlen@plt>
xor    %edi,%edi
cmp    $0xb,%eax
sete   %dil
pop    %rbx
jmp    1030 <__analyzer_eval@plt>

LLVM IR (-O0):
define void @test_16_alt() {
%1 = alloca i8*
%2 = call i8* (...) @get_hello_world()
store i8* %2, i8** %1
%3 = load i8*, i8** %1
%4 = icmp ne i8* %3, null
%5 = zext i1 %4 to i32
%6 = call i32 @__analyzer_eval(i32 %5)
%7 = load i8*, i8** %1
%8 = getelementptr inbounds i8, i8* %7, i64 0
%9 = load i8, i8* %8
%10 = sext i8 %9 to i32
%11 = icmp eq i32 %10, 104
%12 = zext i1 %11 to i32
%13 = call i32 @__analyzer_eval(i32 %12)
%14 = load i8*, i8** %1
%15 = getelementptr inbounds i8, i8* %14, i64 1
%16 = load i8, i8* %15
%17 = sext i8 %16 to i32
%18 = icmp eq i32 %17, 101
%19 = zext i1 %18 to i32
%20 = call i32 @__analyzer_eval(i32 %19)
%21 = load i8*, i8** %1
%22 = call i32 @strlen(i8* %21)
%23 = icmp eq i32 %22, 11
%24 = zext i1 %23 to i32
%25 = call i32 @__analyzer_eval(i32 %24)
ret void
}

LLVM IR (-O2):
define void @test_16_alt() {
%1 = tail call i8* (...) @get_hello_world()
%2 = icmp ne i8* %1, null
%3 = zext i1 %2 to i32
%4 = tail call i32 @__analyzer_eval(i32 %3)
%5 = load i8, i8* %1
%6 = icmp eq i8 %5, 104
%7 = zext i1 %6 to i32
%8 = tail call i32 @__analyzer_eval(i32 %7)
%9 = getelementptr inbounds i8, i8* %1, i64 1
%10 = load i8, i8* %9
%11 = icmp eq i8 %10, 101
%12 = zext i1 %11 to i32
%13 = tail call i32 @__analyzer_eval(i32 %12)
%14 = tail call i32 @strlen(i8* %1)
%15 = icmp eq i32 %14, 11
%16 = zext i1 %15 to i32
%17 = tail call i32 @__analyzer_eval(i32 %16)
ret void
}