Skip to content

Commit

Permalink
Add TODOs to ptranal
Browse files Browse the repository at this point in the history
  • Loading branch information
sim642 committed Jan 22, 2024
1 parent 271cc17 commit 808b5d2
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/analyses/ptranalAnalysis.ml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
Useful for sound analysis of function pointers without base. *)

(* TODO: fix unsoundness on some bench repo examples: https://github.com/goblint/analyzer/pull/1063 *)

open GoblintCil
open Analyses

Expand All @@ -15,6 +17,7 @@ struct
match q with
| Queries.EvalFunvar (Lval (Mem e, _)) ->
let funs = Ptranal.resolve_exp e in
(* TODO: filter compatible function pointers by type? *)
List.fold_left (fun xs f -> Queries.AD.add (Queries.AD.Addr.of_var f) xs) (Queries.AD.empty ()) funs
| _ -> Queries.Result.top q

Expand Down

0 comments on commit 808b5d2

Please sign in to comment.