int main() {
  unsigned int a, b, c;
  a = 0xFFFFFFFF;
  b = 0x00000001;
  c = a / b;
  c = 0;
  a = 0x0000000F;
  b = 0x00000003;
  c = a / b;
  c = 0;
  a = 0xAAAAAAAA;
  b = 0x55555555;
  c = a / b;
  c = 0;
  a = 0x7FFFFFFF;
  b = 0xFFFFFFFF;
  c = a / b;
  c = 0;
  a = 0x00000000;
  b = 0x80000000;
  c = a / b;
  c = 0;
  a = 0x00000030;
  b = 0x00000005;
  c = a / b;
  c = 0;
  a = 0xFFFFFFFF;
  b = 0xFFFFFFFF;
  c = a / b;
  c = 0;
  a = 0xFFFFFFFE;
  b = 0x00000010;
  c = a / b;
  c = 0;
  a = 0x00000020;
  b = 0xFFFFFFFE;
  c = a / b;
  c = 0;
  a = 0x00000000;
  b = 0xFFFFFFFF;
  c = a / b;
  c = 0;
  a = 0x78;
  c = a / 5;
  c = c / 4;
  c = c / 3;
  c = c / 2;
  c = 0;
  a = 0x10000000;
  c = a / 0xFFFFFFFF;
  c = 0;
  return 0;
}


x86 assembly (clang, -O0):
<main>:
push   %rbp
mov    %rsp,%rbp
movl   $0x0,-0x4(%rbp)
movl   $0xffffffff,-0x8(%rbp)
movl   $0x1,-0xc(%rbp)
mov    -0x8(%rbp),%eax
xor    %edx,%edx
divl   -0xc(%rbp)
mov    %eax,-0x10(%rbp)
movl   $0x0,-0x10(%rbp)
movl   $0xf,-0x8(%rbp)
movl   $0x3,-0xc(%rbp)
mov    -0x8(%rbp),%eax
xor    %edx,%edx
divl   -0xc(%rbp)
mov    %eax,-0x10(%rbp)
movl   $0x0,-0x10(%rbp)
movl   $0xaaaaaaaa,-0x8(%rbp)
movl   $0x55555555,-0xc(%rbp)
mov    -0x8(%rbp),%eax
xor    %edx,%edx
divl   -0xc(%rbp)
mov    %eax,-0x10(%rbp)
movl   $0x0,-0x10(%rbp)
movl   $0x7fffffff,-0x8(%rbp)
movl   $0xffffffff,-0xc(%rbp)
mov    -0x8(%rbp),%eax
xor    %edx,%edx
divl   -0xc(%rbp)
mov    %eax,-0x10(%rbp)
movl   $0x0,-0x10(%rbp)
movl   $0x0,-0x8(%rbp)
movl   $0x80000000,-0xc(%rbp)
mov    -0x8(%rbp),%eax
xor    %edx,%edx
divl   -0xc(%rbp)
mov    %eax,-0x10(%rbp)
movl   $0x0,-0x10(%rbp)
movl   $0x30,-0x8(%rbp)
movl   $0x5,-0xc(%rbp)
mov    -0x8(%rbp),%eax
xor    %edx,%edx
divl   -0xc(%rbp)
mov    %eax,-0x10(%rbp)
movl   $0x0,-0x10(%rbp)
movl   $0xffffffff,-0x8(%rbp)
movl   $0xffffffff,-0xc(%rbp)
mov    -0x8(%rbp),%eax
xor    %edx,%edx
divl   -0xc(%rbp)
mov    %eax,-0x10(%rbp)
movl   $0x0,-0x10(%rbp)
movl   $0xfffffffe,-0x8(%rbp)
movl   $0x10,-0xc(%rbp)
mov    -0x8(%rbp),%eax
xor    %edx,%edx
divl   -0xc(%rbp)
mov    %eax,-0x10(%rbp)
movl   $0x0,-0x10(%rbp)
movl   $0x20,-0x8(%rbp)
movl   $0xfffffffe,-0xc(%rbp)
mov    -0x8(%rbp),%eax
xor    %edx,%edx
divl   -0xc(%rbp)
mov    %eax,-0x10(%rbp)
movl   $0x0,-0x10(%rbp)
movl   $0x0,-0x8(%rbp)
movl   $0xffffffff,-0xc(%rbp)
mov    -0x8(%rbp),%eax
xor    %edx,%edx
divl   -0xc(%rbp)
mov    %eax,-0x10(%rbp)
movl   $0x0,-0x10(%rbp)
movl   $0x78,-0x8(%rbp)
mov    -0x8(%rbp),%eax
mov    $0x5,%ecx
xor    %edx,%edx
div    %ecx
mov    %eax,-0x10(%rbp)
mov    -0x10(%rbp),%eax
shr    $0x2,%eax
mov    %eax,-0x10(%rbp)
mov    -0x10(%rbp),%eax
mov    $0x3,%ecx
xor    %edx,%edx
div    %ecx
mov    %eax,-0x10(%rbp)
mov    -0x10(%rbp),%eax
shr    $0x1,%eax
mov    %eax,-0x10(%rbp)
movl   $0x0,-0x10(%rbp)
movl   $0x10000000,-0x8(%rbp)
mov    -0x8(%rbp),%eax
mov    $0xffffffff,%ecx
xor    %edx,%edx
div    %ecx
mov    %eax,-0x10(%rbp)
movl   $0x0,-0x10(%rbp)
xor    %eax,%eax
pop    %rbp
ret

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

