a Formal Framework for the Analysis of Architectural Choices