Test source: git
Source: <stdin> -- 1. ModuleToFunctionPassAdaptor ERROR: Unsupported instruction: store volatile double %fpext, ptr undef, align 8 -- 1. PassManager<Function> : Skipping NOP -- 2. InstCombinePass ---------------------------------------- declare float @fabsf(float) define float @replace_fabs_call_f32(float %x) { #0: %fabsf = fabs float %x ret float %fabsf } Transformation seems to be correct! (syntactically equal) -- 3. InstCombinePass ---------------------------------------- declare float @fabsf(float) define float @replace_fabs_call_f32(float %x) { #0: %fabsf = fabs float %x ret float %fabsf } => define float @replace_fabs_call_f32(float %x) { #0: %fabsf = fabs float %x ret float %fabsf } Transformation seems to be correct! -- 4. PassManager<Function> : Skipping NOP -- 5. PassManager<Function> : Skipping NOP -- 6. InstCombinePass ---------------------------------------- declare double @fabs(double) define double @replace_fabs_call_f64(double %x) { #0: %fabs = fabs double %x ret double %fabs } Transformation seems to be correct! (syntactically equal) -- 7. InstCombinePass ---------------------------------------- declare double @fabs(double) define double @replace_fabs_call_f64(double %x) { #0: %fabs = fabs double %x ret double %fabs } => define double @replace_fabs_call_f64(double %x) { #0: %fabs = fabs double %x ret double %fabs } Transformation seems to be correct! -- 8. PassManager<Function> : Skipping NOP -- 9. PassManager<Function> : Skipping NOP -- 10. InstCombinePass ---------------------------------------- declare fp128 @fabsl(fp128) define fp128 @replace_fabs_call_f128(fp128 %x) { #0: %fabsl = tail call fp128 @fabsl(fp128 %x) ret fp128 %fabsl } Transformation seems to be correct! (syntactically equal) -- 11. InstCombinePass ---------------------------------------- declare fp128 @fabsl(fp128) define fp128 @replace_fabs_call_f128(fp128 %x) { #0: %fabsl = tail call fp128 @fabsl(fp128 %x) ret fp128 %fabsl } => define fp128 @replace_fabs_call_f128(fp128 %x) { #0: %fabsl = fabs fp128 %x ret fp128 %fabsl } Transformation doesn't verify! (not unsound) ERROR: Couldn't prove the correctness of the transformation Alive2 approximated the semantics of the programs and therefore we cannot conclude whether the bug found is valid or not. Approximations done: - Unknown libcall: @fabsl -- 12. PassManager<Function> : Skipping NOP -- 13. PassManager<Function> : Skipping NOP -- 14. InstCombinePass ---------------------------------------- declare float @fabsf(float) define float @fmf_replace_fabs_call_f32(float %x) { #0: %fabsf = fabs nnan float %x ret float %fabsf } Transformation seems to be correct! (syntactically equal) -- 15. InstCombinePass ---------------------------------------- declare float @fabsf(float) define float @fmf_replace_fabs_call_f32(float %x) { #0: %fabsf = fabs nnan float %x ret float %fabsf } => define float @fmf_replace_fabs_call_f32(float %x) { #0: %fabsf = fabs nnan float %x ret float %fabsf } Transformation seems to be correct! -- 16. PassManager<Function> : Skipping NOP -- 17. PassManager<Function> : Skipping NOP -- 18. InstCombinePass ---------------------------------------- define float @square_fabs_intrinsic_f32(float %x) { #0: %mul = fmul float %x, %x %fabsf = fabs float %mul ret float %fabsf } Transformation seems to be correct! (syntactically equal) -- 19. InstCombinePass ---------------------------------------- define float @square_fabs_intrinsic_f32(float %x) { #0: %mul = fmul float %x, %x %fabsf = fabs float %mul ret float %fabsf } Transformation seems to be correct! (syntactically equal) -- 20. PassManager<Function> : Skipping NOP -- 21. PassManager<Function> : Skipping NOP -- 22. InstCombinePass ---------------------------------------- define double @square_fabs_intrinsic_f64(double %x) { #0: %mul = fmul double %x, %x %fabs = fabs double %mul ret double %fabs } Transformation seems to be correct! (syntactically equal) -- 23. InstCombinePass ---------------------------------------- define double @square_fabs_intrinsic_f64(double %x) { #0: %mul = fmul double %x, %x %fabs = fabs double %mul ret double %fabs } Transformation seems to be correct! (syntactically equal) -- 24. PassManager<Function> : Skipping NOP -- 25. PassManager<Function> : Skipping NOP -- 26. InstCombinePass ---------------------------------------- define fp128 @square_fabs_intrinsic_f128(fp128 %x) { #0: %mul = fmul fp128 %x, %x %fabsl = fabs fp128 %mul ret fp128 %fabsl } Transformation seems to be correct! (syntactically equal) -- 27. InstCombinePass ---------------------------------------- define fp128 @square_fabs_intrinsic_f128(fp128 %x) { #0: %mul = fmul fp128 %x, %x %fabsl = fabs fp128 %mul ret fp128 %fabsl } Transformation seems to be correct! (syntactically equal) -- 28. PassManager<Function> : Skipping NOP -- 29. PassManager<Function> : Skipping NOP -- 30. InstCombinePass ---------------------------------------- define float @square_nnan_fabs_intrinsic_f32(float %x) { #0: %mul = fmul nnan float %x, %x %fabsf = fabs float %mul ret float %fabsf } Transformation seems to be correct! (syntactically equal) -- 31. InstCombinePass ---------------------------------------- define float @square_nnan_fabs_intrinsic_f32(float %x) { #0: %mul = fmul nnan float %x, %x %fabsf = fabs float %mul ret float %fabsf } => define float @square_nnan_fabs_intrinsic_f32(float %x) { #0: %mul = fmul nnan float %x, %x ret float %mul } Transformation seems to be correct! -- 32. PassManager<Function> : Skipping NOP -- 33. PassManager<Function> : Skipping NOP -- 34. InstCombinePass ---------------------------------------- declare double @fabs(double) define float @square_fabs_shrink_call1(float %x) { #0: %ext = fpext float %x to double %sq = fmul double %ext, %ext %fabs = fabs double %sq %trunc = fptrunc double %fabs to float ret float %trunc } Transformation seems to be correct! (syntactically equal) -- 35. InstCombinePass ---------------------------------------- declare double @fabs(double) define float @square_fabs_shrink_call1(float %x) { #0: %ext = fpext float %x to double %sq = fmul double %ext, %ext %fabs = fabs double %sq %trunc = fptrunc double %fabs to float ret float %trunc } => define float @square_fabs_shrink_call1(float %x) { #0: %#1 = fmul float %x, %x %trunc = fabs float %#1 ret float %trunc } Transformation doesn't verify! (not unsound) ERROR: Timeout -- 36. PassManager<Function> : Skipping NOP -- 37. PassManager<Function> : Skipping NOP -- 38. InstCombinePass ---------------------------------------- declare double @fabs(double) define float @square_fabs_shrink_call2(float %x) { #0: %sq = fmul float %x, %x %ext = fpext float %sq to double %fabs = fabs double %ext %trunc = fptrunc double %fabs to float ret float %trunc } Transformation seems to be correct! (syntactically equal) -- 39. InstCombinePass ---------------------------------------- declare double @fabs(double) define float @square_fabs_shrink_call2(float %x) { #0: %sq = fmul float %x, %x %ext = fpext float %sq to double %fabs = fabs double %ext %trunc = fptrunc double %fabs to float ret float %trunc } => define float @square_fabs_shrink_call2(float %x) { #0: %sq = fmul float %x, %x %#1 = fabs float %sq ret float %#1 } Transformation doesn't verify! (not unsound) ERROR: Timeout -- 40. PassManager<Function> : Skipping NOP -- 41. PassManager<Function> : Skipping NOP -- 42. InstCombinePass ---------------------------------------- define float @fabs_select_constant_negative_positive(i32 %c) { #0: %cmp = icmp eq i32 %c, 0 %select = select i1 %cmp, float -1.000000, float 2.000000 %fabs = fabs float %select ret float %fabs } Transformation seems to be correct! (syntactically equal) -- 43. InstCombinePass ---------------------------------------- define float @fabs_select_constant_negative_positive(i32 %c) { #0: %cmp = icmp eq i32 %c, 0 %select = select i1 %cmp, float -1.000000, float 2.000000 %fabs = fabs float %select ret float %fabs } => define float @fabs_select_constant_negative_positive(i32 %c) { #0: %cmp = icmp eq i32 %c, 0 %fabs = select i1 %cmp, float 1.000000, float 2.000000 ret float %fabs } Transformation seems to be correct! -- 44. PassManager<Function> : Skipping NOP -- 45. PassManager<Function> : Skipping NOP -- 46. InstCombinePass ---------------------------------------- define float @fabs_select_constant_positive_negative(i32 %c) { #0: %cmp = icmp eq i32 %c, 0 %select = select i1 %cmp, float 1.000000, float -2.000000 %fabs = fabs float %select ret float %fabs } Transformation seems to be correct! (syntactically equal) -- 47. InstCombinePass ---------------------------------------- define float @fabs_select_constant_positive_negative(i32 %c) { #0: %cmp = icmp eq i32 %c, 0 %select = select i1 %cmp, float 1.000000, float -2.000000 %fabs = fabs float %select ret float %fabs } => define float @fabs_select_constant_positive_negative(i32 %c) { #0: %cmp = icmp eq i32 %c, 0 %fabs = select i1 %cmp, float 1.000000, float 2.000000 ret float %fabs } Transformation seems to be correct! -- 48. PassManager<Function> : Skipping NOP -- 49. PassManager<Function> : Skipping NOP -- 50. InstCombinePass ---------------------------------------- define float @fabs_select_constant_negative_negative(i32 %c) { #0: %cmp = icmp eq i32 %c, 0 %select = select i1 %cmp, float -1.000000, float -2.000000 %fabs = fabs float %select ret float %fabs } Transformation seems to be correct! (syntactically equal) -- 51. InstCombinePass ---------------------------------------- define float @fabs_select_constant_negative_negative(i32 %c) { #0: %cmp = icmp eq i32 %c, 0 %select = select i1 %cmp, float -1.000000, float -2.000000 %fabs = fabs float %select ret float %fabs } => define float @fabs_select_constant_negative_negative(i32 %c) { #0: %cmp = icmp eq i32 %c, 0 %fabs = select i1 %cmp, float 1.000000, float 2.000000 ret float %fabs } Transformation seems to be correct! -- 52. PassManager<Function> : Skipping NOP -- 53. PassManager<Function> : Skipping NOP -- 54. InstCombinePass ---------------------------------------- define float @fabs_select_constant_neg0(i32 %c) { #0: %cmp = icmp eq i32 %c, 0 %select = select i1 %cmp, float -0.000000, float 0.000000 %fabs = fabs float %select ret float %fabs } Transformation seems to be correct! (syntactically equal) -- 55. InstCombinePass ---------------------------------------- define float @fabs_select_constant_neg0(i32 %c) { #0: %cmp = icmp eq i32 %c, 0 %select = select i1 %cmp, float -0.000000, float 0.000000 %fabs = fabs float %select ret float %fabs } => define float @fabs_select_constant_neg0(i32 %c) { #0: ret float 0.000000 } Transformation seems to be correct! -- 56. PassManager<Function> : Skipping NOP -- 57. PassManager<Function> : Skipping NOP -- 58. InstCombinePass ---------------------------------------- define float @fabs_select_var_constant_negative(i32 %c, float %x) { #0: %cmp = icmp eq i32 %c, 0 %select = select i1 %cmp, float %x, float -1.000000 %fabs = fabs float %select ret float %fabs } Transformation seems to be correct! (syntactically equal) -- 59. InstCombinePass ---------------------------------------- define float @fabs_select_var_constant_negative(i32 %c, float %x) { #0: %cmp = icmp eq i32 %c, 0 %select = select i1 %cmp, float %x, float -1.000000 %fabs = fabs float %select ret float %fabs } => define float @fabs_select_var_constant_negative(i32 %c, float %x) { #0: %cmp = icmp eq i32 %c, 0 %#1 = fabs float %x %fabs = select i1 %cmp, float %#1, float 1.000000 ret float %fabs } Transformation seems to be correct! -- 60. PassManager<Function> : Skipping NOP -- 61. PassManager<Function> : Skipping NOP -- 62. InstCombinePass ---------------------------------------- define float @square_fma_fabs_intrinsic_f32(float %x) { #0: %fma = fma float %x, float %x, float 1.000000 %fabsf = fabs float %fma ret float %fabsf } Transformation seems to be correct! (syntactically equal) -- 63. InstCombinePass ---------------------------------------- define float @square_fma_fabs_intrinsic_f32(float %x) { #0: %fma = fma float %x, float %x, float 1.000000 %fabsf = fabs float %fma ret float %fabsf } Transformation seems to be correct! (syntactically equal) -- 64. PassManager<Function> : Skipping NOP -- 65. PassManager<Function> : Skipping NOP -- 66. InstCombinePass ---------------------------------------- define float @square_nnan_fma_fabs_intrinsic_f32(float %x) { #0: %fma = fma nnan float %x, float %x, float 1.000000 %fabsf = fabs float %fma ret float %fabsf } Transformation seems to be correct! (syntactically equal) -- 67. InstCombinePass ---------------------------------------- define float @square_nnan_fma_fabs_intrinsic_f32(float %x) { #0: %fma = fma nnan float %x, float %x, float 1.000000 %fabsf = fabs float %fma ret float %fabsf } => define float @square_nnan_fma_fabs_intrinsic_f32(float %x) { #0: %fma = fma nnan float %x, float %x, float 1.000000 ret float %fma } Transformation doesn't verify! (not unsound) ERROR: Timeout -- 68. PassManager<Function> : Skipping NOP -- 69. PassManager<Function> : Skipping NOP -- 70. InstCombinePass ---------------------------------------- define float @square_fmuladd_fabs_intrinsic_f32(float %x) { #0: %fmuladd = fmuladd float %x, float %x, float 1.000000 %fabsf = fabs float %fmuladd ret float %fabsf } Transformation seems to be correct! (syntactically equal) -- 71. InstCombinePass ---------------------------------------- define float @square_fmuladd_fabs_intrinsic_f32(float %x) { #0: %fmuladd = fmuladd float %x, float %x, float 1.000000 %fabsf = fabs float %fmuladd ret float %fabsf } Transformation seems to be correct! (syntactically equal) -- 72. PassManager<Function> : Skipping NOP -- 73. PassManager<Function> : Skipping NOP -- 74. InstCombinePass ---------------------------------------- define float @square_nnan_fmuladd_fabs_intrinsic_f32(float %x) { #0: %fmuladd = fmuladd nnan float %x, float %x, float 1.000000 %fabsf = fabs float %fmuladd ret float %fabsf } Transformation seems to be correct! (syntactically equal) -- 75. InstCombinePass ---------------------------------------- define float @square_nnan_fmuladd_fabs_intrinsic_f32(float %x) { #0: %fmuladd = fmuladd nnan float %x, float %x, float 1.000000 %fabsf = fabs float %fmuladd ret float %fabsf } => define float @square_nnan_fmuladd_fabs_intrinsic_f32(float %x) { #0: %fmuladd = fmuladd nnan float %x, float %x, float 1.000000 ret float %fmuladd } Transformation doesn't verify! (not unsound) ERROR: Timeout -- 76. PassManager<Function> : Skipping NOP -- 77. PassManager<Function> : Skipping NOP ERROR: Unsupported instruction: store volatile double %fpext, ptr undef, align 8 -- 78. InstCombinePass ERROR: Unsupported instruction: store volatile double %fpext, ptr undef, align 8 -- 79. InstCombinePass ERROR: Unsupported instruction: store volatile double %fpext, ptr undef, align 8 -- 80. PassManager<Function> : Skipping NOP ERROR: Unsupported instruction: store volatile double %fpext, ptr undef, align 8 -- 81. PassManager<Function> : Skipping NOP -- 82. InstCombinePass ---------------------------------------- define double @select_fcmp_ole_zero(double %x) { #0: %lezero = fcmp ole double %x, 0.000000 %negx = fsub double 0.000000, %x %fabs = select i1 %lezero, double %negx, double %x ret double %fabs } Transformation seems to be correct! (syntactically equal) -- 83. InstCombinePass ---------------------------------------- define double @select_fcmp_ole_zero(double %x) { #0: %lezero = fcmp ole double %x, 0.000000 %negx = fsub double 0.000000, %x %fabs = select i1 %lezero, double %negx, double %x ret double %fabs } => define double @select_fcmp_ole_zero(double %x) { #0: %fabs = fabs double %x ret double %fabs } Transformation doesn't verify! (unsound) ERROR: Value mismatch Example: double %x = #xfff0000000000004 (SNaN) Source: i1 %lezero = #x0 (0) double %negx = #x7ff0000000000004 (SNaN) double %fabs = #xfff0000000000004 (SNaN) Target: double %fabs = #x7ff0000000000004 (SNaN) Source value: #xfff0000000000004 (SNaN) Target value: #x7ff0000000000004 (SNaN) Pass: InstCombinePass 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' '-mtriple=x86_64-unknown-linux-gnu' '-passes=instcombine' '-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_A3ahtjYk_Pznr.bc" ------------------- SMT STATS ------------------- Num queries: 68 Num invalid: 0 Num skips: 0 Num trivial: 56 (45.2%) Num timeout: 4 (5.9%) Num errors: 0 (0.0%) Num SAT: 40 (58.8%) Num UNSAT: 24 (35.3%) Alive2: Transform doesn't verify; aborting!
RUN: at line 2: /home/nlopes/alive2/build/opt-alive.sh -mtriple=x86_64-unknown-linux-gnu < /bitbucket/nlopes/llvm/llvm/test/Transforms/InstCombine/fabs.ll -passes=instcombine -S | /bitbucket/nlopes/llvm/build/bin/FileCheck /bitbucket/nlopes/llvm/llvm/test/Transforms/InstCombine/fabs.ll + /home/nlopes/alive2/build/opt-alive.sh -mtriple=x86_64-unknown-linux-gnu -passes=instcombine -S + /bitbucket/nlopes/llvm/build/bin/FileCheck /bitbucket/nlopes/llvm/llvm/test/Transforms/InstCombine/fabs.ll FileCheck error: '<stdin>' is empty. FileCheck command line: /bitbucket/nlopes/llvm/build/bin/FileCheck /bitbucket/nlopes/llvm/llvm/test/Transforms/InstCombine/fabs.ll