#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*/ __assert(int, char *, char *, int);
int gcd(int, int);
void test_gcd() {
  __assert(
      21 == gcd(1071, 462), "21 == gcd(1071, 462)",
      "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/"
      "2022-01-22/02-19-57/repos/fukanchik/Euler/refs/heads/master/lib/test.c",
      47);
  ;
  __assert(
      1 == gcd(700000, 299997), "1 == gcd(700000, 299997)",
      "/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/"
      "2022-01-22/02-19-57/repos/fukanchik/Euler/refs/heads/master/lib/test.c",
      48);
  ;
}


x86 assembly (clang, -O0):
<test_gcd>:
push   %rbp
mov    %rsp,%rbp
mov    $0x42f,%edi
mov    $0x1ce,%esi
call   1040 <gcd@plt>
mov    %eax,%ecx
mov    $0x15,%eax
cmp    %ecx,%eax
sete   %al
and    $0x1,%al
movzbl %al,%edi
lea    0xeb5(%rip),%rsi
lea    0xec3(%rip),%rdx
mov    $0x2f,%ecx
call   1030 <__assert@plt>
mov    $0xaae60,%edi
mov    $0x493dd,%esi
call   1040 <gcd@plt>
mov    %eax,%ecx
mov    $0x1,%eax
cmp    %ecx,%eax
sete   %al
and    $0x1,%al
movzbl %al,%edi
lea    0xf19(%rip),%rsi
lea    0xe8b(%rip),%rdx
mov    $0x30,%ecx
call   1030 <__assert@plt>
pop    %rbp
ret

x86 assembly (clang, -O2):
<test_gcd>:
push   %rbx
mov    $0x42f,%edi
mov    $0x1ce,%esi
call   1040 <gcd@plt>
xor    %edi,%edi
cmp    $0x15,%eax
sete   %dil
lea    0xec0(%rip),%rsi
lea    0xece(%rip),%rbx
mov    %rbx,%rdx
mov    $0x2f,%ecx
call   1030 <__assert@plt>
mov    $0xaae60,%edi
mov    $0x493dd,%esi
call   1040 <gcd@plt>
xor    %edi,%edi
cmp    $0x1,%eax
sete   %dil
lea    0xf29(%rip),%rsi
mov    %rbx,%rdx
mov    $0x30,%ecx
pop    %rbx
jmp    1030 <__assert@plt>

LLVM IR (-O0):
@.str = [21 x i8] c"21 == gcd(1071, 462)\00"
@.str.1 = [135 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/fukanchik/Euler/refs/heads/master/lib/test.c\00"
@.str.2 = [25 x i8] c"1 == gcd(700000, 299997)\00"
define void @test_gcd() {
%1 = call i32 @gcd(i32 1071, i32 462)
%2 = icmp eq i32 21, %1
%3 = zext i1 %2 to i32
%4 = call i32 @__assert(i32 %3, i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([135 x i8], [135 x i8]* @.str.1, i64 0, i64 0), i32 47)
%5 = call i32 @gcd(i32 700000, i32 299997)
%6 = icmp eq i32 1, %5
%7 = zext i1 %6 to i32
%8 = call i32 @__assert(i32 %7, i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([135 x i8], [135 x i8]* @.str.1, i64 0, i64 0), i32 48)
ret void
}

LLVM IR (-O2):
@.str = [21 x i8] c"21 == gcd(1071, 462)\00"
@.str.1 = [135 x i8] c"/scratch/repos/new/home/jordi_armengol_estape/c-scraper/outputs/2022-01-22/02-19-57/repos/fukanchik/Euler/refs/heads/master/lib/test.c\00"
@.str.2 = [25 x i8] c"1 == gcd(700000, 299997)\00"
define void @test_gcd() {
%1 = tail call i32 @gcd(i32 1071, i32 462)
%2 = icmp eq i32 %1, 21
%3 = zext i1 %2 to i32
%4 = tail call i32 @__assert(i32 %3, i8* getelementptr inbounds ([21 x i8], [21 x i8]* @.str, i64 0, i64 0), i8* getelementptr inbounds ([135 x i8], [135 x i8]* @.str.1, i64 0, i64 0), i32 47)
%5 = tail call i32 @gcd(i32 700000, i32 299997)
%6 = icmp eq i32 %5, 1
%7 = zext i1 %6 to i32
%8 = tail call i32 @__assert(i32 %7, i8* getelementptr inbounds ([25 x i8], [25 x i8]* @.str.2, i64 0, i64 0), i8* getelementptr inbounds ([135 x i8], [135 x i8]* @.str.1, i64 0, i64 0), i32 48)
ret void
}