[pulse] remove now-unneeded hack to avoid dedup of error states

Summary: Addressed by previous commit.

Reviewed By: skcho

Differential Revision: D27911899

fbshipit-source-id: a7b76734a
master
Jules Villard 4 years ago committed by Facebook GitHub Bot
parent eb86c9cc17
commit cd7b11889e

@ -274,15 +274,8 @@ module PulseTransferFunctions = struct
({InterproceduralAnalysis.tenv; proc_desc; err_log} as analysis_data) _cfg_node ({InterproceduralAnalysis.tenv; proc_desc; err_log} as analysis_data) _cfg_node
(instr : Sil.instr) : Domain.t list = (instr : Sil.instr) : Domain.t list =
match astate with match astate with
| AbortProgram _ | LatentAbortProgram _ | LatentInvalidAccess _ -> | AbortProgram _ | ISLLatentMemoryError _ | LatentAbortProgram _ | LatentInvalidAccess _ ->
[astate] [astate]
| ISLLatentMemoryError _ -> (
(* Note: This is to avoid duplicated error states at join point of branch *)
match instr with
| Prune (_, _, is_then_branch, _) when is_then_branch ->
[]
| _ ->
[astate] )
| ExitProgram _ -> | ExitProgram _ ->
(* program already exited, simply propagate the exited state upwards *) (* program already exited, simply propagate the exited state upwards *)
[astate] [astate]

Loading…
Cancel
Save