Skip to content
Snippets Groups Projects
Commit 783f0b68 authored by sctibor's avatar sctibor
Browse files

Simplify printing the solution

parent 584f026c
No related branches found
No related tags found
No related merge requests found
...@@ -13,7 +13,7 @@ Description: ...@@ -13,7 +13,7 @@ Description:
from z3 import * from z3 import *
from route_map import RouteMap, RmItem from route_map import RouteMap, RmItem
from network import Network, Solution, SessionType from network import Network, SessionType
from routing_semantics import RoutingEquations, EnvironmentConstraints, TransformedRoute from routing_semantics import RoutingEquations, EnvironmentConstraints, TransformedRoute
net = Network() net = Network()
...@@ -72,7 +72,6 @@ s.add(EnvironmentConstraints(net)) ...@@ -72,7 +72,6 @@ s.add(EnvironmentConstraints(net))
if s.check() == sat: if s.check() == sat:
print("Specification is violated!") print("Specification is violated!")
sol = Solution(s) net.pprint(s)
print(net.fmt(sol))
else: else:
print("Specification is satisfied!") print("Specification is satisfied!")
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment