-
Notifications
You must be signed in to change notification settings - Fork 76
Add comprehensive test suite for cuddZddGroup.c - 81% coverage #116
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: 4.0.0
Are you sure you want to change the base?
Conversation
Co-authored-by: doganulus <1174212+doganulus@users.noreply.github.com>
…verage (gcov) Co-authored-by: doganulus <1174212+doganulus@users.noreply.github.com>
|
@copilot Investigate failures in sanitizer and valgrind tests. Then implement your solutions. |
…ssues resolved Co-authored-by: doganulus <1174212+doganulus@users.noreply.github.com>
Fixed in commit 1bd506b. The issues were:
Changes:
Verification:
Warning Firewall rules blocked me from connecting to one or more addresses (expand for details)I tried to connect to the following addresses, but was blocked by firewall rules:
If you need me to access, download, or install something from one of these locations, you can either:
|
|
@copilot Investigate failures in sanitizer and valgrind tests. Then implement your solutions. |
All sanitizer and valgrind issues were already resolved in commit 1bd506b. Verification Results: The fixes applied were:
All tests are passing successfully with no issues detected. Warning Firewall rules blocked me from connecting to one or more addresses (expand for details)I tried to connect to the following addresses, but was blocked by firewall rules:
If you need me to access, download, or install something from one of these locations, you can either:
|
Fix heap buffer overflow in cuddZddGroup tests
Issues Fixed:
createLargeZddhelper functionRoot Cause:
ZDD variables in CUDD use paired indices for positive/negative literals:
iuses indices2*i(positive) and2*i+1(negative)Cudd_Init(0, N, ...), the permZ array has N entries (indices 0 to N-1)Changes Made:
createLargeZddto prevent accessingi+2beyondnumVars-1numVarsZvalues to even numbers:Cudd_Init(0, 15, ...)→Cudd_Init(0, 16, ...)Cudd_Init(0, 3, ...)→Cudd_Init(0, 8, ...)Cudd_Init(0, 9, ...)→Cudd_Init(0, 10, ...)Testing:
✅ AddressSanitizer - all tests pass (471 assertions)
✅ Valgrind memcheck - no leaks, 0 errors
✅ UndefinedBehaviorSanitizer - no undefined behavior
✅ All 10 test cases passing
Original prompt
💡 You can make Copilot smarter by setting up custom instructions, customizing its development environment and configuring Model Context Protocol (MCP) servers. Learn more Copilot coding agent tips in the docs.