returns the first index of a largest value in xs , which must have nonzero length . concode_field_sep PlaceHolder placeHolder concode_field_sep int partition concode_elem_sep void select concode_elem_sep void swap concode_elem_sep int minIndex concode_elem_sep int partitionIndices concode_elem_sep void sortIndices concode_elem_sep double choosePivot concode_elem_sep double choosePivot concode_elem_sep void selectIndices
int function ( double [ ] arg0 ) { int loc0 = 0 ; double loc1 = arg0 [ 0 ] ; for ( int loc2 = 1 ; loc2 < arg0 . length ; ++ loc2 ) { double loc3 = arg0 [ loc2 ] ; if ( loc3 > loc1 ) { loc1 = loc3 ; loc0 = loc2 ; } } return loc0 ; }