#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 */
scalar_t__ less_than(int, int);
void s2_symbolic_widened_Good_FP(int *n) {
  int a[*n];
  for (int i = *n; less_than(i, *n); i++) {
    a[i] = 0;
  }
}


x86 assembly (clang, -O0):
<s2_symbolic_widened_Good_FP>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
mov    %rdi,-0x8(%rbp)
mov    -0x8(%rbp),%rax
mov    (%rax),%eax
mov    %rsp,%rcx
mov    %rcx,-0x10(%rbp)
lea    0xf(,%rax,4),%rdx
and    $0xfffffffffffffff0,%rdx
mov    %rsp,%rcx
sub    %rdx,%rcx
mov    %rcx,-0x28(%rbp)
mov    %rcx,%rsp
mov    %rax,-0x18(%rbp)
mov    -0x8(%rbp),%rax
mov    (%rax),%eax
mov    %eax,-0x1c(%rbp)
mov    -0x1c(%rbp),%edi
mov    -0x8(%rbp),%rax
mov    (%rax),%esi
call   1030 <less_than@plt>
cmp    $0x0,%rax
je     1184 <s2_symbolic_widened_Good_FP+0x74>
mov    -0x28(%rbp),%rax
movslq -0x1c(%rbp),%rcx
movl   $0x0,(%rax,%rcx,4)
mov    -0x1c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x1c(%rbp)
jmp    114f <s2_symbolic_widened_Good_FP+0x3f>
mov    -0x10(%rbp),%rax
mov    %rax,%rsp
mov    %rbp,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<s2_symbolic_widened_Good_FP>:
push   %rbp
push   %rbx
push   %rax
mov    %rdi,%rbx
mov    (%rdi),%ebp
mov    %ebp,%edi
mov    %ebp,%esi
call   1030 <less_than@plt>
test   %rax,%rax
je     1141 <s2_symbolic_widened_Good_FP+0x31>
add    $0x1,%ebp
nopl   0x0(%rax)
mov    (%rbx),%esi
mov    %ebp,%edi
call   1030 <less_than@plt>
add    $0x1,%ebp
test   %rax,%rax
jne    1130 <s2_symbolic_widened_Good_FP+0x20>
add    $0x8,%rsp
pop    %rbx
pop    %rbp
ret

LLVM IR (-O0):
define void @s2_symbolic_widened_Good_FP(i32* %0) {
%2 = alloca i32*
%3 = alloca i8*
%4 = alloca i64
%5 = alloca i32
store i32* %0, i32** %2
%6 = load i32*, i32** %2
%7 = load i32, i32* %6
%8 = zext i32 %7 to i64
%9 = call i8* @llvm.stacksave()
store i8* %9, i8** %3
%10 = alloca i32, i64 %8
store i64 %8, i64* %4
%11 = load i32*, i32** %2
%12 = load i32, i32* %11
store i32 %12, i32* %5
br label %13
13: ; preds = %23, %1
%14 = load i32, i32* %5
%15 = load i32*, i32** %2
%16 = load i32, i32* %15
%17 = call i64 @less_than(i32 %14, i32 %16)
%18 = icmp ne i64 %17, 0
br i1 %18, label %19, label %26
19: ; preds = %13
%20 = load i32, i32* %5
%21 = sext i32 %20 to i64
%22 = getelementptr inbounds i32, i32* %10, i64 %21
store i32 0, i32* %22
br label %23
23: ; preds = %19
%24 = load i32, i32* %5
%25 = add nsw i32 %24, 1
store i32 %25, i32* %5
br label %13
26: ; preds = %13
%27 = load i8*, i8** %3
ret void
}

LLVM IR (-O2):
define void @s2_symbolic_widened_Good_FP(i32* nocapture %0) {
%2 = load i32, i32* %0
%3 = tail call i64 @less_than(i32 %2, i32 %2)
%4 = icmp eq i64 %3, 0
br i1 %4, label %11, label %5
5: ; preds = %1, %5
%6 = phi i32 [ %7, %5 ], [ %2, %1 ]
%7 = add nsw i32 %6, 1
%8 = load i32, i32* %0
%9 = tail call i64 @less_than(i32 %7, i32 %8)
%10 = icmp eq i64 %9, 0
br i1 %10, label %11, label %5
11: ; preds = %5, %1
ret void
}