Skip to content

issue(spl): NDBranches caused by #traverseProjection with #adjustRef #115

@Stevengre

Description

@Stevengre

In test_process_burn, NDBranches are caused by the following term

│           #traverseProjection ( toStack ( 4 , local ( 91 ) ) , #adjustRef ( ?SplIsNativeCOpt:Value , 3 ) , .ProjectionElems , CtxField ( variantIdx ( 0 ) , ListItem (Aggregate ( variantIdx ( 0 ) , ListItem (Range ( ?SplMintKey:List ))
│              ))
│            ListItem (Aggregate ( variantIdx ( 0 ) , ListItem (Range ( ?SplTokenOwnerKey:List ))
│              ))
│            ListItem (Integer ( ?SplAmount:Int , 64 , false ))
│            ListItem (#adjustRef ( ?SplDelegateCOpt:Value , 3 ))
│            ListItem (Integer ( ?SplAccountState:Int , 8 , false ))
│            ListItem (#adjustRef ( ?SplIsNativeCOpt:Value , 3 ))
│            ListItem (Integer ( ?SplDelegatedAmount:Int , 64 , false ))
│            ListItem (#adjustRef ( ?SplCloseAuthCOpt:Value , 3 ))
│            , 5 , ty ( 5800474 ) )  CtxField ( variantIdx ( 0 ) , ListItem (Aggregate ( variantIdx ( 0 ) , ListItem (Aggregate ( variantIdx ( 0 ) , ListItem (Range ( ?SplMintKey:List ))
│                ))
│              ListItem (Aggregate ( variantIdx ( 0 ) , ListItem (Range ( ?SplTokenOwnerKey:List ))
│                ))
│              ListItem (Integer ( ?SplAmount:Int , 64 , false ))
│              ListItem (#adjustRef ( ?SplDelegateCOpt:Value , 3 ))
│              ListItem (Integer ( ?SplAccountState:Int , 8 , false ))
│              ListItem (#adjustRef ( ?SplIsNativeCOpt:Value , 3 ))
│              ListItem (Integer ( ?SplDelegatedAmount:Int , 64 , false ))
│              ListItem (#adjustRef ( ?SplCloseAuthCOpt:Value , 3 ))
│              ))
│            , 0 , ty ( 5800463 ) )  CtxField ( variantIdx ( 0 ) , ListItem (Aggregate ( variantIdx ( 0 ) , ListItem (Aggregate ( variantIdx ( 0 ) , ListItem (Aggregate ( variantIdx ( 0 ) , ListItem (Range ( ?SplMintKey:List ))
│                  ))
│                ListItem (Aggregate ( variantIdx ( 0 ) , ListItem (Range ( ?SplTokenOwnerKey:List ))
│                  ))
│                ListItem (Integer ( ?SplAmount:Int , 64 , false ))
│                ListItem (#adjustRef ( ?SplDelegateCOpt:Value , 3 ))
│                ListItem (Integer ( ?SplAccountState:Int , 8 , false ))
│                ListItem (#adjustRef ( ?SplIsNativeCOpt:Value , 3 ))
│                ListItem (Integer ( ?SplDelegatedAmount:Int , 64 , false ))
│                ListItem (#adjustRef ( ?SplCloseAuthCOpt:Value , 3 ))
│                ))
│              ))
│            , 0 , ty ( 5800482 ) )  .Contexts )

My initial thought is that this is caused by the uninterpreted #adjustRef.
Another possible solution is to unwrap the insider of these symbolic values.

  • reproduce this with small program;

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions