Skip to content

Commit

Permalink
Merge branch 'master' into highprecision
Browse files Browse the repository at this point in the history
  • Loading branch information
nickbattle committed Nov 28, 2023
2 parents 04df687 + 4db600d commit 3e95f0c
Show file tree
Hide file tree
Showing 17 changed files with 22 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ public QCRunCommand(String line)
{
super(line);

if (!argv[0].equals("qcrun"))
if (!argv[0].equals("qcrun") && !argv[0].equals("qr"))
{
throw new IllegalArgumentException(USAGE);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@ public AnalysisCommand getCommand(String line)
return new QuickCheckLSPCommand(line);

case "qcrun":
case "qr":
return new QCRunLSPCommand(line);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ public AnalysisCommand getCommand(String line)
return new QuickCheckCommand(line);

case "qcrun":
case "qr":
return new QCRunCommand(line);
}

Expand Down
2 changes: 2 additions & 0 deletions lsp/src/main/java/workspace/LSPWorkspaceManager.java
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@
import java.nio.file.Paths;
import java.nio.file.attribute.BasicFileAttributes;
import java.nio.file.attribute.FileTime;
import java.util.Arrays;
import java.util.Collections;
import java.util.HashMap;
import java.util.HashSet;
Expand Down Expand Up @@ -421,6 +422,7 @@ private void loadProjectFiles(File root) throws IOException
{
FilenameFilter filter = getFilenameFilter();
File[] files = root.listFiles();
Arrays.sort(files); // Predictable order
List<File> ignored = new Vector<File>();

for (File file: files)
Expand Down
1 change: 1 addition & 0 deletions stdlib/src/main/resources/CSV.vdmpp
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
-- @NoPOG - do not generate obligations for this class
class CSV

-- Overture STANDARD LIBRARY: INPUT/OUTPUT
Expand Down
1 change: 1 addition & 0 deletions stdlib/src/main/resources/CSV.vdmrt
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
-- @NoPOG - do not generate obligations for this class
class CSV

-- Overture STANDARD LIBRARY: INPUT/OUTPUT
Expand Down
1 change: 1 addition & 0 deletions stdlib/src/main/resources/CSV.vdmsl
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
-- @NoPOG - do not generate obligations for this module
module CSV
-- Overture STANDARD LIBRARY: INPUT/OUTPUT
-- --------------------------------------------
Expand Down
1 change: 1 addition & 0 deletions stdlib/src/main/resources/IO.vdmpp
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
-- @NoPOG - do not generate obligations for this class
class IO

-- VDMTools STANDARD LIBRARY: INPUT/OUTPUT
Expand Down
1 change: 1 addition & 0 deletions stdlib/src/main/resources/IO.vdmrt
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
-- @NoPOG - do not generate obligations for this class
class IO

-- VDMTools STANDARD LIBRARY: INPUT/OUTPUT
Expand Down
1 change: 1 addition & 0 deletions stdlib/src/main/resources/IO.vdmsl
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
-- @NoPOG - do not generate obligations for this module
module IO
exports all
definitions
Expand Down
1 change: 1 addition & 0 deletions stdlib/src/main/resources/MATH.vdmpp
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
-- @NoPOG - do not generate obligations for this class
class MATH

-- VDMTools STANDARD LIBRARY: MATH
Expand Down
1 change: 1 addition & 0 deletions stdlib/src/main/resources/MATH.vdmrt
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
-- @NoPOG - do not generate obligations for this class
class MATH

-- VDMTools STANDARD LIBRARY: MATH
Expand Down
3 changes: 2 additions & 1 deletion stdlib/src/main/resources/MATH.vdmsl
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
-- @NoPOG - do not generate obligations for this module
module MATH
exports all
definitions
Expand Down Expand Up @@ -56,7 +57,7 @@ definitions
sqrt:real -> real
sqrt(a) ==
is not yet specified
;--pre a >= 0;
pre a >= 0;

pi_f:() +> real
pi_f () ==
Expand Down
1 change: 1 addition & 0 deletions stdlib/src/main/resources/VDMUtil.vdmpp
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
-- @NoPOG - do not generate obligations for this class
class VDMUtil

-- VDMTools STANDARD LIBRARY: MiscUtils
Expand Down
1 change: 1 addition & 0 deletions stdlib/src/main/resources/VDMUtil.vdmrt
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
-- @NoPOG - do not generate obligations for this class
class VDMUtil

-- VDMTools STANDARD LIBRARY: MiscUtils
Expand Down
1 change: 1 addition & 0 deletions stdlib/src/main/resources/VDMUtil.vdmsl
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
-- @NoPOG - do not generate obligations for this module
module VDMUtil

-- VDMTools STANDARD LIBRARY: MiscUtils
Expand Down
5 changes: 4 additions & 1 deletion vdmj/src/main/java/com/fujitsu/vdmj/plugins/Lifecycle.java
Original file line number Diff line number Diff line change
Expand Up @@ -352,7 +352,10 @@ protected void findFiles()

if (file.isDirectory())
{
for (File subfile: file.listFiles(Settings.dialect.getFilter()))
File[] list = file.listFiles(Settings.dialect.getFilter());
Arrays.sort(list); // Predictable order

for (File subfile: list)
{
if (subfile.isFile())
{
Expand Down

0 comments on commit 3e95f0c

Please sign in to comment.