Skip to content

Commit

Permalink
Inlining now takes a list of subroutines to inline, and uses summarie…
Browse files Browse the repository at this point in the history
…s for the others
  • Loading branch information
Cody Roux committed Aug 29, 2019
1 parent 0adce95 commit da654a5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions wp/lib/bap_wp/src/precondition.ml
Original file line number Diff line number Diff line change
Expand Up @@ -430,7 +430,7 @@ let spec_default (sub : Sub.t) (arch : Arch.t) : Env.fun_spec =
increment_stack_ptr post env offsets)
}

let spec_inline (to_inline : Sub.t seq) (sub : Sub.t) (arch : Arch. t): Env.fun_spec =
let spec_inline (to_inline : Sub.t Seq.t) (sub : Sub.t) (arch : Arch. t): Env.fun_spec =
let open Env in
let spec_name = "spec_inline" in
if Seq.mem to_inline sub ~equal:Sub.equal then
Expand Down Expand Up @@ -469,8 +469,8 @@ let mk_inline_env
?num_loop_unroll:(num_loop_unroll = !num_unroll)
?exp_conds:(exp_conds = [])
?arch:(arch = `x86_64)
~subs:(subs : Sub.t seq)
~to_inline:(to_inline : Sub.t seq)
~subs:(subs : Sub.t Seq.t)
~to_inline:(to_inline : Sub.t Seq.t)
(ctx : Z3.context)
(var_gen : Env.var_gen)
: Env.t =
Expand Down

0 comments on commit da654a5

Please sign in to comment.