Make a guess:

	dvec = NULL;
	ddt = -1.;
	int con = 0;
	if (ifarg(iarg+2)) {
		if (hoc_is_object_arg(iarg+2)) {
			// Vector...(..., tvec)
			tvec = obj_new(NULL, obj_new_scalar(mksvalu(iarg+2)));
			dvec = obj_new(NULL, obj_new_scalar(mksvalu(iarg+4)));
			if (get_arg(iarg+2) < get_arg(iarg+3) && con == 1) {
				/* Vectoral arg */
				int i, n;
				tvec->v_length = mksvalu(iarg+3);
				tvec->v_offset = 0;
				for (i = 1, n = 0; i <= get_arg(iarg+3); i++) {
					tvec->v_length *= mksvalu(iarg+i+4);
					tvec->v_offset += (int)(mksvalu(iarg+i+4)*n);
					n += mksvalu(iarg+i+4);
				}
				m->v_length = mksvalu(iarg+3);
				m->v_offset = 0;
				for (i = 1, n = 0; i <= mksvalu(iarg+4); i++) {
					m->v_length *= mksvalu(iarg+i+5);
					m->v_offset += (int)(mksvalu(iarg+i+5)*n);
					n += mksvalu(iarg+i+5);
				}
				con = 2;
			}
		} else {
			/* Vector arg */
			int i, n;
			if (con == 1)
				tvec = mksvalu(iarg+2);
			else if (get_arg(iarg+2) < get_arg(iarg+3)) {
				/* Vector arg */
				tvec = mksvalu(iarg+2);
				dvec = mksvalu(iarg+3);
				con = 0;
			} else {
				/* Vector arg */
				int i1, i2;
				tvec = obj_new(NULL, obj_new_vector(mksvalu(iarg+2)));
				dvec = obj_new(NULL, obj_new_vector(mksvalu(iarg+4)));
				i1 = get_arg(iarg+2);
				i2 = get_arg(iarg+3);
				for (i = i1; i <= i2; i++) {
					tvec->v_length = mksvalu(iarg+2+i+4);
					tvec->v_offset = i;
					tvec->v_length *= mksvalu(iarg+2+i+4);
					tvec->v_offset += (int)(mksvalu(iarg+2+i+4)*n);
					n += mksvalu(iarg+2+i+4);
				}
				con = 2;
			}
		}
	}
	m->v_length = mksvalu(iarg+1);
	m->v_offset = 0;
	if (n_msks(tvec)) {
		m->v_length *= mksvalu(tvec);
		m->v_offset = mksvalu(tvec);
	}
	return tvec;
}

static pdo_stmt_t* test_case_stmt(pdo_stmt_t *stmt, const char *s)
{
	pdo_stmt_t *s1 = NULL;
	switch (stmt->type) {
	case PDO_STMT_SELECT_PREPARED:
		/* For PDO_STMT_SELECT_PREPARED stmts we need to keep track of which of the stmts
		   is being prepared so we can start from the end of them */
		if (!s) {
			if (stmt->prepared_query)
				s = stmt->prepared_query;
			else
				s = stmt->bound_query;
		}
		if (s) {
			s1 = get_pdo_stmt(stmt);