[ConfigImpact] Consider list.size as cheap and add tests

Summary: Consider list.size as cheap and add a bunch of tests

Reviewed By: skcho

Differential Revision: D27677605

fbshipit-source-id: 1dfa86b5b
master
Ezgi Çiçek 4 years ago committed by Facebook GitHub Bot
parent fa9e19ac29
commit 6b9d68a267

@ -472,7 +472,8 @@ module TransferFunctions = struct
let dispatch : (Tenv.t, unit, unit) ProcnameDispatcher.ProcName.dispatcher = let dispatch : (Tenv.t, unit, unit) ProcnameDispatcher.ProcName.dispatcher =
let open ProcnameDispatcher.ProcName in let open ProcnameDispatcher.ProcName in
make_dispatcher make_dispatcher
[ +PatternMatch.Java.implements_math &::.*--> () [ +PatternMatch.Java.implements_collection &:: "size" <>--> ()
; +PatternMatch.Java.implements_math &::.*--> ()
; +PatternMatch.Java.implements_number &::.*--> () ; +PatternMatch.Java.implements_number &::.*--> ()
; +PatternMatch.Java.implements_system &::+ is_cheap_system_method &--> () ] ; +PatternMatch.Java.implements_system &::+ is_cheap_system_method &--> () ]
in in

Loading…
Cancel
Save