From b75caa85425dc5bd8e04aa58f381b5bf44032192 Mon Sep 17 00:00:00 2001 From: Niklas Heneka <93838730+NiklasHeneka@users.noreply.github.com> Date: Sat, 15 Jul 2023 18:37:15 +0200 Subject: [PATCH] Fix a failing test and a mistake in the LLVMIR antlr grammar. --- cli/src/test/java/de/jplag/cli/LanguageTest.java | 2 +- .../llvmir/src/main/antlr4/de/jplag/llvmir/grammar/LLVMIR.g4 | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/cli/src/test/java/de/jplag/cli/LanguageTest.java b/cli/src/test/java/de/jplag/cli/LanguageTest.java index 307d414e4..9f8a7a229 100644 --- a/cli/src/test/java/de/jplag/cli/LanguageTest.java +++ b/cli/src/test/java/de/jplag/cli/LanguageTest.java @@ -28,7 +28,7 @@ void testInvalidLanguage() throws Exception { @Test void testLoading() { var languages = LanguageLoader.getAllAvailableLanguages(); - assertEquals(14, languages.size(), "Loaded Languages: " + languages.keySet()); + assertEquals(15, languages.size(), "Loaded Languages: " + languages.keySet()); } @Test diff --git a/languages/llvmir/src/main/antlr4/de/jplag/llvmir/grammar/LLVMIR.g4 b/languages/llvmir/src/main/antlr4/de/jplag/llvmir/grammar/LLVMIR.g4 index 466266603..29983cb8a 100644 --- a/languages/llvmir/src/main/antlr4/de/jplag/llvmir/grammar/LLVMIR.g4 +++ b/languages/llvmir/src/main/antlr4/de/jplag/llvmir/grammar/LLVMIR.g4 @@ -822,6 +822,7 @@ returnAttr: | 'noalias' | 'nonnull' | 'noundef' + | align | 'signext' | 'zeroext'; overflowFlag: 'nsw' | 'nuw';