Skip to content

Optimizer uses INC DEC instead of PUSH1 ADD and PUSH1 SUB #5279

Optimizer uses INC DEC instead of PUSH1 ADD and PUSH1 SUB

Optimizer uses INC DEC instead of PUSH1 ADD and PUSH1 SUB #5279

Triggered via pull request January 24, 2025 02:47
Status Success
Total duration 4m 6s
Artifacts

main.yml

on: pull_request
Fit to window
Zoom out
Zoom in

Annotations

21 warnings
Test
ubuntu-latest pipelines will use ubuntu-24.04 soon. For more details, see https://github.com/actions/runner-images/issues/10636
Test: neo/src/Neo/Persistence/MemoryStore.cs#L76
Possible null reference assignment.
Test: src/Neo.SmartContract.Framework/Services/Runtime.cs#L96
Cannot convert null literal to non-nullable reference type.
Test: src/Neo.SmartContract.Framework/Native/GAS.cs#L28
Cannot convert null literal to non-nullable reference type.
Test: src/Neo.SmartContract.Framework/Native/NEO.cs#L29
Cannot convert null literal to non-nullable reference type.
Test: src/Neo.SmartContract.Framework/Native/WitnessRule.cs#L17
Non-nullable field 'Condition' must contain a non-null value when exiting constructor. Consider adding the 'required' modifier or declaring the field as nullable.
Test: src/Neo.SmartContract.Framework/Native/Signer.cs#L16
Non-nullable field 'Account' must contain a non-null value when exiting constructor. Consider adding the 'required' modifier or declaring the field as nullable.
Test: src/Neo.SmartContract.Framework/Native/Signer.cs#L18
Non-nullable field 'AllowedContracts' must contain a non-null value when exiting constructor. Consider adding the 'required' modifier or declaring the field as nullable.
Test: src/Neo.SmartContract.Framework/Native/Signer.cs#L19
Non-nullable field 'AllowedGroups' must contain a non-null value when exiting constructor. Consider adding the 'required' modifier or declaring the field as nullable.
Test: src/Neo.SmartContract.Framework/Native/Signer.cs#L20
Non-nullable field 'Rules' must contain a non-null value when exiting constructor. Consider adding the 'required' modifier or declaring the field as nullable.
Test: src/Neo.SmartContract.Framework/Native/ScriptHashCondition.cs#L16
Non-nullable field 'Hash' must contain a non-null value when exiting constructor. Consider adding the 'required' modifier or declaring the field as nullable.
Test: src/Neo.SmartContract.Analyzer/InitialValueAnalyzer.cs#L98
Dereference of a possibly null reference.
Test: src/Neo.SmartContract.Analyzer/InitialValueAnalyzer.cs#L98
Dereference of a possibly null reference.
Test: src/Neo.SmartContract.Analyzer/InitialValueAnalyzer.cs#L122
Dereference of a possibly null reference.
Test: src/Neo.SmartContract.Analyzer/BanCastMethodAnalyzer.cs#L20
This compiler extension should not be implemented in an assembly containing a reference to Microsoft.CodeAnalysis.Workspaces. The Microsoft.CodeAnalysis.Workspaces assembly is not provided during command line compilation scenarios, so references to it could cause the compiler extension to behave unpredictably. (https://github.com/dotnet/roslyn-analyzers/blob/main/docs/rules/RS1038.md)
Test: src/Neo.SmartContract.Analyzer/BanCastMethodAnalyzer.cs#L20
This compiler extension should not be implemented in an assembly with target framework '.NET 9.0'. References to other target frameworks will cause the compiler to behave unpredictably. (https://github.com/dotnet/roslyn-analyzers/blob/main/docs/rules/RS1041.md)
Test: src/Neo.SmartContract.Analyzer/KeywordUsageAnalyzer.cs#L20
This compiler extension should not be implemented in an assembly containing a reference to Microsoft.CodeAnalysis.Workspaces. The Microsoft.CodeAnalysis.Workspaces assembly is not provided during command line compilation scenarios, so references to it could cause the compiler extension to behave unpredictably. (https://github.com/dotnet/roslyn-analyzers/blob/main/docs/rules/RS1038.md)
Test: src/Neo.SmartContract.Analyzer/KeywordUsageAnalyzer.cs#L20
This compiler extension should not be implemented in an assembly with target framework '.NET 9.0'. References to other target frameworks will cause the compiler to behave unpredictably. (https://github.com/dotnet/roslyn-analyzers/blob/main/docs/rules/RS1041.md)
Test: src/Neo.SmartContract.Analyzer/LinqUsageAnalyzer.cs#L26
This compiler extension should not be implemented in an assembly containing a reference to Microsoft.CodeAnalysis.Workspaces. The Microsoft.CodeAnalysis.Workspaces assembly is not provided during command line compilation scenarios, so references to it could cause the compiler extension to behave unpredictably. (https://github.com/dotnet/roslyn-analyzers/blob/main/docs/rules/RS1038.md)
Test: src/Neo.SmartContract.Analyzer/LinqUsageAnalyzer.cs#L26
This compiler extension should not be implemented in an assembly with target framework '.NET 9.0'. References to other target frameworks will cause the compiler to behave unpredictably. (https://github.com/dotnet/roslyn-analyzers/blob/main/docs/rules/RS1041.md)
Test: src/Neo.SmartContract.Analyzer/BigIntegerCreationAnalyzer.cs#L27
This compiler extension should not be implemented in an assembly containing a reference to Microsoft.CodeAnalysis.Workspaces. The Microsoft.CodeAnalysis.Workspaces assembly is not provided during command line compilation scenarios, so references to it could cause the compiler extension to behave unpredictably. (https://github.com/dotnet/roslyn-analyzers/blob/main/docs/rules/RS1038.md)