Skip to content

Commit e8b4245

Browse files
committed
Cumulative updates
1 parent 1a6ae03 commit e8b4245

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

74 files changed

+683
-543
lines changed

.scalafmt.conf

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
11
style = IntelliJ
22
maxColumn = 160
3-
binPack.literalArgumentLists = false
3+
binPack.literalArgumentLists = false
4+
align = none
5+
//align.openParenCallSite = true
6+
//align.openParenDefnSite = true
7+
includeCurlyBraceInSelectChains = false
8+
rewrite.rules = [ redundantbraces, sortimports, SortModifiers ]
9+
rewrite.redundantBraces.stringInterpolation = true

.travis.yml

Lines changed: 0 additions & 12 deletions
This file was deleted.

README.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,11 @@ TIP is a tiny imperative programming language aimed at teaching the
44
fundamental concepts of static program analysis. This code accompanies the
55
lecture notes on [Static Program Analysis](http://cs.au.dk/~amoeller/spa/).
66

7-
[![Build Status](https://travis-ci.org/cs-au-dk/TIP.svg)](https://travis-ci.org/cs-au-dk/TIP)
8-
97
## Getting started
108

119
Prerequisites:
1210
- Java 8
13-
- [Scala 2.11](http://www.scala-lang.org/download/)
11+
- [Scala 2.12](http://www.scala-lang.org/download/)
1412
- [SBT](http://www.scala-sbt.org/)
1513

1614
We suggest you to use IntelliJ for working on TIP, but all the following

build.sbt

Lines changed: 2 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,12 @@
11
name := "tip"
2-
version := "2.0.0"
32

4-
scalaVersion := "2.11.8"
3+
scalaVersion := "2.12.6"
54

65
trapExit := false
76

87
scalacOptions ++= Seq("-unchecked", "-deprecation", "-feature")
98

10-
////// runtime dependencies ////
119
libraryDependencies += "org.parboiled" %% "parboiled" % "2.1.4"
12-
libraryDependencies += "com.regblanc" % "scala-smtlib_2.11" % "0.2.1"
13-
14-
////// test dependencies ///////
15-
libraryDependencies += "junit" % "junit" % "4.12" % "test"
16-
libraryDependencies += "org.scalatest" % "scalatest_2.11" % "3.0.0"
10+
libraryDependencies += "com.regblanc" % "scala-smtlib_2.12" % "0.2.1"
1711

1812
scalaSource in Compile := baseDirectory.value / "src"
19-
scalaSource in Test := baseDirectory.value / "test"
20-
21-
scalafmtOnCompile in ThisBuild := true // format on compile

examples/a1.tip

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ main() {
1818
n = 42;
1919
while (n>0) {
2020
n = n-1;
21-
h = alloc;
21+
h = alloc null;
2222
*h = t;
2323
t = h;
2424
}

examples/a2.tip

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ unnormalized(){
88
var d;
99

1010
d = *x;
11-
*d = (*foo)(&x,bar(alloc));
11+
*d = (*foo)(&x,bar(alloc null));
1212

1313
return 10;
1414
}
@@ -26,7 +26,7 @@ normalized(){
2626
f1 = bar;
2727
f2 = *foo;
2828

29-
m = alloc;
29+
m = alloc null;
3030

3131
a1 = &x;
3232
a2 = (f1)(m);

examples/a3.tip

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ main() {
2121
y = &z;
2222
x = &y;
2323

24-
**x = (*foo)(&x,bar(alloc));
24+
**x = (*foo)(&x,bar(alloc 0));
2525

2626
return **x;
2727
//return 1;

examples/a4.tip

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
main() {
22
var x,y,p,q;
3-
q = alloc;
3+
q = alloc null;
44
y = &q;
55
x = *y;
66
p = null;

examples/andersen.tip

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ f() {
33
a = &d;
44
b = &e;
55
a = b;
6-
tmp = alloc;
6+
tmp = alloc null;
77
*a = tmp;
88
return 0;
99
}

examples/code.tip

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ main(){
3737
return test(5);
3838
/*
3939
var a,b,c;
40-
b = alloc;
40+
b = alloc null;
4141
a=100;
4242
//c=g(b);
4343
c=g(&a);

0 commit comments

Comments
 (0)