#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*/ exit(int /*<<< orphan*/);
scalar_t__ ok_smul1(int, int, int *);
scalar_t__ ok_smul2(int, int, int *);
scalar_t__ ok_smul3(int, int, int *);
scalar_t__ ok_smul4(int, int, int *);
scalar_t__ ok_umul(unsigned int, unsigned int, unsigned int *);
scalar_t__ ok_umul2(unsigned int, unsigned int, unsigned int *);
int /*<<< orphan*/ printf(char *, ...);
int /*<<< orphan*/ scanf(char *, ...);
int main() {
  int sx, sy, sdest;
  unsigned int ux, uy, udest;
  printf("Enter sx:");
  scanf("%d", &sx);
  printf("Enter sy:");
  scanf("%d", &sy);
  if (ok_smul1(sx, sy, &sdest))
    printf("ok_smul1: %d*%d=%d does not overflow\n", sx, sy, sdest);
  else
    printf("ok_smul1: %d*%d=%d overflows\n", sx, sy, sdest);
  if (ok_smul2(sx, sy, &sdest))
    printf("ok_smul2: %d*%d=%d does not overflow\n", sx, sy, sdest);
  else
    printf("ok_smul2: %d*%d=%d overflows\n", sx, sy, sdest);
  if (ok_smul3(sx, sy, &sdest))
    printf("ok_smul3: %d*%d=%d does not overflow\n", sx, sy, sdest);
  else
    printf("ok_smul3: %d*%d=%d overflows\n", sx, sy, sdest);
  if (ok_smul4(sx, sy, &sdest))
    printf("ok_smul4: %d*%d=%d does not overflow\n", sx, sy, sdest);
  else
    printf("ok_smul4: %d*%d=%d overflows\n", sx, sy, sdest);
  printf("Enter ux:");
  scanf("%u", &ux);
  printf("Enter uy:");
  scanf("%u", &uy);
  if (ok_umul(ux, uy, &udest))
    printf("ok_umul: %u*%u=%u does not overflow\n", ux, uy, udest);
  else
    printf("ok_umul: %u*%u=%u overflows\n", ux, uy, udest);
  if (ok_umul2(ux, uy, &udest))
    printf("ok_umul2: %u*%u=%u does not overflow\n", ux, uy, udest);
  else
    printf("ok_umul2: %u*%u=%u overflows\n", ux, uy, udest);
  exit(0);
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
sub    $0x20,%rsp
movl   $0x0,-0x4(%rbp)
lea    0xe5a(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
lea    0xe56(%rip),%rdi
lea    -0x8(%rbp),%rsi
mov    $0x0,%al
call   10a0 <scanf@plt>
lea    0xe47(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
lea    0xe36(%rip),%rdi
lea    -0xc(%rbp),%rsi
mov    $0x0,%al
call   10a0 <scanf@plt>
mov    -0x8(%rbp),%edi
mov    -0xc(%rbp),%esi
lea    -0x10(%rbp),%rdx
call   1030 <ok_smul1@plt>
cmp    $0x0,%rax
je     1214 <main+0x84>
mov    -0x8(%rbp),%esi
mov    -0xc(%rbp),%edx
mov    -0x10(%rbp),%ecx
lea    0xe0f(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
jmp    122b <main+0x9b>
mov    -0x8(%rbp),%esi
mov    -0xc(%rbp),%edx
mov    -0x10(%rbp),%ecx
lea    0xe19(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
mov    -0x8(%rbp),%edi
mov    -0xc(%rbp),%esi
lea    -0x10(%rbp),%rdx
call   1080 <ok_smul2@plt>
cmp    $0x0,%rax
je     1260 <main+0xd0>
mov    -0x8(%rbp),%esi
mov    -0xc(%rbp),%edx
mov    -0x10(%rbp),%ecx
lea    0xe07(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
jmp    1277 <main+0xe7>
mov    -0x8(%rbp),%esi
mov    -0xc(%rbp),%edx
mov    -0x10(%rbp),%ecx
lea    0xe11(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
mov    -0x8(%rbp),%edi
mov    -0xc(%rbp),%esi
lea    -0x10(%rbp),%rdx
call   1040 <ok_smul3@plt>
cmp    $0x0,%rax
je     12ac <main+0x11c>
mov    -0x8(%rbp),%esi
mov    -0xc(%rbp),%edx
mov    -0x10(%rbp),%ecx
lea    0xdff(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
jmp    12c3 <main+0x133>
mov    -0x8(%rbp),%esi
mov    -0xc(%rbp),%edx
mov    -0x10(%rbp),%ecx
lea    0xe09(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
mov    -0x8(%rbp),%edi
mov    -0xc(%rbp),%esi
lea    -0x10(%rbp),%rdx
call   1070 <ok_smul4@plt>
cmp    $0x0,%rax
je     12f8 <main+0x168>
mov    -0x8(%rbp),%esi
mov    -0xc(%rbp),%edx
mov    -0x10(%rbp),%ecx
lea    0xdf7(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
jmp    130f <main+0x17f>
mov    -0x8(%rbp),%esi
mov    -0xc(%rbp),%edx
mov    -0x10(%rbp),%ecx
lea    0xe01(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
lea    0xe11(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
lea    0xe0d(%rip),%rdi
lea    -0x14(%rbp),%rsi
mov    $0x0,%al
call   10a0 <scanf@plt>
lea    0xdfe(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
lea    0xded(%rip),%rdi
lea    -0x18(%rbp),%rsi
mov    $0x0,%al
call   10a0 <scanf@plt>
mov    -0x14(%rbp),%edi
mov    -0x18(%rbp),%esi
lea    -0x1c(%rbp),%rdx
call   1060 <ok_umul@plt>
cmp    $0x0,%rax
je     1384 <main+0x1f4>
mov    -0x14(%rbp),%esi
mov    -0x18(%rbp),%edx
mov    -0x1c(%rbp),%ecx
lea    0xdc6(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
jmp    139b <main+0x20b>
mov    -0x14(%rbp),%esi
mov    -0x18(%rbp),%edx
mov    -0x1c(%rbp),%ecx
lea    0xdcf(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
mov    -0x14(%rbp),%edi
mov    -0x18(%rbp),%esi
lea    -0x1c(%rbp),%rdx
call   1090 <ok_umul2@plt>
cmp    $0x0,%rax
je     13d0 <main+0x240>
mov    -0x14(%rbp),%esi
mov    -0x18(%rbp),%edx
mov    -0x1c(%rbp),%ecx
lea    0xdbc(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
jmp    13e7 <main+0x257>
mov    -0x14(%rbp),%esi
mov    -0x18(%rbp),%edx
mov    -0x1c(%rbp),%ecx
lea    0xdc6(%rip),%rdi
mov    $0x0,%al
call   1050 <printf@plt>
xor    %edi,%edi
call   10b0 <exit@plt>

x86 assembly (clang, -O2):
<main>:
push   %rbx
sub    $0x20,%rsp
lea    0xe64(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
lea    0xe60(%rip),%rbx
lea    0xc(%rsp),%rsi
mov    %rbx,%rdi
xor    %eax,%eax
call   10a0 <scanf@plt>
lea    0xe4d(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
lea    0x8(%rsp),%rsi
mov    %rbx,%rdi
xor    %eax,%eax
call   10a0 <scanf@plt>
mov    0xc(%rsp),%edi
mov    0x8(%rsp),%esi
lea    0x18(%rsp),%rbx
mov    %rbx,%rdx
call   1030 <ok_smul1@plt>
test   %rax,%rax
mov    0xc(%rsp),%esi
mov    0x8(%rsp),%edx
mov    0x18(%rsp),%ecx
lea    0xe3c(%rip),%rax
lea    0xe0f(%rip),%rdi
cmove  %rax,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    0xc(%rsp),%edi
mov    0x8(%rsp),%esi
mov    %rbx,%rdx
call   1080 <ok_smul2@plt>
test   %rax,%rax
mov    0xc(%rsp),%esi
mov    0x8(%rsp),%edx
mov    0x18(%rsp),%ecx
lea    0xe48(%rip),%rax
lea    0xe1b(%rip),%rdi
cmove  %rax,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    0xc(%rsp),%edi
mov    0x8(%rsp),%esi
mov    %rbx,%rdx
call   1040 <ok_smul3@plt>
test   %rax,%rax
mov    0xc(%rsp),%esi
mov    0x8(%rsp),%edx
mov    0x18(%rsp),%ecx
lea    0xe54(%rip),%rax
lea    0xe27(%rip),%rdi
cmove  %rax,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    0xc(%rsp),%edi
mov    0x8(%rsp),%esi
mov    %rbx,%rdx
call   1070 <ok_smul4@plt>
test   %rax,%rax
mov    0xc(%rsp),%esi
mov    0x8(%rsp),%edx
mov    0x18(%rsp),%ecx
lea    0xe60(%rip),%rax
lea    0xe33(%rip),%rdi
cmove  %rax,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
lea    0xe65(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
lea    0xe61(%rip),%rbx
lea    0x14(%rsp),%rsi
mov    %rbx,%rdi
xor    %eax,%eax
call   10a0 <scanf@plt>
lea    0xe4e(%rip),%rdi
xor    %eax,%eax
call   1050 <printf@plt>
lea    0x10(%rsp),%rsi
mov    %rbx,%rdi
xor    %eax,%eax
call   10a0 <scanf@plt>
mov    0x14(%rsp),%edi
mov    0x10(%rsp),%esi
lea    0x1c(%rsp),%rbx
mov    %rbx,%rdx
call   1060 <ok_umul@plt>
test   %rax,%rax
mov    0x14(%rsp),%esi
mov    0x10(%rsp),%edx
mov    0x1c(%rsp),%ecx
lea    0xe3c(%rip),%rax
lea    0xe10(%rip),%rdi
cmove  %rax,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
mov    0x14(%rsp),%edi
mov    0x10(%rsp),%esi
mov    %rbx,%rdx
call   1090 <ok_umul2@plt>
test   %rax,%rax
mov    0x14(%rsp),%esi
mov    0x10(%rsp),%edx
mov    0x1c(%rsp),%ecx
lea    0xe47(%rip),%rax
lea    0xe1a(%rip),%rdi
cmove  %rax,%rdi
xor    %eax,%eax
call   1050 <printf@plt>
xor    %edi,%edi
call   10b0 <exit@plt>

LLVM IR (-O0):
@.str = [10 x i8] c"Enter sx:\00"
@.str.1 = [3 x i8] c"%d\00"
@.str.2 = [10 x i8] c"Enter sy:\00"
@.str.3 = [38 x i8] c"ok_smul1: %d*%d=%d does not overflow\0A\00"
@.str.4 = [30 x i8] c"ok_smul1: %d*%d=%d overflows\0A\00"
@.str.5 = [38 x i8] c"ok_smul2: %d*%d=%d does not overflow\0A\00"
@.str.6 = [30 x i8] c"ok_smul2: %d*%d=%d overflows\0A\00"
@.str.7 = [38 x i8] c"ok_smul3: %d*%d=%d does not overflow\0A\00"
@.str.8 = [30 x i8] c"ok_smul3: %d*%d=%d overflows\0A\00"
@.str.9 = [38 x i8] c"ok_smul4: %d*%d=%d does not overflow\0A\00"
@.str.10 = [30 x i8] c"ok_smul4: %d*%d=%d overflows\0A\00"
@.str.11 = [10 x i8] c"Enter ux:\00"
@.str.12 = [3 x i8] c"%u\00"
@.str.13 = [10 x i8] c"Enter uy:\00"
@.str.14 = [37 x i8] c"ok_umul: %u*%u=%u does not overflow\0A\00"
@.str.15 = [29 x i8] c"ok_umul: %u*%u=%u overflows\0A\00"
@.str.16 = [38 x i8] c"ok_umul2: %u*%u=%u does not overflow\0A\00"
@.str.17 = [30 x i8] c"ok_umul2: %u*%u=%u overflows\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
%4 = alloca i32
%5 = alloca i32
%6 = alloca i32
%7 = alloca i32
store i32 0, i32* %1
%8 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str, i64 0, i64 0))
%9 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %2)
%10 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.2, i64 0, i64 0))
%11 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %3)
%12 = load i32, i32* %2
%13 = load i32, i32* %3
%14 = call i64 @ok_smul1(i32 %12, i32 %13, i32* %4)
%15 = icmp ne i64 %14, 0
br i1 %15, label %16, label %21
16: ; preds = %0
%17 = load i32, i32* %2
%18 = load i32, i32* %3
%19 = load i32, i32* %4
%20 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.3, i64 0, i64 0), i32 %17, i32 %18, i32 %19)
br label %26
21: ; preds = %0
%22 = load i32, i32* %2
%23 = load i32, i32* %3
%24 = load i32, i32* %4
%25 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.4, i64 0, i64 0), i32 %22, i32 %23, i32 %24)
br label %26
26: ; preds = %21, %16
%27 = load i32, i32* %2
%28 = load i32, i32* %3
%29 = call i64 @ok_smul2(i32 %27, i32 %28, i32* %4)
%30 = icmp ne i64 %29, 0
br i1 %30, label %31, label %36
31: ; preds = %26
%32 = load i32, i32* %2
%33 = load i32, i32* %3
%34 = load i32, i32* %4
%35 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.5, i64 0, i64 0), i32 %32, i32 %33, i32 %34)
br label %41
36: ; preds = %26
%37 = load i32, i32* %2
%38 = load i32, i32* %3
%39 = load i32, i32* %4
%40 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.6, i64 0, i64 0), i32 %37, i32 %38, i32 %39)
br label %41
41: ; preds = %36, %31
%42 = load i32, i32* %2
%43 = load i32, i32* %3
%44 = call i64 @ok_smul3(i32 %42, i32 %43, i32* %4)
%45 = icmp ne i64 %44, 0
br i1 %45, label %46, label %51
46: ; preds = %41
%47 = load i32, i32* %2
%48 = load i32, i32* %3
%49 = load i32, i32* %4
%50 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.7, i64 0, i64 0), i32 %47, i32 %48, i32 %49)
br label %56
51: ; preds = %41
%52 = load i32, i32* %2
%53 = load i32, i32* %3
%54 = load i32, i32* %4
%55 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.8, i64 0, i64 0), i32 %52, i32 %53, i32 %54)
br label %56
56: ; preds = %51, %46
%57 = load i32, i32* %2
%58 = load i32, i32* %3
%59 = call i64 @ok_smul4(i32 %57, i32 %58, i32* %4)
%60 = icmp ne i64 %59, 0
br i1 %60, label %61, label %66
61: ; preds = %56
%62 = load i32, i32* %2
%63 = load i32, i32* %3
%64 = load i32, i32* %4
%65 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.9, i64 0, i64 0), i32 %62, i32 %63, i32 %64)
br label %71
66: ; preds = %56
%67 = load i32, i32* %2
%68 = load i32, i32* %3
%69 = load i32, i32* %4
%70 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.10, i64 0, i64 0), i32 %67, i32 %68, i32 %69)
br label %71
71: ; preds = %66, %61
%72 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.11, i64 0, i64 0))
%73 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.12, i64 0, i64 0), i32* %5)
%74 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([10 x i8], [10 x i8]* @.str.13, i64 0, i64 0))
%75 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.12, i64 0, i64 0), i32* %6)
%76 = load i32, i32* %5
%77 = load i32, i32* %6
%78 = call i64 @ok_umul(i32 %76, i32 %77, i32* %7)
%79 = icmp ne i64 %78, 0
br i1 %79, label %80, label %85
80: ; preds = %71
%81 = load i32, i32* %5
%82 = load i32, i32* %6
%83 = load i32, i32* %7
%84 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.14, i64 0, i64 0), i32 %81, i32 %82, i32 %83)
br label %90
85: ; preds = %71
%86 = load i32, i32* %5
%87 = load i32, i32* %6
%88 = load i32, i32* %7
%89 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.15, i64 0, i64 0), i32 %86, i32 %87, i32 %88)
br label %90
90: ; preds = %85, %80
%91 = load i32, i32* %5
%92 = load i32, i32* %6
%93 = call i64 @ok_umul2(i32 %91, i32 %92, i32* %7)
%94 = icmp ne i64 %93, 0
br i1 %94, label %95, label %100
95: ; preds = %90
%96 = load i32, i32* %5
%97 = load i32, i32* %6
%98 = load i32, i32* %7
%99 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.16, i64 0, i64 0), i32 %96, i32 %97, i32 %98)
br label %105
100: ; preds = %90
%101 = load i32, i32* %5
%102 = load i32, i32* %6
%103 = load i32, i32* %7
%104 = call i32 (i8*, ...) @printf(i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.17, i64 0, i64 0), i32 %101, i32 %102, i32 %103)
br label %105
105: ; preds = %100, %95
%106 = call i32 @exit(i32 0)
unreachable
}

