Vaivaswatha N

Results 130 comments of Vaivaswatha N

> @SwayStar123 this should be fixed with #4628 . Once that is merged, please verify. Ping !

@dmihal Can you test if this works for you? If you have a unit test, please push to the branch, or alternatively share it here so that i can add...

> These should be added to https://github.com/FuelLabs/sway/blob/master/test/src/e2e_vm_tests/test_programs/should_fail/asm_disallowed_opcodes/src/main.sw should they not? This is a good point. But it looks like @dmihal is actually using these in assembly.

Simplified examples ```rust script; fn main() { let _ = bar(true); } #[inline(never)] fn bar(b: bool) -> Option { if(b) { Option::Some(19) } else { Option::None } } ``` ```rust...

While experimenting locally, I realized that we could just name a value based on its `generational_arena` `(index, generation)`. This is always unique and deterministic. Also, setting breakpoints would then be...

The error printed here is a bit misleading because [we don't print all errors in a block](https://github.com/FuelLabs/sway/blob/88012bbba696f9bd9fd16b63ea6eeda57e456949/sway-core/src/ir_generation/function.rs#L426). The actual error here is related to [deferred monomorphization](https://github.com/FuelLabs/sway/blob/88012bbba696f9bd9fd16b63ea6eeda57e456949/sway-core/src/ir_generation/function.rs#L388) of [this](https://github.com/FuelLabs/sway/compare/master...brandonsurh:sway:ICE_try_insert#diff-59bb3aac1f9f4042d25b718f6b202526e28e815c95969287da57099db1f2de5aR137) function application....

Can we close this (by #5521) @IGI-111 ?

I have some numbers on how this change impacts code sizes in our testsuite. Code size reduction test | before | after | % reduction -- | -- | --...

Hold on merging this. I vaguely remember there being a reason for it's existence. I'll update back soon.