#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*/ bm_line(int, int, int, int, int);
int /*<<< orphan*/ exit(int);
int /*<<< orphan*/ fprintf(int /*<<< orphan*/, char *, ...);
int /*<<< orphan*/ stderr;
void gs_wesolidline(int x1, int y1, int x2, int y2, int t, int c) {
  int i, e1, e2;
  {
    if (!((x2 <= x1))) {
      (void)fprintf(stderr, "Assertion failed: file \"%s\", line %d\n",
                    "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/"
                    "outputs/2022-01-22/02-19-57/repos/darkaio/AiOqwingraph/"
                    "refs/heads/master/drawlib.c",
                    3521);
      (void)fprintf(stderr,
                    "This is a bug! Please contact sander@cs.uni-sb.de !\n");
      exit(1);
    }
  };
  bm_line(x1, y1, x2, y2, c);
  if (t <= 1)
    return;
  e1 = t / 2;
  e2 = t / 2;
  if (t % 2 == 1)
    e2++;
  for (i = 0; i < e1; i++)
    bm_line(x1 + e1 - 1 - i, y1 - i, x2 - e1 + 1 + i, y2 - i, c);
  for (i = 0; i < e2; i++)
    bm_line(x1 + e2 - 1 - i, y1 + i, x2 - e2 + 1 + i, y2 + i, c);
}


