Skip to content
Advertisement

Tag: z3

Build in Z3 python a list of tuples

I am attempting to use Z3 solver in python to create a predicate path(list) which returns true if the list is a valid path on a given graph G I would like to construct a list of tuples using Z3 to represent all edges present in the graph, here is my first attempt: However I am getting an error: Z3Exception:

finding max of the numbers in z3 using SMTLIB2

I have 7 cups which contains some water. I need to program these cups to have different amounts of water. Once this is done I need to measure the cup which has the highest amount of water and then remove some quantity (say 2 units of water). c implementations: This will give an answer as c7 = 3.8 I was

Advertisement