Test Failure: Transforms/EarlyCSE/replace-calls-def-attrs.ll

Test source: git

Log:

Source: <stdin>
-- 1. ModuleToFunctionPassAdaptor
-- 1. PassManager<Function> : Skipping NOP
-- 2. EarlyCSEPass

----------------------------------------
declare i8 @baz(i8, i8)
declare i8 @buz(i8, i8)

define i8 @same_parent_combine_diff_attrs(i8 %x, i8 %y) {
#0:
  %c1 = call i8 @baz(noundef i8 %x, noundef i8 %y) nofree memory(none)
  %c0 = call i8 @baz(i8 %x, noundef i8 %y) nofree memory(none)
  %r = call i8 @buz(i8 %c0, i8 %c1)
  ret i8 %r
}
Transformation seems to be correct! (syntactically equal)

-- 3. EarlyCSEPass

----------------------------------------
declare i8 @baz(i8, i8)
declare i8 @buz(i8, i8)

define i8 @same_parent_combine_diff_attrs(i8 %x, i8 %y) {
#0:
  %c1 = call i8 @baz(noundef i8 %x, noundef i8 %y) nofree memory(none)
  %c0 = call i8 @baz(i8 %x, noundef i8 %y) nofree memory(none)
  %r = call i8 @buz(i8 %c0, i8 %c1)
  ret i8 %r
}
=>
declare i8 @baz(i8, i8)
declare i8 @buz(i8, i8)

define i8 @same_parent_combine_diff_attrs(i8 %x, i8 %y) {
#0:
  %c1 = call i8 @baz(i8 %x, noundef i8 %y) nofree memory(none)
  %r = call i8 @buz(i8 %c1, i8 %c1)
  ret i8 %r
}
Transformation seems to be correct!

-- 4. PassManager<Function> : Skipping NOP
-- 5. PassManager<Function> : Skipping NOP
-- 6. EarlyCSEPass

----------------------------------------
declare ptr @baz.ptr(i8, i8)
declare i8 @buz.ptr(ptr, ptr)

define i8 @same_parent_combine_diff_attrs_needs_intersect(i8 %x, i8 %y) {
#0:
  %c1 = call ptr @baz.ptr(noundef i8 %x, noundef i8 %y) nonnull nofree memory(none)
  %c0 = call ptr @baz.ptr(i8 %x, noundef i8 %y) nofree memory(none)
  %r = call i8 @buz.ptr(ptr %c0, ptr %c1)
  ret i8 %r
}
Transformation seems to be correct! (syntactically equal)

-- 7. EarlyCSEPass

----------------------------------------
declare ptr @baz.ptr(i8, i8)
declare i8 @buz.ptr(ptr, ptr)

define i8 @same_parent_combine_diff_attrs_needs_intersect(i8 %x, i8 %y) {
#0:
  %c1 = call ptr @baz.ptr(noundef i8 %x, noundef i8 %y) nonnull nofree memory(none)
  %c0 = call ptr @baz.ptr(i8 %x, noundef i8 %y) nofree memory(none)
  %r = call i8 @buz.ptr(ptr %c0, ptr %c1)
  ret i8 %r
}
=>
declare ptr @baz.ptr(i8, i8)
declare i8 @buz.ptr(ptr, ptr)

define i8 @same_parent_combine_diff_attrs_needs_intersect(i8 %x, i8 %y) {
#0:
  %c1 = call ptr @baz.ptr(i8 %x, noundef i8 %y) nofree memory(none)
  %r = call i8 @buz.ptr(ptr %c1, ptr %c1)
  ret i8 %r
}
Transformation seems to be correct!

-- 8. PassManager<Function> : Skipping NOP
-- 9. PassManager<Function> : Skipping NOP
-- 10. EarlyCSEPass

----------------------------------------
declare float @baz.fp(float, float)
declare i8 @buz.fp(float, float)

