A Query-Based Constraint Acquisition Approach for Enhanced Precision in Program Precondition Inference