I am trying to express
(assert(forall((t Task)) (not (mustPrecede t t))))
With the java API following the examples in JavaExample.java as follows
FuncDecl must = ctx.mkFuncDecl("mustPrecede", new Sort[]{TASK,TASK},ctx.mkBoolSort());
Expr Task1 = ctx.mkConst("TAKS1",TASK);
Expr[] bounds = new Expr[] { Task1 };
Expr bodys = ctx.mkNot(must[bounds[1],bounds[1]]);
q1 = ctx.mkForall(bounds, bodys, 1, null, no_pats, ctx.mkSymbol("q"),ctx.mkSymbol("sk"));
but this line gives me an error.. is this the correct way of calling a function inside and expression??. Can you help me with one simple example of how to express the above for all, in the available examples there is nothing similar. Thanks a lot!
Expr bodys = ctx.mkNot(must[bounds[1],bounds[1]]);