Skip to content

Conversation

@FabrizioSandri
Copy link

@FabrizioSandri FabrizioSandri commented Aug 30, 2022

This PR adds a new Github Action which runs RcppDeepState+valgrind on your package. That means the C++ functions of your package will be tested with random inputs, and there will be a comment like this one for each new PR (which reports if valgrind found any issues with random inputs).

RcppDeepState Analysis

This package contains problems, according to RcppDeepState. The report was generated by RcppDeepState-action in this repository's fork and is accessible here.

@FabrizioSandri
Copy link
Author

RcppDeepState Report

function name message file line address trace R code
get_indices 69 bytes in 1 blocks are possibly lost in loss record 20 of 1,235 get_indices.cpp:27 No Address Trace found
Test code
testlist <- list(window_size = -420831491L, y_var = c(4.88879976103856e-259, -3.74148631955123e+158, -8.68017949607352e+222, 1.27290391436132e-221, 2.99481293622956e-153, -9.61260251684145e-139, 3.04962798167513e-33, -1.70162462401214e+244, -1.00169554850048e-229, 8.71737275775649e-103, -5.59115037104392e+48, 6.12223002900886e+201, -2.25013175267502e-205, 1.76582186997149e-82, 3.77485118631809e-283, 1.63703591164514e-254, 2.08032232417705e+254, -6.58193733220239e-301, -1.4867258239211e-103, -2.6650817352525e+215, -2.82059619202613e-19, 3.08734749914323e-161, -2.06022569481939e+177, -6.94962285741889e-136, 2.36309568261133e+82, -8.56329735598344e+25, 1.69152552965144e-293, -9.46208189831619e-244, -3.60115333311301e-12, -1.18880013965509e-70, -9.32571960676988e-27, 2.93719628406907e-149, 2.08081987322129e+51, 1.18648948977304e-260, -1.41412109041076e-18, -4.91584729980226e-188, -1.03949507715867e+169, 2.36309568261133e+82, -9.0312254650476e-204, 2.91214884297269e-126, -7.27629972179955e+188, 1.39628935755223e+280, -2.42314843172942e-168, 8.50801151575043e+235, Inf, -6.93653182140752e-34, 2.91261556534487e-67, -1.60700929355339e+114, 2.40841493657249e+67, 2.36309568261133e+82, -4.2237670290983e+36, 7.04426922132799e-246, 2.91207425146468e-263, -1.23055520222352e-42, 1.21105021085665e+151, -2.3572760451338e+147, 1.23410414182837e+33, 2.40166826730242e+191, 4.32199559822934e+201, -1.4161943373386e+122, 1.52460489163692e+231, 2.89773796589459e-209, 9.78345917266935e+74, 1.22896298547415e-89, 4.32851990964564e-157, -1.30658592366788e-86, -8.95210655859932e-219, -0.0481828892599866, -2.13449149435189e-80, 6.28699187047111e+51, 1.52339508292599e+197, 8.86199820702741e+307, NaN, -1.05209601867753e+183, -1.0182497094124e-215, -1.24059860581122e+31, 9.80322474270019e-29, -5.76152381489481e+270, -4.11369429843827e-213, 3.99296416975552e+105, -298574948182245568, -2.20237822658081e-147, -1.63020906855208e+123, -1.30812478856747e+124, 1.12743484569219e+229, 1.12909535096894e-91, -3.54672790454571e+222, -1.32808153355936e-220, 2.98686158698593e+170, 2.45038731949824e+304, 1.67164386301626e+267, -4.12224358580439e+151, -Inf, -6.54712569203651e-17, 1210986763109.63, 1.13286925086496e-82, 0))
result <- do.call(PAutilities:::get_indices, testlist)

Analyzed functions summary

function name tested inputs inputs with issues
get_indices 3 1
rolling_groups 3 0

Report details

  • Report generated by: a07d007
  • Inputs generator seed: 1661798893

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.

1 participant