
----------------------------------------
define i32 @times8(i32 %x) {
#0:
  %r = mul i32 %x, 8
  ret i32 %r
}
=>
define i32 @times8(i32 %x) {
#0:
  %r = shl i32 %x, 3
  ret i32 %r
}
Transformation seems to be correct!

ERROR: Unsupported instruction:   %v = atomicrmw add ptr %p, i32 1 seq_cst, align 4
ERROR: Could not translate 'bump' to Alive IR

----------------------------------------
define i8 @mask(i8 %x) {
#0:
  %a = and i8 %x, 15
  %r = or i8 %a, 16
  ret i8 %r
}
=>
define i8 @mask(i8 %x) {
#0:
  %a = and i8 %x, 63
  %r = or i8 %a, 16
  ret i8 %r
}
Transformation doesn't verify!

ERROR: Value mismatch

Example:
i8 %x = #x20 (32)

Source:
i8 %a = #x00 (0)
i8 %r = #x10 (16)

Target:
i8 %a = #x20 (32)
i8 %r = #x30 (48)
Source value: #x10 (16)
Target value: #x30 (48)

Summary:
  1 correct transformations
  1 incorrect transformations
  0 failed-to-prove transformations
  1 Alive2 errors