x86 assembly (clang, -O0):
<gs_wesolidline>:
push   %rbp
mov    %rsp,%rbp
sub    $0x30,%rsp
mov    %edi,-0x4(%rbp)
mov    %esi,-0x8(%rbp)
mov    %edx,-0xc(%rbp)
mov    %ecx,-0x10(%rbp)
mov    %r8d,-0x14(%rbp)
mov    %r9d,-0x18(%rbp)
mov    -0xc(%rbp),%eax
cmp    -0x4(%rbp),%eax
jle    119c <gs_wesolidline+0x6c>
mov    0x2e81(%rip),%rax
mov    (%rax),%edi
lea    0xe98(%rip),%rsi
lea    0xeb7(%rip),%rdx
mov    $0xdc1,%ecx
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    0x2e5e(%rip),%rax
mov    (%rax),%edi
lea    0xf26(%rip),%rsi
mov    $0x0,%al
call   1030 <fprintf@plt>
mov    $0x1,%edi
call   1050 <exit@plt>
mov    -0x4(%rbp),%edi
mov    -0x8(%rbp),%esi
mov    -0xc(%rbp),%edx
mov    -0x10(%rbp),%ecx
mov    -0x18(%rbp),%r8d
call   1040 <bm_line@plt>
cmpl   $0x1,-0x14(%rbp)
jg     11c0 <gs_wesolidline+0x90>
jmp    1295 <gs_wesolidline+0x165>
mov    -0x14(%rbp),%eax
mov    $0x2,%ecx
cltd
idiv   %ecx
mov    %eax,-0x20(%rbp)
mov    -0x14(%rbp),%eax
mov    $0x2,%ecx
cltd
idiv   %ecx
mov    %eax,-0x24(%rbp)
mov    -0x14(%rbp),%eax
mov    $0x2,%ecx
cltd
idiv   %ecx
cmp    $0x1,%edx
jne    11f9 <gs_wesolidline+0xc9>
mov    -0x24(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x24(%rbp)
movl   $0x0,-0x1c(%rbp)
mov    -0x1c(%rbp),%eax
cmp    -0x20(%rbp),%eax
jge    1247 <gs_wesolidline+0x117>
mov    -0x4(%rbp),%edi
add    -0x20(%rbp),%edi
sub    $0x1,%edi
sub    -0x1c(%rbp),%edi
mov    -0x8(%rbp),%esi
sub    -0x1c(%rbp),%esi
mov    -0xc(%rbp),%edx
sub    -0x20(%rbp),%edx
add    $0x1,%edx
add    -0x1c(%rbp),%edx
mov    -0x10(%rbp),%ecx
sub    -0x1c(%rbp),%ecx
mov    -0x18(%rbp),%r8d
call   1040 <bm_line@plt>
mov    -0x1c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x1c(%rbp)
jmp    1200 <gs_wesolidline+0xd0>
movl   $0x0,-0x1c(%rbp)
mov    -0x1c(%rbp),%eax
cmp    -0x24(%rbp),%eax
jge    1295 <gs_wesolidline+0x165>
mov    -0x4(%rbp),%edi
add    -0x24(%rbp),%edi
sub    $0x1,%edi
sub    -0x1c(%rbp),%edi
mov    -0x8(%rbp),%esi
add    -0x1c(%rbp),%esi
mov    -0xc(%rbp),%edx
sub    -0x24(%rbp),%edx
add    $0x1,%edx
add    -0x1c(%rbp),%edx
mov    -0x10(%rbp),%ecx
add    -0x1c(%rbp),%ecx
mov    -0x18(%rbp),%r8d
call   1040 <bm_line@plt>
mov    -0x1c(%rbp),%eax
add    $0x1,%eax
mov    %eax,-0x1c(%rbp)
jmp    124e <gs_wesolidline+0x11e>
add    $0x30,%rsp
pop    %rbp
ret

x86 assembly (clang, -O2):
<gs_wesolidline>:
push   %rbp
push   %r15
push   %r14
push   %r13
push   %r12
push   %rbx
sub    $0x38,%rsp
cmp    %edi,%edx
jg     1236 <gs_wesolidline+0x106>
mov    %r9d,%r15d
mov    %r8d,%ebp
mov    %ecx,%r13d
mov    %esi,%r14d
mov    %edi,%ebx
mov    %rdx,0x10(%rsp)
mov    %r9d,%r8d
call   1040 <bm_line@plt>
cmp    $0x2,%ebp
jl     1227 <gs_wesolidline+0xf7>
mov    %ebp,%eax
shr    %eax
and    $0x1,%ebp
mov    %rbp,0x30(%rsp)
mov    %r15d,0xc(%rsp)
lea    (%rax,%rbp,1),%r15d
mov    %rbx,0x28(%rsp)
lea    (%rbx,%rax,1),%r12d
add    $0xffffffff,%r12d
mov    %rax,0x20(%rsp)
mov    %eax,%ebp
neg    %ebp
mov    0x10(%rsp),%rax
add    $0x1,%eax
mov    %rax,0x10(%rsp)
mov    %r14d,%ebx
mov    %r13d,0x1c(%rsp)
nopw   0x0(%rax,%rax,1)
mov    0x10(%rsp),%rax
lea    (%rax,%rbp,1),%edx
mov    %r12d,%edi
mov    %ebx,%esi
mov    %r13d,%ecx
mov    0xc(%rsp),%r8d
call   1040 <bm_line@plt>
add    $0xffffffff,%r13d
add    $0xffffffff,%ebx
add    $0xffffffff,%r12d
inc    %ebp
jne    11b0 <gs_wesolidline+0x80>
test   %r15d,%r15d
mov    0xc(%rsp),%r12d
mov    0x1c(%rsp),%ebx
mov    0x30(%rsp),%rax
mov    0x28(%rsp),%rcx
je     1227 <gs_wesolidline+0xf7>
add    0x20(%rsp),%ecx
lea    (%rax,%rcx,1),%ebp
add    $0xffffffff,%ebp
neg    %r15d
xchg   %ax,%ax
mov    0x10(%rsp),%rax
lea    (%rax,%r15,1),%edx
mov    %ebp,%edi
mov    %r14d,%esi
mov    %ebx,%ecx
mov    %r12d,%r8d
call   1040 <bm_line@plt>
add    $0x1,%ebx
add    $0x1,%r14d
add    $0xffffffff,%ebp
inc    %r15d
jne    1200 <gs_wesolidline+0xd0>
add    $0x38,%rsp
pop    %rbx
pop    %r12
pop    %r13
pop    %r14
pop    %r15
pop    %rbp
ret
mov    0x2da3(%rip),%rbx
mov    (%rbx),%edi
lea    0xdba(%rip),%rsi
lea    0xdd9(%rip),%rdx
mov    $0xdc1,%ecx
xor    %eax,%eax
call   1030 <fprintf@plt>
mov    (%rbx),%edi
lea    0xe4f(%rip),%rsi
xor    %eax,%eax
call   1030 <fprintf@plt>
mov    $0x1,%edi
call   1050 <exit@plt>

LLVM IR (-O0):
@stderr = global i32 0
@.str = [38 x i8] c"Assertion failed: file \22%s\22, line %d\0A\00"
@.str.1 = [139 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/darkaio/AiOqwingraph/refs/heads/master/drawlib.c\00"
@.str.2 = [53 x i8] c"This is a bug! Please contact sander@cs.uni-sb.de !\0A\00"
define void @gs_wesolidline(i32 %0, i32 %1, i32 %2, i32 %3, i32 %4, i32 %5) {
%7 = alloca i32
%8 = alloca i32
%9 = alloca i32
%10 = alloca i32
%11 = alloca i32
%12 = alloca i32
%13 = alloca i32
%14 = alloca i32
%15 = alloca i32
store i32 %0, i32* %7
store i32 %1, i32* %8
store i32 %2, i32* %9
store i32 %3, i32* %10
store i32 %4, i32* %11
store i32 %5, i32* %12
%16 = load i32, i32* %9
%17 = load i32, i32* %7
%18 = icmp sle i32 %16, %17
br i1 %18, label %25, label %19
19: ; preds = %6
%20 = load i32, i32* @stderr
%21 = call i32 (i32, i8*, ...) @fprintf(i32 %20, i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([139 x i8], [139 x i8]* @.str.1, i64 0, i64 0), i32 3521)
%22 = load i32, i32* @stderr
%23 = call i32 (i32, i8*, ...) @fprintf(i32 %22, i8* getelementptr inbounds ([53 x i8], [53 x i8]* @.str.2, i64 0, i64 0))
%24 = call i32 @exit(i32 1)
unreachable
25: ; preds = %6
%26 = load i32, i32* %7
%27 = load i32, i32* %8
%28 = load i32, i32* %9
%29 = load i32, i32* %10
%30 = load i32, i32* %12
%31 = call i32 @bm_line(i32 %26, i32 %27, i32 %28, i32 %29, i32 %30)
%32 = load i32, i32* %11
%33 = icmp sle i32 %32, 1
br i1 %33, label %34, label %35
34: ; preds = %25
br label %104
35: ; preds = %25
%36 = load i32, i32* %11
%37 = sdiv i32 %36, 2
store i32 %37, i32* %14
%38 = load i32, i32* %11
%39 = sdiv i32 %38, 2
store i32 %39, i32* %15
%40 = load i32, i32* %11
%41 = srem i32 %40, 2
%42 = icmp eq i32 %41, 1
br i1 %42, label %43, label %46
43: ; preds = %35
%44 = load i32, i32* %15
%45 = add nsw i32 %44, 1
store i32 %45, i32* %15
br label %46
46: ; preds = %43, %35
store i32 0, i32* %13
br label %47
47: ; preds = %72, %46
%48 = load i32, i32* %13
%49 = load i32, i32* %14
%50 = icmp slt i32 %48, %49
br i1 %50, label %51, label %75
51: ; preds = %47
%52 = load i32, i32* %7
%53 = load i32, i32* %14
%54 = add nsw i32 %52, %53
%55 = sub nsw i32 %54, 1
%56 = load i32, i32* %13
%57 = sub nsw i32 %55, %56
%58 = load i32, i32* %8
%59 = load i32, i32* %13
%60 = sub nsw i32 %58, %59
%61 = load i32, i32* %9
%62 = load i32, i32* %14
%63 = sub nsw i32 %61, %62
%64 = add nsw i32 %63, 1
%65 = load i32, i32* %13
%66 = add nsw i32 %64, %65
%67 = load i32, i32* %10
%68 = load i32, i32* %13
%69 = sub nsw i32 %67, %68
%70 = load i32, i32* %12
%71 = call i32 @bm_line(i32 %57, i32 %60, i32 %66, i32 %69, i32 %70)
br label %72
72: ; preds = %51
%73 = load i32, i32* %13
%74 = add nsw i32 %73, 1
store i32 %74, i32* %13
br label %47
75: ; preds = %47
store i32 0, i32* %13
br label %76
76: ; preds = %101, %75
%77 = load i32, i32* %13
%78 = load i32, i32* %15
%79 = icmp slt i32 %77, %78
br i1 %79, label %80, label %104
80: ; preds = %76
%81 = load i32, i32* %7
%82 = load i32, i32* %15
%83 = add nsw i32 %81, %82
%84 = sub nsw i32 %83, 1
%85 = load i32, i32* %13
%86 = sub nsw i32 %84, %85
%87 = load i32, i32* %8
%88 = load i32, i32* %13
%89 = add nsw i32 %87, %88
%90 = load i32, i32* %9
%91 = load i32, i32* %15
%92 = sub nsw i32 %90, %91
%93 = add nsw i32 %92, 1
%94 = load i32, i32* %13
%95 = add nsw i32 %93, %94
%96 = load i32, i32* %10
%97 = load i32, i32* %13
%98 = add nsw i32 %96, %97
%99 = load i32, i32* %12
%100 = call i32 @bm_line(i32 %86, i32 %89, i32 %95, i32 %98, i32 %99)
br label %101
101: ; preds = %80
%102 = load i32, i32* %13
%103 = add nsw i32 %102, 1
store i32 %103, i32* %13
br label %76
104: ; preds = %34, %76
ret void
}

LLVM IR (-O2):
@stderr = global i32 0
@.str = [38 x i8] c"Assertion failed: file \22%s\22, line %d\0A\00"
@.str.1 = [139 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/darkaio/AiOqwingraph/refs/heads/master/drawlib.c\00"
@.str.2 = [53 x i8] c"This is a bug! Please contact sander@cs.uni-sb.de !\0A\00"
define void @gs_wesolidline(i32 %0, i32 %1, i32 %2, i32 %3, i32 %4, i32 %5) {
%7 = icmp sgt i32 %2, %0
br i1 %7, label %8, label %14
8: ; preds = %6
%9 = load i32, i32* @stderr
%10 = tail call i32 (i32, i8*, ...) @fprintf(i32 %9, i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([139 x i8], [139 x i8]* @.str.1, i64 0, i64 0), i32 3521)
%11 = load i32, i32* @stderr
%12 = tail call i32 (i32, i8*, ...) @fprintf(i32 %11, i8* getelementptr inbounds ([53 x i8], [53 x i8]* @.str.2, i64 0, i64 0))
%13 = tail call i32 @exit(i32 1)
unreachable
14: ; preds = %6
%15 = tail call i32 @bm_line(i32 %0, i32 %1, i32 %2, i32 %3, i32 %5)
%16 = icmp slt i32 %4, 2
br i1 %16, label %48, label %17
17: ; preds = %14
%18 = lshr i32 %4, 1
%19 = and i32 %4, 1
%20 = add nuw nsw i32 %18, %19
%21 = add nsw i32 %18, %0
br label %26
22: ; preds = %26
%23 = icmp eq i32 %20, 0
br i1 %23, label %48, label %24
24: ; preds = %22
%25 = add nsw i32 %20, %0
br label %37
26: ; preds = %17, %26
%27 = phi i32 [ 0, %17 ], [ %31, %26 ]
%28 = xor i32 %27, -1
%29 = add i32 %21, %28
%30 = sub nsw i32 %1, %27
%31 = add nuw nsw i32 %27, 1
%32 = add i32 %31, %2
%33 = sub i32 %32, %18
%34 = sub nsw i32 %3, %27
%35 = tail call i32 @bm_line(i32 %29, i32 %30, i32 %33, i32 %34, i32 %5)
%36 = icmp eq i32 %31, %18
br i1 %36, label %22, label %26
37: ; preds = %24, %37
%38 = phi i32 [ 0, %24 ], [ %42, %37 ]
%39 = xor i32 %38, -1
%40 = add i32 %25, %39
%41 = add nsw i32 %38, %1
%42 = add nuw i32 %38, 1
%43 = add i32 %42, %2
%44 = sub i32 %43, %20
%45 = add nsw i32 %38, %3
%46 = tail call i32 @bm_line(i32 %40, i32 %41, i32 %44, i32 %45, i32 %5)
%47 = icmp eq i32 %42, %20
br i1 %47, label %48, label %37
48: ; preds = %37, %22, %14
ret void
}