repo stringlengths 1 191 ⌀ | file stringlengths 23 351 | code stringlengths 0 5.32M | file_length int64 0 5.32M | avg_line_length float64 0 2.9k | max_line_length int64 0 288k | extension_type stringclasses 1
value |
|---|---|---|---|---|---|---|
jkind | jkind-master/jkind/src/jkind/translation/compound/FlattenCompoundExpressions.java | package jkind.translation.compound;
import java.util.ArrayDeque;
import java.util.Deque;
import jkind.lustre.ArrayAccessExpr;
import jkind.lustre.ArrayExpr;
import jkind.lustre.Expr;
import jkind.lustre.IdExpr;
import jkind.lustre.IfThenElseExpr;
import jkind.lustre.IntExpr;
import jkind.lustre.Program;
import jkind.... | 2,266 | 24.188889 | 75 | java |
jkind | jkind-master/jkind/src/jkind/translation/compound/FlattenCompoundFunctionInputs.java | package jkind.translation.compound;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import jkind.lustre.Expr;
import jkind.lustre.Function;
import jkind.lustre.FunctionCallExpr;
import jkind.lustre.Program;
import jkind.lustre.Type;
import jkind.lustre.VarDecl;
impor... | 1,739 | 27.52459 | 77 | java |
jkind | jkind-master/jkind/src/jkind/translation/compound/CompoundUtil.java | package jkind.translation.compound;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
import java.util.Map;
import java.util.Map.Entry;
import jkind.lustre.ArrayAccessExpr;
import jkind.lustre.ArrayType;
import jkind.lustre.BinaryExpr;
import jkind.lustre.BinaryOp;
import jkind.lustre.E... | 2,277 | 28.973684 | 92 | java |
jkind | jkind-master/jkind/src/jkind/translation/compound/RemoveArrayUpdates.java | package jkind.translation.compound;
import java.util.ArrayList;
import java.util.List;
import jkind.lustre.ArrayAccessExpr;
import jkind.lustre.ArrayExpr;
import jkind.lustre.ArrayType;
import jkind.lustre.ArrayUpdateExpr;
import jkind.lustre.Expr;
import jkind.lustre.IntExpr;
import jkind.lustre.Program;
import jkin... | 1,195 | 25.577778 | 80 | java |
jkind | jkind-master/jkind/src/jkind/translation/compound/RecordAccess.java | package jkind.translation.compound;
public class RecordAccess implements Access {
public final String field;
public RecordAccess(String field) {
this.field = field;
}
@Override
public String toString() {
return "." + field;
}
}
| 241 | 15.133333 | 45 | java |
jkind | jkind-master/jkind/src/jkind/translation/compound/FlattenCompoundVariables.java | package jkind.translation.compound;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.Map.Entry;
import jkind.lustre.ArrayAccessExpr;
import jkind.lustre.ArrayType;
import jkind.lustre.Equation;
import jkind.lustre.Expr;
import jkind.lustre.IdExpr;
imp... | 4,072 | 31.070866 | 83 | java |
jkind | jkind-master/jkind/src/jkind/translation/compound/Expander.java | package jkind.translation.compound;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import java.util.Map.Entry;
import jkind.lustre.ArrayAccessExpr;
import jkind.lustre.ArrayExpr;
import jkind.lustre.ArrayType;
import jkind.lustre.Expr;
import jkind.lustre.RecordAcce... | 1,404 | 29.543478 | 76 | java |
jkind | jkind-master/jkind/src/jkind/translation/compound/FlattenCompoundTypes.java | package jkind.translation.compound;
import jkind.lustre.Program;
import jkind.translation.tuples.FlattenTuples;
/**
* Flatten arrays and records to scalars
*
* Assumption: All node calls have been inlined.
*/
public class FlattenCompoundTypes {
public static Program program(Program program) {
program = Remove... | 818 | 31.76 | 60 | java |
jkind | jkind-master/jkind/src/jkind/translation/compound/ArrayAccess.java | package jkind.translation.compound;
import java.math.BigInteger;
public class ArrayAccess implements Access {
public final BigInteger index;
public ArrayAccess(BigInteger index) {
this.index = index;
}
@Override
public String toString() {
return "[" + index + "]";
}
}
| 283 | 15.705882 | 44 | java |
jkind | jkind-master/jkind/src/jkind/translation/compound/ExprType.java | package jkind.translation.compound;
import jkind.lustre.Expr;
import jkind.lustre.Type;
public class ExprType {
public final Expr expr;
public final Type type;
public ExprType(Expr expr, Type type) {
this.expr = expr;
this.type = type;
}
}
| 251 | 15.8 | 40 | java |
jkind | jkind-master/jkind/src/jkind/translation/compound/Access.java | package jkind.translation.compound;
public interface Access {
}
| 66 | 10.166667 | 35 | java |
jkind | jkind-master/jkind/src/jkind/translation/compound/RemoveRecordUpdates.java | package jkind.translation.compound;
import java.util.HashMap;
import java.util.Map;
import jkind.lustre.Expr;
import jkind.lustre.Program;
import jkind.lustre.RecordAccessExpr;
import jkind.lustre.RecordExpr;
import jkind.lustre.RecordType;
import jkind.lustre.RecordUpdateExpr;
import jkind.lustre.visitors.TypeAwareA... | 1,325 | 24.018868 | 71 | java |
jkind | jkind-master/jkind/src/jkind/translation/compound/FlattenCompoundFunctionOutputs.java | package jkind.translation.compound;
import java.util.ArrayList;
import java.util.HashMap;
import java.util.List;
import java.util.Map;
import jkind.lustre.Expr;
import jkind.lustre.Function;
import jkind.lustre.FunctionCallExpr;
import jkind.lustre.IdExpr;
import jkind.lustre.Program;
import jkind.lustre.TupleExpr;
i... | 2,197 | 27.545455 | 84 | java |
jkind | jkind-master/jkind/src/jkind/translation/compound/RemoveNonConstantArrayIndices.java | package jkind.translation.compound;
import java.util.ArrayList;
import java.util.List;
import jkind.analysis.ConstantAnalyzer;
import jkind.analysis.evaluation.ConstantEvaluator;
import jkind.lustre.ArrayAccessExpr;
import jkind.lustre.ArrayExpr;
import jkind.lustre.ArrayType;
import jkind.lustre.ArrayUpdateExpr;
imp... | 2,674 | 30.104651 | 80 | java |
jkind | jkind-master/jkind/src/jkind/translation/compound/FlattenCompoundComparisons.java | package jkind.translation.compound;
import static jkind.lustre.LustreUtil.not;
import java.util.List;
import jkind.lustre.ArrayType;
import jkind.lustre.BinaryExpr;
import jkind.lustre.BinaryOp;
import jkind.lustre.Expr;
import jkind.lustre.LustreUtil;
import jkind.lustre.Program;
import jkind.lustre.RecordType;
imp... | 1,562 | 29.057692 | 94 | java |
jkind | jkind-master/jkind/src/jkind/translation/tuples/FlattenTupleComparisons.java | package jkind.translation.tuples;
import jkind.lustre.BinaryExpr;
import jkind.lustre.BinaryOp;
import jkind.lustre.Expr;
import jkind.lustre.LustreUtil;
import jkind.lustre.Program;
import jkind.lustre.TupleExpr;
import jkind.lustre.UnaryExpr;
import jkind.lustre.UnaryOp;
import jkind.lustre.visitors.AstMapVisitor;
... | 1,309 | 28.111111 | 94 | java |
jkind | jkind-master/jkind/src/jkind/translation/tuples/LiftTuples.java | package jkind.translation.tuples;
import jkind.lustre.BinaryExpr;
import jkind.lustre.BinaryOp;
import jkind.lustre.Expr;
import jkind.lustre.IfThenElseExpr;
import jkind.lustre.Program;
import jkind.lustre.TupleExpr;
import jkind.lustre.UnaryExpr;
import jkind.lustre.visitors.AstMapVisitor;
/**
* Lift all tuples as... | 1,390 | 25.245283 | 76 | java |
jkind | jkind-master/jkind/src/jkind/translation/tuples/FlattenTuples.java | package jkind.translation.tuples;
import jkind.lustre.Program;
/**
* Flatten all tuple expressions via expansion.
*
* Assumption: All node calls have been inlined.
*/
public class FlattenTuples {
public static Program program(Program program) {
program = LiftTuples.program(program);
program = FlattenTupleCo... | 425 | 22.666667 | 53 | java |
jkind | jkind-master/jkind/src/jkind/translation/tuples/TupleUtil.java | package jkind.translation.tuples;
import java.util.ArrayList;
import java.util.List;
import jkind.lustre.BinaryOp;
import jkind.lustre.Expr;
import jkind.lustre.IfThenElseExpr;
import jkind.lustre.TupleExpr;
import jkind.lustre.UnaryExpr;
import jkind.lustre.UnaryOp;
import jkind.translation.compound.CompoundUtil;
p... | 1,278 | 28.744186 | 83 | java |
jkind | jkind-master/jkind/src/jkind/translation/tuples/FlattenTupleAssignments.java | package jkind.translation.tuples;
import java.util.ArrayList;
import java.util.Collections;
import java.util.List;
import jkind.lustre.Equation;
import jkind.lustre.Program;
import jkind.lustre.TupleExpr;
import jkind.lustre.visitors.AstMapVisitor;
/**
* Expand tuple assignments into single value assignments
*
*... | 1,127 | 24.636364 | 73 | java |
gluon | gluon-master/src/main/java/gluon/Main.java | /* This file is part of Gluon.
*
* Gluon is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* Gluon is distributed in the hope th... | 13,938 | 33.080685 | 87 | java |
gluon | gluon-master/src/main/java/gluon/AnalysisMain.java | /* This file is part of Gluon.
*
* Gluon is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* Gluon is distributed in the hope th... | 16,290 | 27.381533 | 120 | java |
gluon | gluon-master/src/main/java/gluon/WordInstance.java | /* This file is part of Gluon.
*
* Gluon is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* Gluon is distributed in the hope th... | 7,971 | 26.777003 | 81 | java |
gluon | gluon-master/src/main/java/gluon/profiling/Profiling.java | /* This file is part of Gluon.
*
* Gluon is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* Gluon is distributed in the hope th... | 1,559 | 19.8 | 71 | java |
gluon | gluon-master/src/main/java/gluon/profiling/Timer.java | /* This file is part of Gluon.
*
* Gluon is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* Gluon is distributed in the hope th... | 1,913 | 21.785714 | 73 | java |
gluon | gluon-master/src/main/java/gluon/parsing/parseTree/ParseTree.java | /* This file is part of Gluon.
*
* Gluon is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* Gluon is distributed in the hope th... | 4,325 | 28.834483 | 78 | java |
gluon | gluon-master/src/main/java/gluon/parsing/parseTree/ParseTreeNode.java | /* This file is part of Gluon.
*
* Gluon is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* Gluon is distributed in the hope th... | 1,339 | 21.333333 | 71 | java |
gluon | gluon-master/src/main/java/gluon/parsing/parser/ParserCallback.java | /* This file is part of Gluon.
*
* Gluon is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* Gluon is distributed in the hope th... | 1,548 | 35.023256 | 79 | java |
gluon | gluon-master/src/main/java/gluon/parsing/parser/ParserSubwords.java | /* This file is part of Gluon.
*
* Gluon is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* Gluon is distributed in the hope th... | 9,950 | 29.431193 | 90 | java |
gluon | gluon-master/src/main/java/gluon/parsing/parser/ParserNormal.java | /* This file is part of Gluon.
*
* Gluon is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* Gluon is distributed in the hope th... | 1,780 | 28.196721 | 84 | java |
gluon | gluon-master/src/main/java/gluon/parsing/parser/Parser.java | /* This file is part of Gluon.
*
* Gluon is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* Gluon is distributed in the hope th... | 14,670 | 26.118299 | 83 | java |
gluon | gluon-master/src/main/java/gluon/parsing/parser/ParserAbortedException.java | /* This file is part of Gluon.
*
* Gluon is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* Gluon is distributed in the hope th... | 822 | 29.481481 | 71 | java |
gluon | gluon-master/src/main/java/gluon/parsing/parsingTable/ParsingTable.java | /* This file is part of Gluon.
*
* Gluon is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* Gluon is distributed in the hope th... | 19,394 | 25.244926 | 86 | java |
gluon | gluon-master/src/main/java/gluon/parsing/parsingTable/Item.java | /* This file is part of Gluon.
*
* Gluon is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* Gluon is distributed in the hope th... | 2,052 | 20.385417 | 71 | java |
gluon | gluon-master/src/main/java/gluon/parsing/parsingTable/parsingAction/ParsingActionAccept.java | /* This file is part of Gluon.
*
* Gluon is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* Gluon is distributed in the hope th... | 1,092 | 23.288889 | 71 | java |
gluon | gluon-master/src/main/java/gluon/parsing/parsingTable/parsingAction/ParsingAction.java | /* This file is part of Gluon.
*
* Gluon is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* Gluon is distributed in the hope th... | 876 | 34.08 | 71 | java |
gluon | gluon-master/src/main/java/gluon/parsing/parsingTable/parsingAction/ParsingActionReduce.java | /* This file is part of Gluon.
*
* Gluon is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* Gluon is distributed in the hope th... | 1,465 | 23.032787 | 71 | java |
gluon | gluon-master/src/main/java/gluon/parsing/parsingTable/parsingAction/ParsingActionShift.java | /* This file is part of Gluon.
*
* Gluon is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* Gluon is distributed in the hope th... | 1,333 | 21.610169 | 71 | java |
gluon | gluon-master/src/main/java/gluon/grammar/Symbol.java | /* This file is part of Gluon.
*
* Gluon is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* Gluon is distributed in the hope th... | 1,109 | 23.666667 | 71 | java |
gluon | gluon-master/src/main/java/gluon/grammar/Terminal.java | /* This file is part of Gluon.
*
* Gluon is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* Gluon is distributed in the hope th... | 899 | 27.125 | 71 | java |
gluon | gluon-master/src/main/java/gluon/grammar/EOITerminal.java | /* This file is part of Gluon.
*
* Gluon is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* Gluon is distributed in the hope th... | 1,138 | 21.78 | 71 | java |
gluon | gluon-master/src/main/java/gluon/grammar/NonTerminal.java | /* This file is part of Gluon.
*
* Gluon is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* Gluon is distributed in the hope th... | 1,054 | 26.763158 | 71 | java |
gluon | gluon-master/src/main/java/gluon/grammar/Production.java | /* This file is part of Gluon.
*
* Gluon is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* Gluon is distributed in the hope th... | 3,087 | 20.444444 | 78 | java |
gluon | gluon-master/src/main/java/gluon/grammar/Cfg.java | /* This file is part of Gluon.
*
* Gluon is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* Gluon is distributed in the hope th... | 5,848 | 22.396 | 79 | java |
gluon | gluon-master/src/main/java/gluon/grammar/transform/CfgOptimizer.java | /* This file is part of Gluon.
*
* Gluon is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* Gluon is distributed in the hope th... | 5,834 | 26.013889 | 86 | java |
gluon | gluon-master/src/main/java/gluon/grammar/transform/CfgSubwords.java | /* This file is part of Gluon.
*
* Gluon is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* Gluon is distributed in the hope th... | 8,224 | 26.508361 | 78 | java |
gluon | gluon-master/src/main/java/gluon/grammar/transform/CfgRemoveEpsilons.java | /* This file is part of Gluon.
*
* Gluon is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* Gluon is distributed in the hope th... | 5,134 | 26.607527 | 77 | java |
gluon | gluon-master/src/main/java/gluon/analysis/pointsTo/PointsToInformation.java | /* This file is part of Gluon.
*
* Gluon is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* Gluon is distributed in the hope th... | 2,851 | 27.52 | 82 | java |
gluon | gluon-master/src/main/java/gluon/analysis/atomicity/AtomicityAnalysis.java | /* This file is part of Gluon.
*
* Gluon is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* Gluon is distributed in the hope th... | 4,655 | 29.03871 | 134 | java |
gluon | gluon-master/src/main/java/gluon/analysis/programBehavior/PBNonTerminal.java | /* This file is part of Gluon.
*
* Gluon is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* Gluon is distributed in the hope th... | 1,997 | 19.8125 | 71 | java |
gluon | gluon-master/src/main/java/gluon/analysis/programBehavior/PBTerminal.java | /* This file is part of Gluon.
*
* Gluon is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* Gluon is distributed in the hope th... | 4,140 | 21.144385 | 88 | java |
gluon | gluon-master/src/main/java/gluon/analysis/programBehavior/ClassBehaviorAnalysis.java | /* This file is part of Gluon.
*
* Gluon is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* Gluon is distributed in the hope th... | 3,675 | 26.848485 | 82 | java |
gluon | gluon-master/src/main/java/gluon/analysis/programBehavior/WholeProgramBehaviorAnalysis.java | /* This file is part of Gluon.
*
* Gluon is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* Gluon is distributed in the hope th... | 3,314 | 27.333333 | 88 | java |
gluon | gluon-master/src/main/java/gluon/analysis/programBehavior/BehaviorAnalysis.java | /* This file is part of Gluon.
*
* Gluon is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* Gluon is distributed in the hope th... | 14,946 | 28.307843 | 87 | java |
gluon | gluon-master/src/main/java/gluon/analysis/thread/ThreadAnalysis.java | /* This file is part of Gluon.
*
* Gluon is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* Gluon is distributed in the hope th... | 3,252 | 25.884298 | 84 | java |
gluon | gluon-master/src/main/java/gluon/analysis/valueEquivalence/ValueM.java | /* This file is part of Gluon.
*
* Gluon is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* Gluon is distributed in the hope th... | 2,550 | 22.40367 | 89 | java |
gluon | gluon-master/src/main/java/gluon/analysis/valueEquivalence/ValueEquivAnalysis.java | /* This file is part of Gluon.
*
* Gluon is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* Gluon is distributed in the hope th... | 4,736 | 27.709091 | 83 | java |
gluon | gluon-master/src/main/java/gluon/analysis/monitor/MonitorAnalysis.java | /* This file is part of Gluon.
*
* Gluon is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* Gluon is distributed in the hope th... | 3,257 | 25.064 | 80 | java |
gluon | gluon-master/src/main/java/gluon/contract/Contract.java | /* This file is part of Gluon.
*
* Gluon is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* Gluon is distributed in the hope th... | 5,881 | 27.143541 | 86 | java |
gluon | gluon-master/src/main/java/gluon/contract/parsing/ContractVisitorExtractWords.java | /* This file is part of Gluon.
*
* Gluon is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* Gluon is distributed in the hope th... | 3,808 | 23.733766 | 84 | java |
gluon | gluon-master/test/common/Atomic.java | package test.common;
public @interface Atomic
{
}
| 51 | 7.666667 | 24 | java |
gluon | gluon-master/test/common/Contract.java | package test.common;
public @interface Contract
{
String clauses();
}
| 75 | 9.857143 | 26 | java |
gluon | gluon-master/test/simple/atomic/Main.java | package test.simple.atomic;
@interface Atomic
{
}
class Module
{
public Module() {}
public void a() {}
public void b() {}
}
public class Main
{
private static Module m;
private static void na()
{
}
private static void a1()
{
na();
}
private static void a0()
... | 618 | 10.903846 | 42 | java |
gluon | gluon-master/test/simple/threads/Main.java | package test.simple.threads;
class Module
{
public void modulemethod()
{
}
}
class TestThread
extends Thread
{
private Module m;
private void g()
{
run();
m.modulemethod();
}
@Override
public void run()
{
m=new Module();
g();
}
}
publi... | 492 | 10.738095 | 42 | java |
gluon | gluon-master/test/simple/exampleargssimple/Main.java | package test.simple.exampleargssimple;
import test.common.Contract;
@Contract(clauses="V=get(_) set(_,V);"
+"get(K) set(K,_);")
class Module
{
public Module() { }
public int get(int k) { return 0; }
public void set(int k, int v) { }
}
public class Main
{
private static Module m;
... | 710 | 17.710526 | 42 | java |
gluon | gluon-master/test/simple/recursion2/Main.java | package test.simple.recursion2;
import test.common.Contract;
@Contract(clauses="a a b c;"
+"b c;"
+"b c c")
class Module
{
public Module() { }
public void a() { }
public void b() { }
public void c() { }
}
public class Main
{
private static Module m;
private ... | 796 | 15.604167 | 42 | java |
gluon | gluon-master/test/simple/flowControl/Main.java | package test.simple.flowControl;
public class Main
{
public static Module m;
public static boolean cond()
{
m.c();
return m == new Module();
}
public static void main(String[] args)
{
m=new Module();
if (cond())
m.a();
else
m.b(... | 441 | 13.258065 | 42 | java |
gluon | gluon-master/test/simple/flowControl/Module.java | package test.simple.flowControl;
public class Module
{
public Module()
{
}
public void a()
{
}
public void b()
{
}
public void c()
{
}
public void d()
{
}
public void e()
{
}
public void f()
{
}
public void g()
{
}
}... | 321 | 7.702703 | 32 | java |
gluon | gluon-master/test/simple/basicAbcNonAtomic/Main.java | package test.simple.basicAbcNonAtomic;
import test.common.Atomic;
import test.common.Contract;
@Contract(clauses ="a b c;"
+"l l l l l l l l;"
+"i1 i2;")
class Module
{
public Module() {}
public void a() {}
public void b() {}
public void c() {}
public void l()... | 1,177 | 12.697674 | 42 | java |
gluon | gluon-master/test/simple/withoutParams/Main.java | package test.simple.withoutParams;
import test.common.Contract;
@Contract(clauses="indexOf remove;")
class Module
{
public Module() {}
public int indexOf() { return 0; }
public void remove(int i) {}
}
public class Main {
private static Module m;
public static void main(String[] args) {
... | 415 | 16.333333 | 44 | java |
gluon | gluon-master/test/simple/recursion/Main.java | package test.simple.recursion;
public class Main
{
public static Module m;
public static void main(String[] args)
{
m=new Module();
m.a();
C.foo(m);
m.b();
main(new String[0]);
m.c();
}
}
| 255 | 13.222222 | 42 | java |
gluon | gluon-master/test/simple/recursion/C.java | package test.simple.recursion;
public class C
{
public static void foo(Module m)
{
m.d();
foo(m);
m.e();
foo(m);
m.f();
Main.main(new String[0]);
m.g();
}
}
| 226 | 13.1875 | 36 | java |
gluon | gluon-master/test/simple/recursion/Module.java | package test.simple.recursion;
public class Module
{
public Module()
{
}
public void a()
{
}
public void b()
{
}
public void c()
{
}
public void d()
{
}
public void e()
{
}
public void f()
{
}
public void g()
{
}
}
| 319 | 7.648649 | 30 | java |
gluon | gluon-master/test/simple/auction/Bid.java | package test.simple.auction;
/**
* @author Diogo Sousa, nº 28970, Turno P10
*
* Docente (prática): Pedro Leandro da Silva Amaral
* Docente (teórico-prática): Miguel Goulão
*/
public class Bid implements Comparable<Bid>
{
public static final char PLACEHOLDER=':'; /* Placeholder for toString()
and from... | 1,568 | 17.903614 | 72 | java |
gluon | gluon-master/test/simple/auction/Main.java | package test.simple.auction;
/**
* @author Diogo Sousa, nº 28970, Turno P10
*
* Docente (prática): Pedro Leandro da Silva Amaral
* Docente (teórico-prática): Miguel Goulão
*/
import java.util.Scanner;
import java.io.PrintWriter;
import java.io.FileReader;
import java.io.File;
public class Main
{
public stat... | 13,980 | 23.614437 | 79 | java |
gluon | gluon-master/test/simple/auction/Array.java | package test.simple.auction;
/**
* @author Diogo Sousa, nº 28970, Turno P10
*
* Docente (prática): Pedro Leandro da Silva Amaral
* Docente (teórico-prática): Miguel Goulão
*/
import java.util.Comparator;
/* Generic type array implementation.
*
* Note: You may safely ignore the type safety warning at compile t... | 2,942 | 15.721591 | 71 | java |
gluon | gluon-master/test/simple/auction/SorterQuickSort.java | package test.simple.auction;
/**
* @author Diogo Sousa, nº 28970, Turno P10
*
* Docente (prática): Pedro Leandro da Silva Amaral
* Docente (teórico-prática): Miguel Goulão
*/
import java.util.Comparator;
import java.util.Random;
/* SorterQuickSort implements quicksort, a non-stable, in-place sorting
* algorith... | 1,994 | 21.166667 | 78 | java |
gluon | gluon-master/test/simple/auction/Sorter.java | package test.simple.auction;
/**
* @author Diogo Sousa, nº 28970, Turno P10
*
* Docente (prática): Pedro Leandro da Silva Amaral
* Docente (teórico-prática): Miguel Goulão
*/
/* Interface for a array sorter */
public interface Sorter<T>
{
public void sort();
public void setArray(Array<T> array);
}
| 308 | 18.3125 | 51 | java |
gluon | gluon-master/test/simple/auction/AuctionItemComparator.java | package test.simple.auction;
/**
* @author Diogo Sousa, nº 28970, Turno P10
*
* Docente (prática): Pedro Leandro da Silva Amaral
* Docente (teórico-prática): Miguel Goulão
*/
import java.util.Comparator;
/* AuctionItem comparator, see compare() comment. */
public class AuctionItemComparator implements Comparato... | 924 | 19.555556 | 71 | java |
gluon | gluon-master/test/simple/auction/Auction.java | package test.simple.auction;
/**
* @author Diogo Sousa, nº 28970, Turno P10
*
* Docente (prática): Pedro Leandro da Silva Amaral
* Docente (teórico-prática): Miguel Goulão
*/
public class Auction implements Comparable<Auction>
{
enum Status
{
CREATED, OPENED, CLOSED;
/* pre: enumStr must be valid */
pub... | 2,986 | 17.213415 | 76 | java |
gluon | gluon-master/test/simple/auction/Iterator.java | package test.simple.auction;
/**
* @author Diogo Sousa, nº 28970, Turno P10
*
* Docente (prática): Pedro Leandro da Silva Amaral
* Docente (teórico-prática): Miguel Goulão
*/
/* Interface for general iteratores */
public interface Iterator<T>
{
/* Set the current item index pointing to the head of the list */
... | 1,047 | 21.782609 | 66 | java |
gluon | gluon-master/test/simple/auction/AuctionItem.java | package test.simple.auction;
/**
* @author Diogo Sousa, nº 28970, Turno P10
*
* Docente (prática): Pedro Leandro da Silva Amaral
* Docente (teórico-prática): Miguel Goulão
*/
/* Represents an item in the context of an auction */
public class AuctionItem extends Item implements Comparable<AuctionItem>
{
public s... | 3,036 | 19.52027 | 72 | java |
gluon | gluon-master/test/simple/auction/ArrayIterator.java | package test.simple.auction;
/**
* @author Diogo Sousa, nº 28970, Turno P10
*
* Docente (prática): Pedro Leandro da Silva Amaral
* Docente (teórico-prática): Miguel Goulão
*/
public class ArrayIterator<T> implements Iterator<T>
{
private Array<T> array;
private int index;
public ArrayIterator(Array<T> array)... | 1,519 | 15.521739 | 67 | java |
gluon | gluon-master/test/simple/auction/Customer.java | package test.simple.auction;
/**
* @author Diogo Sousa, nº 28970, Turno P10
*
* Docente (prática): Pedro Leandro da Silva Amaral
* Docente (teórico-prática): Miguel Goulão
*/
public class Customer implements Comparable<Customer>
{
private static final int DEFAULT_REPUTATION_PENALTY=10;
private static final int... | 2,336 | 18.475 | 72 | java |
gluon | gluon-master/test/simple/auction/ArraySearchable.java | package test.simple.auction;
/**
* @author Diogo Sousa, nº 28970, Turno P10
*
* Docente (prática): Pedro Leandro da Silva Amaral
* Docente (teórico-prática): Miguel Goulão
*/
public class ArraySearchable<T extends Comparable<T>> extends Array<T>
{
public ArraySearchable()
{
super();
}
/* Is "needle" in th... | 830 | 15.62 | 70 | java |
gluon | gluon-master/test/simple/auction/Item.java | package test.simple.auction;
/**
* @author Diogo Sousa, nº 28970, Turno P10
*
* Docente (prática): Pedro Leandro da Silva Amaral
* Docente (teórico-prática): Miguel Goulão
*/
public class Item
{
private String name; /* Article's name */
public Item(String name)
{
this.name=name;
}
public String getName... | 425 | 13.2 | 51 | java |
gluon | gluon-master/test/simple/auction/Module.java | package test.simple.auction;
@interface Contract
{
String clauses();
}
@Contract(clauses ="a b c;")
public class Module
{
public Module()
{
}
public void a()
{
}
public void b()
{
}
public void c()
{
}
public void d()
{
}
public void e()
{
... | 526 | 7.783333 | 28 | java |
gluon | gluon-master/test/simple/pointsto/Main.java | package test.simple.pointsto;
import test.common.Atomic;
import test.common.Contract;
@Contract(clauses="a b c;"
+"c c;")
class Module
{
public Module() { }
public void a() { }
public void b() { }
public void c() { }
}
public class Main
{
private Module m;
private Module m2=n... | 850 | 13.672414 | 42 | java |
gluon | gluon-master/test/simple/exampleargs/Main.java | package test.simple.exampleargs;
import test.common.Atomic;
import test.common.Contract;
@Contract(clauses="X=d e(X);"
+"a b c(X,X);"
+"a b c(X,Y);"
+"c c;"
+"c(X,Y) c(K,_);")
class Module
{
public Module() { }
public void a() { }
public ... | 1,135 | 15.228571 | 71 | java |
gluon | gluon-master/test/simple/fieldargs/Main.java | package test.simple.fieldargs;
import test.common.Atomic;
import test.common.Contract;
@Contract(clauses="a(X) b(X);"
+"ai(X) bi(X);"
+"X=ai bi(X)")
class Module
{
public Module m;
public int foo=3;
public Module() { }
public void a(String bar) { }
public void b(S... | 1,555 | 14.106796 | 42 | java |
gluon | gluon-master/test/simple/example/Main.java | package test.simple.example;
import test.common.Atomic;
import test.common.Contract;
@Contract(clauses="a b c;"
+"c c;")
class Module
{
public Module() { }
public void a() { }
public void b() { }
public void c() { }
}
public class Main
{
private static Module m;
private stat... | 689 | 13.680851 | 42 | java |
gluon | gluon-master/test/simple/performance/Main.java | package test.simple.performance;
import test.common.Atomic;
import test.common.Contract;
@Contract(clauses="a b c;"
+"c c;")
class Module
{
public Module() { }
public void a() { }
public void b() { }
public void c() { }
}
public class Main
{
private static Module m;
private s... | 20,700 | 17.12697 | 42 | java |
gluon | gluon-master/test/simple/basic/Main.java | package test.simple.basic;
public class Main
{
public static void main(String[] args)
{
while (true)
main(args);
}
}
| 151 | 11.666667 | 42 | java |
gluon | gluon-master/test/simple/withParams/Main.java | package test.simple.withParams;
import test.common.Contract;
@Contract(clauses="Y=indexOf remove(Y);")
class Module
{
public Module() {}
public int indexOf() { return 0; }
public void remove(int i) {}
}
public class Main {
private static Module m;
public static void main(String[] args) {
... | 417 | 16.416667 | 44 | java |
gluon | gluon-master/test/simple/grammaropt/Main.java | package test.simple.grammaropt;
import test.common.Atomic;
import test.common.Contract;
@Contract(clauses="a b c;"
+"c c;")
class Module
{
public Module() { }
public void a() { }
public void b() { }
public void c() { }
}
public class Main
{
private static Module m;
public st... | 663 | 17.444444 | 46 | java |
gluon | gluon-master/test/validation/UnderReportingTest/Main.java | package test.validation.UnderReportingTest;
public class Main extends Thread {
static Counter c;
public static void main(String[] args) {
c = new Counter();
new Main().start();
new Main().start();
}
public void run() {
int i = c.inc(0);
c.inc(i);
}
} | 269 | 14.882353 | 43 | java |
gluon | gluon-master/test/validation/UnderReportingTest/Counter.java | package test.validation.UnderReportingTest;
import test.common.Atomic;
import test.common.Contract;
@Contract(clauses = "inc inc;")
public class Counter {
int i;
@Atomic
int inc(int a) {
i += a;
return i;
}
}
| 221 | 12.058824 | 43 | java |
gluon | gluon-master/test/validation/Knight/Main.java | package test.validation.Knight;
import java.awt.Point;
import java.util.Random;
public class Main
{
public static void main(String[] args)
{
Random rnd=new Random();
Point knight=new Point(Math.abs(rnd.nextInt())%KnightMoves.WIDTH,Math.abs(rnd.nextInt())%KnightMoves.WIDTH);
Point prey=new Point(Math.abs(rnd.... | 766 | 22.242424 | 110 | java |
gluon | gluon-master/test/validation/Knight/KnightMoves.java | package test.validation.Knight;
import java.awt.Point;
import test.common.Atomic;
import test.common.Contract;
@Contract(clauses = "get_solution(X) set_solution(X,_);")
public class KnightMoves
{
public static final int WIDTH=8;
private Point knight;
private Point prey;
private int solution[][];
public KnightM... | 1,223 | 15.767123 | 59 | java |
gluon | gluon-master/test/validation/Knight/Solver.java | package test.validation.Knight;
import java.awt.Point;
import java.lang.Thread;
import java.util.Random;
public class Solver
extends Thread
{
private KnightMoves km;
private Point me;
private int moves;
public Solver(KnightMoves km, Point me, int moves)
{
this.km=km;
this.me=me;
this.moves=moves;
}
pr... | 1,392 | 18.347222 | 81 | java |
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.