What is the grammatical name of"had a stray dog not given them away" and it's function?

1 answer

subordinate clause
it's equivalent to
if a stray dog had not given them away