1 /*******************************************************************************
2 * Copyright (c) 2017 Politecnico di Torino and others.
4 * All rights reserved. This program and the accompanying materials
5 * are made available under the terms of the Apache License, Version 2.0
6 * which accompanies this distribution, and is available at
7 * http://www.apache.org/licenses/LICENSE-2.0
8 *******************************************************************************/
10 package mcnet.netobjs;
12 import com.microsoft.z3.Context;
13 import com.microsoft.z3.DatatypeExpr;
14 import com.microsoft.z3.Solver;
16 import mcnet.components.NetworkObject;
19 * This is just a wrapper around z3 instances. The idea is that by using this we perhaps need to have
20 * fewer (or no) ifs to deal with the case where we don't instantiate an object for a node
23 public class DumbNode extends NetworkObject {
24 public DumbNode(Context ctx, Object[]... args){
29 protected void addConstraints(Solver solver) {
34 protected void init(Context ctx, Object[]... args) {
36 this.z3Node = (DatatypeExpr)args[0][0];
39 public DatatypeExpr getZ3Node() {