define i8 @same_parent_combine_diff_attrs_fmf(float %x, float %y) {
#0:
  %c1 = call float @baz.fp(noundef float %x, noundef float %y) NNaN nofree memory(read)
  %c0 = call float @baz.fp(float %x, noundef float %y) NNaN nofree memory(read)
  %r = call i8 @buz.fp(float %c0, float %c1)
  ret i8 %r
}
Transformation seems to be correct! (syntactically equal)

-- 11. EarlyCSEPass

----------------------------------------
declare float @baz.fp(float, float)
declare i8 @buz.fp(float, float)

define i8 @same_parent_combine_diff_attrs_fmf(float %x, float %y) {
#0:
  %c1 = call float @baz.fp(noundef float %x, noundef float %y) NNaN nofree memory(read)
  %c0 = call float @baz.fp(float %x, noundef float %y) NNaN nofree memory(read)
  %r = call i8 @buz.fp(float %c0, float %c1)
  ret i8 %r
}
=>
declare float @baz.fp(float, float)
declare i8 @buz.fp(float, float)

define i8 @same_parent_combine_diff_attrs_fmf(float %x, float %y) {
#0:
  %c1 = call float @baz.fp(float %x, noundef float %y) NNaN nofree memory(read)
  %r = call i8 @buz.fp(float %c1, float %c1)
  ret i8 %r
}
Transformation seems to be correct!

-- 12. PassManager<Function> : Skipping NOP
-- 13. PassManager<Function> : Skipping NOP
-- 14. EarlyCSEPass

----------------------------------------
declare float @baz.fp(float, float)
declare i8 @buz.fp(float, float)

define i8 @same_parent_combine_diff_attrs_fmf2(float %x, float %y) {
#0:
  %c1 = call float @baz.fp(noundef float %x, noundef float %y) NNaN nofree memory(none)
  %c0 = call float @baz.fp(float %x, noundef float %y) NNaN nofree memory(none)
  %r = call i8 @buz.fp(float %c0, float %c1)
  ret i8 %r
}
Transformation seems to be correct! (syntactically equal)

-- 15. EarlyCSEPass

----------------------------------------
declare float @baz.fp(float, float)
declare i8 @buz.fp(float, float)

define i8 @same_parent_combine_diff_attrs_fmf2(float %x, float %y) {
#0:
  %c1 = call float @baz.fp(noundef float %x, noundef float %y) NNaN nofree memory(none)
  %c0 = call float @baz.fp(float %x, noundef float %y) NNaN nofree memory(none)
  %r = call i8 @buz.fp(float %c0, float %c1)
  ret i8 %r
}
=>
declare float @baz.fp(float, float)
declare i8 @buz.fp(float, float)

define i8 @same_parent_combine_diff_attrs_fmf2(float %x, float %y) {
#0:
  %c1 = call float @baz.fp(float %x, noundef float %y) NNaN nofree memory(none)
  %r = call i8 @buz.fp(float %c1, float %c1)
  ret i8 %r
}
Transformation seems to be correct!

-- 16. PassManager<Function> : Skipping NOP
-- 17. PassManager<Function> : Skipping NOP
-- 18. EarlyCSEPass

----------------------------------------
declare ptr @baz.ptr(i8, i8)
declare i8 @buz.ptr(ptr, ptr)

define i8 @same_parent_combine_diff_attrs_needs_intersect2(i8 %x, i8 %y) {
#0:
  %c1 = call ptr @baz.ptr(noundef i8 %x, noundef i8 %y) nonnull nofree memory(read)
  %c0 = call ptr @baz.ptr(i8 %x, noundef i8 %y) nofree memory(read)
  %r = call i8 @buz.ptr(ptr %c0, ptr %c1)
  ret i8 %r
}
Transformation seems to be correct! (syntactically equal)

-- 19. EarlyCSEPass

----------------------------------------
declare ptr @baz.ptr(i8, i8)
declare i8 @buz.ptr(ptr, ptr)

define i8 @same_parent_combine_diff_attrs_needs_intersect2(i8 %x, i8 %y) {
#0:
  %c1 = call ptr @baz.ptr(noundef i8 %x, noundef i8 %y) nonnull nofree memory(read)
  %c0 = call ptr @baz.ptr(i8 %x, noundef i8 %y) nofree memory(read)
  %r = call i8 @buz.ptr(ptr %c0, ptr %c1)
  ret i8 %r
}
=>
declare ptr @baz.ptr(i8, i8)
declare i8 @buz.ptr(ptr, ptr)

