Commit 8a7ffdb
authored
fix: improve AssertIsCrumb readability and add constant check
Add constant value check at the start of AssertIsCrumb to avoid unnecessary
constraint generation for compile-time constants. Use separate variable x
instead of overwriting input parameter for better code clarity. Add mathematical
comment explaining the polynomial constraint derivation, matching the SCS
implementation style.1 parent 4c62e1a commit 8a7ffdb
1 file changed
+14
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
78 | 78 | | |
79 | 79 | | |
80 | 80 | | |
81 | | - | |
82 | | - | |
83 | | - | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
84 | 95 | | |
85 | 96 | | |
86 | 97 | | |
| |||
0 commit comments