Test Failure: Transforms/InstSimplify/ConstProp/min-max.ll

Test source: git

Log:

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

----------------------------------------
define float @minnum_float() {
#0:
  %#1 = fmin float 5.000000, 42.000000
  ret float %#1
}
Transformation seems to be correct! (syntactically equal)

-- 3. InstSimplifyPass

----------------------------------------
define float @minnum_float() {
#0:
  %#1 = fmin float 5.000000, 42.000000
  ret float %#1
}
=>
define float @minnum_float() {
#0:
  ret float 5.000000
}
Transformation seems to be correct!

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

----------------------------------------
define float @minnum_float_p0_n0() {
#0:
  %min = fmin float 0.000000, -0.000000
  ret float %min
}
Transformation seems to be correct! (syntactically equal)

-- 7. InstSimplifyPass

----------------------------------------
define float @minnum_float_p0_n0() {
#0:
  %min = fmin float 0.000000, -0.000000
  ret float %min
}
=>
define float @minnum_float_p0_n0() {
#0:
  ret float -0.000000
}
Transformation seems to be correct!

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

----------------------------------------
define float @minnum_float_n0_p0() {
#0:
  %min = fmin float -0.000000, 0.000000
  ret float %min
}
Transformation seems to be correct! (syntactically equal)

-- 11. InstSimplifyPass

----------------------------------------
define float @minnum_float_n0_p0() {
#0:
  %min = fmin float -0.000000, 0.000000
  ret float %min
}
=>
define float @minnum_float_n0_p0() {
#0:
  ret float -0.000000
}
Transformation seems to be correct!

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

----------------------------------------
define float @minnum_float_p0_qnan() {
#0:
  %min = fmin float 0.000000, 0x7fc00000
  ret float %min
}
Transformation seems to be correct! (syntactically equal)

-- 15. InstSimplifyPass

----------------------------------------
define float @minnum_float_p0_qnan() {
#0:
  %min = fmin float 0.000000, 0x7fc00000
  ret float %min
}
=>
define float @minnum_float_p0_qnan() {
#0:
  ret float 0.000000
}
Transformation seems to be correct!

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

----------------------------------------
define float @minnum_float_qnan_p0() {
#0:
  %min = fmin float 0x7fc00000, 0.000000
  ret float %min
}
Transformation seems to be correct! (syntactically equal)

-- 19. InstSimplifyPass

----------------------------------------
define float @minnum_float_qnan_p0() {
#0:
  %min = fmin float 0x7fc00000, 0.000000
  ret float %min
}
=>
define float @minnum_float_qnan_p0() {
#0:
  ret float 0.000000
}
Transformation seems to be correct!

-- 20. PassManager<Function> : Skipping NOP
-- 21. PassManager<Function> : Skipping NOP
-- 22. InstSimplifyPass

----------------------------------------
define float @minnum_float_p0_snan() {
#0:
  %min = fmin float 0.000000, 0x7fa00000
  ret float %min
}
Transformation seems to be correct! (syntactically equal)

-- 23. InstSimplifyPass

----------------------------------------
define float @minnum_float_p0_snan() {
#0:
  %min = fmin float 0.000000, 0x7fa00000
  ret float %min
}
=>
define float @minnum_float_p0_snan() {
#0:
  ret float 0x7fe00000
}
Transformation doesn't verify! (unsound)
ERROR: Value mismatch

NOTE: The counterexample is unique.

Example:

Source:
float %min = #x00000000 (+0.0)

Target:
Source value: #x00000000 (+0.0)
Target value: #x7fe00000 (QNaN)

Pass: InstSimplifyPass
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' '-passes=instsimplify' '-S' '-tv-smt-to=20000' '-tv-report-dir=/home/nlopes/alive2/build/logs' '-tv-smt-stats'

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

------------------- SMT STATS -------------------
Num queries: 16
Num invalid: 0
Num skips:   0
Num trivial: 36 (69.2%)
Num timeout: 0 (0.0%)
Num errors:  0 (0.0%)
Num SAT:     14 (87.5%)
Num UNSAT:   2 (12.5%)
Alive2: Transform doesn't verify; aborting!

stderr:

Transforms/InstSimplify/ConstProp/min-max.ll' FAILED ********************
Exit Code: 2

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

--

 

<-- Back