# Class: com.pnfsoftware.jeb.core.units.code.DFAUtil

Utility routines for `Data Flow Analysis` objects \(see [IDFA](IDFA) and its implementation [DFA4](DFA4)\).

## Static Method: formatChain
- parameter: `dfa`, type: `com.pnfsoftware.jeb.core.units.code.IDFA<?>`
- parameter: `chain`, type: `java.util.Map<java.lang.Integer,java.util.Collection<T>>`
- return type: `java.lang.String`

Description: Format a data chain as: `(regId)={pos0, pos1, ...} ...`. The ids are naturally ordered. Positions for each id are also naturally ordered. Consequently, performing chain comparison using string comparison on the rendered chain is a viable solution.
parameter: dfa: data\-flow analysis object
parameter: chain: chain
return: formatted chain
parameter: T: chain location number type

## Static Method: formatVars
- parameter: `dfa`, type: `com.pnfsoftware.jeb.core.units.code.IDFA<?>`
- parameter: `vars`, type: `java.util.Collection<java.lang.Integer>`
- return type: `java.lang.String`

Description: Format variables.
parameter: dfa: data\-flow analysis object
parameter: vars: variables
return: formatted variables
parameter: T: unused number type

## Static Method: formatVars
- parameter: `dfa`, type: `com.pnfsoftware.jeb.core.units.code.IDFA<?>`
- parameter: `vars`, type: `java.util.Collection<java.lang.Integer>`
- parameter: `reorder`, type: `boolean`
- return type: `java.lang.String`

Description: Format variables.
parameter: dfa: data\-flow analysis object
parameter: vars: variables
parameter: reorder: true to sort variables before formatting
return: formatted variables
parameter: T: unused number type

