We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9646353 commit 581a722Copy full SHA for 581a722
1 file changed
litmus/preSi.ml
@@ -2171,6 +2171,20 @@ module Make
2171
O.oi "zyva_t *a = (zyva_t*)_a;" ;
2172
O.oi "int id = a->id;" ;
2173
end;
2174
+ if do_self then begin
2175
+ let cache_type = CacheType.get test.T.info in
2176
+ let needs_dic, needs_idc =
2177
+ let open CacheType in
2178
+ match cache_type with
2179
+ | None -> (fun _ -> false), (fun _ -> false)
2180
+ | Some cache_type -> cache_type.dic, cache_type.idc in
2181
+ begin match forall_procs test needs_dic, forall_procs test needs_idc with
2182
+ | Some dic, Some idc ->
2183
+ O.fi "check_dic_idc(%d, %d);" (if dic then 1 else 0)
2184
+ (if idc then 1 else 0)
2185
+ | _ -> ()
2186
+ end
2187
+ end ;
2188
O.oi "global_t *g = a->g;" ;
2189
if Cfg.is_kvm then begin
2190
begin
0 commit comments