We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 90b9e56 commit ab91237Copy full SHA for ab91237
1 file changed
src/analyses/region.ml
@@ -180,8 +180,13 @@ struct
180
let startstate v =
181
`Lifted (RegMap.bot ())
182
183
- let threadenter ctx lval f args =
184
- [`Lifted (RegMap.bot ())]
+ let threadenter ctx lval f args: D.t list =
+ let fd = Cilfacade.find_varinfo_fundec f in
185
+ match args, fd.sformals with
186
+ | [exp], [param] ->
187
+ let reg = Reg.assign (var param) exp (ctx.global (), RegMap.bot ()) in
188
+ [`Lifted (snd reg)]
189
+ | _ -> [`Lifted (RegMap.bot ())]
190
let threadspawn ctx lval f args fctx = ctx.local
191
192
let exitstate v = `Lifted (RegMap.bot ())
0 commit comments