Skip to content

Commit

Permalink
Use MyCFG.unknown_exp instead of Cil.one
Browse files Browse the repository at this point in the history
  • Loading branch information
michael-schwarz committed Mar 27, 2023
1 parent a160745 commit b874f19
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/autoTune.ml
Original file line number Diff line number Diff line change
Expand Up @@ -158,10 +158,10 @@ let hasFunction pred =
let relevant_dynamic var =
if LibraryFunctions.is_special var then
let desc = LibraryFunctions.find var in
(* We don't really have arguments at hand, so we cheat and just feed it a list of Cil.one of appropriate length *)
(* We don't really have arguments at hand, so we cheat and just feed it a list of MyCFG.unknown_exp of appropriate length *)
match unrollType var.vtype with
| TFun (_, args, _, _) ->
let args = BatOption.map_default (List.map (fun (x,_,_) -> Cil.one)) [] args in
let args = BatOption.map_default (List.map (fun (x,_,_) -> MyCFG.unknown_exp)) [] args in
pred (desc.special args)
| _ -> false
else
Expand Down

0 comments on commit b874f19

Please sign in to comment.