LLVM IR (-O0):
define i32 @main() {
%1 = alloca i32
%2 = alloca i32
%3 = alloca i32
%4 = alloca i32
store i32 0, i32* %1
store i32 -1, i32* %2
store i32 1, i32* %3
%5 = load i32, i32* %2
%6 = load i32, i32* %3
%7 = udiv i32 %5, %6
store i32 %7, i32* %4
store i32 0, i32* %4
store i32 15, i32* %2
store i32 3, i32* %3
%8 = load i32, i32* %2
%9 = load i32, i32* %3
%10 = udiv i32 %8, %9
store i32 %10, i32* %4
store i32 0, i32* %4
store i32 -1431655766, i32* %2
store i32 1431655765, i32* %3
%11 = load i32, i32* %2
%12 = load i32, i32* %3
%13 = udiv i32 %11, %12
store i32 %13, i32* %4
store i32 0, i32* %4
store i32 2147483647, i32* %2
store i32 -1, i32* %3
%14 = load i32, i32* %2
%15 = load i32, i32* %3
%16 = udiv i32 %14, %15
store i32 %16, i32* %4
store i32 0, i32* %4
store i32 0, i32* %2
store i32 -2147483648, i32* %3
%17 = load i32, i32* %2
%18 = load i32, i32* %3
%19 = udiv i32 %17, %18
store i32 %19, i32* %4
store i32 0, i32* %4
store i32 48, i32* %2
store i32 5, i32* %3
%20 = load i32, i32* %2
%21 = load i32, i32* %3
%22 = udiv i32 %20, %21
store i32 %22, i32* %4
store i32 0, i32* %4
store i32 -1, i32* %2
store i32 -1, i32* %3
%23 = load i32, i32* %2
%24 = load i32, i32* %3
%25 = udiv i32 %23, %24
store i32 %25, i32* %4
store i32 0, i32* %4
store i32 -2, i32* %2
store i32 16, i32* %3
%26 = load i32, i32* %2
%27 = load i32, i32* %3
%28 = udiv i32 %26, %27
store i32 %28, i32* %4
store i32 0, i32* %4
store i32 32, i32* %2
store i32 -2, i32* %3
%29 = load i32, i32* %2
%30 = load i32, i32* %3
%31 = udiv i32 %29, %30
store i32 %31, i32* %4
store i32 0, i32* %4
store i32 0, i32* %2
store i32 -1, i32* %3
%32 = load i32, i32* %2
%33 = load i32, i32* %3
%34 = udiv i32 %32, %33
store i32 %34, i32* %4
store i32 0, i32* %4
store i32 120, i32* %2
%35 = load i32, i32* %2
%36 = udiv i32 %35, 5
store i32 %36, i32* %4
%37 = load i32, i32* %4
%38 = udiv i32 %37, 4
store i32 %38, i32* %4
%39 = load i32, i32* %4
%40 = udiv i32 %39, 3
store i32 %40, i32* %4
%41 = load i32, i32* %4
%42 = udiv i32 %41, 2
store i32 %42, i32* %4
store i32 0, i32* %4
store i32 268435456, i32* %2
%43 = load i32, i32* %2
%44 = udiv i32 %43, -1
store i32 %44, i32* %4
store i32 0, i32* %4
ret i32 0
}

LLVM IR (-O2):
define i32 @main() {
ret i32 0
}