Skip to content

Commit

Permalink
unknown scrutinee type handling mostly done
Browse files Browse the repository at this point in the history
  • Loading branch information
pigumar1 committed May 5, 2024
1 parent 81fa286 commit 3efe061
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/haz3lcore/statics/Statics.re
Original file line number Diff line number Diff line change
Expand Up @@ -440,7 +440,6 @@ and uexp_to_info_map =
let e_tys = List.map(Info.exp_ty, es);
let e_co_ctxs =
List.map2(CoCtx.mk(ctx), p_ctxs, List.map(Info.exp_co_ctx, es));
// switch (scrut.ty) {
// | Unknown(_) =>
// let (ps', _m) =
// map_m(go_pat(~is_synswitch=false, ~co_ctx=CoCtx.empty), ps, m);
Expand All @@ -456,7 +455,11 @@ and uexp_to_info_map =
// | _ => ()
// };
// switch ()
let scrut_ty = Some(scrut.ty);
let scrut_ty =
switch (scrut.ty) {
| Unknown(_) => None
| ty => Some(ty)
};
let (self, m) =
switch (scrut_ty) {
| Some(scrut_ty) =>
Expand Down

0 comments on commit 3efe061

Please sign in to comment.