Test Failure: Transforms/StraightLineStrengthReduce/slsr-mul.ll

Test source: git

Log:

Source: <stdin>

----------------------------------------
define void @slsr1(i32 %b, i32 %s) {
%0:
  %mul0 = mul i32 %b, %s
  call void @foo(i32 %mul0)
  %b1 = add i32 %b, 1
  %mul1 = mul i32 %b1, %s
  call void @foo(i32 %mul1)
  %b2 = add i32 %b, 2
  %mul2 = mul i32 %b2, %s
  call void @foo(i32 %mul2)
  ret void
}
=>
define void @slsr1(i32 %b, i32 %s) {
%0:
  %mul0 = mul i32 %b, %s
  call void @foo(i32 %mul0)
  %mul1 = add i32 %mul0, %s
  call void @foo(i32 %mul1)
  %mul2 = add i32 %mul1, %s
  call void @foo(i32 %mul2)
  ret void
}
Transformation doesn't verify!
ERROR: Timeout


----------------------------------------
define void @non_canonicalized(i32 %b, i32 %s) {
%0:
  %mul0 = mul i32 %b, %s
  call void @foo(i32 %mul0)
  %b1 = add i32 1, %b
  %mul1 = mul i32 %b1, %s
  call void @foo(i32 %mul1)
  %b2 = add i32 2, %b
  %mul2 = mul i32 %b2, %s
  call void @foo(i32 %mul2)
  ret void
}
=>
define void @non_canonicalized(i32 %b, i32 %s) {
%0:
  %mul0 = mul i32 %b, %s
  call void @foo(i32 %mul0)
  %mul1 = add i32 %mul0, %s
  call void @foo(i32 %mul1)
  %mul2 = add i32 %mul1, %s
  call void @foo(i32 %mul2)
  ret void
}
Transformation doesn't verify!
ERROR: Timeout


----------------------------------------
define void @or(i32 %a, i32 %s) {
%0:
  %b = shl i32 %a, 1
  %mul0 = mul i32 %b, %s
  call void @foo(i32 %mul0)
  %b1 = or i32 %b, 1
  %mul1 = mul i32 %b1, %s
  call void @foo(i32 %mul1)
  %b2 = or i32 %b, 2
  %mul2 = mul i32 %b2, %s
  call void @foo(i32 %mul2)
  ret void
}
=>
define void @or(i32 %a, i32 %s) {
%0:
  %b = shl i32 %a, 1
  %mul0 = mul i32 %b, %s
  call void @foo(i32 %mul0)
  %mul1 = add i32 %mul0, %s
  call void @foo(i32 %mul1)
  %b2 = or i32 %b, 2
  %mul2 = mul i32 %b2, %s
  call void @foo(i32 %mul2)
  ret void
}
Transformation doesn't verify!
ERROR: Timeout


----------------------------------------
define void @slsr2(i32 %a, i32 %b) {
%0:
  %a1 = add i32 %a, 1
  %b1 = add i32 %b, 1
  %mul0 = mul i32 %a, %b
  %mul1 = mul i32 %a1, %b
  %mul2 = mul i32 %a, %b1
  %mul3 = mul i32 %a1, %b1
  call void @foo(i32 %mul0)
  call void @foo(i32 %mul1)
  call void @foo(i32 %mul2)
  call void @foo(i32 %mul3)
  ret void
}
=>
define void @slsr2(i32 %a, i32 %b) {
%0:
  %a1 = add i32 %a, 1
  %mul0 = mul i32 %a, %b
  %mul1 = add i32 %mul0, %b
  %mul2 = add i32 %mul0, %a
  %mul3 = add i32 %mul1, %a1
  call void @foo(i32 %mul0)
  call void @foo(i32 %mul1)
  call void @foo(i32 %mul2)
  call void @foo(i32 %mul3)
  ret void
}
Transformation doesn't verify!
ERROR: Source is more defined than target

Example:
i32 %a = undef
i32 %b = #x40b00007 (1085276167)

Source:
i32 %a1 = any
i32 %b1 = #x40b00008 (1085276168)
i32 %mul0 = #x00000000 (0)	[based on undef value]
i32 %mul1 = #x40b00007 (1085276167)	[based on undef value]
i32 %mul2 = #x00000000 (0)	[based on undef value]
i32 %mul3 = #x40b00008 (1085276168)	[based on undef value]
void = UB triggered!

SOURCE MEMORY STATE
===================
NON-LOCAL BLOCKS:
Block 0 >	size: 0	align: 1	alloc type: 0
Block 1 >	size: 0	align: 1

Target:
i32 %a1 = #x0b000a08 (184551944)
i32 %mul0 = #xc29f9dc7 (3265240519, -1029726777)
i32 %mul1 = #x034f9dce (55549390)
i32 %mul2 = #xd321bf02 (3542204162, -752763134)
i32 %mul3 = #x0e4fa7d6 (240101334)
void = UB triggered!



------------------- SMT STATS -------------------
Num queries: 21
Num invalid: 0
Num skips:   0
Num trivial: 13 (38.2%)
Num timeout: 5 (23.8%)
Num errors:  0 (0.0%)
Num SAT:     15 (71.4%)
Num UNSAT:   1 (4.8%)
Alive2: Transform doesn't verify; aborting!

stderr:

+ : 'RUN: at line 1'
+ /home/nlopes/alive2/build/opt-alive.sh -slsr -gvn -S
+ /home/nlopes/llvm/build/bin/FileCheck /home/nlopes/llvm/llvm/test/Transforms/StraightLineStrengthReduce/slsr-mul.ll

FileCheck error: '<stdin>' is empty.
FileCheck command line:  /home/nlopes/llvm/build/bin/FileCheck /home/nlopes/llvm/llvm/test/Transforms/StraightLineStrengthReduce/slsr-mul.ll

 

NOTE: This test would pass if undef didn't exist!

 

<-- Back