Skip to content

Conversation

@FabrizioSandri
Copy link
Member

RcppDeepState Analysis

This pull request aims to find bugs in this R package using RcppDeepState-action

@github-actions
Copy link

RcppDeepState Report

function name message file line address trace R code
PSNE_sparseMat_cross 42 bytes in 1 blocks are possibly lost in loss record 14 of 1,235 PSNE_sparseMat.cpp:52 No Address Trace found
Test code
testlist <- list(NS = c(9.15733070247223e-165, -1.49693490510091e+115, -6.04181402110962e-170, NaN, -1.44560572882542e-220, -3.45858707897183e-144, 3.64231664861306e+126, -6.87318868489412e-240, 7.9257016027888e+254, -Inf, 2.38211289466188e-06, 2.23298914836101e+178, 6.65534812112774e+205, -9.02505333397364e+180, 2.66967437993791e+131, -6.99102952950874e-198, NaN, 6.08130746252712e+265, NA, -1.45320583890441e+276, 7.86500357004134e+59, -2.6893809723494e-290, -2.94626999207451e-231, -4.79205681297458e-55, -4.99372010405044e-17, 0), Poffs = structure(c(3.40285885060725e+107, -1.6709144243827e+62, 1.08583345667101e-62, 1.06697787164567e+70, 9.81931669829673e+260, NA, -1.6709144243827e+62, 6.57934906787336e-264, 2.83203847561097e+94, 7.81756727727357e-110, 1.35210490369349e-93, 6.84195413404552e+192, 1.65552719267424, 7.6153226473031e-147, 4.77060869509215e-147, 2.86428420998545e-96, 1.48071405368838e+146, 8.87494095547449e-274, -Inf, 1.73238794741956e+99, 2.84961246812286e+35, -1.6709144243827e+62, 6.75900584015986e-117, 1.13131039996827e+27), .Dim = c(6L, 4L)), combisim = structure(c(92L, 25L, 91L, 5L, 63L, 88L, 19L, 79L, 82L, 90L, 72L, 62L, 7L, 75L, 41L, 75L, 60L, 60L, 86L, 96L, 59L, 37L, 25L, 0L, 48L, 38L, 71L, 100L, 23L, 41L), .Dim = 6:5),     expindices = structure(c(53L, 10L, 8L, 95L, 98L, 67L, 22L,     76L, 7L, 38L, 70L, 89L, 15L, 21L, 56L, 34L, 32L, 66L, 22L,     100L, 35L, 3L, 44L, 25L, 88L, 21L, 72L, 54L, 36L, 9L, 18L,     23L, 97L, 19L, 16L, 43L, 56L, 43L, 71L, 60L, 70L, 76L, 63L,     19L, 9L, 88L, 45L, 32L), .Dim = c(6L, 8L)), ncross = 1760810720L)
result <- do.call(GPGame:::PSNE_sparseMat_cross, testlist)
PSNE_sparseMat_sorted 42 bytes in 1 blocks are possibly lost in loss record 14 of 1,297 PSNE_sparseMat_matrix.cpp:127 No Address Trace found
Test code
testlist <- list(NS = c(6.02508401259618e-130, 12879.1058092403, Inf, 3.49812219195863e-228, -1.46167245913265e+242, 91256.3568090094, -8.51950345558305e-285, 1.01300414350248e+239, 2.429384500477e+249, NA, 1.88466169329511e-295, 4.14747155894359e+96, 6.53961243591165e+63, -2.26899008992492e-166, -1.31943895427435e+45, 4.45227293937667e+83, 8.06808447974261e-100, -6.56452678867514e+205, -1.86715493797553e+75, 1.10735660011175e-214, 1.75415440470166e+163, 7.38021473306002e-55, -1.73648221447676e-12, -3.72141693920398e+119, 1.47167146009672e-129, NaN, -9.24976039800049e-190, NA, -2.87471911766234e-205, -8.29785997738113e-238, -2.36909490574284e+255, 6.46598611512105e-44, -3.91678559295976e-174, -6902294192.12046, -4.99646037277071e-306, 60152814946118.6, -2.9318844376342e-40, -2.5266992444144e+124, 0.171842726622121, -7.35346846093592e-41, 8.0046406764681e-44, -6.35981096208671e+89, -2.13195788020516e-125, 1.53750615758342e+247, -2.1475268403978e+230, -2.67903586938104e+86, -2.79663132481263e+144, 3.1795482626682e+60, -0.00119636523901388, -Inf, 3.39639981822269e-90, 4.00393191313099e-114, 1.82706890290448e+186, -3.44261786053644e-12, -1.66686292899292e-226, 0), Poffs = structure(c(-Inf, 9.98192720066734e+51, 1.79050248173459e+258, 30705479.1828635, 1.61039413841635e+222, 8.8202787768752e-138, 8.79030396822242e+95, 2.29538294559891e+77, 2.24857070494142e-42, 8.8202787768752e-138, 9.98658186761034e-145, 1.33701338820816e-292, 1.09324256209298e-182, 8.8202787768752e-138, 1.51419958075979e-248, 1.78157517390226e-124, 4.10934205796618e-125, 3.84428074203379e+91, 1.08441415254769e-135, 1.27958550839897e-35, 8.26278199797392e+146, 1.13150656995328e-10, 6.23581588474117e-78, 8.8202787768752e-138), .Dim = c(4L, 6L)),     expindices = structure(c(60L, 55L, 9L, 31L, 73L, 99L, 38L,     0L, 2052227544L, 39L, 14L, 56L, 2L, 67L, 13L, 63L, 70L, 53L,     66L, 54L, 4L, 41L, 76L, 4L, 33L, 2052227544L, 46L, 37L, 32L,     62L, 24L, 2052227544L, 51L, 15L, 2052227544L, 6L, 90L, 1L,     3L, 86L, 41L, 43L, 28L, 72L, 5L, 10L, 19L, NA, 42L, 86L), .Dim = c(5L,     10L)))
result <- do.call(GPGame:::PSNE_sparseMat_sorted, testlist)
nonDomSet Conditional jump or move depends on uninitialised value(s) domination.cpp:112 No Address Trace found
Test code
testlist <- list(points = structure(c(1.96656431428848e+107, 1.17634102755929e+221, 6.69243545679349e-37, 1.92431878355675e+96, 2.52059805996346e+98, 1.20699712123626e+129, 3.59996631337889e-39, 2.94904368743616e-36, 1.52754981262004e-123, 1.18868977829513e+44, 2.05941756999372e+156, 1.86502363935625e-173, 9.42735647544377e+244, 1.75170047678485e-261, 3.40320059806383e+129, 2.54644776112867e-289, 8.4015455182099e+164, 1.04170943125558e+245, 4.57417730259296e-60, 1.88600193237821e+280, 1.12118532433485e-26, 6.61377255624018e+53, 6.55466225221074e+103, 1.59987233689776e-282, 1.87585433005401e-122, 2.79986466517441e-157, 2.95400835301803e+103, 2.31105274589239e-52, 1.03410088758967e-238, 3.88811989392539e-113, 2033607590475154176, 9.01498550238572e+198, 2.10365542280328, 1.02383832472998e+141, 3.02446199094236e-46), .Dim = c(7L, 5L)), ref = structure(c(NaN, 1.16186296094888e+108, 1.01303348570699e+114, NA, 72.0854781239306, 2.71899593105725e-214, 8.00441546538435e+211, 8.32438162254688e+57, 1.24598242807916e-61, NA, NA, 6.09278466625975e-122, 2.42702170074016e-71, 1.64165231156726e+119), .Dim = c(7L, 2L)))
result <- do.call(GPGame:::nonDomSet, testlist)
rel_ranks_cpp Conditional jump or move depends on uninitialised value(s) KSeq.cpp:57 No Address Trace found
Test code
testlist <- list(Zrand = structure(c(1.96656431428848e+107, 1.17634102755929e+221, 6.69243545679349e-37, 1.92431878355675e+96, 2.52059805996346e+98, 1.20699712123626e+129, 3.59996631337889e-39, 2.94904368743616e-36, 1.52754981262004e-123, 1.18868977829513e+44, 2.05941756999372e+156, 1.86502363935625e-173, 9.42735647544377e+244, 1.75170047678485e-261, 3.40320059806383e+129, 2.54644776112867e-289, 8.4015455182099e+164, 1.04170943125558e+245, 4.57417730259296e-60, 1.88600193237821e+280, 1.12118532433485e-26, 6.61377255624018e+53, 6.55466225221074e+103, 1.59987233689776e-282, 1.87585433005401e-122, 2.79986466517441e-157, 2.95400835301803e+103, 2.31105274589239e-52, 1.03410088758967e-238, 3.88811989392539e-113, 2033607590475154176, 9.01498550238572e+198, 2.10365542280328, 1.02383832472998e+141, 3.02446199094236e-46), .Dim = c(7L, 5L)), Zred = structure(c(NaN, 1.16186296094888e+108, 1.01303348570699e+114, NA, 72.0854781239306, 2.71899593105725e-214, 8.00441546538435e+211, 8.32438162254688e+57, 1.24598242807916e-61, NA, NA, 6.09278466625975e-122, 2.42702170074016e-71, 1.64165231156726e+119), .Dim = c(7L, 2L)))
result <- do.call(GPGame:::rel_ranks_cpp, testlist)

Analyzed functions summary

function name tested inputs inputs with issues
PSNE_sparseMat 3 0
PSNE_sparseMat_cross 3 2
PSNE_sparseMat_sorted 3 2
getKS_cpp 3 0
nonDomInd_cpp 3 0
nonDomSet 3 2
rel_ranks_cpp 3 2

Report details

  • Report generated by: f2ac835
  • Inputs generator seed: 1663837264

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants