forked from rems-project/sail
-
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.
fmt: wrap exps into oneline if possibly
- Loading branch information
Showing
6 changed files
with
167 additions
and
43 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
function f b = if b == bitone then bitzero else bitone | ||
function f b = if b == bitone then { bitzero } else { bitone } | ||
function f b = if b == bitone then { let a = 1;bitzero } else { bitone } | ||
|
||
function f b = if b == bitone then { {bitzero } } else { bitone } | ||
function f b = if b == bitone then { {{bitzero} } } else { bitone } | ||
function f b = if b == bitone then { { let a = 1; bitzero } } else { bitone } | ||
function f b = if b == bitone then { { {let a = 1; bitzero} } } else { bitone } | ||
function f b = if b == bitone then { { { {let a = 1; bitzero}} } } else { {{{let a= 1; bitone}}} } | ||
function f b = if b == bitone then { { { {let a = 1; bitzero}} } } else { {{bitone }}} | ||
function f b = if b == bitone then { { { {let a = 1; bitzero}} } } else { {let a = 1;{bitone }}} | ||
|
||
/* comment */ | ||
function/* comment */f b = if b == bitone then bitzero else bitone | ||
function f/* comment */b = if b == bitone then bitzero else bitone | ||
function f b/* comment */= if b == bitone then bitzero else bitone | ||
function f b = /* comment */if b == bitone then bitzero else bitone | ||
// TODO function f b =/* comment */if b == bitone then bitzero else bitone | ||
function f b = if/* comment */b == bitone then bitzero else bitone | ||
function f b = if b/* comment */== bitone then bitzero else bitone | ||
function f b = if b == /* comment */ bitone then bitzero else bitone | ||
// TODO function f b = if b ==/* comment */bitone then bitzero else bitone | ||
function f b = if b == bitone/* comment */then bitzero else bitone | ||
function f b = if b == bitone then/* comment */bitzero else bitone | ||
function f b = if b == bitone then bitzero/* comment */else bitone | ||
function f b = if b == bitone then bitzero else/* comment */bitone | ||
function f b = if b == bitone then bitzero else bitone/* comment */ |
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,93 @@ | ||
function f b = if b == bitone then { bitzero } else { bitone } | ||
function f b = if b == bitone then { bitzero } else { bitone } | ||
function f b = if b == bitone then { | ||
let a = 1; | ||
bitzero | ||
} else { bitone } | ||
|
||
function f b = if b == bitone then { { bitzero } } else { bitone } | ||
function f b = if b == bitone then { { { bitzero } } } else { bitone } | ||
function f b = if b == bitone then { | ||
{ | ||
let a = 1; | ||
bitzero | ||
} | ||
} else { bitone } | ||
function f b = if b == bitone then { | ||
{ | ||
{ | ||
let a = 1; | ||
bitzero | ||
} | ||
} | ||
} else { bitone } | ||
function f b = if b == bitone then { | ||
{ | ||
{ | ||
{ | ||
let a = 1; | ||
bitzero | ||
} | ||
} | ||
} | ||
} else { | ||
{ | ||
{ | ||
{ | ||
let a = 1; | ||
bitone | ||
} | ||
} | ||
} | ||
} | ||
function f b = if b == bitone then { | ||
{ | ||
{ | ||
{ | ||
let a = 1; | ||
bitzero | ||
} | ||
} | ||
} | ||
} else { { { bitone } } } | ||
function f b = if b == bitone then { | ||
{ | ||
{ | ||
{ | ||
let a = 1; | ||
bitzero | ||
} | ||
} | ||
} | ||
} else { | ||
{ | ||
let a = 1; | ||
{ bitone } | ||
} | ||
} | ||
|
||
/* comment */ | ||
function f /* comment */ b = if b == bitone then { bitzero } else { bitone } | ||
function f /* comment */ b = if b == bitone then { bitzero } else { bitone } | ||
function f b = /* comment */ if b == bitone then { bitzero } else { bitone } | ||
function f b = /* comment */ if b == bitone then { bitzero } else { bitone } | ||
|
||
// TODO function f b =/* comment */if b == bitone then bitzero else bitone | ||
function f b = if /* comment */ b == bitone then { bitzero } else { bitone } | ||
function f b = if b == /* comment */ bitone then { bitzero } else { bitone } | ||
function f b = if b == /* comment */ bitone then { bitzero } else { bitone } | ||
|
||
// TODO function f b = if b ==/* comment */bitone then bitzero else bitone | ||
function f b = if b == bitone /* comment */ then { bitzero } else { bitone } | ||
function f b = if b == bitone then { | ||
/* comment */ bitzero | ||
} else { bitone } | ||
function f b = if b == bitone then { | ||
bitzero /* comment */ | ||
} else { bitone } | ||
function f b = if b == bitone then { | ||
bitzero /* comment */ | ||
} else { bitone } | ||
function f b = if b == bitone then { | ||
bitzero /* comment */ | ||
} else { bitone } |
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