Implement Soroban integer width rounding feature (#1805)#1810
Conversation
…1805) Signed-off-by: Pratyksh Gupta <pratykshgupta9999@gmail.com>
|
@guptapratykshh It looks good, but will need some |
…cs tests Signed-off-by: Pratyksh Gupta <pratykshgupta9999@gmail.com>
|
Added the test cases for the integer width rounding feature @salaheldinsoliman Please look into this |
|
@guptapratykshh You need to make sure tests are passing. Some CI tests will fail, like VSCode, polkadot and anchor integration tests |
…fined_variable_detection test Signed-off-by: Pratyksh Gupta <pratykshgupta9999@gmail.com>
f57b10c to
08fba39
Compare
Signed-off-by: Pratyksh Gupta <pratykshgupta9999@gmail.com>
…havior Signed-off-by: Pratyksh Gupta <pratykshgupta9999@gmail.com>
|
Please look into this @salaheldinsoliman |
|
@guptapratykshh Tests are still failing, could you make sure they pass by running |
…nalyzer behavior Signed-off-by: Pratyksh Gupta <pratykshgupta9999@gmail.com>
Signed-off-by: Pratyksh Gupta <pratykshgupta9999@gmail.com>
Signed-off-by: Pratyksh Gupta <pratykshgupta9999@gmail.com>
|
@salaheldinsoliman All the test have been passed and i have also checked it locally. Please have a look at it |
| generate_debug_information: false, | ||
| log_runtime_errors: false, | ||
| log_prints: true, | ||
| strict_soroban_types: false, |
There was a problem hiding this comment.
@guptapratykshh Looks good now, however why is that file changed?
This seems not related to this PR
There was a problem hiding this comment.
made the change please look into this @salaheldinsoliman
30e435e to
8a1f00b
Compare
…detection test Signed-off-by: Pratyksh Gupta <pratykshgupta9999@gmail.com>
8a1f00b to
ce62df8
Compare
|
Plaese look into this , i think everything is sorted in this PR @salaheldinsoliman |
c63cfcc
into
hyperledger-solang:main
…1805) (hyperledger-solang#1810) ## Description This PR adds automatic rounding of integer widths to Soroban-compatible sizes when developers use unsupported integer types like `int56` or `uint72`. ### Key Changes Automatic Rounding - int56 → int64, uint72 → uint128, etc. Warning Messages - Shows exact warnings for non-compatible widths Strict Mode Flag - `--strict-soroban-types` turns warnings into errors Soroban-Only - Only applies when targeting Soroban runtime Fixes hyperledger-solang#1805 --------- Signed-off-by: Pratyksh Gupta <pratykshgupta9999@gmail.com> Co-authored-by: salaheldinsoliman <49910731+salaheldinsoliman@users.noreply.github.com> Signed-off-by: Pratyksh Gupta <pratykshgupta9999@gmail.com>
Description
This PR adds automatic rounding of integer widths to Soroban-compatible sizes when developers use unsupported integer types like
int56oruint72.Key Changes
Automatic Rounding - int56 → int64, uint72 → uint128, etc.
Warning Messages - Shows exact warnings for non-compatible widths
Strict Mode Flag -
--strict-soroban-typesturns warnings into errorsSoroban-Only - Only applies when targeting Soroban runtime
Fixes #1805