Skip to content

Commit

Permalink
Add option disableNL (#26)
Browse files Browse the repository at this point in the history
disableNL
  • Loading branch information
jcp19 authored Mar 1, 2024
1 parent 9ad7a52 commit 6ca5a77
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 1 deletion.
1 change: 1 addition & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@ jobs:
includePaths: 'test/include_path'
timeout: 2m
conditionalizePermissions: '1'
disableNL: '1'
- name: Verify chopped Gobra files
uses: ./
with:
Expand Down
4 changes: 4 additions & 0 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,10 @@ inputs:
description: 'Tries to reduce the number of branches that Gobra has to deal with the option --conditionalizePermissions'
required: false
default: '0'
disableNL:
description: 'Disable non-linear integer arithmetic. Non compatible yet with Carbon'
required: false
default: '0'
useZ3API:
description: 'Use the Z3 API in silicon.'
required: false
Expand Down
5 changes: 5 additions & 0 deletions docker-action/entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,11 @@ if [[ $INPUT_REQUIRETRIGGERS -eq 1 ]]; then
GOBRA_ARGS="$GOBRA_ARGS --requireTriggers"
fi

if [[ $INPUT_DISABLENL -eq 1 ]]; then
GOBRA_ARGS="$GOBRA_ARGS --disableNL"
fi


if [[ $INPUT_CONDITIONALIZEPERMISSIONS -eq 1 ]]; then
GOBRA_ARGS="$GOBRA_ARGS --conditionalizePermissions"
fi
Expand Down
2 changes: 1 addition & 1 deletion entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ docker run -e INPUT_CACHING -e INPUT_PROJECTLOCATION -e INPUT_INCLUDEPATHS -e IN
-e INPUT_OVERFLOW -e INPUT_VIPERBACKEND -e INPUT_JAVAXSS -e INPUT_JAVAXMX -e INPUT_TIMEOUT -e INPUT_HEADERONLY -e INPUT_STATSFILE \
-e INPUT_MODULE -e INPUT_RECURSIVE -e INPUT_ASSUMEINJECTIVITYONINHALE -e INPUT_CHECKCONSISTENCY -e INPUT_MCEMODE \
-e INPUT_REQUIRETRIGGERS \
-e INPUT_USEZ3API \
-e INPUT_USEZ3API -e INPUT_DISABLENL \
-e INPUT_PARALLELIZEBRANCHES -e INPUT_CONDITIONALIZEPERMISSIONS -e GITHUB_WORKSPACE -e GITHUB_REPOSITORY \
-e STATS_TARGET -e DEBUG_MODE -v "$RUNNER_WORKSPACE:$GITHUB_WORKSPACE" -v "$INPUT_STATSFILE:$STATS_TARGET" \
--workdir "$GITHUB_WORKSPACE" docker-action

0 comments on commit 6ca5a77

Please sign in to comment.