Skip to content

Commit c8fca40

Browse files
committed
recover feature/p-token
1 parent 396877e commit c8fca40

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

kmir/src/kmir/kdist/mir-semantics/symbolic/spl-token.md

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -163,13 +163,16 @@ module KMIR-SPL-TOKEN
163163
// mock mint
164164
rule #isSPLPackFunc("Mint::pack") => true
165165
166+
// Rent sysvar calls (includes mock harness direct calls to Rent::from_account_info / Rent::get)
166167
syntax Bool ::= #isSPLRentFromAccountInfoFunc ( String ) [function, total]
167-
rule #isSPLRentFromAccountInfoFunc(NAME) => findString(NAME, "Rent::from_account_info", 0) =/=Int -1
168168
rule #isSPLRentFromAccountInfoFunc(_) => false [owise]
169+
rule #isSPLRentFromAccountInfoFunc("Rent::from_account_info") => true // mock harness
170+
rule #isSPLRentFromAccountInfoFunc("solana_sysvar::<solana_rent::Rent as solana_sysvar::Sysvar>::from_account_info") => true
169171
170172
syntax Bool ::= #isSPLRentGetFunc ( String ) [function, total]
171-
rule #isSPLRentGetFunc(NAME) => findString(NAME, "Rent::get", 0) =/=Int -1
172173
rule #isSPLRentGetFunc(_) => false [owise]
174+
rule #isSPLRentGetFunc("Rent::get") => true // mock harness
175+
rule #isSPLRentGetFunc("solana_sysvar::rent::<impl Sysvar for solana_rent::Rent>::get") => true
173176
174177
// Adjust references when moving across stack frames
175178
rule #adjustRef(SPLRefCell(PLACE, VAL), OFFSET) => SPLRefCell(#adjustRef(PLACE, OFFSET), #adjustRef(VAL, OFFSET))

0 commit comments

Comments
 (0)