Skip to content

Commit

Permalink
BEGINNING IDIOTIC DOODLES
Browse files Browse the repository at this point in the history
  • Loading branch information
shingarov committed Oct 13, 2024
1 parent a156555 commit e42ed18
Showing 1 changed file with 17 additions and 3 deletions.
20 changes: 17 additions & 3 deletions src/Refinements/FTC.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -42,16 +42,21 @@ FTC >> containsFVar [

{ #category : #hotel }
FTC >> fappSmtSort: ts originalFApp: anFApp [
| j |
self isSetCon ifTrue: [
ts size = 1 ifFalse: [ self error ].
^ts first z3sort mkSetSort
].
self isMapCon ifTrue: [ self shouldBeImplemented ].
self isBitVec ifTrue: [ self shouldBeImplemented ].

j := PreSort hotel addElement: anFApp.
^Z3Sort uninterpretedSortNamed: j
self maybeData
ifNil: [
| j |
j := PreSort hotel addElement: anFApp.
^Z3Sort uninterpretedSortNamed: j
] ifNotNil: [
^self shouldBeImplemented
]
]

{ #category : #comparing }
Expand Down Expand Up @@ -83,6 +88,15 @@ Cf. fappSmtSort in Theories.hs
^typeConstructor symbol = 'Set_Set'
]

{ #category : #'as yet unclassified' }
FTC >> maybeData [
| γ |
γ := Context readState: #symbolEnv.
^γ data
at: typeConstructor symbol
ifAbsent: [ nil ]
]

{ #category : #printing }
FTC >> printOn: aStream [
aStream nextPutAll: 'FTC ('.
Expand Down

0 comments on commit e42ed18

Please sign in to comment.