Skip to content

Analyze the package with RcppDeepState#16

Open
FabrizioSandri wants to merge 1 commit intojkrijthe:masterfrom
RcppDeepState:RcppDeepState
Open

Analyze the package with RcppDeepState#16
FabrizioSandri wants to merge 1 commit intojkrijthe:masterfrom
RcppDeepState:RcppDeepState

Conversation

@FabrizioSandri
Copy link

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 result

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
factor_to_dummy_cpp 100 bytes in 1 blocks are possibly lost in loss record 30 of 1,298 utils.cpp:67 No Address Trace found
Test code
testlist <- list(c = 1492245677L, y = c(-1107470257L, -2002625609L, -1683165209L, 596073611L, -1171068554L, 1147162463L, -2106555030L, 1625224733L, -598839964L, -238543988L, 1963619480L, -1831853236L, 34390854L, 1829938671L, -2111153694L, 156238053L, -1637004913L, 895753386L, 1854947840L, 1617251682L, 1913694431L, 575590053L, 2015922049L, 2022139414L, -189815254L, 331535490L, 1377272498L, 2093946094L, -541274878L, 178038659L, -1003617220L, -1234480470L, 452514862L, -1163284468L, -1070416324L, 47328225L, -1879514215L, -1802888104L, -1188981649L, -1931011674L, -537996134L, -1752914345L, -1218079815L, 935238342L, -1216454581L, 142386369L, -1657262039L, 524996863L, 950311375L, 692004576L, -1531340324L, 2016649775L, -1325237574L, 2132704028L, 1470908022L, -166300370L, -1173422621L, 1310966770L, -597897644L, -1871609023L, 1946090482L, 477564787L, 592833049L, 1801406245L, 1849952700L, 1741467203L, 696096953L, -300156319L, 435573814L, 1835248016L, -1198282461L, -202356639L, 877731227L, 516677191L, 1215692854L, -1829070677L, -252911267L, 1334570247L, 513157649L, -2039319878L, -997239326L, 1530145187L, -1440097732L, 594733076L, 1590260141L, 1415558259L, -169966468L, 1358378516L, -2037582111L, -1071676054L, 1214228332L, -779124689L))
result <- do.call(RSSL:::factor_to_dummy_cpp, testlist)

Analyzed functions summary

function name tested inputs inputs with issues
factor_to_dummy_cpp 3 3

Report details

  • Report generated by: 9080ee4
  • Inputs generator seed: 1679985397

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