Skip to content

Commit

Permalink
Re-indent combine_assign
Browse files Browse the repository at this point in the history
  • Loading branch information
michael-schwarz committed Dec 19, 2024
1 parent 7211045 commit aa87b3e
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions src/analyses/region.ml
Original file line number Diff line number Diff line change
Expand Up @@ -143,14 +143,14 @@ struct
match au with
| `Lifted reg -> begin
let old_regpart = man.global () in
let regpart, reg = match lval with
| None -> (old_regpart, reg)
| Some lval -> Reg.assign lval (AddrOf (ReturnUtil.return_lval ())) (old_regpart, reg)
in
let regpart, reg = Reg.remove_vars [ReturnUtil.return_varinfo ()] (regpart, reg) in
if not (RegPart.leq regpart old_regpart) then
man.sideg () regpart;
`Lifted reg
let regpart, reg = match lval with
| None -> (old_regpart, reg)
| Some lval -> Reg.assign lval (AddrOf (ReturnUtil.return_lval ())) (old_regpart, reg)
in
let regpart, reg = Reg.remove_vars [ReturnUtil.return_varinfo ()] (regpart, reg) in
if not (RegPart.leq regpart old_regpart) then
man.sideg () regpart;
`Lifted reg
end
| _ -> au

Expand Down

0 comments on commit aa87b3e

Please sign in to comment.