#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*/ gotoxy(int, int);
int /*<<< orphan*/ printf(char *);
int /*<<< orphan*/ textcolor(int);
void marco(void) {
  int marx, mary;
  textcolor(11);
  for (marx = 7; marx <= 26; marx++) {
    gotoxy(marx, 9);
    printf("*");
    gotoxy(marx, 18);
    printf("*");
  }
  for (mary = 9; mary <= 18; mary++) {
    gotoxy(7, mary);
    printf("*");
    gotoxy(26, mary);
    printf("*");
  }
  textcolor(10);
}


x86 assembly (clang, -O0):
<marco>:
push   %rbp
mov    %rsp,%rbp
sub    $0x10,%rsp
mov    $0xb,%edi
call   1040 <textcolor@plt>
movl   $0x7,-0x4(%rbp)
cmpl   $0x1a,-0x4(%rbp)
jg     1193 <marco+0x63>
mov    -0x4(%rbp),%edi
mov    $0x9,%esi
call   1050 <gotoxy@plt>
lea    0xe99(%rip),%rdi
call   1030 <printf@plt>
mov    -0x4(%rbp),%edi
mov    $0x12,%esi
call   1050 <gotoxy@plt>
lea    0xe80(%rip),%rdi
call   1030 <printf@plt>
mov    -0x4(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x4(%rbp)
jmp    1149 <marco+0x19>
movl   $0x9,-0x8(%rbp)
cmpl   $0x12,-0x8(%rbp)
jg     11e4 <marco+0xb4>
mov    -0x8(%rbp),%esi
mov    $0x7,%edi
call   1050 <gotoxy@plt>
lea    0xe48(%rip),%rdi
call   1030 <printf@plt>
mov    -0x8(%rbp),%esi
mov    $0x1a,%edi
call   1050 <gotoxy@plt>
lea    0xe2f(%rip),%rdi
call   1030 <printf@plt>
mov    -0x8(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x8(%rbp)
jmp    119a <marco+0x6a>
mov    $0xa,%edi
call   1040 <textcolor@plt>
add    $0x10,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<marco>:
push   %rbx
mov    $0xb,%edi
call   1040 <textcolor@plt>
mov    $0x7,%ebx
mov    %ebx,%edi
mov    $0x9,%esi
call   1050 <gotoxy@plt>
mov    $0x2a,%edi
call   1030 <putchar@plt>
mov    %ebx,%edi
mov    $0x12,%esi
call   1050 <gotoxy@plt>
mov    $0x2a,%edi
call   1030 <putchar@plt>
add    $0x1,%ebx
cmp    $0x1b,%ebx
jne    1140 <marco+0x10>
mov    $0x7,%edi
mov    $0x9,%esi
call   1050 <gotoxy@plt>
mov    $0x2a,%edi
call   1030 <putchar@plt>
mov    $0x1a,%edi
mov    $0x9,%esi
call   1050 <gotoxy@plt>
mov    $0x2a,%edi
call   1030 <putchar@plt>
mov    $0x7,%edi
mov    $0xa,%esi
call   1050 <gotoxy@plt>
mov    $0x2a,%edi
call   1030 <putchar@plt>
mov    $0x1a,%edi
mov    $0xa,%esi
call   1050 <gotoxy@plt>
mov    $0x2a,%edi
call   1030 <putchar@plt>
mov    $0x7,%edi
mov    $0xb,%esi
call   1050 <gotoxy@plt>
mov    $0x2a,%edi
call   1030 <putchar@plt>
mov    $0x1a,%edi
mov    $0xb,%esi
call   1050 <gotoxy@plt>
mov    $0x2a,%edi
call   1030 <putchar@plt>
mov    $0x7,%edi
mov    $0xc,%esi
call   1050 <gotoxy@plt>
mov    $0x2a,%edi
call   1030 <putchar@plt>
mov    $0x1a,%edi
mov    $0xc,%esi
call   1050 <gotoxy@plt>
mov    $0x2a,%edi
call   1030 <putchar@plt>
mov    $0x7,%edi
mov    $0xd,%esi
call   1050 <gotoxy@plt>
mov    $0x2a,%edi
call   1030 <putchar@plt>
mov    $0x1a,%edi
mov    $0xd,%esi
call   1050 <gotoxy@plt>
mov    $0x2a,%edi
call   1030 <putchar@plt>
mov    $0x7,%edi
mov    $0xe,%esi
call   1050 <gotoxy@plt>
mov    $0x2a,%edi
call   1030 <putchar@plt>
mov    $0x1a,%edi
mov    $0xe,%esi
call   1050 <gotoxy@plt>
mov    $0x2a,%edi
call   1030 <putchar@plt>
mov    $0x7,%edi
mov    $0xf,%esi
call   1050 <gotoxy@plt>
mov    $0x2a,%edi
call   1030 <putchar@plt>
mov    $0x1a,%edi
mov    $0xf,%esi
call   1050 <gotoxy@plt>
mov    $0x2a,%edi
call   1030 <putchar@plt>
mov    $0x7,%edi
mov    $0x10,%esi
call   1050 <gotoxy@plt>
mov    $0x2a,%edi
call   1030 <putchar@plt>
mov    $0x1a,%edi
mov    $0x10,%esi
call   1050 <gotoxy@plt>
mov    $0x2a,%edi
call   1030 <putchar@plt>
mov    $0x7,%edi
mov    $0x11,%esi
call   1050 <gotoxy@plt>
mov    $0x2a,%edi
call   1030 <putchar@plt>
mov    $0x1a,%edi
mov    $0x11,%esi
call   1050 <gotoxy@plt>
mov    $0x2a,%edi
call   1030 <putchar@plt>
mov    $0x7,%edi
mov    $0x12,%esi
call   1050 <gotoxy@plt>
mov    $0x2a,%edi
call   1030 <putchar@plt>
mov    $0x1a,%edi
mov    $0x12,%esi
call   1050 <gotoxy@plt>
mov    $0x2a,%edi
call   1030 <putchar@plt>
mov    $0xa,%edi
pop    %rbx
jmp    1040 <textcolor@plt>

LLVM IR (-O0):
@.str = [2 x i8] c"*\00"
define void @marco() {
%1 = alloca i32
%2 = alloca i32
%3 = call i32 @textcolor(i32 11)
store i32 7, i32* %1
br label %4
4: ; preds = %14, %0
%5 = load i32, i32* %1
%6 = icmp sle i32 %5, 26
br i1 %6, label %7, label %17
7: ; preds = %4
%8 = load i32, i32* %1
%9 = call i32 @gotoxy(i32 %8, i32 9)
%10 = call i32 @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
%11 = load i32, i32* %1
%12 = call i32 @gotoxy(i32 %11, i32 18)
%13 = call i32 @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
br label %14
14: ; preds = %7
%15 = load i32, i32* %1
%16 = add nsw i32 %15, 1
store i32 %16, i32* %1
br label %4
17: ; preds = %4
store i32 9, i32* %2
br label %18
18: ; preds = %28, %17
%19 = load i32, i32* %2
%20 = icmp sle i32 %19, 18
br i1 %20, label %21, label %31
21: ; preds = %18
%22 = load i32, i32* %2
%23 = call i32 @gotoxy(i32 7, i32 %22)
%24 = call i32 @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
%25 = load i32, i32* %2
%26 = call i32 @gotoxy(i32 26, i32 %25)
%27 = call i32 @printf(i8* getelementptr inbounds ([2 x i8], [2 x i8]* @.str, i64 0, i64 0))
br label %28
28: ; preds = %21
%29 = load i32, i32* %2
%30 = add nsw i32 %29, 1
store i32 %30, i32* %2
br label %18
31: ; preds = %18
%32 = call i32 @textcolor(i32 10)
ret void
}

LLVM IR (-O2):
define void @marco() {
%1 = tail call i32 @textcolor(i32 11)
br label %2
2: ; preds = %0, %2
%3 = phi i32 [ 7, %0 ], [ %8, %2 ]
%4 = tail call i32 @gotoxy(i32 %3, i32 9)
%5 = tail call i32 @putchar(i32 42)
%6 = tail call i32 @gotoxy(i32 %3, i32 18)
%7 = tail call i32 @putchar(i32 42)
%8 = add nuw nsw i32 %3, 1
%9 = icmp eq i32 %8, 27
br i1 %9, label %10, label %2
10: ; preds = %2
%11 = tail call i32 @gotoxy(i32 7, i32 9)
%12 = tail call i32 @putchar(i32 42)
%13 = tail call i32 @gotoxy(i32 26, i32 9)
%14 = tail call i32 @putchar(i32 42)
%15 = tail call i32 @gotoxy(i32 7, i32 10)
%16 = tail call i32 @putchar(i32 42)
%17 = tail call i32 @gotoxy(i32 26, i32 10)
%18 = tail call i32 @putchar(i32 42)
%19 = tail call i32 @gotoxy(i32 7, i32 11)
%20 = tail call i32 @putchar(i32 42)
%21 = tail call i32 @gotoxy(i32 26, i32 11)
%22 = tail call i32 @putchar(i32 42)
%23 = tail call i32 @gotoxy(i32 7, i32 12)
%24 = tail call i32 @putchar(i32 42)
%25 = tail call i32 @gotoxy(i32 26, i32 12)
%26 = tail call i32 @putchar(i32 42)
%27 = tail call i32 @gotoxy(i32 7, i32 13)
%28 = tail call i32 @putchar(i32 42)
%29 = tail call i32 @gotoxy(i32 26, i32 13)
%30 = tail call i32 @putchar(i32 42)
%31 = tail call i32 @gotoxy(i32 7, i32 14)
%32 = tail call i32 @putchar(i32 42)
%33 = tail call i32 @gotoxy(i32 26, i32 14)
%34 = tail call i32 @putchar(i32 42)
%35 = tail call i32 @gotoxy(i32 7, i32 15)
%36 = tail call i32 @putchar(i32 42)
%37 = tail call i32 @gotoxy(i32 26, i32 15)
%38 = tail call i32 @putchar(i32 42)
%39 = tail call i32 @gotoxy(i32 7, i32 16)
%40 = tail call i32 @putchar(i32 42)
%41 = tail call i32 @gotoxy(i32 26, i32 16)
%42 = tail call i32 @putchar(i32 42)
%43 = tail call i32 @gotoxy(i32 7, i32 17)
%44 = tail call i32 @putchar(i32 42)
%45 = tail call i32 @gotoxy(i32 26, i32 17)
%46 = tail call i32 @putchar(i32 42)
%47 = tail call i32 @gotoxy(i32 7, i32 18)
%48 = tail call i32 @putchar(i32 42)
%49 = tail call i32 @gotoxy(i32 26, i32 18)
%50 = tail call i32 @putchar(i32 42)
%51 = tail call i32 @textcolor(i32 10)
ret void
}