@@ -213,7 +213,7 @@ proc improve_placement { args } {
213213 set global_swap_budget_list {}
214214
215215 set global_swap_args $keys(-global_swap_args)
216- if { [ expr {[ llength $global_swap_args ] % 2}] != 0 } {
216+ if { ([ llength $global_swap_args ] % 2) != 0 } {
217217 sta::error DPL 345 " -global_swap_args must be key/value pairs"
218218 }
219219 foreach {opt value} $global_swap_args {
@@ -249,10 +249,10 @@ proc improve_placement { args } {
249249 set global_swap_budget_list {}
250250 foreach multiplier $value {
251251 set trimmed [string trim $multiplier ]
252- if {$trimmed eq " " } {
252+ if { $trimmed eq " " } {
253253 continue
254254 }
255- if {[catch {expr {double($trimmed )} } parsed]} {
255+ if { [catch { expr { double($trimmed ) } } parsed] } {
256256 sta::error DPL 347 " Invalid -budget_multipliers value \" $multiplier \" "
257257 }
258258 lappend global_swap_budget_list $parsed
@@ -264,20 +264,20 @@ proc improve_placement { args } {
264264 }
265265 }
266266 set global_swap_budget_str " "
267- if {[llength $global_swap_budget_list ] > 0} {
267+ if { [llength $global_swap_budget_list ] > 0 } {
268268 set global_swap_budget_str [join $global_swap_budget_list " " ]
269269 }
270270 dpl::configure_global_swap_params_cmd \
271- $global_swap_passes \
272- $global_swap_tolerance \
273- $global_swap_tradeoff \
274- $global_swap_area_weight \
275- $global_swap_pin_weight \
276- $global_swap_user_weight \
277- $global_swap_sampling \
278- $global_swap_normalization \
279- $global_swap_profiling_excess \
280- $global_swap_budget_str
271+ $global_swap_passes \
272+ $global_swap_tolerance \
273+ $global_swap_tradeoff \
274+ $global_swap_area_weight \
275+ $global_swap_pin_weight \
276+ $global_swap_user_weight \
277+ $global_swap_sampling \
278+ $global_swap_normalization \
279+ $global_swap_profiling_excess \
280+ $global_swap_budget_str
281281 }
282282
283283 set extra_dpl_enabled 0
@@ -286,7 +286,7 @@ proc improve_placement { args } {
286286 } elseif { [info exists ::env(ENABLE_EXTRA_DPL)] } {
287287 set extra_dpl_enabled $::env(ENABLE_EXTRA_DPL)
288288 }
289- set extra_dpl_enabled [expr {$extra_dpl_enabled ? 1 : 0}]
289+ set extra_dpl_enabled [expr { $extra_dpl_enabled ? 1 : 0 }]
290290 dpl::set_extra_dpl_cmd $extra_dpl_enabled
291291
292292 sta::check_argc_eq0 " improve_placement" $args
0 commit comments