Skip to content

Commit

Permalink
fix formatting (#743)
Browse files Browse the repository at this point in the history
  • Loading branch information
cp526 authored Dec 6, 2024
1 parent 36582a6 commit 6029b76
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
1 change: 1 addition & 0 deletions backend/cn/bin/main.ml
Original file line number Diff line number Diff line change
Expand Up @@ -763,6 +763,7 @@ module Verify_flags = struct
let doc = "directory in which to output state files" in
Arg.(value & opt (some string) None & info [ "output-dir" ] ~docv:"FILE" ~doc)


let disable_resource_derived_constraints =
let doc = "disable resource-derived constraints" in
Arg.(value & flag & info [ "disable-resource-derived-constraints" ] ~doc)
Expand Down
7 changes: 4 additions & 3 deletions backend/cn/lib/resources.ml
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,7 @@ let derived_lc2 (resource, _) (resource', _) =
let disable_resource_derived_constraints = ref false

let pointer_facts ~new_resource ~old_resources =
if !disable_resource_derived_constraints
then []
else derived_lc1 new_resource @ List.concat_map (derived_lc2 new_resource) old_resources
if !disable_resource_derived_constraints then
[]
else
derived_lc1 new_resource @ List.concat_map (derived_lc2 new_resource) old_resources

0 comments on commit 6029b76

Please sign in to comment.