if (s.find_first_not_of("ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz"
"0123456789~!@$%^&*_-+=<>.?/")
!= string::npos
- || s.empty())
+ || s.empty() || (s[0] >= '0' && s[0] <= '9'))
{
// need to quote it
stringstream ss;
regress0/printer/bv_consts_dec.smt2
regress0/printer/empty_symbol_name.smt2
regress0/printer/let_shadowing.smt2
+ regress0/printer/symbol_starting_w_digit.smt2
regress0/printer/tuples_and_records.cvc
regress0/proof_no_support.smt2
regress0/push-pop/boolean/fuzz_12.smt2
--- /dev/null
+; EXPECT: sat
+; EXPECT: ((|0_0| (_ bv1 4)))
+; EXPECT: ((x (_ bv3 4)))
+(set-option :produce-models true)
+(set-logic QF_BV)
+(declare-const |0_0| (_ BitVec 4))
+(declare-const x (_ BitVec 4))
+(assert (= |0_0| #b0001))
+(assert (= x #b0011))
+(check-sat)
+(get-value (|0_0|))
+(get-value (x))