From d7647dda4fe577a5a9d8569e0a9e0e28496c0744 Mon Sep 17 00:00:00 2001 From: Nathanael Sensfelder Date: Tue, 25 Jul 2017 16:59:20 +0200 Subject: Gets the strings seemingly working. --- instr-to-kodkod/src/VHDLModel.java | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) (limited to 'instr-to-kodkod/src/VHDLModel.java') diff --git a/instr-to-kodkod/src/VHDLModel.java b/instr-to-kodkod/src/VHDLModel.java index 7a9671e..ea024b8 100644 --- a/instr-to-kodkod/src/VHDLModel.java +++ b/instr-to-kodkod/src/VHDLModel.java @@ -350,4 +350,29 @@ public class VHDLModel return t.get_as_relation(); } } + + public Relation get_atom_as_relation + ( + final String type, + final String id + ) + { + final VHDLType t; + + t = types.get(type); + + if (t == null) + { + return null; + } + else + { + return t.get_member_as_relation(id); + } + } + + public VHDLType get_string_type () + { + return types.get("string"); + } } -- cgit v1.2.3-70-g09d2