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 *******************************************************************************/
9 package it.polito.verigraph.mcnet.netobjs;
11 import com.microsoft.z3.Context;
12 import com.microsoft.z3.DatatypeExpr;
13 import com.microsoft.z3.Solver;
14 import it.polito.verigraph.mcnet.components.NetworkObject;
17 * This is just a wrapper around z3 instances. The idea is that by using this we perhaps need to have
18 * fewer (or no) ifs to deal with the case where we don't instantiate an object for a node
21 public class DumbNode extends NetworkObject {
22 public DumbNode(Context ctx, Object[]... args){
27 protected void addConstraints(Solver solver) {
32 protected void init(Context ctx, Object[]... args) {
34 this.z3Node = (DatatypeExpr)args[0][0];
37 public DatatypeExpr getZ3Node() {