Home | History | Annotate | Download | only in smali
      1 .class public LFloatIntConstPassing;
      2 
      3 .super Ljava/lang/Object;
      4 
      5 .method public static getInt(I)I
      6   .registers 2
      7   const/4 v0, 1
      8   add-int/2addr v0, p0
      9   return v0
     10 .end method
     11 
     12 .method public static getFloat(F)F
     13   .registers 2
     14   const/4 v0, 0
     15   mul-float/2addr v0, p0
     16   return v0
     17 .end method
     18 
     19 .method public static run()I
     20   .registers 3
     21   const/4 v0, 1
     22   invoke-static {v0}, LFloatIntConstPassing;->getInt(I)I
     23   move-result v1
     24   invoke-static {v0}, LFloatIntConstPassing;->getFloat(F)F
     25   move-result v2
     26   float-to-int v2, v2
     27   add-int/2addr v1, v2
     28   return v1
     29 .end method
     30