mdsteiner / EFAtools

GNU General Public License v3.0
10 stars 3 forks source link

Analyze the package with RcppDeepState #68

Open FabrizioSandri opened 2 years ago

FabrizioSandri commented 2 years ago

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 commented 2 years ago

RcppDeepState Report

function name message file line address trace R code
factor_corres 53 bytes in 1 blocks are possibly lost in loss record 18 of 1,294 factor_corres.cpp:37 No Address Trace found
Test code
testlist <- list(thresh = 1.22699589828999e-23, x = structure(c(5.15702736126211e+262, 1.03483689907204e+100, 4.87527183960461e-25, 1.59025217997469e-230, 9.07587383293201e+266, 6.8552428931963e-84, 1.09610315566683e-208, 2.106562408177e+31, 1.95593778094164e-143, 7.03237502352391e-266, 1.31227139504525e+62, 7.842711004958e-31, 2.06908645814389e-257, 4.18324592966499e+151, 1.32920645756522e+81, 1.4753090770082e+38, 4.0026344248145e-150, 4.11456437933257, 3.16843969409385e-189, 8.6299541817507e+306, 1.33973654554489e+169, 7.38566008125937e-218, 1.39449612049879e+147, 4.88757073619154e-199, 1.53973824526652e+108), .Dim = c(5L, 5L)), y = structure(c(6.25290088921534e+307, 1.02159806864139e+37, 6.19733864503105e-231), .Dim = c(1L, 3L)))
result <- do.call(EFAtools:::factor_corres, testlist)
parallel_sim 100 bytes in 1 blocks are possibly lost in loss record 25 of 1,293 parallel.cpp:24 No Address Trace found
Test code
testlist <- list(N = 1431507280L, eigen_type = -1830237076L, maxit = 785318464L,     n_datasets = -1005056107L, n_vars = 334444604L)
result <- do.call(EFAtools:::parallel_sim, testlist)

Analyzed functions summary

function name tested inputs inputs with issues
factor_corres 3 1
parallel_sim 3 3

Report details