forked from HarvardPL/formulog
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update to match "Making Formulog Fast" artifact (HarvardPL#83)
* Add flag for eager eval; update README; update Boost version. * Add eager eval codegen to unit testing. * Add comments. * Fix some formatting. * Skip uploading dependency graph in GH Action.
- Loading branch information
1 parent
55d30a7
commit 61b699a
Showing
13 changed files
with
237 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
59 changes: 59 additions & 0 deletions
59
src/test/java/edu/harvard/seas/pl/formulog/codegen/CompiledEagerEvaluationTest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
/*- | ||
* #%L | ||
* Formulog | ||
* %% | ||
* Copyright (C) 2024 President and Fellows of Harvard College | ||
* %% | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
* #L% | ||
*/ | ||
package edu.harvard.seas.pl.formulog.codegen; | ||
|
||
/*- | ||
* #%L | ||
* Formulog | ||
* %% | ||
* Copyright (C) 2018 - 2020 President and Fellows of Harvard College | ||
* %% | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
* #L% | ||
*/ | ||
|
||
import edu.harvard.seas.pl.formulog.Configuration; | ||
import edu.harvard.seas.pl.formulog.eval.CommonEvaluationTest; | ||
import edu.harvard.seas.pl.formulog.eval.SemiNaiveEvaluation; | ||
|
||
public class CompiledEagerEvaluationTest extends CommonEvaluationTest<SemiNaiveEvaluation> { | ||
|
||
static { | ||
if (!Configuration.testCodeGenEager) { | ||
System.err.println( | ||
"WARNING: skipping CompiledEagerEvaluationTest; enable with system property" | ||
+ " `-DtestCodeGenEager`"); | ||
} | ||
} | ||
|
||
public CompiledEagerEvaluationTest() { | ||
super(Configuration.testCodeGenEager ? new CodeGenTester(true) : new NopTester<>()); | ||
} | ||
} |
59 changes: 59 additions & 0 deletions
59
src/test/java/edu/harvard/seas/pl/formulog/codegen/CompiledEagerMagicSetTest.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
/*- | ||
* #%L | ||
* Formulog | ||
* %% | ||
* Copyright (C) 2024 President and Fellows of Harvard College | ||
* %% | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
* #L% | ||
*/ | ||
package edu.harvard.seas.pl.formulog.codegen; | ||
|
||
/*- | ||
* #%L | ||
* Formulog | ||
* %% | ||
* Copyright (C) 2018 - 2020 President and Fellows of Harvard College | ||
* %% | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
* #L% | ||
*/ | ||
|
||
import edu.harvard.seas.pl.formulog.Configuration; | ||
import edu.harvard.seas.pl.formulog.eval.SemiNaiveEvaluation; | ||
import edu.harvard.seas.pl.formulog.magic.CommonMagicSetTest; | ||
|
||
public class CompiledEagerMagicSetTest extends CommonMagicSetTest<SemiNaiveEvaluation> { | ||
|
||
static { | ||
if (!Configuration.testCodeGenEager) { | ||
System.err.println( | ||
"WARNING: skipping CompiledEagerMagicSetTest; enable with system property" | ||
+ " `-DtestCodeGenEager`"); | ||
} | ||
} | ||
|
||
public CompiledEagerMagicSetTest() { | ||
super(Configuration.testCodeGenEager ? new CodeGenTester(true) : new NopTester<>()); | ||
} | ||
} |
Oops, something went wrong.