package project;
import java.util.*;
import org.overture.codegen.runtime.*;
import org.overture.codegen.vdm2jml.runtime.*;
@SuppressWarnings("all")
//@ nullable_by_default
final public class Entry {
/*@ public ghost static boolean invChecksOn = true; @*/
private Entry() {}
public static Object Run() {
IO.println("Before useOk");
{
final Number ignorePattern_1 = useOk();
//@ assert Utils.is_nat(ignorePattern_1);
/* skip */
}
IO.println("After useOk");
IO.println("Before useNotOk");
{
final Number ignorePattern_2 = useNotOk();
//@ assert Utils.is_nat(ignorePattern_2);
/* skip */
}
IO.println("After useNotOk");
return 0L;
}
public static Number useOk() {
project.Entrytypes.A a = new project.Entrytypes.A(MapUtil.map());
//@ assert Utils.is_(a,project.Entrytypes.A.class);
//@ assert a != null;
a.set_m(
MapUtil.munion(
Utils.copy(a.get_m()), MapUtil.map(new Maplet(1L, new project.Entrytypes.B(2L)))));
Number ret_1 = 0L;
//@ assert Utils.is_nat(ret_1);
return ret_1;
}
public static Number useNotOk() {
project.Entrytypes.A a = new project.Entrytypes.A(MapUtil.map());
//@ assert Utils.is_(a,project.Entrytypes.A.class);
//@ assert a != null;
a.set_m(
MapUtil.munion(
Utils.copy(a.get_m()), MapUtil.map(new Maplet(1L, new project.Entrytypes.B(1L)))));
Number ret_2 = 0L;
//@ assert Utils.is_nat(ret_2);
return ret_2;
}
public String toString() {
return "Entry{}";
}
}