#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 INT_MIN;
int main(int argc, const char *argv[]) {
  unsigned char a = 10 / 0;
  int b = INT_MIN / -1;
  int c = -10;
  int d = 3;
  int e = c / d;
  unsigned f = 10;
  unsigned g = 3;
  unsigned h = f / g;
  unsigned char i = 10;
  signed char j = -3;
  int k = i / j;
  int l = -10;
  int m = 2;
  int n = l / m;
  unsigned o = 10;
  unsigned p = 2;
  unsigned r = o / p;
  unsigned char s = 10;
  signed char t = -2;
  int u = s / t;
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
movl   $0x0,-0x4(%rbp)
mov    %edi,-0x8(%rbp)
mov    %rsi,-0x10(%rbp)
mov    %al,-0x11(%rbp)
mov    0x2ecc(%rip),%rax
mov    (%rax),%eax
mov    $0xffffffff,%ecx
cltd
idiv   %ecx
mov    %eax,-0x18(%rbp)
movl   $0xfffffff6,-0x1c(%rbp)
movl   $0x3,-0x20(%rbp)
mov    -0x1c(%rbp),%eax
cltd
idivl  -0x20(%rbp)
mov    %eax,-0x24(%rbp)
movl   $0xa,-0x28(%rbp)
movl   $0x3,-0x2c(%rbp)
mov    -0x28(%rbp),%eax
xor    %edx,%edx
divl   -0x2c(%rbp)
mov    %eax,-0x30(%rbp)
movb   $0xa,-0x31(%rbp)
movb   $0xfd,-0x32(%rbp)
movzbl -0x31(%rbp),%eax
movsbl -0x32(%rbp),%ecx
cltd
idiv   %ecx
mov    %eax,-0x38(%rbp)
movl   $0xfffffff6,-0x3c(%rbp)
movl   $0x2,-0x40(%rbp)
mov    -0x3c(%rbp),%eax
cltd
idivl  -0x40(%rbp)
mov    %eax,-0x44(%rbp)
movl   $0xa,-0x48(%rbp)
movl   $0x2,-0x4c(%rbp)
mov    -0x48(%rbp),%eax
xor    %edx,%edx
divl   -0x4c(%rbp)
mov    %eax,-0x50(%rbp)
movb   $0xa,-0x51(%rbp)
movb   $0xfe,-0x52(%rbp)
movzbl -0x51(%rbp),%eax
movsbl -0x52(%rbp),%ecx
cltd
idiv   %ecx
mov    %eax,-0x58(%rbp)
xor    %eax,%eax
pop    %rbp
ret

x86 assembly (clang, -O2):
<main>:
xor    %eax,%eax
ret

LLVM IR (-O0):
@INT_MIN = global i32 0
define i32 @main(i32 %0, i8** %1) {
%3 = alloca i32
%4 = alloca i32
%5 = alloca i8**
%6 = alloca i8
%7 = alloca i32
%8 = alloca i32
%9 = alloca i32
%10 = alloca i32
%11 = alloca i32
%12 = alloca i32
%13 = alloca i32
%14 = alloca i8
%15 = alloca i8
%16 = alloca i32
%17 = alloca i32
%18 = alloca i32
%19 = alloca i32
%20 = alloca i32
%21 = alloca i32
%22 = alloca i32
%23 = alloca i8
%24 = alloca i8
%25 = alloca i32
store i32 0, i32* %3
store i32 %0, i32* %4
store i8** %1, i8*** %5
store i8 poison, i8* %6
%26 = load i32, i32* @INT_MIN
%27 = sdiv i32 %26, -1
store i32 %27, i32* %7
store i32 -10, i32* %8
store i32 3, i32* %9
%28 = load i32, i32* %8
%29 = load i32, i32* %9
%30 = sdiv i32 %28, %29
store i32 %30, i32* %10
store i32 10, i32* %11
store i32 3, i32* %12
%31 = load i32, i32* %11
%32 = load i32, i32* %12
%33 = udiv i32 %31, %32
store i32 %33, i32* %13
store i8 10, i8* %14
store i8 -3, i8* %15
%34 = load i8, i8* %14
%35 = zext i8 %34 to i32
%36 = load i8, i8* %15
%37 = sext i8 %36 to i32
%38 = sdiv i32 %35, %37
store i32 %38, i32* %16
store i32 -10, i32* %17
store i32 2, i32* %18
%39 = load i32, i32* %17
%40 = load i32, i32* %18
%41 = sdiv i32 %39, %40
store i32 %41, i32* %19
store i32 10, i32* %20
store i32 2, i32* %21
%42 = load i32, i32* %20
%43 = load i32, i32* %21
%44 = udiv i32 %42, %43
store i32 %44, i32* %22
store i8 10, i8* %23
store i8 -2, i8* %24
%45 = load i8, i8* %23
%46 = zext i8 %45 to i32
%47 = load i8, i8* %24
%48 = sext i8 %47 to i32
%49 = sdiv i32 %46, %48
store i32 %49, i32* %25
ret i32 0
}

LLVM IR (-O2):
@INT_MIN = global i32 0
define i32 @main(i32 %0, i8** nocapture readnone %1) {
ret i32 0
}