define i8 @same_parent_combine_diff_attrs_needs_intersect2(i8 %x, i8 %y) {
#0:
  %c1 = call ptr @baz.ptr(i8 %x, noundef i8 %y) nofree memory(read)
  %r = call i8 @buz.ptr(ptr %c1, ptr %c1)
  ret i8 %r
}
Transformation doesn't verify! (unsound)
ERROR: Source is more defined than target

Example:
i8 %x = #x00 (0)
i8 %y = #x03 (3)

Source:
ptr %c1 = pointer(non-local, block_id=0, offset=-8) / Address=#x8
ptr %c0 = null
i8 %r = function did not return!

SOURCE MEMORY STATE
===================
NON-LOCAL BLOCKS:
Block 0 >	size: 0	align: 1	alloc type: 0	alive: false	address: #x0
Block 1 >	size: 0	align: 1	alloc type: 1	alive: true	address: #x4
Block 2 >	size: 0	align: 1	alloc type: 4	alive: true	address: #x4
Block 3 >	size: 0	align: 1	alloc type: 1	alive: true	address: #x1

Target:
ptr %c1 = null
i8 %r = function did not return!

TARGET MEMORY STATE
===================
NON-LOCAL BLOCKS:
Block 0 >	size: 0	align: 1	alloc type: 0	alive: false	address: #x0
Block 1 >	size: 0	align: 1	alloc type: 1	alive: true	address: #x4
Block 2 >	size: 0	align: 1	alloc type: 4	alive: true	address: #x4
Block 3 >	size: 0	align: 1	alloc type: 1	alive: true	address: #x1


Pass: EarlyCSEPass
Command line: '/home/nlopes/llvm/build/bin/opt' '-load=/home/nlopes/alive2/build/tv/tv.so' '-load-pass-plugin=/home/nlopes/alive2/build/tv/tv.so' '-tv-exit-on-error' '-S' '-passes=early-cse' '-tv-smt-to=20000' '-tv-report-dir=/home/nlopes/alive2/build/logs' '-tv-smt-stats'

Wrote bitcode to: "/home/nlopes/alive2/build/logs/in_NsXDvwxa_xvUX.bc"

------------------- SMT STATS -------------------
Num queries: 58
Num invalid: 0
Num skips:   0
Num trivial: 27 (31.8%)
Num timeout: 0 (0.0%)
Num errors:  0 (0.0%)
Num SAT:     50 (86.2%)
Num UNSAT:   8 (13.8%)
Alive2: Transform doesn't verify; aborting!

stderr:

Transforms/EarlyCSE/replace-calls-def-attrs.ll' FAILED ********************
Exit Code: 2

Command Output (stdout):
--
# RUN: at line 2
/home/nlopes/alive2/build/opt-alive.sh -S -passes=early-cse  < /bitbucket/nlopes/llvm/llvm/test/Transforms/EarlyCSE/replace-calls-def-attrs.ll | /bitbucket/nlopes/llvm/build/bin/FileCheck /bitbucket/nlopes/llvm/llvm/test/Transforms/EarlyCSE/replace-calls-def-attrs.ll
# executed command: /home/nlopes/alive2/build/opt-alive.sh -S -passes=early-cse
# .---command stderr------------
# `-----------------------------
# error: command failed with exit status: 1
# executed command: /bitbucket/nlopes/llvm/build/bin/FileCheck /bitbucket/nlopes/llvm/llvm/test/Transforms/EarlyCSE/replace-calls-def-attrs.ll
# .---command stderr------------
# | FileCheck error: '<stdin>' is empty.
# | FileCheck command line:  /bitbucket/nlopes/llvm/build/bin/FileCheck /bitbucket/nlopes/llvm/llvm/test/Transforms/EarlyCSE/replace-calls-def-attrs.ll
# `-----------------------------
# error: command failed with exit status: 2

--

 

<-- Back