Skip to content

Commit 92122e8

Browse files
committed
parser: allow :searching parenthesized SAW context types
1 parent 0f60dfa commit 92122e8

File tree

2 files changed

+85
-2
lines changed

2 files changed

+85
-2
lines changed

intTests/test_search/search03.log.good

Lines changed: 84 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,5 +86,87 @@ z3 : ProofScript ()
8686
46 more matches tagged experimental; use enable_experimental to see them
8787
--------------------------------
8888
-- (ProofScript)
89-
90-
Parse error at <stdin>:1:13-1:14: Unexpected `)'
89+
abc : ProofScript ()
90+
admit : String -> ProofScript ()
91+
assume_unsat : ProofScript ()
92+
assume_valid : ProofScript ()
93+
beta_reduce_goal : ProofScript ()
94+
bitwuzla : ProofScript ()
95+
boolector : ProofScript ()
96+
check_goal : ProofScript ()
97+
crucible_llvm_verify : LLVMModule -> String -> [LLVMSpec] -> Bool -> LLVMSetup () -> ProofScript () -> TopLevel LLVMSpec
98+
cvc4 : ProofScript ()
99+
cvc5 : ProofScript ()
100+
external_aig_solver : String -> [String] -> ProofScript ()
101+
external_cnf_solver : String -> [String] -> ProofScript ()
102+
goal_eval : ProofScript ()
103+
goal_eval_unint : [String] -> ProofScript ()
104+
goal_num : ProofScript Int
105+
jvm_verify : JavaClass -> String -> [JVMSpec] -> Bool -> JVMSetup () -> ProofScript () -> TopLevel JVMSpec
106+
llvm_verify : LLVMModule -> String -> [LLVMSpec] -> Bool -> LLVMSetup () -> ProofScript () -> TopLevel LLVMSpec
107+
mathsat : ProofScript ()
108+
offline_aig : String -> ProofScript ()
109+
offline_aig_external : String -> ProofScript ()
110+
offline_cnf : String -> ProofScript ()
111+
offline_cnf_external : String -> ProofScript ()
112+
offline_extcore : String -> ProofScript ()
113+
offline_smtlib2 : String -> ProofScript ()
114+
offline_unint_smtlib2 : [String] -> String -> ProofScript ()
115+
offline_w4_unint_bitwuzla : [String] -> String -> ProofScript ()
116+
offline_w4_unint_cvc4 : [String] -> String -> ProofScript ()
117+
offline_w4_unint_cvc5 : [String] -> String -> ProofScript ()
118+
offline_w4_unint_yices : [String] -> String -> ProofScript ()
119+
offline_w4_unint_z3 : [String] -> String -> ProofScript ()
120+
print_goal : ProofScript ()
121+
print_goal_consts : ProofScript ()
122+
print_goal_depth : Int -> ProofScript ()
123+
print_goal_inline : [Int] -> ProofScript ()
124+
print_goal_size : ProofScript ()
125+
print_goal_summary : ProofScript ()
126+
prove : ProofScript () -> Term -> TopLevel ProofResult
127+
prove_core : ProofScript () -> String -> TopLevel Theorem
128+
prove_extcore : ProofScript () -> Term -> TopLevel Theorem
129+
prove_print : ProofScript () -> Term -> TopLevel Theorem
130+
quickcheck : Int -> ProofScript ()
131+
rme : ProofScript ()
132+
sat : ProofScript () -> Term -> TopLevel SatResult
133+
sat_print : ProofScript () -> Term -> TopLevel ()
134+
sbv_abc : ProofScript ()
135+
sbv_bitwuzla : ProofScript ()
136+
sbv_boolector : ProofScript ()
137+
sbv_cvc4 : ProofScript ()
138+
sbv_cvc5 : ProofScript ()
139+
sbv_mathsat : ProofScript ()
140+
sbv_unint_bitwuzla : [String] -> ProofScript ()
141+
sbv_unint_cvc4 : [String] -> ProofScript ()
142+
sbv_unint_cvc5 : [String] -> ProofScript ()
143+
sbv_unint_yices : [String] -> ProofScript ()
144+
sbv_unint_z3 : [String] -> ProofScript ()
145+
sbv_yices : ProofScript ()
146+
sbv_z3 : ProofScript ()
147+
simplify : Simpset -> ProofScript ()
148+
simplify_local : [Int] -> Simpset -> ProofScript ()
149+
trivial : ProofScript ()
150+
unfolding : [String] -> ProofScript ()
151+
unfolding_fix_once : [String] -> ProofScript ()
152+
unint_bitwuzla : [String] -> ProofScript ()
153+
unint_cvc4 : [String] -> ProofScript ()
154+
unint_cvc5 : [String] -> ProofScript ()
155+
unint_yices : [String] -> ProofScript ()
156+
unint_z3 : [String] -> ProofScript ()
157+
w4 : ProofScript ()
158+
w4_abc_aiger : ProofScript ()
159+
w4_abc_smtlib2 : ProofScript ()
160+
w4_abc_verilog : ProofScript ()
161+
w4_offline_smtlib2 : String -> ProofScript ()
162+
w4_unint_bitwuzla : [String] -> ProofScript ()
163+
w4_unint_cvc4 : [String] -> ProofScript ()
164+
w4_unint_cvc5 : [String] -> ProofScript ()
165+
w4_unint_rme : [String] -> ProofScript ()
166+
w4_unint_yices : [String] -> ProofScript ()
167+
w4_unint_z3 : [String] -> ProofScript ()
168+
w4_unint_z3_using : String -> [String] -> ProofScript ()
169+
write_goal : String -> ProofScript ()
170+
yices : ProofScript ()
171+
z3 : ProofScript ()
172+
46 more matches tagged experimental; use enable_experimental to see them

saw-script/src/SAWScript/Parser.y

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -270,6 +270,7 @@ Context :: { Type }
270270
| 'ProofScript' { tContext (getPos $1) ProofScript }
271271
| 'TopLevel' { tContext (getPos $1) TopLevel }
272272
| 'CrucibleSetup' { tContext (getPos $1) LLVMSetup }
273+
| '(' Context ')' { $2 }
273274

274275
TypeName :: { Type }
275276
: name { tVar (getPos $1) (tokStr $1) }

0 commit comments

Comments
 (0)