#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*/ printf(char *);
int /*<<< orphan*/ putchar(char);
linha() {
  int i;
  for (i = 0; i <= 30; i++) {
    putchar('*');
  }
  printf("\n");
}


x86 assembly (clang, -O0):
<linha>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
movl   $0x0,-0x8(%rbp)
cmpl   $0x1e,-0x8(%rbp)
jg     1151 <linha+0x31>
mov    $0x2a,%edi
call   1030 <putchar@plt>
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
jmp    112f <linha+0xf>
lea    0xea8(%rip),%rdi
call   1040 <printf@plt>
mov    -0x4(%rbp),%eax
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<linha>:
push   %rax
mov    $0x2a,%edi
call   1030 <putchar@plt>
mov    $0x2a,%edi
call   1030 <putchar@plt>
mov    $0x2a,%edi
call   1030 <putchar@plt>
mov    $0x2a,%edi
call   1030 <putchar@plt>
mov    $0x2a,%edi
call   1030 <putchar@plt>
mov    $0x2a,%edi
call   1030 <putchar@plt>
mov    $0x2a,%edi
call   1030 <putchar@plt>
mov    $0x2a,%edi
call   1030 <putchar@plt>
mov    $0x2a,%edi
call   1030 <putchar@plt>
mov    $0x2a,%edi
call   1030 <putchar@plt>
mov    $0x2a,%edi
call   1030 <putchar@plt>
mov    $0x2a,%edi
call   1030 <putchar@plt>
mov    $0x2a,%edi
call   1030 <putchar@plt>
mov    $0x2a,%edi
call   1030 <putchar@plt>
mov    $0x2a,%edi
call   1030 <putchar@plt>
mov    $0x2a,%edi
call   1030 <putchar@plt>
mov    $0x2a,%edi
call   1030 <putchar@plt>
mov    $0x2a,%edi
call   1030 <putchar@plt>
mov    $0x2a,%edi
call   1030 <putchar@plt>
mov    $0x2a,%edi
call   1030 <putchar@plt>
mov    $0x2a,%edi
call   1030 <putchar@plt>
mov    $0x2a,%edi
call   1030 <putchar@plt>
mov    $0x2a,%edi
call   1030 <putchar@plt>
mov    $0x2a,%edi
call   1030 <putchar@plt>
mov    $0x2a,%edi
call   1030 <putchar@plt>
mov    $0x2a,%edi
call   1030 <putchar@plt>
mov    $0x2a,%edi
call   1030 <putchar@plt>
mov    $0x2a,%edi
call   1030 <putchar@plt>
mov    $0x2a,%edi
call   1030 <putchar@plt>
mov    $0x2a,%edi
call   1030 <putchar@plt>
mov    $0x2a,%edi
call   1030 <putchar@plt>
mov    $0xa,%edi
pop    %rax
jmp    1030 <putchar@plt>

LLVM IR (-O0):
@.str = [2 x i8] c"\0A\00"
define i32 @linha() {
%1 = alloca i32
%2 = alloca i32
store i32 0, i32* %2
br label %3
3: ; preds = %8, %0
%4 = load i32, i32* %2
%5 = icmp sle i32 %4, 30
br i1 %5, label %6, label %11
6: ; preds = %3
%7 = call i32 @putchar(i8 signext 42)
br label %8
8: ; preds = %6
%9 = load i32, i32* %2
%10 = add nsw i32 %9, 1
store i32 %10, i32* %2
br label %3
11: ; preds = %3
%12 = call i32 @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
%13 = load i32, i32* %1
ret i32 %13
}

LLVM IR (-O2):
define i32 @linha() {
%1 = tail call i32 @putchar(i8 signext 42)
%2 = tail call i32 @putchar(i8 signext 42)
%3 = tail call i32 @putchar(i8 signext 42)
%4 = tail call i32 @putchar(i8 signext 42)
%5 = tail call i32 @putchar(i8 signext 42)
%6 = tail call i32 @putchar(i8 signext 42)
%7 = tail call i32 @putchar(i8 signext 42)
%8 = tail call i32 @putchar(i8 signext 42)
%9 = tail call i32 @putchar(i8 signext 42)
%10 = tail call i32 @putchar(i8 signext 42)
%11 = tail call i32 @putchar(i8 signext 42)
%12 = tail call i32 @putchar(i8 signext 42)
%13 = tail call i32 @putchar(i8 signext 42)
%14 = tail call i32 @putchar(i8 signext 42)
%15 = tail call i32 @putchar(i8 signext 42)
%16 = tail call i32 @putchar(i8 signext 42)
%17 = tail call i32 @putchar(i8 signext 42)
%18 = tail call i32 @putchar(i8 signext 42)
%19 = tail call i32 @putchar(i8 signext 42)
%20 = tail call i32 @putchar(i8 signext 42)
%21 = tail call i32 @putchar(i8 signext 42)
%22 = tail call i32 @putchar(i8 signext 42)
%23 = tail call i32 @putchar(i8 signext 42)
%24 = tail call i32 @putchar(i8 signext 42)
%25 = tail call i32 @putchar(i8 signext 42)
%26 = tail call i32 @putchar(i8 signext 42)
%27 = tail call i32 @putchar(i8 signext 42)
%28 = tail call i32 @putchar(i8 signext 42)
%29 = tail call i32 @putchar(i8 signext 42)
%30 = tail call i32 @putchar(i8 signext 42)
%31 = tail call i32 @putchar(i8 signext 42)
%32 = tail call i32 bitcast (i32 (i8)* @putchar to i32 (i32)*)(i32 10)
ret i32 undef
}