Module org.kink_lang.kink
Class Ssafier.Callback
java.lang.Object
org.kink_lang.kink.internal.program.itreeoptimize.ssafy.Ssafier.Callback
- All Implemented Interfaces:
DeepTransformer.Callback
- Enclosing class:
- Ssafier
Callback for conversion.
Callback instance is created for each level of
FastFunItree
.-
Method Summary
-
Method Details
-
derefLvar
Description copied from interface:DeepTransformer.Callback
Transforms dereference of a local var.Dereference of
NoTraitNewValItree
,TraitNewValItree
,IfItree
,BranchItree
, andBranchWithElseItree
must not be transformed.- Specified by:
derefLvar
in interfaceDeepTransformer.Callback
- Parameters:
lvar
- the local var.- Returns:
- the result of transformation.
-
storeLvar
Description copied from interface:DeepTransformer.Callback
Transforms storing to a local var.- Specified by:
storeLvar
in interfaceDeepTransformer.Callback
- Parameters:
lvar
- the original local var to be transformed.- Returns:
- the result of transformation.
-
itree
Description copied from interface:DeepTransformer.Callback
Transforms the itree.If
itree
isFastFunItree
, the result must also beFastFunItree
.- Specified by:
itree
in interfaceDeepTransformer.Callback
- Parameters:
itree
- the itree to be transformed.- Returns:
- the result of transformation.
-