#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*/ forwd(int);
int /*<<< orphan*/ turnright(int);
void star_20(int len) {
  int i;
  for (i = 0; i < 20; i++) {
    forwd(len);
    turnright(162);
  }
}


x86 assembly (clang, -O0):
<star_20>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    %edi,-0x4(%rbp)
movl   $0x0,-0x8(%rbp)
cmpl   $0x14,-0x8(%rbp)
jge    115c <star_20+0x3c>
mov    -0x4(%rbp),%edi
call   1040 <forwd@plt>
mov    $0xa2,%edi
call   1030 <turnright@plt>
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
jmp    1132 <star_20+0x12>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<star_20>:
push   %rbx
mov    %edi,%ebx
call   1040 <forwd@plt>
mov    $0xa2,%edi
call   1030 <turnright@plt>
mov    %ebx,%edi
call   1040 <forwd@plt>
mov    $0xa2,%edi
call   1030 <turnright@plt>
mov    %ebx,%edi
call   1040 <forwd@plt>
mov    $0xa2,%edi
call   1030 <turnright@plt>
mov    %ebx,%edi
call   1040 <forwd@plt>
mov    $0xa2,%edi
call   1030 <turnright@plt>
mov    %ebx,%edi
call   1040 <forwd@plt>
mov    $0xa2,%edi
call   1030 <turnright@plt>
mov    %ebx,%edi
call   1040 <forwd@plt>
mov    $0xa2,%edi
call   1030 <turnright@plt>
mov    %ebx,%edi
call   1040 <forwd@plt>
mov    $0xa2,%edi
call   1030 <turnright@plt>
mov    %ebx,%edi
call   1040 <forwd@plt>
mov    $0xa2,%edi
call   1030 <turnright@plt>
mov    %ebx,%edi
call   1040 <forwd@plt>
mov    $0xa2,%edi
call   1030 <turnright@plt>
mov    %ebx,%edi
call   1040 <forwd@plt>
mov    $0xa2,%edi
call   1030 <turnright@plt>
mov    %ebx,%edi
call   1040 <forwd@plt>
mov    $0xa2,%edi
call   1030 <turnright@plt>
mov    %ebx,%edi
call   1040 <forwd@plt>
mov    $0xa2,%edi
call   1030 <turnright@plt>
mov    %ebx,%edi
call   1040 <forwd@plt>
mov    $0xa2,%edi
call   1030 <turnright@plt>
mov    %ebx,%edi
call   1040 <forwd@plt>
mov    $0xa2,%edi
call   1030 <turnright@plt>
mov    %ebx,%edi
call   1040 <forwd@plt>
mov    $0xa2,%edi
call   1030 <turnright@plt>
mov    %ebx,%edi
call   1040 <forwd@plt>
mov    $0xa2,%edi
call   1030 <turnright@plt>
mov    %ebx,%edi
call   1040 <forwd@plt>
mov    $0xa2,%edi
call   1030 <turnright@plt>
mov    %ebx,%edi
call   1040 <forwd@plt>
mov    $0xa2,%edi
call   1030 <turnright@plt>
mov    %ebx,%edi
call   1040 <forwd@plt>
mov    $0xa2,%edi
call   1030 <turnright@plt>
mov    %ebx,%edi
call   1040 <forwd@plt>
mov    $0xa2,%edi
pop    %rbx
jmp    1030 <turnright@plt>

LLVM IR (-O0):
define void @star_20(i32 %0) {
%2 = alloca i32
%3 = alloca i32
store i32 %0, i32* %2
store i32 0, i32* %3
br label %4
4: ; preds = %11, %1
%5 = load i32, i32* %3
%6 = icmp slt i32 %5, 20
br i1 %6, label %7, label %14
7: ; preds = %4
%8 = load i32, i32* %2
%9 = call i32 @forwd(i32 %8)
%10 = call i32 @turnright(i32 162)
br label %11
11: ; preds = %7
%12 = load i32, i32* %3
%13 = add nsw i32 %12, 1
store i32 %13, i32* %3
br label %4
14: ; preds = %4
ret void
}

LLVM IR (-O2):
define void @star_20(i32 %0) {
%2 = tail call i32 @forwd(i32 %0)
%3 = tail call i32 @turnright(i32 162)
%4 = tail call i32 @forwd(i32 %0)
%5 = tail call i32 @turnright(i32 162)
%6 = tail call i32 @forwd(i32 %0)
%7 = tail call i32 @turnright(i32 162)
%8 = tail call i32 @forwd(i32 %0)
%9 = tail call i32 @turnright(i32 162)
%10 = tail call i32 @forwd(i32 %0)
%11 = tail call i32 @turnright(i32 162)
%12 = tail call i32 @forwd(i32 %0)
%13 = tail call i32 @turnright(i32 162)
%14 = tail call i32 @forwd(i32 %0)
%15 = tail call i32 @turnright(i32 162)
%16 = tail call i32 @forwd(i32 %0)
%17 = tail call i32 @turnright(i32 162)
%18 = tail call i32 @forwd(i32 %0)
%19 = tail call i32 @turnright(i32 162)
%20 = tail call i32 @forwd(i32 %0)
%21 = tail call i32 @turnright(i32 162)
%22 = tail call i32 @forwd(i32 %0)
%23 = tail call i32 @turnright(i32 162)
%24 = tail call i32 @forwd(i32 %0)
%25 = tail call i32 @turnright(i32 162)
%26 = tail call i32 @forwd(i32 %0)
%27 = tail call i32 @turnright(i32 162)
%28 = tail call i32 @forwd(i32 %0)
%29 = tail call i32 @turnright(i32 162)
%30 = tail call i32 @forwd(i32 %0)
%31 = tail call i32 @turnright(i32 162)
%32 = tail call i32 @forwd(i32 %0)
%33 = tail call i32 @turnright(i32 162)
%34 = tail call i32 @forwd(i32 %0)
%35 = tail call i32 @turnright(i32 162)
%36 = tail call i32 @forwd(i32 %0)
%37 = tail call i32 @turnright(i32 162)
%38 = tail call i32 @forwd(i32 %0)
%39 = tail call i32 @turnright(i32 162)
%40 = tail call i32 @forwd(i32 %0)
%41 = tail call i32 @turnright(i32 162)
ret void
}