java - Z3: ParseSMTLIB2File/String -


i used parsesmtlib2file parse smt2 file context.smt2 has declarations of datatypes, constants, , functions; e.g.

    ; sort declarations     (declare-sort tla_sort_str)     (declare-const x tla_sort_str)     (declare-const y tla_sort_str)     (declare-const z tla_sort_str) 

and then, used parsesmtlib2string parse string "(assert (= x y))". following code:

     boolexpr expr = ctx.parsesmtlib2file("context.smt2", null, null, null, null);      string str = "(assert (= x y))";      boolexpr assert = ctx.parsesmtlib2string(str, null, null, null, null); 

unfortunately, received error. guess reason ctx doesn't know tla_sort_str, x , y are. if no, how can pass information in context.smt2 parsesmtlib2string? thank much.

that's 'null' arguments (one of them supply sorts have been constructed earlier).

not parsesmtlib2file not support features of smt2 or extensions. read assertions , ignore else, possibly including sort declarations. smt2 interaction language, within scope of parsesmtlib2file there no interaction, no commands excuted, e.g., imporant example (check-sat) command, not executed.


Comments

Popular posts from this blog

php - Wordpress website dashboard page or post editor content is not showing but front end data is showing properly -

javascript - Get parameter of GET request -

javascript - Twitter Bootstrap - how to add some more margin between tooltip popup and element -