Skip to content

Commit 808b5d2

Browse files
committed
Add TODOs to ptranal
1 parent 271cc17 commit 808b5d2

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/analyses/ptranalAnalysis.ml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
33
Useful for sound analysis of function pointers without base. *)
44

5+
(* TODO: fix unsoundness on some bench repo examples: https://github.com/goblint/analyzer/pull/1063 *)
6+
57
open GoblintCil
68
open Analyses
79

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

0 commit comments

Comments
 (0)