Skip to content

Conversation

@FabrizioSandri
Copy link
Contributor

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
Contributor Author

RcppDeepState Report

function name message file line address trace R code
fastLR_ 40 bytes in 1 blocks are definitely lost in loss record 14 of 1,327 fastLR.cpp:21 No Address Trace found
Test code
testlist <- list(eps_f = -6.66284827885738e-264, eps_g = 3.55529587513759e+92,     maxit = -1327694399L, start = c(4.48724710473075e-111, 4.31861121503217e-294,     -3.98067471350023e-170, 8.11850643938829e+22, 4.15467985828801e-132,     1.24666065822502e+258, -6.68389332687448e+258, -1.37352025762477e+224,     4.71494624674284e+204, 2.14894714097474e+24, 5.12996130149262e-290,     1.97385230897664e+188, 2.06974147671857e+47, -5.22837169014204e-80,     2.1343964171868e-11, 1.2700116176813e+94, -3.18243702987962e-214,     8.06142916880622e-237, 3.41404667626849e-89, -1.31405259066093e-239,     -7.49018826012388e-261, -3.79686587943697e+304, -5.20403049255354e+60,     -2.10200531376198e+239, NaN, -8.1836325021983e-06, -1.20587618228842e+228,     9.56307625681997e+145, -7.19633281155603e-68, 4.99599459827399e-09,     -4.41675916837834e+297, -1.91624120719756e-300, -2.52784275322446e-195,     -1.88804038843116e-24, -7.38684225924385e+134, -6.75805727286057e+100,     -4.54217265973195e-35, 3.94872044790482e+306, 1.04306774631133e+144,     3.49049921373615e+256, 3.13746537178403e+115, 2.36394023875105e-164,     3.71980258045422e+181, 1.08971097988622e-263, -2.81909035177892e+102,     3.41140845150012e-224, -5.86256213374918e-295, 5.57460257169381e+160,     3.97364361735435e-53, 1559822623856246, NaN, -3.57715007443691e-72,     -1.63747685523825e-141, 3.42808439549294e+44, -1.01997966614216e-196,     3.02655101350707e+74, -5.10044437513168e-197, 3.41404667626849e-89,     1.77918886164735e+292, 6.37484756549898e-205, -4.26953948460627e-93,     -1.09819852866585e-260, Inf, -2148522171300.51, -1.34523685845076e-216,     -1.91574698387284e-205, 4.11109680298161e-28, -1.03012713824494e+112,     -9.06224306835497e-21, 4.43255742507295e+71, -1.41353999810361e+137,     1.2408510320482e+238, -1.22994131750281e-240, -9.0812404669827e+113,     2.07822794369846e-06, 8.99058955866968e-135, 6.35933736480933e-172,     3.51339240847842e+159, -9.87213366981221e+302, -1.91474574571697e-266,     1.02140190081662e+158, -23245352229.7841, 1.54224603252903e+271,     0), x = structure(c(5.58809035284275e-303, 2.6166835521881e+75,     1.74342196726158e+184, 1.85651730114053e-44, 2.12826610075149e+277,     7.7610854145061e-246, 6.23647568503969e-130, 1.00935505620221e+56,     4.71251264414322e+227, 4.63083209386273e-56, 2.67573732409962e-202,     2.10311190164353e-179, 1.17435854319038e-292, 2.38450733066116e-172,     2.6562658194011e-46, 6.2911110143217e-197, 5.74179419392018e+88,     4.40724585412544e+58, 2.92847225292039e+191, 1.51368719408855e+152,     1.12242158903093e-34, 1.49947467585755e+171, 8.76903753728555e-259,     4.8058711366693e-220, 1.66071802333067e+142, 4.7271083046117e-124,     9.75756105402663e-132, 3.72310790352941e-165, 1.58511813224329e-44,     1.98532652818555e-222, 1.84500125360562e+261, 2.25213150292045e+148,     4.39816064905221e-79, 1.7001826389053e+284, 2.6411663122697e+241    ), .Dim = c(5L, 7L)), y = c(1.19490431165444e-267, 6.84098281567064e+263,     2.78109554338416e-132, -Inf, -2.73360491537422e+169, -2.10439326873164e-36,     1.00743754709235e+130, 2.73764081015365e-57, 2.50581041428782e-228,     1.79236289895566e+294, 1.14041959768404e-274, 1.79236289895566e+294,     -1.49177792537163e-170, -4.33537164261393e+119, 8.15392522545391e-111,     -2.47175629731111e-288, 9.60035941380218e+138, -1.74925009847061e-63,     7.07951503272391e-36, 1.07140854944011e-86, 1.79236289895566e+294,     -8.47308650609568e+256, -1.31505917259107e+151, 4.67284127826283e+181,     -6155410.94152849, -1.36239130529474e-176, NaN))
result <- do.call(RcppNumerical:::fastLR_, testlist)

Analyzed functions summary

function name tested inputs inputs with issues
fastLR_ 3 3

Report details

  • Report generated by: 7a6457f
  • Inputs generator seed: 1681297170

@yixuan yixuan merged commit da0ffc8 into yixuan:master Apr 13, 2023
@yixuan
Copy link
Owner

yixuan commented Apr 13, 2023

Looks interesting and useful. Thanks for building the action.

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