Buggy code:
public class KILtoSMTLib extends CopyOnWriteTransformer { public static final ImmutableSet < Sort > SMTLIB_BUILTIN_SORTS = ImmutableSet . of ( BOOL , INT , BIT_VECTOR , Sort . of ( "IntSet" ) , Sort . of ( "IntSeq" ) ) ; public static final ImmutableSet < Sort > RESERVED_Z3_SORTS = ImmutableSet . of ( LIST , SET , Sort . of ( "Seq" ) ) ; public static final ImmutableSet < String > SMTLIB_BUILTIN_FUNCTIONS = ImmutableSet . of ( "forall" , "exists" , "not" , "and" , "or" , "xor" , "=>" , "=" , "distinct" , "ite" , "+" , "-" , "*" , "div" , "mod" , "abs" , "<=" , "<" , ">=" , ">" , "int_max" , "int_min" , "int_abs" , "remainder" , "min" , "max" , "==" , "concat" , "extract" , "bvnot" , "bvneg" , "bvand" , "bvor" , "bvadd" , "bvmul" , "bvudiv" , "bvurem" , "bvshl" , "bvlshr" , "bvult" , "bvsub" , "bvxor" , "bvslt" , "bvule" , "bvsle" , "bvugt" , "bvsgt" , "bvuge" , "bvsge" , "bv2int" , "mint_signed_of_unsigned" , "smt_set_mem" , "smt_set_add" , "smt_set_emp" , "smt_set_cup" , "smt_set_cap" , "smt_set_com" , "smt_set_ele" , "smt_set_dif" , "smt_set_sub" , "smt_set_lt" , "smt_set_le" , "smt_seq_concat" , "smt_seq_elem" , "smt_seq_nil" , "smt_seq2set" , "smt_seq_sorted" , "smt_seq_filter" , "smt_bool2int" ) ; private final boolean skipEqualities ; private final HashSet < Variable > variables ; public static String translateConstraint ( SymbolicConstraint constraint ) { } public static String translateImplication ( SymbolicConstraint leftHandSide , SymbolicConstraint rightHandSide , Set < Variable > rightHandSideOnlyVariables ) { } private static String getSortAndFunctionDeclarations ( Definition definition , Set < Variable > variables ) { } private static String getAxioms ( Definition definition ) { } private static String getConstantDeclarations ( Set < Variable > variables ) { } private static String getQuantifiedVariables ( Set < Variable > variables ) { } private static String getSortName ( ASTNode node ) { } public KILtoSMTLib ( boolean skipEqualities ) { } public Set < Variable > variables ( ) { } @ Override public ASTNode transform ( SymbolicConstraint constraint ) { } @ Override public ASTNode transform ( KItem kItem ) { } @ Override public ASTNode transform ( BoolToken boolToken ) { } @ Override public ASTNode transform ( IntToken intToken ) { } @ Override public ASTNode transform ( FloatToken floatToken ) { StringBuilder sb = new StringBuilder ( ) ; <START_BUG> sb . append ( String . format ( "((_<seq2seq4repair_space>asFloat<seq2seq4repair_space>%d<seq2seq4repair_space>%d)<seq2seq4repair_space>roundNearestTiesToEven<seq2seq4repair_space>%s<seq2seq4repair_space>0)" , floatToken . exponent ( ) , floatToken . bigFloatValue ( ) . precision ( ) , floatToken . bigFloatValue ( ) . toString ( "%Rf" ) ) ) ; <END_BUG> return new SMTLibTerm ( sb . toString ( ) ) ; } @ Override public ASTNode transform ( BitVector bitVector ) { } @ Override public ASTNode transform ( Variable variable ) { } }

Fix:
sb . append ( String . format ( "((_<seq2seq4repair_space>asFloat<seq2seq4repair_space>%d<seq2seq4repair_space>%d)<seq2seq4repair_space>roundNearestTiesToEven<seq2seq4repair_space>%s<seq2seq4repair_space>0)" , floatToken . exponent ( ) , floatToken . bigFloatValue ( ) . precision ( ) , floatToken . bigFloatValue ( ) . toString ( "%f" ) ) ) ;