LLVM IR (-O2):
@.str = [10 x i8] c"Enter sx:\00"
@.str.1 = [3 x i8] c"%d\00"
@.str.2 = [10 x i8] c"Enter sy:\00"
@.str.3 = [38 x i8] c"ok_smul1: %d*%d=%d does not overflow\0A\00"
@.str.4 = [30 x i8] c"ok_smul1: %d*%d=%d overflows\0A\00"
@.str.5 = [38 x i8] c"ok_smul2: %d*%d=%d does not overflow\0A\00"
@.str.6 = [30 x i8] c"ok_smul2: %d*%d=%d overflows\0A\00"
@.str.7 = [38 x i8] c"ok_smul3: %d*%d=%d does not overflow\0A\00"
@.str.8 = [30 x i8] c"ok_smul3: %d*%d=%d overflows\0A\00"
@.str.9 = [38 x i8] c"ok_smul4: %d*%d=%d does not overflow\0A\00"
@.str.10 = [30 x i8] c"ok_smul4: %d*%d=%d overflows\0A\00"
@.str.11 = [10 x i8] c"Enter ux:\00"
@.str.12 = [3 x i8] c"%u\00"
@.str.13 = [10 x i8] c"Enter uy:\00"
@.str.14 = [37 x i8] c"ok_umul: %u*%u=%u does not overflow\0A\00"
@.str.15 = [29 x i8] c"ok_umul: %u*%u=%u overflows\0A\00"
@.str.16 = [38 x i8] c"ok_umul2: %u*%u=%u does not overflow\0A\00"
@.str.17 = [30 x i8] c"ok_umul2: %u*%u=%u overflows\0A\00"
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
%4 = alloca i32
%5 = alloca i32
%6 = alloca i32
%7 = bitcast i32* %1 to i8*
%8 = bitcast i32* %2 to i8*
%9 = bitcast i32* %3 to i8*
%10 = bitcast i32* %4 to i8*
%11 = bitcast i32* %5 to i8*
%12 = bitcast i32* %6 to i8*
%13 = tail call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([10 x i8], [10 x i8]* @.str, i64 0, i64 0))
%14 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %1)
%15 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([10 x i8], [10 x i8]* @.str.2, i64 0, i64 0))
%16 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.1, i64 0, i64 0), i32* %2)
%17 = load i32, i32* %1
%18 = load i32, i32* %2
%19 = call i64 @ok_smul1(i32 %17, i32 %18, i32* %3)
%20 = icmp eq i64 %19, 0
%21 = load i32, i32* %1
%22 = load i32, i32* %2
%23 = load i32, i32* %3
%24 = select i1 %20, i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.4, i64 0, i64 0), i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.3, i64 0, i64 0)
%25 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) %24, i32 %21, i32 %22, i32 %23)
%26 = load i32, i32* %1
%27 = load i32, i32* %2
%28 = call i64 @ok_smul2(i32 %26, i32 %27, i32* %3)
%29 = icmp eq i64 %28, 0
%30 = load i32, i32* %1
%31 = load i32, i32* %2
%32 = load i32, i32* %3
%33 = select i1 %29, i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.6, i64 0, i64 0), i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.5, i64 0, i64 0)
%34 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) %33, i32 %30, i32 %31, i32 %32)
%35 = load i32, i32* %1
%36 = load i32, i32* %2
%37 = call i64 @ok_smul3(i32 %35, i32 %36, i32* %3)
%38 = icmp eq i64 %37, 0
%39 = load i32, i32* %1
%40 = load i32, i32* %2
%41 = load i32, i32* %3
%42 = select i1 %38, i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.8, i64 0, i64 0), i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.7, i64 0, i64 0)
%43 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) %42, i32 %39, i32 %40, i32 %41)
%44 = load i32, i32* %1
%45 = load i32, i32* %2
%46 = call i64 @ok_smul4(i32 %44, i32 %45, i32* %3)
%47 = icmp eq i64 %46, 0
%48 = load i32, i32* %1
%49 = load i32, i32* %2
%50 = load i32, i32* %3
%51 = select i1 %47, i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.10, i64 0, i64 0), i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.9, i64 0, i64 0)
%52 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) %51, i32 %48, i32 %49, i32 %50)
%53 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([10 x i8], [10 x i8]* @.str.11, i64 0, i64 0))
%54 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.12, i64 0, i64 0), i32* %4)
%55 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) getelementptr inbounds ([10 x i8], [10 x i8]* @.str.13, i64 0, i64 0))
%56 = call i32 (i8*, ...) @scanf(i8* getelementptr inbounds ([3 x i8], [3 x i8]* @.str.12, i64 0, i64 0), i32* %5)
%57 = load i32, i32* %4
%58 = load i32, i32* %5
%59 = call i64 @ok_umul(i32 %57, i32 %58, i32* %6)
%60 = icmp eq i64 %59, 0
%61 = load i32, i32* %4
%62 = load i32, i32* %5
%63 = load i32, i32* %6
%64 = select i1 %60, i8* getelementptr inbounds ([29 x i8], [29 x i8]* @.str.15, i64 0, i64 0), i8* getelementptr inbounds ([37 x i8], [37 x i8]* @.str.14, i64 0, i64 0)
%65 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) %64, i32 %61, i32 %62, i32 %63)
%66 = load i32, i32* %4
%67 = load i32, i32* %5
%68 = call i64 @ok_umul2(i32 %66, i32 %67, i32* %6)
%69 = icmp eq i64 %68, 0
%70 = load i32, i32* %4
%71 = load i32, i32* %5
%72 = load i32, i32* %6
%73 = select i1 %69, i8* getelementptr inbounds ([30 x i8], [30 x i8]* @.str.17, i64 0, i64 0), i8* getelementptr inbounds ([38 x i8], [38 x i8]* @.str.16, i64 0, i64 0)
%74 = call i32 (i8*, ...) @printf(i8* dereferenceable(1) %73, i32 %70, i32 %71, i32 %72)
%75 = call i32 @exit(i32 0)
unreachable
}